Skip to content

chiSquaredDistribution

chiSquaredDistribution(degreesOfFreedom): Distribution

Defined in: chi-squared-distribution.ts:16

The chi-squared distribution — the sum of degreesOfFreedom squared standard normals, and the reference distribution of the goodness-of-fit statistic.

It is exactly gammaDistribution(k / 2, 1 / 2), so it delegates rather than restating the incomplete gamma a second time; only the moments are named directly, where the closed form is simpler than the delegation.

number

Positive; need not be an integer.

Distribution

The distribution.

When degreesOfFreedom is not positive.