TabulatedTest#
- class cultivars.diagnostics.hypothesis.TabulatedTest(*, statistic, pvalue, name, critical_values, null, nobs, lower_tail=False, companions=())[source]#
A test read against tabulated critical values, with or without a p-value.
Unit-root and structural-break tests have non-standard limit laws. Where the literature supplies a response surface or the limit can be simulated,
pvalueis set andrejectreads it; where only three critical values exist,pvalueisNoneandrejectreads the table in the directionlower_tailsays. Several statistics computed on the same sample by the same test – the four Ng-Perron statistics, the sup-, exp- and ave-Wald functionals – travel ascompanions, each a full record, so a table can show them together and each can still be read alone.- Variables:
name (
str) – The test.statistic (
float) – The test statistic.pvalue (
float|None) – Its p-value, orNonewhen only critical values exist.critical_values (
dict[str,float]) –{"1%", "5%", "10%"}critical values.null (
str) – The hypothesis under test.lower_tail (
bool) – Whether rejection lies in the lower tail.nobs (
int) – Observations the statistic was computed on.companions (
tuple[_TabulatedTest,...]) – Further statistics of the same test on the same sample.
See also
TabulatedTest– the public name of this class.
Attributes#
The test. |
|
|
|
The hypothesis under test. |
|
Observations the statistic was computed on. |
|
Whether rejection lies in the lower tail. |
|
Further statistics of the same test on the same sample. |
|
Its p-value, or |
|
The test statistic. |