Find a course

Module 2: Distributions and SamplingLesson 3 of 1114 min

The Distributions Analysts Meet Most

Use the normal, binomial and Poisson distributions to judge whether a number is surprising, and recognize long-tailed data that breaks normal rules.

Step 1 of 12Learn

Is 22 calls in an hour a problem?

A support center receives an average of 12 calls per hour. One Tuesday morning, 22 calls arrive between 10 and 11. The manager asks whether something is wrong: a product bug, an outage, a viral complaint?

To answer, you need to know how much the hourly count normally varies. If counts usually bounce between 5 and 25, 22 is an ordinary busy hour. If they rarely leave the range 10 to 14, 22 is a strong signal. The average alone can't tell you.

A probability distribution describes how likely each possible value is. Knowing the shape of the distribution lets you say how surprising an observation is, set sensible alert thresholds, plan capacity and, later in this course, decide whether an A/B test result is real.

You don't need dozens of distributions. A handful covers most business data: the normal distribution for measurements that cluster symmetrically around a mean, the binomial for counts of successes such as conversions, the Poisson for counts of events in a time window such as calls or errors, and long-tailed distributions for things like revenue per customer. For the call center, the Poisson model says that with an average of 12, an hour with 22 or more calls happens less than 1% of the time: unusual enough to check, not proof of a disaster.

Step 2 of 12Chart

Calls per hour when the average is 12

If calls arrive independently at an average of 12 per hour, this is how often each count happens.

Calls per hour when the average is 12Bar chart with 10 categories: 4: 0.53%; 6: 2.55%; 8: 6.55%; 10: 10.48%; 12: 11.44%; 14: 9.05%; 16: 5.43%; 18: 2.55%; 20: 0.97%; 22: 0.3%.0%2.5%5%7.5%10%12.5%Probability46810121416182022Calls in one hour0.53%2.55%6.55%10.48%11.44%9.05%5.43%2.55%0.97%0.3%
Poisson distribution with mean 12. Getting 22 or more calls in an hour has a probability of about 0.6%.
Calls per hour when the average is 12
Calls in one hourProbability
40.53%
62.55%
86.55%
1010.48%
1211.44%
149.05%
165.43%
182.55%
200.97%
220.3%

Step 3 of 12Learn

The normal distribution

The normal distribution is the symmetric bell curve. It is described by two numbers: the mean μ, which sets the center, and the standard deviation σ, which sets the width. Heights of adults of one sex, measurement errors, and many quantities built from lots of small independent effects are roughly normal.

Its most useful property is that the share of values within any number of standard deviations of the mean is fixed:

  • about 68% within 1 SD,
  • about 95% within 2 SDs (more precisely 1.96),
  • about 99.7% within 3 SDs.

To use this, convert a value to a z-score: z = (x − μ) / σ, the number of SDs it sits from the mean. If a factory fills bags with a mean of 500 g and an SD of 4 g, a bag of 492 g has z = −2. Only about 2.5% of bags are that light or lighter, since 5% fall outside ±2 SDs, split equally between the two tails.

The normal distribution also matters for a deeper reason you'll meet in the next lesson: averages of many observations tend to be normally distributed even when the individual values are not. That is why the normal curve appears in confidence intervals and tests regardless of the shape of your raw data.

Step 4 of 12Explore

Shape of the normal curve

Move the sliders to change the mean and the standard deviation. The readouts show the range that holds about 95% of values.

00.050.10.150.2 020406080100
95% range starts at
30.4
95% range ends at
69.6
Height of the peak
0.04

Step 5 of 12Practice · Estimate

Test scores are approximately normal with a mean of 500 and an SD of 100. Roughly what percentage of test takers score above 700?

5 %

Step 6 of 12Diagram

The 68–95–99.7 rule on test scores

Mean 500, SD 100. Each band adds one more standard deviation on each side.

The 68–95–99.7 rule on test scoresScale: Mean: 500, +1 SD: 600, +2 SD: 700, −2 SD: 300.Beyond 3 SD95% band68% band95% bandBeyond 3 SD200300400500600700800300−2 SD: 300500Mean: 500600+1 SD: 600700+2 SD: 700

Tap a shape with to see more.

Mean: 500

500

+1 SD: 600

About 16% score above this.

+2 SD: 700

About 2.5% score above this.

−2 SD: 300

300

Step 7 of 12Learn

Binomial and Poisson: distributions for counts

Many business metrics are counts, and counts have their own distributions.

The binomial distribution counts successes in a fixed number of independent trials that each have the same success probability p. If 1,000 visitors each convert with probability 4%, the number of conversions is binomial with n = 1,000 and p = 0.04. Its mean is np = 40 and its SD is √(np(1 − p)) = √38.4 ≈ 6.2. So a day with 50 conversions is about 1.6 SDs above normal: nice, but not remarkable. A day with 65 is four SDs above and worth investigating.

The Poisson distribution counts events in a fixed interval when they happen independently at a steady average rate λ: calls per hour, website errors per day, defects per batch. Its signature is that the mean equals the variance, so the SD is √λ. With λ = 12 calls per hour, the SD is about 3.5, and the probability of zero events in an interval is e^−λ. With an average of 3 server errors per day, the chance of an error-free day is e^−3 ≈ 5%.

Real counts often vary more than these models predict, a pattern called overdispersion, because rates change with time of day, season or marketing campaigns. If the variance of your counts is much larger than the mean, a simple Poisson model will make ordinary days look like alarms.

Step 8 of 12Practice · Work it out

A landing page gets 2,500 visitors, each converting independently with probability 0.10. What is the standard deviation of the number of conversions?

Step 9 of 12Practice · Match the pairs

Match each quantity to the distribution that usually models it best.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Number of buyers among 800 visitors who each convert with the same probability
  2. Number of help-desk tickets arriving per hour at a steady rate
  3. Fill weight of cereal boxes from a well-tuned machine
  4. Annual revenue per customer, with a few huge accounts

Step 10 of 12Note

Step 11 of 12Practice · Choose one

Which of these is most likely to be strongly right-skewed?

Step 12 of 12Practice · True or false

For a Poisson distribution, the mean and the variance are equal.