Many experiments consist of repeated trials with two possible results, such as pass or fail, or of counts of rare events in a fixed interval. The Binomial and Poisson distributions model these two situations.

Binomial Distribution

A Bernoulli trial has two outcomes, success with probability p and failure with probability q = 1 - p. If n independent Bernoulli trials are performed with the same p, the number of successes X follows the Binomial distribution. Its PMF is P(X = x) = C(n, x) × p to the power x × q to the power (n - x), for x = 0, 1, ..., n. The mean is np and the variance is npq. The distribution is written X ~ B(n, p).

Definition: Binomial distribution. The distribution of the number of successes in n independent trials, each with the same probability p of success, with P(X = x) = C(n, x) p^x q^(n - x).

Poisson Distribution

The Poisson distribution counts the number of events in a fixed interval of time or space when events occur independently at a constant average rate. If the average number is the parameter lambda, then P(X = x) = e to the power (-lambda) × lambda to the power x / x!, for x = 0, 1, 2, ... Both the mean and the variance equal lambda. It is a good approximation to the Binomial when n is large and p is small, with lambda = np.

Table 3.5: Binomial and Poisson compared

Feature Binomial Poisson
Situation n trials, success or failure Events in an interval
Parameters n and p lambda
Mean np lambda
Variance npq lambda

Example 3.7: Binomial probability

Problem: A fair coin is tossed 5 times. Find the probability of exactly 3 heads.

Solution:

  1. Here n = 5, p = 0.5 and x = 3.
  2. P(X = 3) = C(5, 3) × 0.5 cubed × 0.5 squared = 10 × 0.03125.

Result: The probability of exactly 3 heads is 0.3125.

Example 3.8: Poisson probability

Problem: A help desk receives on average 3 calls per minute. Find the probability of exactly 2 calls in a minute.

Solution:

  1. Here lambda = 3 and x = 2.
  2. P(X = 2) = e to the power (-3) × 3 squared / 2! = 0.0498 × 9 / 2.

Result: The probability of exactly 2 calls is 0.224.

from math import comb, exp, factorial
print(comb(5, 3) * 0.5 ** 3 * 0.5 ** 2)
print(round(exp(-3) * 3 ** 2 / factorial(2), 4))

Output

0.3125
0.224

Common mistakes

  • Using the Binomial distribution when the trials are not independent or p changes.
  • Writing the Poisson variance as lambda squared instead of lambda.
  • Forgetting that 0! = 1 when x = 0.

Key takeaways

  • Binomial: mean np, variance npq.
  • Poisson: mean = variance = lambda.
  • Poisson approximates the Binomial when n is large and p is small.
  • Binomial needs independent trials with constant p.

Practice questions

  1. State the mean and variance of B(n, p).
  2. What is special about the mean and variance of a Poisson distribution?
  3. When can Poisson approximate Binomial?

Answers to the practice questions

  1. Mean np and variance npq.
  2. They are both equal to lambda.
  3. When n is large and p is small, with lambda = np.

Sources

  • Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit III