泊松分布 python_Python-泊松分布

泊松分布 python_Python-泊松分布_第1张图片

泊松分布 python

Python-泊松分布 (Python - Poisson Distribution)

A Poisson distribution is a distribution which shows the likely number of times that an event will occur within a pre-determined period of time. It is used for independent events which occur at a constant rate within a given interval of time. The Poisson distribution is a discrete function, meaning that the event can only be measured as occurring or not as occurring, meaning the variable can only be measured in whole numbers.

泊松分布是显示事件在预定时间段内可能发生的次数的分布。 它用于独立事件,这些事件在给定的时间间隔内以恒定的速率发生。 泊松分布是一个离散函数,意味着该事件只能按发生或不发生的方式进行度量,这意味着该变量只能按整数进行度量。

We use the seaborn python library which has in-built functions to create such probability distribution graphs. Also the scipy package helps is creating the binomial distribution.

我们使用具有内置功能的seaborn python库来创建此类概率分布图。 scipy软件包还有助于创建二项式分布。


from scipy.stats import poisson
import seaborn as sb

data_binom = poisson.rvs(mu=4, size=10000)
ax = sb.distplot(data_binom,
                  kde=True,
                  color='green',
                  hist_kws={"linewidth": 25,'alpha':1})
ax.set(xlabel='Poisson', ylabel='Frequency')

Its output is as follows −

输出如下-

翻译自: https://www.tutorialspoint.com/python_data_science/python_poisson_distribution.htm

泊松分布 python

你可能感兴趣的:(python,javascript,java,机器学习,mysql,ViewUI)