X Mean Standard deviation 的 Value(s) 需要找到 Probability 或 area under the curve

Value(s) of X Mean Standard deviation need to find Probability or area under the curve

Acme 公司生产的灯泡平均寿命为 300 天,标准偏差为 50 天。假设灯泡寿命服从正态分布,一个 Acme 灯泡最多可以使用 365 天的概率是多少?

如何在 python 中的代码中复制相同的内容?

mu = 10*30
std_d = 50
import math
def norm_pdf(x, mean, std):
    variance = float(std)**2
    denom = (2*math.pi*variance)**.5
    num = math.exp(-(float(x)-float(mean))**2/(2*variance))
    return num/denom
norm_pdf(12*30, mu, std_d)

Formula Refrence: Wikipedia