Question: Use a 5 t h - order moving average smoother to smooth the following. In each case plot the smoothed data as an overlay on
Use a order moving average smoother to smooth the following. In each case plot the smoothed data as an overlay on the original data:
a bitcoin
b wtcrude
Using the tswge ts object dfw mon, do the following:
a Use the Base window function to create a ts object consisting of the monthly temperatures from January through December Name the file dfwmon.
b Apply a order moving average smoother to the data in dfw mon. Plot the monthly data and overlay the smoothed data. Describe the appearance of the smoothed data.
c Apply an additive decomposition to dfwmon. using the techniques in Section and plot the four plots as in Figure
d Base has a function called decompose that performs an additive or multiplicative decompostion. Issue the following commands:
dfw decompdecompose dfw mon type additive
plot dfw decomp
Compare the plots with those you produced in c
Consider the following three tswge datasets.
us retail: quarterly US retail sales in $millions from the fourth quarter of through the second quarter of
NSA: Monthly Total Vehicle Sales NSA in the United States from January through July
NAICS: Monthly US total sales in retail trade and food services in billions of dollars from Jan through December
Exploring Time Series Data
For each of these datasets:
a Plot the data.
b Discuss behavior of the time series.
c Decompose the data additive or multiplicative you decide
d These data are not seasonally adjusted. Seasonally adjust the data using either or and plot your results.
Answer and ad
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
