1.3.7 · D5Probability & Statistics

Question bank — Cumulative distribution functions

1,467 words7 min readBack to topic

True or false — justify

A CDF can decrease over some interval if the density dips low there
False — the CDF is a running total of non-negative probability, so it can flatten (add zero) but never fall; a decrease would mean negative probability was added.
For a continuous , can be greater than near a tall spike in the density
False — the CDF is a probability, always in ; it is the PDF that can exceed because density is probability per unit length, not probability.
If is flat (constant) on an interval , then never lands in
True — a flat stretch means , and since , no probability mass sits there.
Every CDF must be continuous everywhere
False — discrete distributions have jumps (the staircase for a die); CDFs are only required to be right-continuous, meaning the value at a jump is the top of the step.
holds for every valid CDF
True — sweeping to accumulates all the probability, and total probability is always exactly .
For a discrete , equals the height of the CDF at
False — is the size of the jump at , namely , not the CDF's absolute value.
If two random variables have the same PDF shape but different scales, they have the same CDF
False — different scales stretch the density along , so the accumulated area (the CDF) reaches any given level at a different ; only identical distributions share a CDF.
A function that goes from to and is non-decreasing is automatically a valid CDF
True (essentially) — non-decreasing, limits and , and right-continuity are exactly the defining conditions; any such function is the CDF of some random variable.
For continuous , and are always equal
True — since for continuous variables, including or excluding the single point changes nothing.
For discrete , and are always equal
False — at a value that carries mass, includes the jump while excludes it, so they differ by that jump.

Spot the error

"To find I computed ." What went wrong?
The subtraction is backwards — you need ; because the CDF is non-decreasing, the larger argument always gives the larger value, so a negative result is the tell-tale sign of a flipped order.
" is continuous, so , the density there." Where's the slip?
For continuous , exactly; is a density (probability per unit length), and to get any real probability you must integrate it over an interval, not read it at a point.
"The median of is wherever the PDF is tallest." What's confused?
That describes the mode (peak of the density); the median is where the CDF crosses , i.e. , which splits area equally and can sit far from the peak in a skewed distribution.
"Since is right-continuous, at a jump the CDF takes the value just below the step." Fix it.
Right-continuity means the CDF takes the value at the top of the step (the limit from the right equals the value); the point closes on the upper value, matching .
"I inverted the CDF by writing ." What's the error?
The inverse CDF is a functional inverse (it undoes , answering "which gives this probability ?"), not a reciprocal ; you solve for .
" because both describe the tail." Correct it.
is the left accumulation; the right tail is the complement .
"The CDF of a fair die at is undefined because you can't roll ." Why is this wrong?
The CDF is defined for all real ; , counting outcomes — the argument need not be an achievable value.

Why questions

Why is the CDF (not the PDF) the natural tool for asking "what fraction of predictions fall below a threshold?"
Because that question is literally — an accumulated probability — which is the CDF's definition; the PDF only gives local density and would need integrating to answer it.
Why must every CDF be right-continuous rather than left-continuous, given the in ?
The includes the point itself, so at a jump the mass at is already counted at ; approaching from the right (values already past ) gives the same total, making the CDF continuous from the right.
Why does hold for non-negative ?
The quantity is the survival (tail) probability; summing how long stays above each level, via integration by parts, rebuilds the average value.
Why is the inverse CDF the engine behind generating samples from any distribution?
If is uniform on , then lands below any level with probability exactly — see Inverse Transform Sampling — so feeding uniform noise through the quantile function reproduces the target distribution.
Why do the Kolmogorov–Smirnov test and calibration checks compare CDFs rather than PDFs?
CDFs are bounded in and defined everywhere without binning, so the maximum gap between an empirical CDF and a theoretical one is a clean, robust distance — see Kolmogorov-Smirnov Test — whereas PDF comparison depends on arbitrary bin widths.
Why can two distributions have the same mean and variance yet very different CDFs?
The mean and variance are only two summary numbers (see Expected Value and Variance); the CDF encodes the entire shape, so skew, tails, and multimodality can differ while the first two moments coincide.

Edge cases

What does the CDF look like for a constant random variable, with certainty?
A single step: for and for ; all probability piles up at one point, so the jump has full height .
For a mixed variable (a continuous part plus a point mass at ), how does the CDF behave at ?
It rises smoothly along the continuous part but shows a vertical jump of height exactly at , combining staircase and ramp behaviour.
What is far to the left, at , and does it ever start above ?
It must approach ; no probability has been accumulated yet, and starting above would imply probability mass at , which is impossible.
If the density has an infinitely tall spike (like a very sharp peak), what happens to the CDF there?
The CDF stays bounded in and merely climbs steeply through that region; a tall-but-integrable spike adds finite area, so the running total rises fast but never exceeds .
What is when the CDF is flat at level over an interval (so many satisfy )?
The inverse is not unique there; by convention the quantile function takes the smallest such , , which keeps it well-defined even on flats and jumps.
What does return at the extremes or ?
These can push to the support's boundaries — or for unbounded distributions like the exponential — because no finite value has or a full strictly below it.

Recall Self-check: which single property catches the most traps?

Monotonic non-decreasing ::: Yes — it kills negative "probabilities", forces , forbids dips, and underwrites why we subtract in the correct order. Bounded in ::: Also central — it's what distinguishes the CDF from the (possibly ) PDF and flags any impossible answer instantly.

See also: Probability Distributions · Random Variables · Survival Analysis · Copulas.