ndtri has experimental support for Python Array API Standard compatible
backends in addition to NumPy. Please consider testing these features
by setting an environment variable SCIPY_ARRAY_API=1 and providing
CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following
combinations of backend and device (or other capability) are supported.
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.