1.3.10 · D4Probability & Statistics

Exercises — Common distributions (Bernoulli, Binomial, Poisson)

2,511 words11 min readBack to topic

This is a self-testing page for Common distributions (Bernoulli, Binomial, Poisson). Try each problem with the Solution callout collapsed, then open it to check every step. The difficulty climbs in five levels:

Before we start, a short list of the notation, so no symbol appears unexplained.

Figure — Common distributions (Bernoulli, Binomial, Poisson)
Figure 1 — the decision map: use it whenever a problem asks "which distribution?" One single yes/no trial is Bernoulli; a fixed number of trials is Binomial; rare events with no fixed are Poisson.

Figure — Common distributions (Bernoulli, Binomial, Poisson)
Figure 2 — the shapes of the three PMFs used in these exercises. Notice Bernoulli is just two bars, Binomial is a hump centred near , and Poisson has a long right tail — this skew is why Exercise 5.3 stays "common".

Figure — Common distributions (Bernoulli, Binomial, Poisson)
Figure 3 — the Binomial→Poisson limit from Exercise 4.1: as grows with fixed, the Binomial bars slide onto the Poisson curve. This is the picture behind "large , tiny ".


Level 1 — Recognition

Exercise 1.1 (L1)

A single user visits your landing page. They either sign up () or leave (). The sign-up rate is . Name the distribution, and give and .

Recall Solution 1.1

What distribution? One trial, two outcomes → Bernoulli. We write , so the support is .

Why Bernoulli and not Binomial? Binomial needs many trials counted together; here there is exactly one user, one yes/no. That is the definition of a single Bernoulli trial.

Read straight off the definition — nothing to compute.

Exercise 1.2 (L1)

Match each scenario to Bernoulli, Binomial, or Poisson: (a) Number of typos in a 300-page book. (b) Whether one packet is dropped by a router (drop / no-drop). (c) Number of heads in 20 coin flips.

Recall Solution 1.2
  • (a) Typos are rare events spread over a long "opportunity" (many characters), no fixed small Poisson (support , unbounded).
  • (b) A single yes/no event — Bernoulli (support ).
  • (c) A fixed number of independent trials (), counting successes — Binomial (support ).

Why (a) is Poisson, not Binomial: you could say each character is a Bernoulli trial with tiny error probability, but (number of characters) is huge and is tiny — that is exactly the limit where Binomial becomes Poisson.


Level 2 — Application

Exercise 2.1 (L2)

You send emails, each clicked independently with . Find the probability of exactly 3 clicks.

Recall Solution 2.1

Which distribution? Fixed independent yes/no trials, count successes → Binomial. , support ; here .

The PMF (probability mass function) and why each piece is there:

  • : three specific emails clicked (independence → multiply).
  • : the other seven not clicked.
  • : any 3 of the 10 could be the clicked ones, so count the arrangements.

Numbers:

About 26.7%.

Exercise 2.2 (L2)

A server logs errors per hour on average. What is next hour?

Recall Solution 2.2

Which distribution? Events arrive continuously with a constant rate, no fixed → Poisson. , support ; here .

With :

About 14.7%.

Exercise 2.3 (L2)

For (a classifier tested on 50 samples at 80% accuracy), give the expected number correct and the standard deviation.

Recall Solution 2.3

Mean: . Variance: . Standard deviation: .

Interpretation: expect correct, with typical wobble of about around it.


Level 3 — Analysis

Exercise 3.1 (L3)

With server errors per hour, find .

Recall Solution 3.1

Why not sum ? The support runs with no upper bound — that's an infinite sum. Instead use the complement: "at least 1" is the opposite of "exactly 0".

About 95.0% — a clean hour is rare when you average 3 errors.

Exercise 3.2 (L3)

You flip a fair coin () 6 times. Find .

Recall Solution 3.2

Why sum three terms? "At most 2" means — these are mutually exclusive, so add their probabilities. Every term shares the factor because .

About 34.4%.

Exercise 3.3 (L3)

A dataset of email counts has sample mean and sample variance . Is Poisson a plausible model? Justify.

Recall Solution 3.3

The diagnostic: for Poisson, mean variance (). So compute the ratio A Poisson fit predicts this ratio near . Here it is — the variance is much larger than the mean.

Verdict: Poisson is not a good model; the data is over-dispersed. A Negative Binomial (which allows variance mean) fits over-dispersed counts better.


Level 4 — Synthesis

Exercise 4.1 (L4)

users each independently sign up with probability . Approximate two ways — exact Binomial vs Poisson — and compare (see Figure 3).

Recall Solution 4.1

Setup: , , so . Since is large and is tiny, Poisson should approximate Binomial well.

Poisson approximation ( from the Poisson support ):

Exact Binomial ( from the support ): , , .

Comparison: vs — agree to three decimals. This is the parent note's limit () working in practice, and it justifies using Poisson when Binomial is computationally awful.

Exercise 4.2 (L4)

Two independent web pages get errors at rates and per hour. Let be total errors. What distribution does follow, and find .

Recall Solution 4.2

Key fact (sum of independent Poissons): if and independently, then whose support is again . Why the rates add: errors from both pages are just "errors" arriving independently at a combined average rate per hour.

About 3.4%.


Level 5 — Mastery

Exercise 5.1 (L5)

Prove that for , the variance equals , and show it is maximised at .

Recall Solution 5.1

Step 1 — mean. .

Step 2 — . Since takes only the support values or , , so .

Step 3 — variance.

Step 4 — maximise. Let . Differentiate and set to zero: Since , this is a maximum. The peak value is .

Why ? Variance measures uncertainty; it's largest when both outcomes are equally likely and smallest () when or (a sure result).

Exercise 5.2 (L5)

Derive for from the PMF, naming the tool at each step.

Recall Solution 5.2

Start from the definition of expectation (summed over the Poisson support ):

Step 1 — drop . The term is multiplied by , so it vanishes:

Step 2 — cancel . Since :

Step 3 — re-index with (so , ):

Step 4 — collapse with the exponential series. The tool here is the Taylor series :

Why this tool? The Poisson PMF is built from ; the exponential series is the one identity that makes an infinite sum of collapse to a closed form. No other tool does that cleanly.

Exercise 5.3 (L5)

A disease affects people per year in a city. Using the complement, find next year, i.e. , and state it to three decimals.

Recall Solution 5.3

Why the complement here? "At least 25" is an infinite tail over the support ; the finite part is easier. Summing the terms (best done with a computer, as the numbers are unwieldy by hand) gives

About 15.7% — with mean and standard deviation , needing to exceed the mean by roughly one standard deviation lands near this modest probability.


Recall Quick self-check (reveal each answer)

Q: Poisson "at least one event" formula? A:

Q: When does Binomial collapse to Poisson? A: fixed

Q: Variance of Bernoulli, and where is it maximised? A: , maximum at

Q: Sum of independent Poisson() and Poisson()? A: Poisson()