Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due
Stat153 Assignment 3
1. (Prediction operator)
Show that the prediction operator defined in lectures, P(Y |Z) = the best linear predictor of Y given Z, is linear in Y : P(α1Y1 + α2Y2|Z) = α1P(Y1|Z) + α2P(Y2|Z).
2. (Linear prediction)
Suppose that {Xt} is an AR(1) process, we have observed X1 and X3, and we would like to estimate the missing value X2. Find the best linear predictor of X2 given X1 and X3.
3. (Linear prediction)
Shumway and Stoffer problem 3.14.
4. (ACF, PACF, and forecasting)
Consider the time series data in the file sunspot.dat on the website. It consists of n = 285 observations of the number of sunspots, from 1700 to 1984. This is a quantity that is believed to affect our weather patterns. This time series has been studied by many authors, including Yule (Philosophical Transactions of the Royal Society of London, Series A, 226:267–298, 1927) and Brillinger and Rosenblatt (Spectral Analysis of Time Series, B. Harris (Ed.), pp 153–188, Wiley, 1967).
We will study the square root of the data (this transformation ensures that the variance is roughly √ constant). That is, for the series Z1, . . . , Zn from the file sunspot.dat, first compute the series Xt = Zt , and work with the series {Xt} in what follows.
(a) Compute the sample ACF and the sample PACF for this series.
(b) By considering the sample ACF and sample PACF, decide which of the following would be appropriate for this data: AR(1), AR(2), MA(1) or MA(2). Use the data to estimate the parameters of the model that you choose.
(c) Using your fitted model, calculate forecasts Xn n+h , for h = 1, 2, 3, 4. Calculate the 95% prediction intervals (assuming Gaussian noise).
(d) The file sunspot2.dat on the website includes the number of sunspots for the years 1985 to 1988. Plot all of the data, and your forecasts and prediction intervals for the last four years. (Don’t forget to undo the square root transformation by taking the square of your predictions.)