15 Finding z-score for a percentile
15 Finding z-score for a percentile#
%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/S5_5KyCVjrU/" frameborder="0" allowfullscreen></iframe>
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import matplotlib.pyplot as plt
import seaborn as sns
from scipy import stats
print(stats.norm.cdf(1.959963984540054))
# Percent point function (inverse of cdf — percentiles)
print(stats.norm.ppf(0.975))
0.975
1.959963984540054
print(stats.norm.ppf(0.3, loc=80, scale=9))
75.28039538562763
# mu + z * sigma = x