You are viewing a single comment's thread. Return to all comments →
import math def cdf_(grades_, mu_, sigma_): probability_ = 0.5 * (1 + math.erf((grades_ - mu_)/(sigma_ * math.sqrt(2)))) return probability_ * 100 mean_, st_dev_ = map(float, input().split()) grade_pass = float(input()) grade_fail = float(input()) print(round(100 - cdf_(grade_pass, mean_, st_dev_), 2)) print(round(100 - cdf_(grade_fail, mean_, st_dev_), 2)) print(round(cdf_(grade_fail, mean_, st_dev_), 2))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Normal Distribution II
You are viewing a single comment's thread. Return to all comments →