y = cdfchic(x,n)
x: NxK matrix.
n: LxM matrix, ExE conformable with x.
y is the integral from x to ∞ of the chi-square distribution with n degrees
of freedom.
The elements of n must all be positive integers. The allowable ranges for
the arguments are:
x ≥ 0
n > 0
A -1 is returned for those elements with invalid inputs.
This equals 1-F(x,n), where F is the chi-square cdf with n degrees of
freedom. Thus, to get the chi-square cdf, subtract cdfchic(x,n) from
1. The complement of the cdf is computed because this is what is most
commonly needed in statistical applications, and because it can be
computed with fewer problems of roundoff error.
Example x = { .1, .2, .3, .4 };
n = 3;
y = cdfchic(x,n);
See also cdfbeta, cdffc, cdfn, cdfnc, cdftc, gamma
x NxK matrix.
n LxM matrix, ExE conformable with x.
y max(N,L) by max(K,M) matrix.
y= 0.991837
0.977589
0.960028
0.940242