Ch 8. MODEL DIAGNOSTICS -...

45
Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Transcript of Ch 8. MODEL DIAGNOSTICS -...

Page 1: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ch 8. MODEL DIAGNOSTICS

Time Series Analysis

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 2: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Model diagnostics is concerned with testing the goodness of fit ofa model and, if the fit is poor, suggesting appropriatemodifications. We shall present two complementary approaches:analysis of residuals from the fitted model and analysis ofoverparameterized models.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 3: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1 Residual Analysis

For an AR(p) model: Yt =∑p

k=1 φkYt−k + θ0 + et , after

obtaining the estimated coefficients φk and θ0, the residuals aredefined as

et = Yt −p∑

k=1

φkYt−k − θ0.

For an invertible ARMA(p,q) model containing MA terms, weuse the inverted infinite AR form of the model to define residuals:

Yt = π1Yt−1 + π2Yt−2 + π3Yt−3 + · · ·+ et

⇒ et = Yt − π1Yt−1 − π2Yt−2 − π3Yt−3 − · · ·or residual = actual − predicted.

The π’s are calculated implicitly as functions of the estimated φ’sand θ’s.

If the model is correctly specified and the parameter estimatesare reasonably close to the true values, then the residuals shouldhave nearly the properties of white noise.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 4: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1 Residual Analysis

For an AR(p) model: Yt =∑p

k=1 φkYt−k + θ0 + et , after

obtaining the estimated coefficients φk and θ0, the residuals aredefined as

et = Yt −p∑

k=1

φkYt−k − θ0.

For an invertible ARMA(p,q) model containing MA terms, weuse the inverted infinite AR form of the model to define residuals:

Yt = π1Yt−1 + π2Yt−2 + π3Yt−3 + · · ·+ et

⇒ et = Yt − π1Yt−1 − π2Yt−2 − π3Yt−3 − · · ·or residual = actual − predicted.

The π’s are calculated implicitly as functions of the estimated φ’sand θ’s.

If the model is correctly specified and the parameter estimatesare reasonably close to the true values, then the residuals shouldhave nearly the properties of white noise.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 5: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1 Residual Analysis

For an AR(p) model: Yt =∑p

k=1 φkYt−k + θ0 + et , after

obtaining the estimated coefficients φk and θ0, the residuals aredefined as

et = Yt −p∑

k=1

φkYt−k − θ0.

For an invertible ARMA(p,q) model containing MA terms, weuse the inverted infinite AR form of the model to define residuals:

Yt = π1Yt−1 + π2Yt−2 + π3Yt−3 + · · ·+ et

⇒ et = Yt − π1Yt−1 − π2Yt−2 − π3Yt−3 − · · ·or residual = actual − predicted.

The π’s are calculated implicitly as functions of the estimated φ’sand θ’s.

If the model is correctly specified and the parameter estimatesare reasonably close to the true values, then the residuals shouldhave nearly the properties of white noise.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 6: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1.1. Plots of the Residuals

The parameters of the AR(1) model were estimated usingmaximum likelihood. The plot shows a rectangular scatter arounda zero horizontal level with no trend, which supports the model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 7: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The model of hare0.5 built in Exhibit 7.8 is an AR(3) model withφ2 term dropped:√

Yt = 3.483 + 0.919√Yt−1 − 0.5313

√Yt−3 + et

From the standardized residual plot, the variation looks not quiteconsistent. The model is not so ideal. (The seemingly large negative

standardized residuals are not outliers according to the Bonferroni outlier

criterion with critical values ±3.15. )Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 8: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 9: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The standardized residual plot looks fine, except for a few spikes. At least

two or three residuals have magnitude greater than 3, which is rare for a

standard white noise process. We should investigate the other factors

influencing the change of oil prices. ( The Bonferroni critical values with

n = 241 and α = 0.05 are ±3.71, so the outliers do appear to be real.)

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 10: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1.2 Normality of the ResidualsWe use quantile-quantile plots and Shapiro-Wilk normality test onstandardized residuals to assess normality.

The QQ plot and the Shapiro-Wilk normality test (W = 0.9754,p-value= 0.6057) would not lead us to reject normality of the errorterms in this model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 11: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1.2 Normality of the ResidualsWe use quantile-quantile plots and Shapiro-Wilk normality test onstandardized residuals to assess normality.

The QQ plot and the Shapiro-Wilk normality test (W = 0.9754,p-value= 0.6057) would not lead us to reject normality of the errorterms in this model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 12: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The extreme values look suspect. However, the sample is small(n = 31) and the Bonferroni criteria do not indicate outliers.Shapiro-Wilk Test does not reject null hypothesis of normality.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 13: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The outliers are quite prominent. Shapiro-Wilk Test would rejectthe null hypothesis.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 14: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1.3 Autocorrelation of the Residuals

For true white noise with large n, the sample autocorrelations rkare approximately normally distributed with zero means. We haveseen that

For the sample autocorrelations rk of the residuals in a correctlyspecified model, however, Var (rk) has slightly different behaviors:

for small lags k and j , Var (rk) can be substantially less than1/n and the estimates Var (rk) and Var (rj) can be highlycorrelated.

For larger lags, the approximate variance 1/n does apply;furthermore, Var (rk) and Var (rj) are approximatelyuncorrelated.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 15: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

For an AR(1) Model, for large n, Var (r1) ≈ φ2

nand Var (rk) ≈ 1

nfor k > 1. Exhibit 8.7 shows the approximations for ResidualAutocorrelations in AR(1) Models.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 16: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 17: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

There is no evidence of autocorrelation in the residuals of thismodel.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 18: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

For an AR(2) model, we have

Var (r1) ≈ φ22n, Var (r2) ≈ φ22 + φ21(1 + φ2)2

n

If the AR(2) parameters are not too close to the stationarityboundary, then

Var (rk) ≈ 1

nfor k ≥ 3.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 19: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The graph does not show statistically significant evidence ofnonzero autocorrelation in the residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 20: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

With monthly data, we may pay special attention to the residualsat lags 12, 24, and so forth. With quarterly series, lags 4, 8, and soforth would merit special attention. Chapter 10 contains examplesof these ideas.

The residuals for MA models have similar results.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 21: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

8.1.4 The Ljung-Box Test

To study the independence of the residuals, we may takes intoaccount the magnitudes of all residual correlations {rk} as a group.The Ljung-Box test statistic is

Q∗ = n(n + 2)

(r21

n − 1+

r22n − 2

+ · · ·+r2K

n − K

)where K is selected large enough such that the Ψ-weights arenegligible for j > K . We would reject the ARMA(p,q) model if theobserved value of Q∗ exceeded an appropriate critical value in achi-square distribution with K − p − q degrees of freedom.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 22: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

The Ljung-Box test statistic can be calculated by the command:

LB.test(m1.color, lag=6)

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 23: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 24: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Exhibit 8.12 (cont) The command tsdiag displays three of ourdiagnostic tools in one display—a sequence plot of thestandardized residuals, the sample ACF of the residuals, andp-values for the Ljung-Box test statistic for a whole range of valuesof K from 5 to 15. Everything looks very good. The estimatedAR(1) model seems to be capturing the dependence structure ofthe color property time series quite well. The runs test also do notreject the independence of the residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 25: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

tsdiag(m1.color,gof=15,omit.initial=F)

The tsdiag function in the TSA package has been modified fromthat in the stats package of R. It performs model diagnostics ona fitted model.

1 The argument gof specifies the maximum number of lags inthe acf function used in the model diagnostics. Themaximum lag should be set sufficiently large, so that theoriginal time series has negligible autocorrelation, and thus theLjung-Box (portmanteau) test statistic can be performed.

2 Setting the argument omit.initial=T omits the few initialresiduals from the analysis. This option is especially useful forchecking seasonal models where the initial residuals are closeto zero by construction and including them may skew themodel diagnostics. In the example, the omit.initial

argument is set to be F so that the diagnostics are done withall residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 26: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex. [Exercise 8.3, TS-ch8.R] Based on a series of lengthn = 200, we fit an AR(2) model and obtain residualautocorrelations of

r1 = 0.13, r2 = 0.13, and r3 = 0.12.

If φ1 = 1.1 and φ2 = −0.8, do these residual autocorrelationssupport the AR(2) specification? Individually? Jointly?

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 27: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Exercise 8.3 Solution: For an AR(2) model, we first use (8.1.8),(8.1.9), (8.1.10):

√Var (r1) ≈

√φ22n

=

√(−0.8)2

200= 0.057, so r1 = 0.13 is too large;

√Var (r2) ≈

√φ22 + φ21(1 + φ2)2

n= 0.059, so r2 = 0.13 is too large;√

Var (rk) ≈√

1

n=

√1

200= 0.071 for k ≥ 3, so r3 = 0.12 is fine;

The Ljung-Box statistic:

Q∗ = n(n + 2)

(r21

n − 1+

r22n − 2

+r23

n − 3

)= 9.83,

if the AR(2) model is correct, then Q∗ is approximately a chi-square

distribution with 3− 2− 0 = 1 degree of freedom. Check the commands

of chi-square distribution by “?Chisquare”. Here we use

“1-pchisq(9.83, df=1)” to see that Prob[Q∗ > 9.83] = 0.0017.

Hence the residual autocorrelations are (jointly) too large to support the

AR(2) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 28: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex. (Exercise 8.7, TS-ch8.R) Fit an AR(3) model by maximumlikelihood to the square root of the hare abundance series (filenamehare).

1 Plot the sample ACF of the residuals. Comment on the size ofthe correlations.

2 Calculate the Ljung-Box statistic summing to K = 9. Doesthis statistic support the AR(3) specification?

3 Perform a runs test on the residuals and comment on theresults.

4 Display the quantile-quantile normal plot of the residuals.Comment on the plot.

5 Perform the Shapiro-Wilk test of normality on the residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 29: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Overfitting and Parameter Redundancy

Another basic diagnostic tool is that of overfitting. After fitting alikely adequate model, we fit a slightly more general model andcompare it with the original model. The original model would beconfirmed if:

1 the estimate of the additional parameter is not significantlydifferent from zero, and

2 the estimates for the parameters in common do not changesignificantly from their original estimates.

We may compare the other statistics, such as log-likelihood andAIC, as well.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 30: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex. We have specified, fitted, and examined the residuals of an AR(1)model for the industrial color property time series. Let us compare it withslightly more general models: AR(2) and ARMA(1,1) models.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 31: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

(cont.) Here are some observations:

1 In Exhibit 8.14, the estimate of φ2 is not statistically differentfrom zero;

2 two estimates of φ1 and µ are quite close;

3 while the AR(2) model has a slightly larger log-likelihoodvalue, the AR(1) fit has a smaller AIC value.

Therefore, the simpler AR(1) model is better.

Next we compare the AR(1) model with the ARMA(1,1) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 32: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

(cont.) Here are some observations:

1 In Exhibit 8.14, the estimate of φ2 is not statistically differentfrom zero;

2 two estimates of φ1 and µ are quite close;

3 while the AR(2) model has a slightly larger log-likelihoodvalue, the AR(1) fit has a smaller AIC value.

Therefore, the simpler AR(1) model is better.

Next we compare the AR(1) model with the ARMA(1,1) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 33: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

(cont.) Here are some observations:

1 In Exhibit 8.14, the estimate of φ2 is not statistically differentfrom zero;

2 two estimates of φ1 and µ are quite close;

3 while the AR(2) model has a slightly larger log-likelihoodvalue, the AR(1) fit has a smaller AIC value.

Therefore, the simpler AR(1) model is better.

Next we compare the AR(1) model with the ARMA(1,1) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 34: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

(cont.) Here are some observations:

1 In Exhibit 8.14, the estimate of φ2 is not statistically differentfrom zero;

2 two estimates of φ1 and µ are quite close;

3 while the AR(2) model has a slightly larger log-likelihoodvalue, the AR(1) fit has a smaller AIC value.

Therefore, the simpler AR(1) model is better.

Next we compare the AR(1) model with the ARMA(1,1) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 35: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

(cont.) Here are some observations:

1 In Exhibit 8.14, the estimate of φ2 is not statistically differentfrom zero;

2 two estimates of φ1 and µ are quite close;

3 while the AR(2) model has a slightly larger log-likelihoodvalue, the AR(1) fit has a smaller AIC value.

Therefore, the simpler AR(1) model is better.

Next we compare the AR(1) model with the ARMA(1,1) model.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 36: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

Observations:

1 the new parameter θ is not significantly different from zero;

2 the estimate of φ1 and µ are not significantly different from theestimate in Exhibit 8.13;

3 the AIC is greater than that of the AR(1) fit.

Again the AR(1) model looks better.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 37: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

Observations:

1 the new parameter θ is not significantly different from zero;

2 the estimate of φ1 and µ are not significantly different from theestimate in Exhibit 8.13;

3 the AIC is greater than that of the AR(1) fit.

Again the AR(1) model looks better.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 38: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

Observations:

1 the new parameter θ is not significantly different from zero;

2 the estimate of φ1 and µ are not significantly different from theestimate in Exhibit 8.13;

3 the AIC is greater than that of the AR(1) fit.

Again the AR(1) model looks better.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 39: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

Observations:

1 the new parameter θ is not significantly different from zero;

2 the estimate of φ1 and µ are not significantly different from theestimate in Exhibit 8.13;

3 the AIC is greater than that of the AR(1) fit.

Again the AR(1) model looks better.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 40: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

Observations:

1 the new parameter θ is not significantly different from zero;

2 the estimate of φ1 and µ are not significantly different from theestimate in Exhibit 8.13;

3 the AIC is greater than that of the AR(1) fit.

Again the AR(1) model looks better.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 41: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

When generalizing ARMA models, we must be aware of theproblem of parameter redundancy.

Define the backshift operation B on any process {Yt} byB(Yt) = Yt−1. For example, an ARMA(1,1) model:Yt = φYt−1 + et − θet−1, may be expressed asYt − φYt−1 = et − θet−1, which is (1− φB)Yt = (1− θB)et .

If we have a correct ARMA model: φ(B)Yt = θ(B)et , then(1− cB)φ(B)Yt = (1− cB)θ(B)et is also a correct model. Thiscreates parameter redundancy. To get unique ARMA model, wemust cancel any common factors in the AR and MA characteristicpolynomials.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 42: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

To avoid parameter redundancy:

1 Try simple models first.

2 When overfitting, do not increase the the AR and MA orderssimultaneously.

3 Extend the model in directions suggested by the analysis (e.g.ACF, PACF) of the residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 43: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex.

The estimates of φ1, φ2, and θ in this ARMA(2,1) fit are verydifferent from those in AR(1) fit, and they are not significantlydifferent from zero.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 44: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Ex. (TS-ch8.R) We simulate an ARMA(2,1) series withφ1 = −0.3, φ2 = 0.4, θ1 = −0.5, and n = 1000. Then we specifythe model, estimate the parameters, and analyze the residuals.

Time Series Analysis Ch 8. MODEL DIAGNOSTICS

Page 45: Ch 8. MODEL DIAGNOSTICS - people.missouristate.edupeople.missouristate.edu/songfengzheng/Teaching/MTH548/Time Series... · Ch 8. MODEL DIAGNOSTICS Time Series Analysis Time Series

Time Series Analysis Ch 8. MODEL DIAGNOSTICS