Continuous Random Variables and Densities
A continuous random variable takes values in a continuum (an interval of ) and is described not by point probabilities — which are all zero — but by a probability density function (PDF) whose integral over a set gives the probability of landing in that set. Key result: , with and . Applies wherever measurements vary smoothly — physics, statistics, engineering, finance. Formalized by Laplace, Gauss, and rigorously by Kolmogorov (1933).
For continuous variables, probability is area, not height. The density answers "how concentrated is probability near ?" — formally . You never read a probability off the curve directly; you always integrate. This single shift — from summing point masses (discrete case) to integrating a density (continuous case) — is the entire conceptual jump.
Formal Statement
A random variable on a probability space is (absolutely) continuous if there exists a nonnegative integrable function , the probability density function (PDF), such that for every :
Derivation hint: This is the defining property; it asserts that the measure induced by is given by integrating against Lebesgue measure. The density must satisfy the two normalization axioms:
Derivation hint: Nonnegativity follows since probabilities are nonnegative; the total integral equals . The cumulative distribution function (CDF) is
Derivation hint: Set , in [1]. and where is differentiable the density is recovered by the Fundamental Theorem of Calculus:
Derivation hint: Differentiate [3]; FTC applies wherever is continuous at .
Symbols: = random variable; = sample point; = density (units: inverse of 's units); = CDF (dimensionless, in ); = real values.
If is continuous with density , then for every ,
and consequently
Derivation hint: by [1]; since endpoints contribute zero area, open/closed intervals share the same probability.
For a continuous with density , and a measurable for which the integral converges absolutely (Law of the Unconscious Statistician):
Derivation hint: Push the abstract expectation forward to the line via the distribution ; equivalently approximate by simple functions. In particular the mean and variance are
Derivation hint: Take and in [7]; expand the square and use linearity for the shortcut form.
Why It Holds / Derivation
We show that [1]–[4] are mutually consistent and that the change-of-variable formula for transformations follows.
Step 1 — CDF is nondecreasing and bounded. Since , the integral is nondecreasing. As , ; as , by [2]. Thus is a legitimate CDF.
Step 2 — Interval probabilities. By additivity of the integral,
recovering [1] in terms of .
Step 3 — Recovering . Where is continuous, FTC gives , which is [4]. Heuristically,
the "density times width" interpretation.
Step 4 — Transformation rule. Let with strictly monotonic and differentiable, inverse . For increasing , . Differentiating with the chain rule, and handling decreasing with an absolute value, yields the change-of-variables density
Derivation hint: Differentiate the CDF composition ; the absolute value compensates for orientation reversal when decreases.
∎Kolmogorov's 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung placed probability on measure-theoretic foundations. In his framework a continuous random variable is a measurable function whose distribution is absolutely continuous with respect to Lebesgue measure; the density is precisely the Radon–Nikodym derivative . This dissolved century-old ambiguities about "infinitely small probabilities" and explained why some continuous-CDF distributions (the Cantor distribution) have no density at all.
Building Intuition
Imagine spreading exactly one kilogram of fine sand along a number line. The density is the mass per unit length at position — measured in kg/meter, not kg. To find how much sand lies between and , you cannot read it at a point (a point has zero width, hence zero sand); you must integrate the density over . The total sand is kg, matching . A tall, narrow spike means sand piled densely (high probability nearby) but covering little width; the area of that spike is what counts. This is exactly why can exceed : a Uniform distribution has on its support — high density over a short interval still integrating to .
Worked Examples
Given: A component's lifetime (hours) is Exponential with rate , density
Step 1 — Check normalization. ✓
Step 2 — Mean lifetime via [8]:
(Integration by parts: .)
Step 3 — Probability it survives past 150 hr using the CDF :
Given: Uniform with on . Define . Find .
Step 1 — Invert. , valid for (since ).
Step 2 — Jacobian. , so .
Step 3 — Apply [9].
Step 4 — Identify. This is Exponential with rate .
This is the basis of inverse-transform sampling: applying to uniform draws produces exponential samples.
Common Misconceptions
The density is not a probability. has units of (probability per unit ) and may be arbitrarily large. Writing "" is wrong; the correct statement is and . Likewise, never claim "" — only and are required.
Probability zero ≠ impossible. Every single outcome of a continuous variable has probability , yet exactly one outcome occurs on each trial. "Almost surely" (probability ) is not the same as "always." This is why, when conditioning on a continuous variable taking a precise value, one must use densities and limits, not naive (which gives ).
The Cantor (devil's staircase) distribution has a CDF that is continuous everywhere and increases from to , so for all — yet at almost every point and is not absolutely continuous. There is no density with . Thus "continuous CDF" is strictly weaker than "has a density." A density exists only for absolutely continuous distributions. This shows the chain [3]–[4] can fail without absolute continuity.
Connections
Continuous variables sit opposite Discrete Random Variables, where probability mass functions replace densities and sums replace integrals; both are special cases of distributions described by a Cumulative Distribution Function. The density is rigorously the Radon–Nikodym Derivative of the distribution with respect to Lebesgue measure, tying the subject to Measure Theory. Expectation [7] is an instance of Lebesgue Integration. Two or more continuous variables are handled with Joint Probability Densities and marginals, and independence is characterized by factorization of joint densities. The transformation rule [9] generalizes to the multivariate Jacobian Change of Variables. Specific densities — the Normal Distribution, Exponential Distribution, and Uniform Distribution — are the workhorse examples.
Real-World Applications
Historical Development
Subtleties & Limits
The density is determined only up to a set of Lebesgue measure zero — two densities differing at countably many points describe the same distribution, so "the" density is really an equivalence class. Distributions can be purely continuous yet singular (Cantor type), having no density at all; the Lebesgue decomposition splits any distribution into absolutely continuous, discrete, and singular parts, and characterizing the singular component of empirical distributions remains subtle. In infinite dimensions (e.g. Gaussian measures on function spaces), there is no Lebesgue reference measure, so densities must be taken relative to another measure (Cameron–Martin theory) — a live area in stochastic analysis. Finally, density estimation from finite data (choosing bandwidths, avoiding the curse of dimensionality) is an active statistical and machine-learning research frontier.
See Also
Discrete Random Variables · Cumulative Distribution Function · Normal Distribution · Exponential Distribution · Uniform Distribution · Joint Probability Densities · Radon–Nikodym Derivative · Measure Theory · Jacobian Change of Variables · Central Limit Theorem