50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PEIP (version 2.2-5)

chi2inv: Inverse Chi-Sq

Description

Inverse Chi-Sq

Usage

chi2inv(x, n)

Value

corresponding value of x for given probability.

Arguments

x

probability that Chi^2 random variable is less than or equal to x (scalar).

n

degrees of freedom(scalar)

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

Computes the inverse Chi^2 distribution corresponding to a given probability that a Chi^2 random variable with the given degrees of freedom is less than or equal to x. Uses chi2cdf.m.

References

Aster, R.C., C.H. Thurber, and B. Borchers, Parameter Estimation and Inverse Problems, Elsevier Academic Press, Amsterdam, 2005.

See Also

chi, chi2cdf

Examples

Run this code
x = seq(from=0.1, to=0.9, length=10) 
h = chi2cdf(x, 3)

chi2inv(h, 3)

Run the code above in your browser using DataLab