Skip to content

Marginal Probability Density Function

Definition

For a jointly continuous pair (X,Y)(X,Y) with joint density fX,Yf_{X,Y}, the marginal PDF of XX is

fX(x)=∫fX,Y(x,y) dy,\begin{aligned} f_X(x)=\int f_{X,Y}(x,y)\,\mathrm{d}y, \end{aligned}

where the integral runs over the values allowed for the other coordinate; the density is zero outside the joint support.


Interpretation

The marginal density of XX is the density of XX on its own, ignoring YY. Integrating out the other coordinate of the joint density collapses the probability in the plane onto the xx-axis.

Two panels: the triangle with joint density 2 and a vertical and a horizontal slice, and the resulting marginal densities 2(1 - x) for X and 2y for Y.

For the illustrated triangular density, the red vertical slice at xx runs from y=xy=x to y=1y=1 and has length 1−x1-x, so fX(x)=∫x12 dy=2(1−x)f_X(x)=\int_x^1 2\,\mathrm{d}y=2(1-x) for 0<x<10<x<1. The green horizontal slice at yy has length yy, so fY(y)=∫0y2 dx=2yf_Y(y)=\int_0^y2\,\mathrm{d}x=2y for 0<y<10<y<1.

The value fX(x) Δxf_X(x)\,\Delta x approximates the probability of a thin vertical strip of width Δx\Delta x at xx, which is the volume under the joint density over that strip. When the support is not a rectangle, the limits of the inner integral depend on xx, as in the triangle. This is the continuous version of adding up a row of a joint PMF table to get a marginal PMF.

Marginal densities are the denominator of a conditional density, and the continuous law of total probability rewrites the same integral with conditional densities. The marginals do not determine the joint density: on the unit square, both f(x,y)=1f(x,y)=1 and f(x,y)=1+(1−2x)(1−2y)f(x,y)=1+(1-2x)(1-2y) have Unif⁡(0,1)\operatorname{Unif}(0,1) marginals. The joint density is the product of the marginals exactly in the independent case.

Ignoring the support is the usual error: integrating 22 over y∈(0,1)y\in(0,1) gives the constant 22, which integrates to 22 in xx, so it cannot be a density.


Key Results

  • fY(y)=∫RfX,Y(x,y) dxf_Y(y)=\int_{\mathbb{R}}f_{X,Y}(x,y)\,\mathrm{d}x.
  • Each marginal integrates to one, since the joint density does.

Examples

  • If fX,Y(x,y)=2f_{X,Y}(x,y)=2 on 0<x<y<10<x<y<1, then fX(x)=2(1−x)f_X(x)=2(1-x) for 0<x<10<x<1.
  • For the same triangle, fY(y)=∫0y2 dx=2yf_Y(y)=\int_0^y2\,\mathrm{d}x=2y for 0<y<10<y<1.

Prerequisites

Sources

Aliases: marginal PDF, marginal density, marginal density function Symbols: delta, element of, integral, real numbers

Last updated: 20 October 2026 03:02