Ask Claude about this
 

Modeling Counts of Events: The Poisson Distribution

What is it for? Events in Fixed Intervals

Imagine you're counting how many times something happens over a specific period or in a specific area. For example:

  • How many customers arrive at a shop in an hour?
  • How many typos are on a page of a book?
  • How many shooting stars you see in 30 minutes?

The Poisson distribution is a special mathematical tool that helps us figure out the chances (probability) of seeing a specific number of these events. It works best when:

  • We know the average rate at which events happen (e.g., "on average, 5 customers arrive per hour").
  • The events happen independently of each other (one customer arriving doesn't make another more or less likely to arrive right away).
  • The events happen randomly, but the average rate stays constant over the interval.

The Magic Formula (Poisson PMF)

If we say 'X' is the number of events we're counting, and X follows a Poisson distribution, the probability of observing exactly k events is given by this formula (called the Probability Mass Function, or PMF):

P(X = k) = (e * λk) / k!

Let's break down the parts:

  • P(X = k): This is what we want to find – "the probability that the number of events X is exactly equal to k".
  • k: This is the specific number of events we're interested in (e.g., "exactly 3 calls"). It can be 0, 1, 2, 3, and so on.
  • λ (lambda): This is the average number of events that happen in our chosen interval (e.g., "average of 5 calls per hour"). It must be a positive number.
  • e: This is a special mathematical constant called Euler's number. It's a bit like pi (π). Its value is approximately 2.71828. Most calculators have an 'e' or 'ex' button.
  • k! (k factorial): This means "k multiplied by all whole numbers smaller than it, down to 1".
    • For example, 3! = 3 × 2 × 1 = 6.
    • And 5! = 5 × 4 × 3 × 2 × 1 = 120.
    • There are two special rules: 1! = 1, and 0! = 1 (this one is important!).

Call Center - Poisson Distribution

MODERATE

A call center receives an average of 5 calls per hour. Assume the number of calls follows a Poisson distribution.

  1. What is the probability of receiving exactly 3 calls in a given hour?
  2. What is the probability of receiving 2 or fewer (≤2) calls in a given hour?

Scale It Up: If the call center averages 10 calls per two hours, what is the probability of receiving exactly 6 calls in a two-hour period? (Hint: The average rate λ must match the time interval you are interested in!).

Nerchuko Academy · Free DS Interview Prep