I am looking for a formula that allows me to calculate the Z value of the normal distribution acumulative for example:
I have a value ${\bf \alpha} = 0.975$
and in the table the ${\bf Z} = 1.960 $
in a nutshell I have the percentage value of $\alpha$ and my goal is to find Z. In python there is a library that allows me to do this.
from scipy.stats import norm as zeta
alpha = 0.95
rs = zeta.ppf(vara)
print(rs)
According to the documentation,
help(zeta):So you want to invert the cumulative distribution function
$$ F(a) = \int_{-\infty}^a \frac{1}{\sqrt{2\pi}} \, \exp\left(-\dfrac{x^2}{2} \right) dx.$$
Say you want to find $a$ with $F(a) = 0.95$:
$$ 0.95 = \int_{-\infty}^a \frac{1}{\sqrt{2\pi}} \, \exp\left(-\dfrac{x^2}{2} \right) dx.$$
Unfortunately, there is not an analytical solution, only a numerical solution.