Skip to the workspace
Pebellslearn by building
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.

machine learning / Types of Distribution

Explore each scene at your own pace.

01 · The rule

The rule

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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.