Technopedia

The technologist’s encyclopedia

Absolutely continuous distributions

An absolutely continuous distribution is a probability measure that has a density (Radon–Nikodym derivative) with respect to Lebesgue measure. It is the law of a random variable for which probabilities of intervals are computed by integrating a density function. These distributions model quantities that can take any value in an interval: measurement errors, physical quantities, financial returns, and continuous-time processes. They contrast with atomic distributions (point masses) and singular and mixed distributions.

Authoritative sources

Density and CDF

A distribution on R\mathbb{R} is absolutely continuous iff there exists a measurable function f:R→[0,∞)f: \mathbb{R} \to [0, \infty) with ∫Rf=1\int_{\mathbb{R}} f = 1 such that

P(X∈A)=∫Af(x) dxfor all Borel A.P(X \in A) = \int_A f(x)\, dx \quad \text{for all Borel } A.

The function ff is the probability density function (PDF). The CDF is F(x)=∫−∞xf(t) dtF(x) = \int_{-\infty}^{x} f(t)\, dt and satisfies F′(x)=f(x)F'(x) = f(x) almost everywhere. Expectation is E[g(X)]=∫g(x)f(x) dxE[g(X)] = \int g(x) f(x)\, dx (see Random variables and expectation).

Details

Step 1 — From mass to density. For an atomic distribution, probability lives on points: P(X=x)=p(x)P(X = x) = p(x). For an absolutely continuous distribution, every single point has probability zero, and probability lives on intervals: it is the area under the density curve. The density ff is a “probability per unit length”: f(x) Δxf(x)\,\Delta x is (approximately) the probability of falling in a small interval of width Δx\Delta x around xx.

a b f(x) shaded area = P(a < X ≤ b) x

Step 2 — The value f(x)f(x) is not a probability. Since P(X=x)=∫{x}f=0P(X = x) = \int_{\{x\}} f = 0, the density value at a point can be larger than 1 (the uniform density on [0,1/2][0, 1/2] equals 2). What matters is the integral: P(a<X≤b)=F(b)−F(a)P(a < X \leq b) = F(b) - F(a). This is why the CDF, not the density, is the universal object — see singular and mixed distributions for laws that have no density at all.

Step 3 — CDF and density are two views of the same law. The CDF is the running integral of the density, and the density is the derivative of the CDF (wherever the derivative exists — “almost everywhere” is enough, since changing ff on a null set does not change any integral).

Step 4 — Uniqueness is only almost-everywhere. If ff and gg are both densities of the same distribution, then f=gf = g except on a set of Lebesgue measure zero. Densities are equivalence classes, not functions; any version works for computing probabilities.

Sources: Grinstead & Snell ch. 2; Papoulis & Pillai ch. 4.

Example problem

Let XX have the exponential density f(x)=λe−λxf(x) = \lambda e^{-\lambda x} for x≥0x \geq 0. Show that P(X>t)=e−λtP(X > t) = e^{-\lambda t} and compute P(X>1/λ)P(X > 1/\lambda).

Solution

The survival function is the area under the density to the right of tt:

P(X>t)=∫t∞λe−λx dx=[−e−λx]t∞=e−λt.P(X > t) = \int_t^\infty \lambda e^{-\lambda x}\, dx = \bigl[-e^{-\lambda x}\bigr]_t^\infty = e^{-\lambda t}.

At t=1/λt = 1/\lambda: P(X>1/λ)=e−1≈0.368P(X > 1/\lambda) = e^{-1} \approx 0.368. Note that the CDF is F(t)=1−e−λtF(t) = 1 - e^{-\lambda t}, and differentiating recovers the density — the two views of Step 3.

Transformation of variables

If Y=g(X)Y = g(X) where gg is a C1C^1 bijection with g′(x)≠0g'(x) \neq 0, then YY has density

fY(y)=fX(g−1(y))  ∣ddyg−1(y)∣.f_Y(y) = f_X\bigl(g^{-1}(y)\bigr) \;\bigl|\tfrac{d}{dy} g^{-1}(y)\bigr|.

For a C1C^1 map g:Rd→Rdg: \mathbb{R}^d \to \mathbb{R}^d with det⁡Dg(x)≠0\det Dg(x) \neq 0, the multivariate change-of-variables formula replaces the derivative by the absolute value of the Jacobian determinant:

fY(y)=∑x∈g−1(y)fX(x)∣det⁡Dg(x)∣.f_Y(y) = \sum_{x \in g^{-1}(y)} \frac{f_X(x)}{|\det Dg(x)|}.
Details

Step 1 — Mass conservation. A small interval [x,x+dx][x, x + dx] of probability mass fX(x) dxf_X(x)\, dx is carried by gg onto an interval of length ∣g′(x)∣ dx|g'(x)|\, dx around y=g(x)y = g(x). The same mass, spread over a longer interval, means a smaller density: fY(y)=fX(x)/∣g′(x)∣f_Y(y) = f_X(x) / |g'(x)|. The density is stretched wherever gg stretches, and compressed wherever gg compresses.

x-space x x+dx mass = f_X(x) · dx y = g(x), here g(x) = 3x y-space y y+dy same mass = f_Y(y) · 3dx, so f_Y(y) = f_X(x)/3

Step 2 — Worked example (location-scale). Let X∼N(0,1)X \sim \mathcal{N}(0,1) and Y=2X+1Y = 2X + 1. Then g−1(y)=(y−1)/2g^{-1}(y) = (y-1)/2 and ∣(g−1)′(y)∣=1/2|(g^{-1})'(y)| = 1/2, so

fY(y)=12fX ⁣(y−12)=122πe−(y−1)2/8,f_Y(y) = \frac{1}{2} f_X\!\left(\frac{y-1}{2}\right) = \frac{1}{2\sqrt{2\pi}} e^{-(y-1)^2/8},

which is exactly N(1,4)\mathcal{N}(1, 4): the location-scale operation of Distributional structure and operations is a change of variables.

Step 3 — Non-injective maps: sum over preimages. If several points map to the same yy, each contributes its own mass. For Y=X2Y = X^2 with X∼N(0,1)X \sim \mathcal{N}(0,1), the preimages of y>0y > 0 are ±y\pm\sqrt{y} and ∣d(x2)/dx∣=2∣x∣=2y|d(x^2)/dx| = 2|x| = 2\sqrt{y}, giving

fY(y)=fX(y)+fX(−y)2y=e−y/22πy,y>0.f_Y(y) = \frac{f_X(\sqrt{y}) + f_X(-\sqrt{y})}{2\sqrt{y}} = \frac{e^{-y/2}}{\sqrt{2\pi y}}, \quad y > 0.

The simulation below lets you explore both ideas interactively: the normal density with adjustable μ,σ\mu, \sigma, and the pushforward of a standard normal through Y=X2Y = X^2.

Sources: Papoulis & Pillai ch. 5; Grinstead & Snell ch. 2, exercise on functions of random variables.

Example problem

Let X∼Unif(0,1)X \sim \mathrm{Unif}(0,1) and Y=−ln⁡XY = -\ln X. Find the density of YY.

Solution

Here g(x)=−ln⁡xg(x) = -\ln x maps (0,1)(0,1) bijectively onto (0,∞)(0, \infty), with inverse g−1(y)=e−yg^{-1}(y) = e^{-y} and derivative ∣(g−1)′(y)∣=e−y|(g^{-1})'(y)| = e^{-y}. Applying the formula:

fY(y)=fX(g−1(y)) ∣(g−1)′(y)∣=1⋅e−y,y>0.f_Y(y) = f_X\bigl(g^{-1}(y)\bigr) \,\bigl|(g^{-1})'(y)\bigr| = 1 \cdot e^{-y}, \quad y > 0.

So Y∼Exp(1)Y \sim \mathrm{Exp}(1): the exponential density falls out of the uniform by a logarithmic change of variables. This is exactly how one simulates an exponential waiting time from a uniform random number generator.

Multivariate densities

A joint density f(x1,…,xd)f(x_1, \ldots, x_d) on Rd\mathbb{R}^d defines a multivariate absolutely continuous distribution: P(X∈A)=∫Af(x) dxP(X \in A) = \int_A f(x)\, dx. Key operations:

fXj∣X−j(xj∣x−j)=f(x1,…,xd)f−j(x−j),f_{X_j \mid X_{-j}}(x_j \mid x_{-j}) = \frac{f(x_1, \ldots, x_d)}{f_{-j}(x_{-j})},

which reduces to fj(xj)f_j(x_j) when the coordinates are independent. This is the continuous analogue of conditional probability.

Details

Step 1 — Marginals are shadows. Integrating the joint density over all other coordinates projects the law onto one axis, exactly as a shadow projects a 3D object onto a plane. Unlike the joint, marginals do not determine the joint: many different dependence structures share the same marginals (this is the subject of the copula section below).

joint density f(x, y) = x + y x y marginal f_X(x) = x + 1/2 f_Y(y) = y + 1/2

Step 2 — Conditional densities slice the joint. Fix x−jx_{-j} and renormalize the slice of the joint density at that point so it integrates to 1: divide by the marginal f−j(x−j)f_{-j}(x_{-j}), which is exactly the mass of the slice. Under independence every slice has the same shape fjf_j, so conditioning changes nothing.

Step 3 — Worked example. Let f(x,y)=x+yf(x, y) = x + y on the unit square [0,1]2[0,1]^2 (it integrates to 1). The marginals are fX(x)=x+12f_X(x) = x + \tfrac{1}{2} and fY(y)=y+12f_Y(y) = y + \tfrac{1}{2} — not proportional to the joint, so XX and YY are dependent. The conditional density of YY given X=xX = x is

fY∣X(y∣x)=x+yx+1/2,0<y<1,f_{Y \mid X}(y \mid x) = \frac{x + y}{x + 1/2}, \quad 0 < y < 1,

and the conditional mean is E[Y∣X=x]=x/2+1/3x+1/2E[Y \mid X = x] = \frac{x/2 + 1/3}{x + 1/2}, which increases in xx: larger XX shifts probability mass of YY upward.

Sources: Papoulis & Pillai ch. 6; Grinstead & Snell ch. 2, joint distributions.

Example problem

With f(x,y)=x+yf(x,y) = x + y on [0,1]2[0,1]^2, compute P(Y>1/2∣X=1/2)P(Y > 1/2 \mid X = 1/2).

Solution

Condition on X=1/2X = 1/2: the conditional density is fY∣X(y∣1/2)=1/2+y1=12+yf_{Y \mid X}(y \mid 1/2) = \frac{1/2 + y}{1} = \frac{1}{2} + y. Then

P(Y>1/2∣X=1/2)=∫1/21(12+y)dy=14+38=58.P(Y > 1/2 \mid X = 1/2) = \int_{1/2}^1 \left(\tfrac{1}{2} + y\right) dy = \tfrac{1}{4} + \tfrac{3}{8} = \tfrac{5}{8}.

Conditioning on a different value changes the answer: for X=1X = 1, the conditional density is (1+y)/(3/2)(1 + y)/(3/2), giving P(Y>1/2∣X=1)=∫1/211+y3/2 dy=79≠58P(Y > 1/2 \mid X = 1) = \int_{1/2}^1 \frac{1+y}{3/2}\, dy = \frac{7}{9} \neq \frac{5}{8}. The conditional density — not just one probability — is the full description of how the law of YY shifts as XX varies.

Copulas

A copula is the dependence structure of a multivariate distribution, separated from its marginals. Sklar’s theorem (1959): for any joint CDF FF with continuous marginals F1,…,FdF_1, \ldots, F_d, there is a unique copula C:[0,1]d→[0,1]C: [0,1]^d \to [0,1] (a CDF with uniform marginals) such that

F(x1,…,xd)=C(F1(x1),…,Fd(xd)).F(x_1, \ldots, x_d) = C\bigl(F_1(x_1), \ldots, F_d(x_d)\bigr).

Conversely, any copula combined with any marginals produces a valid multivariate distribution. The density of the copula part is c(u)=∂dC/∂u1⋯∂udc(u) = \partial^d C / \partial u_1 \cdots \partial u_d, and the joint density factors as f(x)=c(F1(x1),…,Fd(xd))∏ifi(xi)f(x) = c(F_1(x_1), \ldots, F_d(x_d)) \prod_i f_i(x_i).

Details

Step 1 — Why copulas exist. Apply the probability-integral transform Ui=Fi(Xi)U_i = F_i(X_i): each UiU_i is uniform on [0,1][0,1] (see the example problem below). The joint law of (U1,…,Ud)(U_1, \ldots, U_d) is the copula — it contains only the dependence, since the marginals are all uniform. Sklar’s theorem says this construction is reversible.

Step 2 — The catalog of standard copulas.

Step 3 — Worked example. Take exponential marginals F1,F2F_1, F_2 (rates 1 and 2) joined by the Clayton copula with θ=1\theta = 1. Sklar gives the joint CDF F(x,y)=(F1(x)−1+F2(y)−1−1)−1F(x,y) = \bigl(F_1(x)^{-1} + F_2(y)^{-1} - 1\bigr)^{-1}. The marginals are still exponential — the copula changed only the dependence. This modularity (marginals ⊕ copula = joint) is why copulas are the standard tool for building multivariate models with prescribed marginals.

Sources: Sklar (1959); R. B. Nelsen, An Introduction to Copulas (2006).

Example problem

Show that if FF is a continuous CDF and U=F(X)U = F(X), then U∼Unif(0,1)U \sim \mathrm{Unif}(0,1).

Solution

For u∈(0,1)u \in (0,1), since FF is continuous the intermediate value theorem gives a point tt with F(t)=uF(t) = u (if FF is flat, take the generalized inverse; the argument still holds). Then

P(U≤u)=P(F(X)≤u)=P(X≤t)=F(t)=u,P(U \leq u) = P(F(X) \leq u) = P(X \leq t) = F(t) = u,

so UU has the uniform CDF on [0,1][0,1]. This “probability-integral transform” is the bridge between any absolutely continuous law and the uniform law, and it is the mechanism behind Sklar’s theorem and behind inverse-CDF sampling.

## Common univariate densities

Five families cover most applied work. Their densities, supports, and roles:

DistributionDensity f(x)SupportTypical use
Uniform Unif(a, b)1/(b − a)[a, b]Complete ignorance on an interval; RNG output
Normal N(μ, σ²)(1/(σ√(2π))) · e−(x−μ)²/(2σ²)ℝMeasurement error; limit of sums (CLT)
Exponential Exp(λ)λ e−λx[0, ∞)Waiting times; memoryless lifetimes
Gamma Gamma(α, β)(βα/Γ(α)) · xα−1 e−βx(0, ∞)Sums of exponentials; waiting for the α-th event
Beta Beta(α, β)xα−1(1−x)β−1/B(α, β)(0, 1)Random proportions and probabilities; conjugate prior
Details

Step 1 — Read the shapes. The plot below shows the standard member of each family: normal N(0,1)\mathcal{N}(0,1), exponential Exp(1)\mathrm{Exp}(1), gamma Gamma(2,1)\mathrm{Gamma}(2,1), beta Beta(2,2)\mathrm{Beta}(2,2), uniform Unif(0,1)\mathrm{Unif}(0,1). Note how the gamma with α=2\alpha = 2 starts at zero (one factor of xx), while the exponential starts at its maximum; the beta is confined to (0,1)(0,1).

−2 0 2 4 6 N(0,1) Exp(1) Gamma(2,1) Beta(2,2) Unif(0,1) x

Step 2 — The families interlock. With the rate parameterization used above (density ∝xα−1e−βx\propto x^{\alpha-1} e^{-\beta x}):

Step 3 — Shared algebra. All five belong to the exponential family, which gives them shared algebraic properties (sufficient statistics, conjugate priors). See Distributional structure and operations for closure properties (convolution, mixtures, order statistics) and Statistical inference for the role of conjugacy.

Sources: Grinstead & Snell ch. 2, 5; Wikipedia: List of probability distributions.

Example problem

Verify from the table that Gamma(1,λ)\mathrm{Gamma}(1, \lambda) is the exponential distribution and that Beta(1,1)\mathrm{Beta}(1, 1) is the uniform distribution on [0,1][0,1].

Solution

Gamma with α=1\alpha = 1: the density is λ1Γ(1)x0e−λx=λe−λx\frac{\lambda^1}{\Gamma(1)} x^{0} e^{-\lambda x} = \lambda e^{-\lambda x} on (0,∞)(0,\infty), since Γ(1)=1\Gamma(1) = 1 — exactly the exponential density.

Beta with α=β=1\alpha = \beta = 1: the density is x0(1−x)0B(1,1)=1\frac{x^0 (1-x)^0}{B(1,1)} = 1 on (0,1)(0,1), since B(1,1)=Γ(1)Γ(1)Γ(2)=1B(1,1) = \frac{\Gamma(1)\Gamma(1)}{\Gamma(2)} = 1 — exactly the uniform density on [0,1][0,1].

Both checks illustrate the same habit: identify a density by matching it against a known parameterized family, then read off every property (mean, variance, moments) from the family instead of recomputing.

Convergence in distribution

A sequence of distributions X1,X2,…X_1, X_2, \ldots converges in distribution to XX, written Xn⇒XX_n \Rightarrow X, iff

Fn(x)→F(x)at every continuity point x of F.F_n(x) \to F(x) \quad \text{at every continuity point } x \text{ of } F.

This is the natural mode of convergence for absolutely continuous laws, and the bridge to the limit theorems: the central limit theorem states that standardized sums converge in distribution to the normal.

Details

Step 1 — Why CDFs, not densities. Convergence of densities is too strong a requirement: an atomic distribution can be a limit of absolutely continuous ones (a narrow spike of width 1/n1/n and height nn converges in distribution to a point mass), and densities may fail to converge even when distributions do. Convergence at continuity points of FF is exactly the right weakening.

Step 2 — When densities do converge, everything follows (Scheffé’s lemma). If fn→ff_n \to f almost everywhere and each fnf_n is a density with ∫fn=∫f=1\int f_n = \int f = 1, then ∫∣fn−f∣→0\int |f_n - f| \to 0, and consequently sup⁡x∣Fn(x)−F(x)∣→0\sup_x |F_n(x) - F(x)| \to 0: convergence is uniform over all intervals at once. This is why pointwise density convergence is such a useful certificate.

Step 3 — The CLT as density convergence. If X1,X2,…X_1, X_2, \ldots are i.i.d. with mean 0 and variance 1, the density of the normalized sum Sn=(X1+⋯+Xn)/nS_n = (X_1 + \cdots + X_n)/\sqrt{n} converges pointwise to the standard normal density ϕ\phi (the local central limit theorem, under mild conditions). The picture below shows the same phenomenon in a related family: the Student-tt density with ν\nu degrees of freedom converges to N(0,1)\mathcal{N}(0,1) as ν→∞\nu \to \infty — heavy tails drain into the center.

−4 −2 0 2 4 t, ν = 1 t, ν = 3 N(0,1) x

Sources: Wikipedia: Convergence of random variables; Limit theorems.

Example problem

The Student-tt density with ν\nu degrees of freedom converges pointwise to the standard normal density ϕ\phi as ν→∞\nu \to \infty. Use Scheffé’s lemma to conclude something about the CDFs.

Solution

Each tνt_\nu density integrates to 1, and so does ϕ\phi. Pointwise convergence plus equal total mass is exactly the hypothesis of Scheffé’s lemma, so ∫∣fν−ϕ∣→0\int |f_\nu - \phi| \to 0 in L1L^1. For any interval (a,b](a, b],

∣Fν(b)−Fν(a)−(Φ(b)−Φ(a))∣≤∫ab∣fν−ϕ∣≤∫∣fν−ϕ∣→0,|F_\nu(b) - F_\nu(a) - (\Phi(b) - \Phi(a))| \leq \int_a^b |f_\nu - \phi| \leq \int |f_\nu - \phi| \to 0,

uniformly in a,ba, b: the CDFs converge uniformly, sup⁡x∣Fν(x)−Φ(x)∣→0\sup_x |F_\nu(x) - \Phi(x)| \to 0. This is much stronger than the pointwise-at-continuity-points convergence in the definition, and it is what makes the normal approximation reliable over whole ranges at once.

Example problem

Problem. Let X∼N(0,1)X \sim \mathcal{N}(0, 1). Find the density of Y=X2Y = X^2 and compute E[Y]E[Y].

Solution

The map g(x)=x2g(x) = x^2 is not injective on R\mathbb{R}. For y>0y > 0, the preimages are ±y\pm\sqrt{y} with ∣g′(x)∣=2∣x∣=2y|g'(x)| = 2|x| = 2\sqrt{y}. Applying the transformation formula:

fY(y)=fX(y)+fX(−y)2y=2⋅12πe−y/22y=12π y1/2e−y/2,y>0.f_Y(y) = \frac{f_X(\sqrt{y}) + f_X(-\sqrt{y})}{2\sqrt{y}} = \frac{2 \cdot \frac{1}{\sqrt{2\pi}} e^{-y/2}}{2\sqrt{y}} = \frac{1}{\sqrt{2\pi}\, y^{1/2}} e^{-y/2}, \quad y > 0.

This is a Gamma(1/2, 1/2)\mathrm{Gamma}(1/2,\, 1/2) distribution — the chi-squared distribution with 1 degree of freedom (rate β=1/2\beta = 1/2, matching the density βαΓ(α)yα−1e−βy\frac{\beta^\alpha}{\Gamma(\alpha)} y^{\alpha-1} e^{-\beta y} with α=1/2\alpha = 1/2).

E[Y]=E[X2]=Var(X)+(E[X])2=1+0=1E[Y] = E[X^2] = \mathrm{Var}(X) + (E[X])^2 = 1 + 0 = 1, which agrees with the gamma mean α/β=(1/2)/(1/2)=1\alpha/\beta = (1/2)/(1/2) = 1.