| Statistics Toolbox | Search  Help Desk |
| chi2inv | Examples |
Inverse of the chi-square (
2) cumulative distribution function (cdf).
Syntax
X = chi2inv(P,V)
Description
chi2inv(P,V) computes the inverse of the
2 cdf with parameter V for the probabilities in P. The arguments P and V must be the same size except that a scalar argument functions as a constant matrix of the size of the other argument.
The degrees of freedom,V, must be a positive integer and P must lie in the interval [0 1].
We define the
2 inverse function in terms of the
2 cdf.
2 cdf with parameter
where you supply the desired probability p.
Examples
Find a value that exceeds 95% of the samples from a
2 distribution with 10 degrees of freedom.
x = chi2inv(0.95,10) x = 18.3070You would observe values greater than 18.3 only 5% of the time by chance.