You will write the standard normal area from math.erf, use it for the share between two values of any normal distribution, and work out the share within standard deviations. The checker compares your answers with statistics.NormalDist.
The idea. . For any normal distribution, turn each value into a z-score first, then take one area from the other.
Your tasks.
phi(z).area_between(low, high, mean, sd). Use z-scores and phi.within(k), the share within k standard deviations of the mean.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…