WaldTest#
- class cultivars.diagnostics.hypothesis.WaldTest(*, statistic, pvalue, df, null)[source]#
Verdict of a chi-squared restriction test on a fitted model.
Carries the same three numbers as
_LikelihoodRatioTestand one more, and that one is the reason they are separate classes. A likelihood-ratio test is named by its construction: two nested fits, one statistic, and the restriction is whatever distinguishes them, so the object needs no label. A Wald statistic is a form rather than a hypothesis – the same quadratic in the same estimated covariance answers Granger causality, residual autocorrelation, normality, and conditional heteroskedasticity – so a result that did not carry its own null would be four unrelated verdicts wearing one type and no way to tell them apart in a table.The distribution is asymptotic in every case. Wald statistics are also famously sensitive to how a nonlinear restriction is algebraically arranged, but every use here restricts coefficients to zero, which is linear and therefore invariant.
- Variables:
statistic (
float) – The chi-squared statistic.df (
int) – Degrees of freedom, the number of restrictions imposed.pvalue (
float) – Upper-tail probability under the chi-squared null.null (
str) – The hypothesis being tested, phrased so it reads as a sentence in a diagnostics table –"gdp does not Granger-cause infl", not"granger".
See also
WaldTest– the public name of this class.VECMResult.arch_test()– returns an instance.VECMResult.granger_causality()– returns an instance.VECMResult.normality_test()– returns an instance.VECMResult.portmanteau_test()– returns an instance.