Presentation is loading. Please wait.

Presentation is loading. Please wait.

K. Ensor, STAT 421 1 Spring 2005 Model selection/diagnostics Akaike’s Information Criterion (AIC) –A measure of fit plus a penalty term for the number.

Similar presentations


Presentation on theme: "K. Ensor, STAT 421 1 Spring 2005 Model selection/diagnostics Akaike’s Information Criterion (AIC) –A measure of fit plus a penalty term for the number."— Presentation transcript:

1 K. Ensor, STAT 421 1 Spring 2005 Model selection/diagnostics Akaike’s Information Criterion (AIC) –A measure of fit plus a penalty term for the number of parameters. – AIC(k)= log(mle est. of the noise variance) + 2k/T, where T is the sample size and k is the number of parameters in the model –Corrected AIC – stronger penalty (makes a difference with smaller sample sizes) –Choose model that minimizes this adjusted measure of fit.

2 K. Ensor, STAT 421 2 Spring 2005 White noise tests based on sample autocorrelations The sample autocorrelation computed from an independent identically distributed set of observations and multiplied by the square root of the sample size will be asymptotically normal with mean zero and variance one. Box-Pierce test for m sample autocorrelations or Ljung-Box-Pierce test (autocorTest) –Test whether the first m correlations are zero vs. the alternative that at least one differs from zero. –Basically the sum of the first m squared correlation coefficients –Scaled so that you obtain a chi-squared distribution with M degrees of freedom.

3 K. Ensor, STAT 421 3 Spring 2005 Tests for Normality Qqplot – plot the empirical quantiles vs. those of the standard normal distribution. Formal tests included in Splus- finmetrics (normalTest) –Shapiro-Wilks test (test of correlation between empirical and standard normal quantiles) –Jarque-Bera test (tests that the skewness and kurtosis follow that of a normal distribution)

4 K. Ensor, STAT 421 4 Spring 2005 AR modeling – example 2.1 pg 33 Process – quarterly growth rate of U.S. real GNP, seasonally adjusted Quarterly observations beginning 2 nd quarter of 1947 to the first quarter of 1991. Fitted model r(t)=0.0047 + 0.35r(t-1) + 0.18r(t-2)- 0.14r(t-3) + a(t) Std. Dev. Of a(t) is 0.0098

5 K. Ensor, STAT 421 5 Spring 2005

6 K. Ensor, STAT 421 6 Spring 2005 > gnpfitar<-ar(x=gnp,aic=T,order.max=10) > gnpfitar $order: [1] 3 $ar:,, 1 [,1] [1,] 0.3462541 [2,] 0.1769673 [3,] -0.1420867 $var.pred: [,1] [1,] 0.00009675547 $aic: [1] 27.5691310 2.6081086 1.5895550 0.0000000 0.2734771 2.2034466 4.0171066 5.9916210 5.8264833 7.5230025 7.8223499 Fitting this model in Splus…

7 K. Ensor, STAT 421 7 Spring 2005 gnpres<-gnpfitar$resid[4:length(gnp)] > gnpres<-gnpres/(sqrt(gnpfitar$var.pred)) > kdescripb(gnpres,"GNP Standardized Residuals after AR(3) Fit"

8 K. Ensor, STAT 421 8 Spring 2005 Roots of characteristic polynomial Examine roots of corresponding homogeneous difference equation. The behavior of these roots can tell you something about the behavior of the series. For example, –2 distinct real roots – process can be factored into the product of two pieces –2 imaginary roots complex conjugate pair correspond to the stochastic periodicity in the series formula is given on page 33 for the average length of the corresponding business cycle Common in economic time series. The roots can also tell you if the series is stationary.

9 K. Ensor, STAT 421 9 Spring 2005 For the GNP example The homogeneous difference equation corresponding to the GNP fitted model is (1-0.35B-0.18B 2 +0.14B 3 )=0 or (1+0.52B)(1-0.87B+0.27B 2 )=0 Exp. Decay in GNP growth rate. Two complex conjugate roots – stochastic cycle of average length 10.83 quarters.

10 K. Ensor, STAT 421 10 Spring 2005 For an MA model An MA model is always stationary as it is the linear function of uncorrelated or independent random variables –Let’s show this plus derive the ACF for the MA(1) model. Any stationary AR model can be written as a MA model of infinite order. Any invertable MA model (roots of characteristic polynomial are greater than one in modulus) can be written as an AR model of inifinite order. Therefore, we often use the characterization that yields the fewest parameters.

11 K. Ensor, STAT 421 11 Spring 2005 For ARMA model Let’s write out the ARMA model… The mean, variance and autocorrelation are derived in your text on page 49 – you review. Note that the autocorrelation begins decaying exponential to zero after lag 1 (after the largest lag of the MA component). General comments –The MA and AR operators should Possess the same characteristics as in the MA and AR models Should not have common roots (or the model would simplify) –ARMA models can be written as MA or AR models of infinite order.


Download ppt "K. Ensor, STAT 421 1 Spring 2005 Model selection/diagnostics Akaike’s Information Criterion (AIC) –A measure of fit plus a penalty term for the number."

Similar presentations


Ads by Google