scipy.special.ncfdtrinc — SciPy v1.15.3 Manual (original) (raw)
scipy.special.ncfdtrinc(dfn, dfd, p, f, out=None) = <ufunc 'ncfdtrinc'>#
Calculate non-centrality parameter for non-central F distribution.
This is the inverse with respect to nc of ncfdtr. See ncfdtr for more details.
Parameters:
dfnarray_like
Degrees of freedom of the numerator sum of squares. Range (0, inf).
dfdarray_like
Degrees of freedom of the denominator sum of squares. Range (0, inf).
parray_like
Value of the cumulative distribution function. Must be in the range [0, 1].
farray_like
Quantiles, i.e., the upper limit of integration.
outndarray, optional
Optional output array for the function results
Returns:
ncscalar or ndarray
Noncentrality parameter.
Examples
from scipy.special import ncfdtr, ncfdtrinc
Compute the CDF for several values of nc:
nc = [0.5, 1.5, 2.0] p = ncfdtr(2, 3, nc, 15) p array([ 0.96309246, 0.94327955, 0.93304098])
Compute the inverse. We recover the values of nc, as expected:
ncfdtrinc(2, 3, p, 15) array([ 0.5, 1.5, 2. ])