C3_W1_Assignment_Q2.1_Inverse_CDF_Gaussian

Hello,
I am getting the wrong output for the inverse CDF Gaussian function. Do you know what I am doing wrong?

If you’re implementing the math yourself, the most common mistakes involve putting parenthesis in the wrong places.

This equation works if implemented correctly, and using np.sqrt(…) and erfinv(…) :

I’ve tried to implement it using the equation but I get the following error…

Read my reply again, the function name is “erfinv()”. The -1 isn’t an exponent, it’s an “inverse” function.