I couldn't understand how to properly use this function, could someone please explain it to me? Let's say I have: a mean of 172.7815 a standard deviation of 4.1532 N = 50 (50 samples) When I'm asked to calculate the (95%) margin of error using norm.ppf() will the code look like below? norm.ppf(0.95, loc=172.78, scale=4.15) or will it look like this? norm.ppf(0.95, loc=0, scale=1) Because I know it's calculating the area of the curve to the right of the confidence interval (95%, 97.5% etc...see image below), but when I have a mean and a standard deviation, I get really confused as to how to use the function. Continue reading...