A cumulative distribution function (CDF) is a function that describes the probability distribution of a random variable by accumulating probability up to a given threshold. For a real-valued random variable , it is defined by . The same definition applies to discrete, continuous, and mixed distributions, making the CDF a common language for describing uncertainty in statistics and probability theory. (online.stat.psu.edu)
Definition and fundamental properties
For every real number ,
Here is the random variable, whereas is a fixed threshold. The value lies between zero and one; it is not the probability that equals . Every CDF satisfies four fundamental conditions:
- Nondecreasing: if , then .
- Right-continuous: .
- Lower boundary limit: .
- Upper boundary limit: .
Conversely, any function satisfying these conditions is the CDF of some real-valued random variable. Right-continuity reflects the inclusion of the endpoint in ; a CDF need not be continuous from the left. (statlect.com)
In measure theory, a CDF uniquely determines a probability measure on the real line equipped with its Borel sigma-algebra. Thus, knowing the CDF determines probabilities not only for threshold events but for all Borel-measurable sets. Different random variables may share a CDF without being identical or defined on the same probability space. (live.ocw.mit.edu)
Recovering probabilities
For , subtracting accumulated probabilities gives
Define the left-hand limit by . Then
and
Consequently, the height of a jump at equals the probability concentrated at that point. If the CDF is continuous at , then . Endpoint distinctions therefore matter for distributions with point masses, although they disappear at endpoints having zero probability. (live.ocw.mit.edu)
The complementary probability,
is commonly called the survival function. It describes the probability of exceeding a threshold, rather than falling at or below it. This connection is particularly useful when the variable represents a lifetime or failure time. (itl.nist.gov)
Discrete and continuous distributions
For a discrete random variable with probability mass function ,
For example, a Bernoulli distribution with and has
Its CDF has jumps at zero and one. More generally, discrete distributions accumulate probability through jumps, with constant sections wherever an interval contains no possible outcomes. (statlect.com)
For an absolutely continuous distribution with probability density function , accumulation is expressed as an integral:
Conversely, its derivative equals the density almost everywhere. A CDF value is a probability, whereas a density value is not itself a probability and may exceed one. Interval probabilities correspond to areas under the density curve. (online.stat.psu.edu)
For the uniform distribution on , the CDF equals zero below zero, between zero and one, and one above one. For the standard normal distribution, its CDF is conventionally denoted , with numerical tables providing accumulated probabilities at specified thresholds. (itl.nist.gov)
A continuous CDF does not necessarily imply the existence of a density. Singular continuous distributions provide counterexamples. A mixed distribution can instead combine point masses and an absolutely continuous component; its CDF then combines jumps with continuous increases. The CDF remains defined in all these cases. (live.ocw.mit.edu)
Quantiles and random sampling
A quantile function reverses the direction of the CDF: it maps a probability level to a threshold. A standard generalized inverse is
Unlike an ordinary inverse, this definition works when the CDF has flat sections or jumps. For a continuous, strictly increasing CDF, it agrees with the usual inverse. Quantiles identify thresholds associated with specified cumulative probabilities, including the conventional lower median . (www2.stat.duke.edu)
In inverse transform sampling, a uniform random variable on is transformed into , which has CDF . This construction works for arbitrary univariate distributions. The related probability integral transform states that is uniformly distributed when is continuous; without continuity, that conclusion does not generally hold. (www2.stat.duke.edu)
Empirical estimation and distribution testing
For observations , the empirical distribution function is
where the indicator equals one when its condition is true and zero otherwise. It records the fraction of observations at or below each threshold. Its graph is a staircase: each distinct observation contributes a jump proportional to its frequency, so repeated values produce larger jumps. (itl.nist.gov)
CDF comparisons support statistical hypothesis testing. The Kolmogorov–Smirnov test compares an empirical CDF with a specified theoretical CDF using their maximum vertical separation. Standard one-sample critical values assume a fully specified continuous distribution; estimating its parameters from the same observations requires an adjusted calibration rather than unmodified critical values. (itl.nist.gov)