Skip to content

ChiSquaredTestOptions

ChiSquaredTestOptions = object

Defined in: chi-squared-test.ts:6

How many parameters the expected counts were fitted from.

optional fittedParameters?: number

Defined in: chi-squared-test.ts:15

Parameters estimated from the data itself, each of which costs one degree of freedom.

Defaults to 0, which is right when the expected counts come from a hypothesis stated in advance. Fitting even one parameter and leaving this at 0 overstates the degrees of freedom and understates the p-value.