statsmodels.stats.diagnostic.acorr_ljungbox(x, lags=None, boxpierce=False)
[source]
Ljung-Box test for no autocorrelation
Parameters: |
|
---|---|
Returns: |
|
Ljung-Box and Box-Pierce statistic differ in their scaling of the autocorrelation function. Ljung-Box test is reported to have better small sample properties.
TODO: could be extended to work with more than one series 1d or nd ? axis ? ravel ? needs more testing
Verification
Looks correctly sized in Monte Carlo studies. not yet compared to verified values
see example script
Greene Wikipedia
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.acorr_ljungbox.html