• $\lambda$ = 12 - Mean number of occurrences of an event in a period
  • x = 15 - Number of occurrences we are interested in
In [1]:
from scipy.stats import poisson
In [2]:
prob_of_15_or_less_occurrences = poisson.cdf(15, 12) # Cumulative density function

We have to find probabilit of more than 15 occurence, so we will substract it from 1

In [3]:
prob_of_more_than_15_occurrences = 1- prob_of_15_or_less_occurrences
In [4]:
prob_of_more_than_15_occurrences
Out[4]:
0.15558434754981676