Skip to main content

ndtri

Function ndtri 

Source
pub fn ndtri(x: f64) -> f64
Expand description

Inverse of ndtr, the probit function $\Phi^{-1}(p)$

Corresponds to scipy.special.ndtri.

§Notes

The normal quantile function (probit function) is given by

$$ \Phi^{-1}(p) = \sqrt{2}\,\erf^{-1}(2p-1) , $$

with $\erf^{-1}(z)$ the inverse error function and $p \in (0,1)$.

§See also

  • ndtr: CDF of the standard normal distribution, $\Phi(z)$
  • crate::erfinv: Inverse error function $\erf^{-1}(z)$