Python 3.x X平均标准偏差的值需要找到曲线下的概率或面积
Acme公司生产的灯泡平均寿命为300天,标准偏差为50天。假设灯泡寿命为正态分布,Acme灯泡最多使用365天的概率是多少 如何在python的代码中复制相同的内容Python 3.x X平均标准偏差的值需要找到曲线下的概率或面积,python-3.x,pandas,statistics,data-science,usage-statistics,Python 3.x,Pandas,Statistics,Data Science,Usage Statistics,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(me
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)
这是一个与编码相关的问题吗?看起来你可以用纯微积分来做这个。。。