Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Probability  ›  Capstone Project

Types of Distribution

Types of Distribution 15 minCommon distributions each match a story: one yes-or-no trial, a count of successes in fixed trials, a count of events in a time window, equally likely values, or a symmetric bell of measurements.

Types of Distribution

The agency wants to model three things: whether a flat rents within a week, how many enquiries a listing gets per hour, and how rents vary among similar flats. Each needs a different probability distribution. Choosing the right one is less about formulas and more about recognising the story behind the numbers.

The rule

Name the story first; the distribution follows from it.

Five stories cover most beginner work:

Story Distribution Parameters Mean
One yes-or-no trial Bernoulli pp pp
Count of yeses in nn independent trials Binomial n,pn, p npnp
Count of events in a time window, no fixed number of trials Poisson λ\lambda λ\lambda
Every value in a range equally likely Uniform a,ba, b (a+b)/2(a + b)/2
Measurements clustering symmetrically around a typical value Normal μ,σ\mu, \sigma μ\mu

At the agency:

  • Bernoulli: one listed flat either rents within a week or not, with p=0.6p = 0.6.
  • Binomial: out of 5 listed flats, how many rent within a week? Mean 5×0.6=35 \times 0.6 = 3. The chance all five do is 0.65≈0.0780.6^5 \approx 0.078. For 2 flats, exactly one rents fast with probability 2×0.6×0.4=0.482 \times 0.6 \times 0.4 = 0.48: two orders, each 0.6×0.40.6 \times 0.4.
  • Poisson: enquiries per hour, averaging λ=4\lambda = 4. Its variance also equals 4.
  • Uniform: last lesson's rents spread evenly from 10 to 30, mean 20.
  • Normal: rents of similar two-room flats with mean 20 and standard deviation 4. The 68-95-99.7 rule: about 68% lie within one standard deviation (16 to 24), 95% within two (12 to 28) and 99.7% within three (8 to 32).

The normal curve appears so often because averages and sums of many small independent effects tend towards it. That is also why many ML methods assume normally distributed errors.

The shortcut

Ask two questions: Is it a count or a measurement? If a count, is the number of trials fixed?

Sorting the agency's three variablesStep 1 of 3
  1. Rented within a week?

    One trial, yes or no: Bernoulli. For many flats counted together, a fixed n: binomial.

The trap is using a binomial when there is no fixed nn. "How many enquiries today?" has no upper limit, so it is Poisson.

Drills

Answer fast — trust the rule.

quick drill

How many of the next 10 listed flats rent within a week, if each does independently with chance 0.6?

quick drill

What is the mean of that distribution?

quick drill

A listing averages 4 enquiries per hour. Which distribution fits the count per hour?

quick drill

Rents are normal with mean 20 and standard deviation 4. About what fraction lie between 12 and 28?

quick drill

Two flats each rent fast with chance 0.6, independently. What is P(exactly one rents fast)?

Remember

  • Name the story first; the distribution follows from it.
  • Shortcut: count or measurement? If a count, is n fixed? Fixed means binomial, a rate means Poisson.
  • Trap: forgetting the number of orders in a binomial, or forcing a fixed n onto an open-ended count.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainName the distribution

Name the distribution, its parameters and its mean for each: whether one listed flat rents within a week (chance 0.6); how many of 10 listed flats rent within a week; enquiries per hour for a listing averaging 4; rents of similar two-room flats averaging 20 with standard deviation 4. Explain the story that points to each.