ChiSquaredTest#

class cultivars.diagnostics.hypothesis.ChiSquaredTest(*, statistic, pvalue, df)[source]#

A test referred to a chi-squared law with df degrees of freedom.

The likelihood-ratio and Wald records are siblings here rather than parent and child: they carry the same three numbers, but a likelihood ratio is named by its construction and a Wald statistic by the null it was aimed at, and the one extra field is the difference between them.

Variables:
  • statistic (float) – The chi-squared statistic.

  • df (int) – Degrees of freedom.

  • pvalue (float) – Upper-tail probability under the chi-squared null.

See also

Attributes#

df

Degrees of freedom.

pvalue

Upper-tail probability under the chi-squared null.

statistic

The test statistic.

Methods#

reject(*[, alpha])

Whether the null is rejected at level alpha.

summary()

The test as a table, renderable as text, HTML, or a dataframe.