Skip to main content

ndtr

Function ndtr 

Source
pub fn ndtr<T: StatsArg>(z: T) -> T
Expand description

CDF of the standard normal distribution, $\Phi(z)$

Corresponds to scipy.special.ndtr.

§Notes

The CDF is given by

$$ \begin{align*} \Phi(z) &= {1 \over \sqrt{2\pi}} \int_{-\infty}^z e^{-t^2 / 2} \dd t \\ &= {1 \over 2} + {1 \over 2} \erf \left( {z \over \sqrt{2}} \right) , \end{align*} $$

with $\erf(z)$ the error function.

§See also

  • log_ndtr: $\ln \Phi(z)$
  • ndtri: Normal quantile function $\Phi^{-1}(z)$, a.k.a. the probit function
  • erf: Error function $\erf(z)$