找到泊松分布python中的概率

问题描述 投票:1回答:1

问题:预计交界处的事故数量为每月5次。那么下个月路口发生7起以上事故的概率是多少?您可以为此使用python scipy库。即使我可以在纸上完成此操作,通过使用这些库进行编码也很难做到。你能帮我吗?>

方法是

import scipy.stats as stats
find_prob(a,b):
#input: probability of event interval
#output: determined probability

问题:预期在一个路口发生的事故数量为每月5次。那么下个月路口发生7起以上事故的概率是多少?您可以为此使用python scipy库。甚至...

python scipy poisson
1个回答
0
投票

首先,您只想找到大于7的概率对吧?

© www.soinside.com 2019 - 2024. All rights reserved.