LikelihoodRatioTest#

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

Verdict of a likelihood-ratio test between two nested fits.

Variables:
  • statistic (float) – 2 * (llf_unrestricted - llf_restricted).

  • df (int) – Degrees of freedom, the difference in free parameter counts.

  • pvalue (float) – Upper-tail probability under a 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.