【发布时间】:2021-10-22 07:47:01
【问题描述】:
我的意思
x1 = 0
cdf = scipy.stats.norm.cdf(x1)
计算包含均值和方差的 CDF 的原始数学公式是什么? (不使用 numpy、matplotlib 等)
【问题讨论】:
我的意思
x1 = 0
cdf = scipy.stats.norm.cdf(x1)
计算包含均值和方差的 CDF 的原始数学公式是什么? (不使用 numpy、matplotlib 等)
【问题讨论】:
我不知道这是不是你想要的:
from math import erf, sqrt
def cdf(x):
return (1 + erf(x/sqrt(2))) / 2
x1 = 0
>>> cdf(x1)
0.5
在 MathExchange 上阅读 this post:
【讨论】: