Professional Documents
Culture Documents
Testing Residuals For White Noise in Time Series
Testing Residuals For White Noise in Time Series
Deborah Diamante
Fall 2004
“On a Measure of Lack of Fit in Time Series
Models”; GM Ljung & GEP Box; Biometrika 1970
Example
Introduction to ARIMA in time series
Distribution of B-P Test Statistic
A better Test Statistic
Return to Example
What is the question?
Hypotheses:
H 0 : 1 2 ... m 0
H1 : at least one non zero
Example: Dow Jones Utilities Index
(Aug. 28 – Dec. 18, 1972)
S e r ie s
124.
122.
120.
118.
116.
114.
112.
110.
108.
0 10 20 30 40 50 60 70
( B)(1 B) d xt ( B) zt zt ~ WN (0, 2 )
( B ) 1 1 B ... p B p
( B ) 1 1 B ... q B q
To simplify, call Yt the differenced time series so that
yt (1 B ) d xt
yt i 1i yt i j 1 j zt j zt
p q
k
zz
t t k
~ MVN
z 2
t
Anderson (1942)
nk 1
Var ( k )
n(n 2) n
nk 1 k2 ~ 2 (m)
m
ˆ 1 ( B) zt ˆ ( B) zt j 0ˆ j zˆt j
t p 1 k 0 zˆtˆ k zˆt k j
n
k 0ˆ k ˆ k j
k 0 k ˆ k j with O p (1 / n)
m
Using the first order Taylor expansion about ˆ it can be shown
that for k = 1 … m
ˆ k k j 1 ( j ˆj ) k j
p
where r r[ I Q] m p
iff [ I Q] is idempotent
Show [ I Q] [ I Q][ I Q]
[ I Q][ I Q]
I Q Q QQ
I 2Q X ( X ' X ) 1 X ' X ( X ' X ) 1 X '
I 2Q X ( X ' X ) 1 X '
I 2Q Q
I Q
Therefore, if we have Yt AR(p) then
BP nk 1 ˆ k2 ~ 2 (m p )
m
LB n(n 2)k 1 (n k ) 1 ˆ k2 ~ 2 (m p q)
m
Return to Example
n = 78, choose m = 24, alpha = 0.05
proc
Fitarima data=dowj;
an ARIMA(1,1,0)
identify var=DOWJ nlag=24;
LB = 38.88, p = 0.0205
identify var=DOWJ(1) nlag=24;
Reject the null hypothesis
/* Syntax to fit AR(1) model to (1-B)DOWJ using ML*/
estimate
Fit anp=1
ARIMA(0,1,1)
method=ml;
run; LB = 40.22, p = 0.0145
Reject the null hypothesis
/* Syntax to fit MA(1) model to (1-B)DOWJ using ML*/
estimate q=1 method=ml;
Fit an ARIMA(1,1,1)
run;
LB = 33.50, p = 0.0551
/* Syntax Do notARMA(1,1)
to fit reject the model
null hypothesis
to (1-B)DOWJ using ML*/
estimate p=1 q=1 method=ml;
run;
Other Tests Exist
Difference-Sign Test
Thank You!
Dr. Ravishanker
Dr. Dey
Questions?