STATISTICS

The cmort dataset contains the average weekly cardiovascular mortality in Los Angeles County for 1970-1979. The data for the last year (1979) is only for the first 40 weeks. Therefore, we will analyze the data for 1970-1978. We can get this data using the following R code:
library(astsa)
x = as.vector(cmort[1:468])
t = as.vector(time(cmort)[1:468])
plot(t, x, type=”l”)
We will remove the seasonal component from the data using the moving average technique.
First choose an appropriate value of the period d and find the pre-estimate of mt . Plot the observed series in gray and show the pre-estimate on the same plot but in black (be sure to plot your time series using the type = “l” command).
Now find the estimate of st and plot these estimates for all t = 1, . . . , 468.
Find the residuals after removing the seasonal component and plot them.
Comment on whether you think these residuals look stationary or not. If they do not look stationary, what should we do to make them “look” stationary?

TAKE ADVANTAGE OF OUR PROMOTIONAL DISCOUNT DISPLAYED ON THE WEBSITE AND GET A DISCOUNT FOR YOUR PAPER NOW!

© 2020 customphdthesis.com. All Rights Reserved. | Disclaimer: for assistance purposes only. These custom papers should be used with proper reference.