Statistics Toolbox
  Go to function:
    Search    Help Desk 
chi2inv    Examples

Inverse of the chi-square (2) cumulative distribution function (cdf).

Syntax

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.


The result, x, is the solution of the integral equation of the 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.

You would observe values greater than 18.3 only 5% of the time by chance.



[ Previous | Help Desk | Next ]