scipy.special.chdtri — SciPy v1.15.2 Manual (original) (raw)

scipy.special.chdtri(v, p, out=None) = <ufunc 'chdtri'>#

Inverse to chdtrc with respect to x.

Returns x such that chdtrc(v, x) == p.

Parameters:

varray_like

Degrees of freedom.

parray_like

Probability.

outndarray, optional

Optional output array for the function results.

Returns:

xscalar or ndarray

Value so that the probability a Chi square random variable with v degrees of freedom is greater than x equals p.

References

Examples

import scipy.special as sc

It inverts chdtrc.

v, p = 1, 0.3 sc.chdtrc(v, sc.chdtri(v, p)) 0.3 x = 1 sc.chdtri(v, sc.chdtrc(v, x)) 1.0