1.3.7 · D1Probability & Statistics

Foundations — Cumulative distribution functions

2,626 words12 min readBack to topic

Before you can trust that one sentence, you need the vocabulary hidden inside it. This page builds every symbol the parent CDF note uses, from absolute zero, in the order that each one depends on the last. Nothing is used before it is drawn.


1. Probability — a number between 0 and 1

The picture. Imagine a bar completely filled with paint. The paint is all the certainty in the world — it sums to . Any event grabs a slice of that bar. A big slice = likely; a thin sliver = unlikely.

Figure — Cumulative distribution functions

Why the topic needs it. Everything on this page is ultimately a number produced by . The running total we are chasing will just be a particular probability, so we must first be comfortable that every lives on a ruler. We cannot yet write the CDF's defining formula — it needs the symbols built in sections 2 and 3 first.


2. Random variable — a number decided by chance

The picture. Think of as a labelled dial that a random spin will land somewhere on. Rolling a die: is the face that shows up. Measuring where a bullet lands: is the distance in metres.

See Random Variables for the full treatment.

Big versus little
Big is the random machine (its value unknown until the experiment); little is a fixed number you plug in.

3. The symbol — "at or below"

Now — with , , and all defined — we can finally read the event : the random outcome turned out to be less than or equal to the fixed number .

The picture. On a number line, means landed anywhere in the shaded region to the left of (and including) the marker .

Figure — Cumulative distribution functions
in plain words
the random outcome turned out to be less than or equal to the fixed number .

4. The CDF itself — assembling the pieces

Every ingredient is now on the table: a probability , a random machine , a fixed plug-in value , and the event . Snap them together.

Why and not or ? We want a running total, not a single spot. Using (the "or equal" bar) means "everything up to and including ." That choice is exactly what makes the CDF right-continuous (section 9) and what makes a die's CDF jump at each face value. Every subtlety in the parent note traces back to this one bar.


5. Two flavours of randomness: discrete vs continuous

The picture. Discrete = a row of separate poles you can stand on. Continuous = a smooth ramp you can stand anywhere on.


6. PMF — probability in lumps (discrete)

The picture. A row of vertical sticks, one per allowed value; the height of each stick is its probability. For a fair die every stick has height .

Why the topic needs it. The discrete CDF is literally the running sum of these lumps: . Section 7 explains that symbol.


7. The sum symbol — "add up all of these"

Worked read-aloud (fair die, ). The values are . So the sum is

That is exactly the parent note's staircase example — now every symbol in it is earned.


8. PDF — probability as density (continuous)

The picture. A smooth curve. The shaded area under it between two points is the probability of landing in that stretch. Total area under the whole curve .

Figure — Cumulative distribution functions

See Probability Distributions for the zoo of PMFs and PDFs.


9. The integral — "add up a smooth area"

  • (negative infinity) means "start from the far, far left, before any value is possible."
  • is a dummy variable — a placeholder we slide from up to . We use (not ) so the moving slider isn't confused with the fixed endpoint .

10. Limits and continuity — the edges of the CDF

The picture. Walk the marker rightward. You have now passed every possible outcome, so you have swept up all the probability — the tally reads . Walk it leftward past everything, and you've passed no outcomes — the tally reads . Both edges matter: a CDF must start at on the far left and finish at on the far right.


11. The inverse CDF — running the question backwards

The picture. On the CDF graph: pick a height on the vertical axis, slide right until you first touch the curve, then drop straight down to the horizontal axis — that landing point is . The "first touch" is what the guarantees when the curve is flat or jumps.

  • = the median (half the probability below it).
  • = the 95th percentile.

This feeds Quantile Functions and Inverse Transform Sampling.


How these feed the topic

Event a yes or no question

Probability P a number in 0 to 1

Random variable X

The relation X less-or-equal x

CDF F equals P of X le x

Discrete X

Continuous X

Mixed X

PMF lumps of probability

Sum adds the lumps

PDF density curve

Integral adds the area

CDF running total

Limits 0 at left 1 at right

Non-decreasing

Inverse CDF quantiles via inf

Downstream, the CDF powers Empirical Distribution, the Kolmogorov-Smirnov Test, Copulas, Survival Analysis, and Expected Value and Variance.


Equipment checklist

Test yourself — cover the right side and answer out loud.

I can say what an "event" is
A yes/no question about a chance experiment — a collection of outcomes we can ask "did it happen?"
I can say in one sentence what means and its range
A number in measuring how likely an event is; impossible, certain.
I can tell big from little
Big is the random machine; little is a fixed number you plug in.
I can read the event aloud
The random outcome landed at or below the fixed value .
I can state the CDF definition
— the probability that lands at or below ; output always in .
I know the difference between discrete, continuous, and mixed
Discrete lands on separated countable values; continuous lands anywhere in a range; mixed does both, giving a ramp with jumps.
I know what a PMF gives
The probability that equals exactly — a lump; all lumps sum to .
I know why a PDF is not a probability
It is a density; probability only appears as area under it, so it can exceed .
I can explain why and are the same idea
Both accumulate probability — adds discrete lumps, adds smooth area slices.
I know both edge limits of a CDF and why
(passed nothing) and (passed everything).
I know what the in means
Let shrink to from the positive side only, so we approach from the right — this is right-continuity.
I can give the robust definition of
, the smallest whose running total reaches at least — needed at flats and jumps.
I know what is
The median — the value with half the probability below it.