11 Example - Probability of sample mean exceeding a value#

%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/0ZstEh_8bYc/" 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, special

khanacademy

Example - Probability of sample mean exceeding a value fig 1 Example - Probability of sample mean exceeding a value fig 2

mu = 2
sigma = 0.7
n = 50
mu_x_bar = mu
sigma_x_bar = sigma / np.sqrt(n)
zscore = (2.2 - mu_x_bar) / sigma_x_bar
stats.norm.cdf(zscore)
0.9783241243695687