tsa.stattools.q_stat()

statsmodels.tsa.stattools.q_stat

statsmodels.tsa.stattools.q_stat(x, nobs, type='ljungbox') [source]

Return’s Ljung-Box Q Statistic

x : array-like
Array of autocorrelation coefficients. Can be obtained from acf.
nobs : int
Number of observations in the entire sample (ie., not just the length of the autocorrelation function results.
Returns:

q-stat : array

Ljung-Box Q-statistic for autocorrelation parameters

p-value : array

P-value of the Q statistic

Notes

Written to be used with acf.

© 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.tsa.stattools.q_stat.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部