06 Probabilities from density curves
06 Probabilities from density curves#
%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/3E8BO7VRMEA/" 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
mu = 150
sigma = 20
def cal_emperical_rule(mu, sigma):
mu = 7 * [mu]
sigma_scaler = np.arange(-3, 4, 1)
sigma_scales = sigma_scaler * sigma
emperical_rule_lst = mu + sigma_scales
return emperical_rule_lst
cal_emperical_rule(mu, sigma)[2:-2]
array([130, 150, 170])
# find a better way to calulate emperical rule
# visualize em