Hi, i am trying to find a model of best fit for daily stock % returns using the box jenkins method to test for volatility . My problem for all these models
i am getting back no auto present with Ljung Box Qstat and for the Q4 is coming back blank for ARMA 1,2 AND ARMA 2,. All the Qstats are giving back 0.0000 for every model.
I am not sure if my code is wrong or if its something else. I would really appreciate if anyone could help
thanks
spgraph(hfi=1,vfi=3,hea= ' AIB Returns')
graph(hea='AIB Returns') 1 ; # RAIB
spgaph(done)
correlate(partial=pacf,qstats,number=12,span=4) RAIB
source(noecho) c:\winrats\bjident.src
@bjident RAIB
*AR(1)
boxjenk(constant,ar=1) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
* AR(2)
boxjenk(constant,ar=2) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
*MA(1)
boxjenk(constant,ma=1) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
*ARMA(1,1)
boxjenk(constant,ar=1,ma=1) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
*ARMA(1,2)
boxjenk(constant,ar=1,ma=2) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
*ARMA(2,1)
boxjenk(constant,ar=2,ma=1) RAIB / resids
cor(partial=pacf,qstats,number=12,span=4,dfc=%nreg) resids
compute aic=%nobs*log(%rss)+2*%nreg
compute sbc=%nobs*log(%rss)+%nreg*log(%nobs)
display 'aic=' aic 'sbc=' sbc
