时间序列homework02-solutions.pdf

大小 823.9KB 页数 17 页 格式 PDF

SOLUTIONS

IE409: Time Series Analysis Fall 2011 Homework 2 4 October 2011

(1) (B&D 1.5) Let {Xt} be the moving-average process of order 2 given by

where {Zt} is WN(0 , 1).

  • (a) Find the autocovariance and autocorrelation functions for this process when θ = 0 . 8.

  • (b) Compute the variance of the sample mean ( X 1 + X 2 + X 3 + X 4) / 4 when θ = 0 . 8.

  • (c) Repeat (b) when θ = − 0 . 8 and compare your answer with the result obtained in (b).

Answer: (a) The autocorrelation at lag h is

Thus, we find

For θ = 0 . 8, this implies

  • (b) The variance of the sample mean is in general

so for θ = 0 . 8 the variance is 0.61.

  • (c) Using the result in part (b), the variance of the sample mean when θ = − 0 . 8 is 0.21. When θ = − 0 . 8, the negative correlation at lag h = 2 means that, for example, a positive deviation from the mean at time t will tend to be met by a negative deviation from the mean at time t + 2. This will reduce the variance of the sample mean as the average of consecutive values will more likely be close to the population mean than if every other value was positively correlated.

  • (2) (B&D 1.6) Let {Xt} be the AR(1) process defined in Example 1.4.5.

    • (a) Compute the variance of the sample mean ( X 1 + X 2 + X 3 + X 4) / 4 when φ = 0 . 9 and σ2 = 1.

    • (b) Repeat (a) when φ = − 0 . 9 and compare your answer with the result obtained in (a).

1

Answer: (a) The variance of the sample mean is in general

This is because there are 4 individual values, 3 pairs of values that are one time unit apart, 2 pairs of values that are two time units apart, and 1 pair of values that are three time units apart. When φ = 0 . 9 and σ2 = 1, this variance is 4.64.

  • (b) Using the result in part(a), the variance of the sample mean when φ = − 0 . 9 and σ2 = 1 is 0.13. The negative correlation at odd lags means that the data will tend to alternate between positive and negative values. Sums of contiguous values will thus tend to be closer to zero than if consecutive data values were positively correlated.

  • (3) (B&D 1.9) Let {x 1 , . . . , xn} be observed values of a time series at times 1 , . . . , n , and let ρ ˆ( h ) be the sample ACF at lag h as in Definition 1.4.4.

    • (a) If xt = a + bt , where a and b are constants and b̸ = 0, show that for each fixed h ≥ 1,
  • (b) If xt = c cos( ωt ), where c and ω are constants ( c̸ = 0 and ω ∈ ( −π, π ]), show that for each fixed h ,

Answer: (a) The sample autocorrelation at lag h ≥ 1 is given by

Plugging xt = a + bt into the denominator yields

Note that this is a polynomial of n of degree 3 with leading coefficient (i.e., the coefficient of n3 )

2

equal to b2 / 3. Similarly, plugging xt = a + bt into the numerator of ρ ˆ( h ) yields

Again, this is a polynomial of n of degree 3 with leading coefficient equal to b2 / 3. Thus, for any fixed h ,

(b) Recall that

and

Plugging in xt = c cos( ωt ), we find

Notice that σ ˆ(0) →c 22asn →∞.Similarly,plugginginxt=_c_cos(ωt),wefind

Here, it is prudent to realize that the limit of σ ˆ( h ) will be dictated only by the limit of the leading

3

term; i.e.,

Combining this result with the limit of σ ˆ(0), we find that ρ ˆ( h ) → cos( ωh ) as n →∞ .

  • (4) (B&D 1.18) (Using ITSM to analyze the deaths data.) Open the file DEATHS.TSM, select Transform>Classical , check the box marked Seasonal Fit , and enter 12 for the period. Make sure that the box labeled Polynomial Fit is not checked, and click, OK . You will then see the graph (Figure 1.24) of the deseasonalized data. This graph suggests the presence of an additional quadratic trend function. To fit such a trend to the deseasonalized data, select Transform>Undo Classical to retrieve the original data. Then select Transform>Classical and check the boxes marked Seasonal Fit and Polynomial Trend , entering 12 for the period and Quadratic for the trend. Click OK and you will obtain the trend function

At this point the data stored in ITSM consists of the estimated noise

obtained by subtracting the estimated seasonal and trend components from the original data. The sample autocorrelation function can be plotted by clicking on the second yellow button at the top of the ITSM window. Further tests for dependence can be carried out by selecting the options Statistics>Residual Analysis>Tests of Randomness . It is clear from these that there is substantial dependence in the series {Yt} .

To forecast the data without allowing for this dependence, select the option Forecasting>ARMA . Specify 24 for the number of values to be forecast, and the program will compute forecasts based on the assumption that the estimated seasonal and trend components are true values and that {Yt} is a white noise sequence with zero mean. (This is the default model assumed by ITSM until a more complicated stationary model is estimated or specified.) The original data are plotted with the forecasts appended. Later we shall see how to improve on these forecasts by taking into account the dependence in the series {Yt} .

Answer: Transformed data accounting only for a seasonal component with period 12:

4

Transformed data accounting for quadratic trend and a seasonal component with period 12:

Sample ACF and PACF of transformed data:

5

Plot including forecast of 24 future values, assuming the residuals are White Noise:

(5) (B&D 2.1) Suppose that X 1 , X 2 , . . . , is a stationary time series with mean µ and ACF ρ ( · ). Show that the best predictor of Xn + h of the form aXn + b is obtained by choosing a = ρ ( h ) and b = µ (1 − ρ ( h )).

Answer: The best predictor is that which makes the expected forecast error equal to zero and the forecast error uncorrelated with Xn . That is, a and b are the values that satisfy the linear equations

The first equation implies

6

Plugging this into the second equation, we find

Thus, a = ρ ( h ), which implies b = µ (1 − ρ ( h )).

  • (6) (B&D 2.11) Suppose that in a sample of size 100 from an AR(1) process with mean µ , φ = 0 . 6, and σ2 = 2 we obtain x 100 = 0 . 271. Construct an approximate 95% confidence interval for µ . Are the data compatible with the hypothesis that µ = 0?

Answer: Using the result in Example 2.4.1, approximate 95% confidence bounds for µ for an AR(1) process are given by

Thus, in this case, we have the bounds

This interval includes the value 0, so the data are compatible with the hypothesis that µ = 0.

  • (7) (B&D 2.12) Suppose that in a sample of size 100 from an MA(1) process with mean µ , θ = − 0 . 6, and σ2 = 1 we obtain x 100 = 0 . 157. Construct an approximate 95% confidence interval for µ . Are the data compatible with the hypothesis that µ = 0?

Answer: The variance of the sample mean for an MA(1) process is in general

Thus, in this case, we have Var( X¯ n ) = 0 . 00172. An approximate 95% confidence interval for µ is then given by

This interval does not include the value 0, so the data are not compatible with the hypothesis that µ = 0.

  • (8) (B&D 2.13) Suppose that in a sample of size 100, we obtain ρ ˆ(1) = 0 . 438 and ρ ˆ(2) = 0 . 145.

    • (a) Assuming that the data are generated from an AR(1) model, construct appproximate 95% confidence intervals for both ρ (1) and ρ (2). Based on these two confidence intervals, are the data consistent with an AR(1) model with φ = 0 . 8?

    • (b) Assuming that the data are generated from an MA(1) model, construct approximate 95% confidence intervals for both ρ (1) and ρ (2). Based on these two confidence intervals, are the data consistent with an MA(1) model with θ = 0 . 6?

7

Answer: (a) Using the result of Example 2.4.4, we find

Based on the data, it is appropriate to choose φ = φˆ = ρ ˆ1 (from the ACF of an AR(1) process), which means that approximate 95% confidence intervals for ρ 1 and ρ 2 are

respectively. These values are inconsistent with an AR(1) model with φ = 0 . 8, since for such a model we have ρ 1 = 0 . 8 and ρ 2 = 0 . 64, which are outside of these intervals.

  • (b) Using the result of Example 2.4.3, we find

Based on the data, it is appropriate to choose ρ 1 = ρ ˆ1, which means that approximate 95% confidence intervals for ρ 1 and ρ 2 are

respectively. These values are consistent with an MA(1) model with θ = 0 . 6, since for such a model we have ρ 1 = 0 . 4412 and ρ 2 = 0, which are inside these intervals.

  • (9) (B&D 2.14) Let {Xt} be the process defined in Problem 2.2.

    • (a) Find P 1 X 2 and its mean squared error.

    • (b) Find P 2 X 3 and its mean squared error.

    • (c) Find P nXn +1 and its mean squared error.

Answer:

(a) We find

Thus, the predictor is given by

The corresponding mean squared error is

8

(b) We find

Thus, the predictor is given by

The corresponding mean squared error is

(c) From part (b) and the fact that the process is stationary, we deduce that

has mean squared error equal to 0. Since it is impossible to find a predictor with smaller mean squared error, this implies that we can choose the forecast

with mean squared error equal to 0. (Note: It is possible to find other predictors that also have mean squared error equation to zero. For example, for finding P 3 X 4, we could solve a 3 × 3 linear system similar to the one solved in part (b) above. This will also yield a predictor with mean squared error equal to zero, even if it differs from the one stated here. All of this is because for k ≥ 3, the linear system for finding the best linear predictor will involve a singular matrix.)

where {Zt} ∼ WN(0 , σ2 ) and Zt is uncorrelated with Xs for each s < t . Show that the best linear predictor PnXn +1 of Xn +1 in terms of 1 , X 1 , . . . , Xn , assuming n > p , is

What is the mean squared error of PnXn +1?

Answer: By the properties of Pn , we find

9

预览结束 · 共 17 页