1.3.7 · D3Probability & Statistics

Worked examples — Cumulative distribution functions

2,054 words9 min readBack to topic

This page is a practice arena. We take the ideas from Cumulative distribution functions and throw every kind of case at them, one worked example per case-type. Nothing here is new theory — but by the end you will have seen every scenario a CDF can throw at you, so nothing on an exam surprises you.

Before we start, one reminder in plain words. The letters we use:

Everything below is just those three characters in different costumes.


The scenario matrix

Every CDF problem falls into one of these case classes. The whole point of this page is that we hit all of them.

Cell Case class What makes it tricky Covered by
A Discrete, value between jumps staircase: only landings below the target count Ex. 1
B Discrete, exact point mass , the jump height Ex. 2
C Continuous ramp, interval subtract two CDF values Ex. 3
D Degenerate / boundary inputs support, support, edge Ex. 4
E Continuous, inverting the CDF (quantile) solve for Ex. 5
F Limiting / tail behaviour , complement Ex. 6
G Real-world word problem translate English → CDF Ex. 7
H Exam twist: mixed / sign trap negative "probability" trap, mixed variable Ex. 8

Read the Forecast line first and guess before revealing each solution — that is where learning actually happens.


Ex. 1 — Cell A: discrete value between the steps


Ex. 2 — Cell B: the exact point mass as a jump height


Ex. 3 — Cell C: continuous ramp, interval probability


Ex. 4 — Cell D: degenerate / boundary inputs


Ex. 5 — Cell E: inverting the CDF (quantile)


Ex. 6 — Cell F: limiting / tail behaviour (complement)


Ex. 7 — Cell G: real-world word problem


Ex. 8 — Cell H: exam twist (the sign trap + a mixed variable)


Recap of the matrix

Recall Which example hit which cell?

Discrete between steps ::: Ex. 1 (Cell A) Discrete exact point / jump height ::: Ex. 2 (Cell B) Continuous interval on a ramp ::: Ex. 3 (Cell C) Boundary / outside-support inputs ::: Ex. 4 (Cell D) Inverting the CDF for a percentile ::: Ex. 5 (Cell E) Tail / complement / limiting ::: Ex. 6 (Cell F) Real-world word problem ::: Ex. 7 (Cell G) Sign trap + mixed variable ::: Ex. 8 (Cell H)

See also: Empirical Distribution (the CDF built from data), Kolmogorov-Smirnov Test (comparing two CDFs), Copulas (stitching CDFs together), Probability Distributions (where these CDFs come from).