Function chiSquareCDF

χ,2 distribution function and its complement.

double chiSquareCDF (
  double x,
  double v
);

Returns the area under the left hand tail (from 0 to x) of the Chi square probability density function with v degrees of freedom. The complement returns the area under the right hand tail (from x to ∞).

chiSquareCDF(x | v) = (0, x t, v/2-1 e, -t/2 dt ) / 2, v/2 (v/2)

chiSquareCDFR(x | v) = (x, ∞ t, v/2-1 e, -t/2 dt ) / 2, v/2 (v/2)

Parameters

NameDescription
v degrees of freedom. Must be positive.
x the χ,2 variable. Must be positive.