• + 0 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))