Login
Login

getting residuals

Home 21090308 Forums Numerical Method Statistics getting residuals

Tagged: 

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5733
    dayyoung0324
    Member

    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 3 months, 3 weeks ago by hessinemaaoui.
    #5735
    dayyoung0324
    Member

    Hello,

    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.

    #5736
    Ryu
    Member

    The input to SuanShu Ljung-Box test is just a time series. As you pointed out, we normally pass in the residuals of the fitted time series.

    In SuanShu, there is no call to compute the residuals at the moment. The user needs to compute them on their own (for now). We added this feature to the TODOs.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.