You are viewing a single comment's thread. Return to all comments →
from scipy import stats as st import math
pop_mean = 2.4 pop_sd = 2.0
sample_size = 100 x = 250/sample_size
sample_sd = pop_sd/math.sqrt(sample_size)
z_score = (x -pop_mean)/sample_sd
prob = st.norm.cdf(z_score)
print ('{:0.4f}'.format(prob))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: The Central Limit Theorem #2
You are viewing a single comment's thread. Return to all comments →
Enter your code here. Read input from STDIN. Print output to STDOUT
from scipy import stats as st import math
pop_mean = 2.4 pop_sd = 2.0
sample_size = 100 x = 250/sample_size
sample_sd = pop_sd/math.sqrt(sample_size)
z_score = (x -pop_mean)/sample_sd
prob = st.norm.cdf(z_score)
print ('{:0.4f}'.format(prob))