• + 1 comment
    #How to find the confidense level 
    Cl = 0.95
    df = 100 - 1 #degrees of freedom = sampleSize - 1
    mean = 500
    std_error = 80/np.sqrt(100)
    confidence_interval = stats.t.interval(Cl,df,mean,std_error)
    print(confidence_interval)
    

    I used thi approach but got the decimal places wrong, what am I doing wrong