cdfChiSquare

Syntax

cdfChiSquare(df, X)

Arguments

df is a positive integer indicating the degree of freedom of a chi-squared distribution.

X is a numeric scalar or vector.

Details

Return the value of the cumulative distribution function of a chi-squared distribution.

Examples

$ cdfChiSquare(1, [-1, 0, 0.5, 1, 2]);
[0, 0, 0.5205, 0.682689, 0.842701]

$ cdfChiSquare(1, [0.1, 0.3, 0.5, 0.7, 0.9]);
[0.24817, 0.416118, 0.5205, 0.597216, 0.657218]