Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x X平均标准偏差的值需要找到曲线下的概率或面积_Python 3.x_Pandas_Statistics_Data Science_Usage Statistics - Fatal编程技术网

Python 3.x X平均标准偏差的值需要找到曲线下的概率或面积

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

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)

这是一个与编码相关的问题吗?看起来你可以用纯微积分来做这个。。。