VISUAL LESSON · 20 PICTURES

Uniform Distribution: Equal Density, Interval Probability, and Simulation

How can probability be spread evenly across a continuous interval?

MODULE 3 / 6LESSON 43 / 50PICTURE 1 / 20
Progress stays on this device · no login
BEFORE THE FIRST PICTURE

How this lesson unfolds.

Begin with Does the outcome live on points or across an interval? The sequence then connects Uniform is the bridge from sums to integrals and builds toward Simulation connects exact theory to computation.

Picture 1 of 20 · tap to inspect in full resolution
01

Does the outcome live on points or across an interval?

INTUITION

A discrete variable has countable outcomes and uses sums. A continuous variable can take any real value in an interval and assigns probability through interval areas.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionUniform is the bridge from sums to integrals
Picture 2 of 20 · tap to inspect in full resolution
02

What replaces point probabilities on a continuum?

INTUITION

A probability mass function assigns mass to discrete points. A probability density function supplies height, while integration converts that density into probability over an interval.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionDensity is probability packed per unit length
Picture 3 of 20 · tap to inspect in full resolution
03

Is the height f(x) itself a probability?

INTUITION

No. For a continuous variable, a single point has probability zero. The probability of a short interval is approximately density times width, and exact probability is area under the density curve.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionUniform is one continuous distribution among many
Picture 4 of 20 · tap to inspect in full resolution
04

Does continuous automatically mean uniform?

INTUITION

No. Continuous describes the possible values; uniform describes a flat density on one interval. Normal, exponential, gamma, and beta distributions are continuous but have different shapes.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionEqual widths need equal areas
Picture 5 of 20 · tap to inspect in full resolution
05

Why are human heights continuous but not uniform?

INTUITION

Height can vary continuously, but equal-width height ranges are not equally likely. A uniform model gives equal probability to equal-length subintervals; height data concentrate near a typical range.

MATHEMATICAL STATEMENTS
  1. Height can vary continuously, but equal-width height ranges are not equally likely.
  2. A uniform model gives equal probability to equal-length subintervals; height data concentrate near a typical range.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionA flat density makes equal lengths equally likely
Picture 6 of 20 · tap to inspect in full resolution
06

What exactly is uniform about Uniform(a, b)?

INTUITION

The density is constant at 1/(b-a) between a and b and zero outside. Every equal-length subinterval inside the support has the same probability—not every individual real number.

MATHEMATICAL STATEMENT
  1. Every equal-length subinterval inside the support has the same probability—not every individual real number.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionInterval probability is length divided by total length
Picture 7 of 20 · tap to inspect in full resolution
07

How do we calculate a probability under a flat density?

INTUITION

For X uniform on [a,b], P(c≤X≤d)=(d-c)/(b-a) whenever a≤c≤d≤b. Endpoints do not affect continuous probabilities.

MATHEMATICAL STATEMENT
  1. For X uniform on [a,b], P(c≤X≤d)=(d-c)/(b-a) whenever a≤c≤d≤b.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionIntegration adds continuously varying contributions
Picture 8 of 20 · tap to inspect in full resolution
08

Why do continuous models need integration?

INTUITION

Ordinary addition handles finitely many pieces. An integral is the limit of adding increasingly thin contributions across a complete interval.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionA Riemann sum becomes exact in the limit
Picture 9 of 20 · tap to inspect in full resolution
09

What does the integral symbol actually mean?

INTUITION

Partition [a,b] into widths Δx, add rectangle areas f(x_i)Δx, and let the maximum width approach zero. The limiting sum is the integral.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionIntegration completes the idea of summation
Picture 10 of 20 · tap to inspect in full resolution
10

How does a finite sum turn into continuous addition?

INTUITION

More, thinner rectangles give better area approximations. In the limit, the sum of tiny areas becomes an exact integral over the continuum.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionDifferentiation and integration reverse each other
Picture 11 of 20 · tap to inspect in full resolution
11

How are rates and accumulated totals connected?

INTUITION

The Fundamental Theorem of Calculus links a density-like rate to its accumulated area: differentiating an integral recovers the integrand, subject to standard continuity conditions.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionVariance averages squared distance from the mean
Picture 12 of 20 · tap to inspect in full resolution
12

How do tiny intervals contribute to continuous variance?

INTUITION

At x, the squared distance is (x-μ)^2. Multiplying by f(x)dx weights that distance by the tiny interval's probability; integrating adds every contribution.

MATHEMATICAL STATEMENT
  1. At x, the squared distance is (x-μ)^2.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionUniform mean sits at the midpoint
Picture 13 of 20 · tap to inspect in full resolution
13

Where is the balance point of Uniform(a, b)?

INTUITION

Symmetry places the mean at μ=(a+b)/2. The probability to the left and right of the midpoint is equal.

MATHEMATICAL STATEMENTS
  1. Symmetry places the mean at μ=(a+b)/2.
  2. The probability to the left and right of the midpoint is equal.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionSums and integrals express the same variance idea
Picture 14 of 20 · tap to inspect in full resolution
14

What changes between discrete and continuous variance?

INTUITION

Discrete variance sums squared distances times point probabilities. Continuous variance integrates squared distances times density. The concept stays fixed while the addition rule changes.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionUniform variance depends only on interval length
Picture 15 of 20 · tap to inspect in full resolution
15

Why does uniform variance equal L²/12?

INTUITION

After centering at the midpoint and averaging squared distances across the flat interval, the integral evaluates to L^2/12 where L=b-a. Shifting the interval changes the mean but not its variance.

MATHEMATICAL STATEMENT
  1. After centering at the midpoint and averaging squared distances across the flat interval, the integral evaluates to L^2/12 where L=b-a.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionStandard deviation returns to the original units
Picture 16 of 20 · tap to inspect in full resolution
16

How large is the spread on the data's own scale?

INTUITION

Taking the square root of uniform variance gives σ=(b-a)/√12. Variance uses squared units; standard deviation uses the same units as X.

MATHEMATICAL STATEMENT
  1. Taking the square root of uniform variance gives σ=(b-a)/√12.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionA pseudorandom generator evolves a deterministic state
Picture 17 of 20 · tap to inspect in full resolution
17

Where do computer-generated uniform samples begin?

INTUITION

A seeded pseudorandom number generator repeatedly transforms an internal state into new bit patterns. The same seed reproduces the same sequence; the sequence can still have strong statistical properties.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionA tiny recurrence makes the state idea visible
Picture 18 of 20 · tap to inspect in full resolution
18

Can we run a toy generator by hand?

INTUITION

Using s_next=(7s+5) mod 100 produces a deterministic cycle. It is useful for seeing state updates, but its short cycle and uneven behavior make it unsuitable as a real random generator.

MATHEMATICAL STATEMENT
  1. Using s_next=(7s+5) mod 100 produces a deterministic cycle.
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionScaling a uniform integer grid creates a uniform float grid
Picture 19 of 20 · tap to inspect in full resolution
19

How does an integer become a number in [0, 1)?

INTUITION

If K is uniform on {0,…,2^53-1}, then U=K/2^53 is uniform on a grid of 2^53 representable values in [0,1). It approximates, but does not sample, every real number.

MATHEMATICAL STATEMENT
  1. If K is uniform on {0,…,2^53-1}, then U=K/2^53 is uniform on a grid of 2^53 representable values in [0,1).
  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionSimulation connects exact theory to computation
Picture 20 of 20 · tap to inspect in full resolution
20

What should we remember when software returns a uniform number?

INTUITION

The mathematical model has a flat continuous density; software returns one of finitely many floating-point values designed to behave uniformly. Theory explains interval probabilities, while simulation lets us test them empirically.

  • Helpful foundationsfractions · area of a rectangle · basic probability
  • Next connectionSampling distributions and continuous models