scipy.special.stdtridf — SciPy v1.15.2 Manual (original) (raw)
scipy.special.stdtridf(p, t, out=None) = <ufunc 'stdtridf'>#
Inverse of stdtr vs df
Returns the argument df such that stdtr(df, t) is equal to p.
Parameters:
parray_like
Probability
tarray_like
Upper bound of the integral
outndarray, optional
Optional output array for the function results
Returns:
dfscalar or ndarray
Value of df such that stdtr(df, t) == p
Examples
Compute the student t cumulative distribution function for one parameter set.
from scipy.special import stdtr, stdtridf df, x = 5, 2 cdf_value = stdtr(df, x) cdf_value 0.9490302605850709
Verify that stdtridf recovers the original value for df given the CDF value and x.
stdtridf(cdf_value, x) 5.0