两个正态分布的重叠概率(Python)

时间:2018-06-17 10:30:10

标签: python statistics probability normal-distribution

我希望在Python中找到两个正态分布的重叠概率。我查看了stackoverflow并发现了以下内容:

Overlapping probability of two normal distribution with scipy

“amitdatta”代码似乎给出了语法错误,并且低位和高位变量未定义。

The error that occurs is overlap = (norm.cdf(r1,m1,std1)-norm.cdf(lower,m1,std1))+(norm.cdf(r2,m2,std2)-norm.cdf(r1,m2,std2))+(norm.cdf(upper,m1,std1)-norm.cdf(r2,m1,std1))
                                                                                                                                                                ^
SyntaxError: invalid syntax

(语法错误箭头指向代码中的第二个“r2”)

有人能指点我编码或建议我找到两个正态分布的重叠概率吗?

谢谢!

版本:Python 3.6.2

0 个答案:

没有答案
相关问题