MLEResults.test_heteroskedasticity(method, alternative='two-sided', use_f=True)
[source]
Test for heteroskedasticity of standardized residuals
Tests whether the sum-of-squares in the first third of the sample is significantly different than the sum-of-squares in the last third of the sample. Analogous to a Goldfeld-Quandt test. The null hypothesis is of no heteroskedasticity.
Parameters: |
|
---|---|
Returns: |
output – An array with |
Return type: |
array |
The null hypothesis is of no heteroskedasticity. That means different things depending on which alternative is selected:
For \(h = [T/3]\), the test statistic is:
where \(d\) is the number of periods in which the loglikelihood was burned in the parent model (usually corresponding to diffuse initialization).
This statistic can be tested against an \(F(h,h)\) distribution. Alternatively, \(h H(h)\) is asymptotically distributed according to \(\chi_h^2\); this second test can be applied by passing asymptotic=True
as an argument.
See section 5.4 of [1] for the above formula and discussion, as well as additional details.
TODO
[1] | Harvey, Andrew C. 1990. Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press. |
© 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.statespace.mlemodel.MLEResults.test_heteroskedasticity.html