FUNCTION REFERENCE

chi2cdf

Chi-square cumulative distribution function.

Chi-square cumulative distribution function.

Syntax

Y = chi2cdf(X, NU)

Syntax

Y = chi2cdf(X, NU, 'upper')

P(X' <= X) for the chi-square distribution with degrees of freedom NU > 0. With 'upper' it returns P(X' > X), computed directly in that tail so small upper probabilities keep their digits. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.

Example

chi2cdf(3, 4)

Example

chi2cdf(3, 4, 'upper')

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.