ChiSquaredTestOptions
ChiSquaredTestOptions =
object
Defined in: chi-squared-test.ts:6
How many parameters the expected counts were fitted from.
Properties
Section titled “Properties”fittedParameters?
Section titled “fittedParameters?”
optionalfittedParameters?: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.