Continuous Random Variables
View .md

Joint PDFs and Multiple Random Variables

Joint PDF

For two continuous random variables XX and YY, the joint PDF fX,Y(x,y)f_{X,Y}(x, y) describes their combined distribution:

P((X,Y)∈A)=∬AfX,Y(x,y) dx dyP((X, Y) \in A) = \iint_A f_{X,Y}(x, y) \, dx \, dy

Properties

  • fX,Y(x,y)≥0f_{X,Y}(x, y) \geq 0 for all x,yx, y
  • ∫−∞∞∫−∞∞fX,Y(x,y) dx dy=1\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{X,Y}(x, y) \, dx \, dy = 1

Marginal PDF

From the joint PDF, find the marginal PDF of each variable:

fX(x)=∫−∞∞fX,Y(x,y) dyf_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x, y) \, dy

fY(y)=∫−∞∞fX,Y(x,y) dxf_Y(y) = \int_{-\infty}^{\infty} f_{X,Y}(x, y) \, dx

We “integrate out” the other variable.


Conditional PDF

The conditional PDF of XX given Y=yY = y:

fX∣Y(x∣y)=fX,Y(x,y)fY(y)f_{X|Y}(x | y) = \frac{f_{X,Y}(x, y)}{f_Y(y)}

Interpretation

This describes the distribution of XX when we know Y=yY = y. It’s a “slice” of the joint PDF, normalized.


Independence

XX and YY are independent if and only if:

fX,Y(x,y)=fX(x)⋅fY(y)for all x,yf_{X,Y}(x, y) = f_X(x) \cdot f_Y(y) \quad \text{for all } x, y

Equivalently: fX∣Y(x∣y)=fX(x)f_{X|Y}(x|y) = f_X(x) (knowing YY doesn’t change the distribution of XX).


Expected Values

Joint Expectation

For a function g(X,Y)g(X, Y):

E[g(X,Y)]=∫−∞∞∫−∞∞g(x,y)⋅fX,Y(x,y) dx dyE[g(X, Y)] = \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} g(x, y) \cdot f_{X,Y}(x, y) \, dx \, dy

Linearity

E[X+Y]=E[X]+E[Y]E[X + Y] = E[X] + E[Y]

Always holds, even for dependent variables.

Product (Independent Case)

If XX and YY are independent:

E[XY]=E[X]⋅E[Y]E[XY] = E[X] \cdot E[Y]


Derived Distributions

If Y=g(X)Y = g(X), how do we find the PDF of YY?

Method 1: CDF Approach

  1. Find FY(y)=P(Y≤y)=P(g(X)≤y)F_Y(y) = P(Y \leq y) = P(g(X) \leq y)
  2. Differentiate: fY(y)=ddyFY(y)f_Y(y) = \frac{d}{dy} F_Y(y)

Example: Y=aX+bY = aX + b

If XX has PDF fX(x)f_X(x) and Y=aX+bY = aX + b with a>0a > 0:

fY(y)=1afX(y−ba)f_Y(y) = \frac{1}{a} f_X\left(\frac{y - b}{a}\right)


Convolution

For Z=X+YZ = X + Y where XX and YY are independent:

fZ(z)=∫−∞∞fX(x)fY(z−x) dxf_Z(z) = \int_{-\infty}^{\infty} f_X(x) f_Y(z - x) \, dx

This is the convolution of the two PDFs.

Example: Sum of Two Uniforms

If X,Y∼Uniform(0,1)X, Y \sim \text{Uniform}(0, 1) and independent, then Z=X+YZ = X + Y has a triangular PDF on [0,2][0, 2].


Key Terms

Joint PDFf(x,y) — the probability density of two continuous random variables; P((X,Y)∈R) = ∬_R f(x,y) dx dy.
Marginal PDFfX(x)=∫f(x,y) dyf_X(x) = \int f(x,y) \, dy — the density of one variable obtained by integrating out the other.
Conditional PDFf(x|y) = f(x,y) / f_Y(y) — the density of X given that Y=y.
Independent Continuous RVsTwo continuous random variables are independent if f(x,y) = f_X(x)·f_Y(y) for all x, y.
ConvolutionThe PDF of X+YX+Y (independent) is the convolution fX∗fYf_X * f_Y: ∫fX(t)⋅fY(x−t) dt\int f_X(t) \cdot f_Y(x-t) \, dt.