1#calculating the probability or the area under curve to the left of this z value
2import scipy.stats as stats
3stats.norm.pdf(x, loc=mean, scale=std_dev)
4
5
6
7
8# The probability (area) to the right is calculated as (1 - probability to the left)
9import scipy.stats as stats
101 - stats.norm.pdf(x, loc=mean, scale=std_dev)