11/32
Part 3 of 6 · p and the intervalLearn and do

The p-value counts both tails

The z score says how many standard errors the gap sits from 0. The p-value turns it into a share of the null curve: the area beyond your z, on both sides. two_sided_p is the function you write at the end of this step.

from statistics import NormalDist

z = 2.501955
print(round(two_sided_p(z), 6))
Predict

z = 2.502 on the worked example. What's the two-sided p-value?

Pick one to see what it prints.
Pick an answer above to see the rest