In this lesson, you'll learn about the Poisson Distribution and explore some practical ways you can use it.
You will be able to:
- Understand and explain the Poisson Distribution and its use cases
The Poisson Distribution is yet another statistical distribution you can use to answer questions about the probability of a given number of successes, the probability of success, and a series of independent trials. Specifically, the Poisson Distribution allows us to calculate the probability of a given event happening by examining the mean number of events that happen in a given time period. Given a set time period, we can use the Poisson Distribution to predict how many times a given event will happen over that time period. To help you better understand this, let's examine a few sample questions that we can answer using the Poisson Distribution.
An average of 20 customers walk into a store in a given hour. What is the probability that 25 customers walk into a store in the next hour?
A police officer pulls over an average of 3 people for speeding violations per shift. What is the probability that the officer will pull over two people for speeding violations during their next shift?
In order to use the Poisson Distribution, we only need to know a few parameters:
The Poisson distribution has a special relation to the binomial distribution. The theoretical underpinnings are as follows. Imagine that we take a time period and break it into subintervals that are so small that at most one successful event could occur. We can then imagine that for any of these subintervals, a binomial distribution could apply where there is some probability of the event occurring,
Binomial Probability Distribution:
Poisson Probability Distribution:
Also note that lambda
Let's take another look at the formula for the Poisson Probability Distribution:
In the other statistical distributions we've explored, we were explicitly given the probability of success or failure as one of our parameters. In this example, we are not given this probability--however, we know how likely an event is to occur the mean number of times over a given time period, which means that we actually do know the probability--we just need to do some basic calculations to uncover this probability.
For instance, if we know that 6 customers walk into a store per hour, we also know enough to calculate the probability that a customer walks in during a given minute. We do this by just dividing the mean number of customers by the length of our interval!
There is no expectation that customers will walk into a store in evenly spaced intervals--a customer may walk in every 10 minutes on the dot--however, we may also see 3 customers walk in during the first 5 minutes, 3 more customers 10 minutes later, and no other customers for the rest of the hour. Remember, these events are independent, and this is also the mean number per hour. This doesn't mean that we have 6 customers every hour - it's possible that we do, but it's also possible that we have 12 customers one hour and no customers the next hour. It's also possible that in a 10-hour day, 60 customers enter the store during the first hour, and then none for the rest of the day. If your intuition is telling you that this is possible, but not plausible because it has a very low probability of happening, you're right--and the probability of this happening is exactly what the Poisson Distribution allows us to calculate!
In light of this, it makes sense for us to calculate the probability that a customer will walk in during any given minute, which we discovered by just dividing our mean number of customers per hour by the number of minutes in our interval, showing us that the probability of a customer walking in during any given minute is 0.1, or 10%. This number is our
Take a look at the following graph - note the relationship of each line to its given
Don't let the other terms in that equation scare you - you've seen them before, and even if you haven't they're quite easy to work with:
exp
button. In Python, we can access it by using NumPy's np.exp()
function.
In this lesson, you learned about the Poisson Distribution, the Poisson Probability Formula, and how you can use this distribution to solve real-world problems!