11 Example - Probability of sample mean exceeding a value
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
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