Thanks for your reply. I have a question about LjungBox test. Based on the instruction of SuanShu, the constructor of Ljung-Box test is LjungBox(double x, int lag, int fitdf). However, by the definition of Ljung-Box, it runs a Ljung-Box test on the residuals of x. So, the constructor of Ljung-Box test in Matlab is Box.test(resid(x.arma), lag=20, type=”Ljung-Box”). In SuanShu, the first input is the residual of a time series or a time series itself?
This topic was modified 1 year, 1 month ago by TAYUAN HSU.
This topic was modified 1 year, 1 month ago by webmaster.
I think the first input of Ljung-Box test in SuanShu should be the residuals of an ARMA model. In SuanShu, how do we get the residuals of an ARMA model? I can’t find a corresponding class to do it in SuanShu Javadoc. Can anyone help me? Thank you.