Vous avez des améliorations (ou des corrections) à proposer pour ce document :
je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
ndtri(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature])
ndtri(y, out=None)
Inverse of `ndtr` vs x
Returns the argument x for which the area under the standard normal
probability density function (integrated from minus infinity to `x`)
is equal to y.
Parameters
----------
p : array_like
Probability
out : ndarray, optional
Optional output array for the function results
Returns
-------
x : scalar or ndarray
Value of x such that ``ndtr(x) == p``.
See Also
--------
ndtr : Standard normal cumulative probability distribution
ndtri_exp : Inverse of log_ndtr
Examples
--------
`ndtri` is the percentile function of the standard normal distribution.
This means it returns the inverse of the cumulative density `ndtr`. First,
let us compute a cumulative density value.
>>> import numpy as np
>>> from scipy.special import ndtri, ndtr
>>> cdf_val = ndtr(2)
>>> cdf_val
0.9772498680518208
Verify that `ndtri` yields the original value for `x` up to floating point
errors.
>>> ndtri(cdf_val)
2.0000000000000004
Plot the function. For that purpose, we provide a NumPy array as argument.
>>> import matplotlib.pyplot as plt
>>> x = np.linspace(0.01, 1, 200)
>>> fig, ax = plt.subplots()
>>> ax.plot(x, ndtri(x))
>>> ax.set_title("Standard normal percentile function")
>>> plt.show()
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :