mindstair

Home / Courses / Probability / Unit 8

Probability Unit 8: Joint Distributions and Independence

Joint distributions describe two or more random variables together. You will find marginals and conditionals, test independence, and compute probabilities over regions, which is where many exam problems become double integrals.

Covers: Joint PMFs and tables, Joint densities and probabilities over regions, Marginal distributions, Conditional distributions, Independence of random variables, Sums and convolution, Minimum, maximum and order statistics

Study guide

For discrete X and Y, the joint PMF p(x, y) = P(X = x, Y = y) is often given as a table. The marginal of X is found by summing across y, p_X(x) = Σ_y p(x, y), and the conditional PMF of Y given X = x is p(x, y)/p_X(x). For continuous variables a joint density f(x, y) plays the same role: it is nonnegative, has total volume 1, and P((X, Y) ∈ A) = ∬_A f(x, y) dA. Marginals come from integrating out the other variable, f_X(x) = ∫ f(x, y) dy, and conditionals from dividing, f(y | x) = f(x, y)/f_X(x).

Most errors in this unit come from integration limits. Always sketch the support of the joint density and the region of the event. If the support is a triangle such as 0 < y < x < 1, the inner limits depend on the outer variable: for the marginal of Y, x runs from y to 1. A support that is not a rectangle means X and Y are dependent, because knowing one restricts the range of the other. When the density is constant on a region, probabilities are ratios of areas, which can often be found without integrating.

X and Y are independent when the joint distribution factors: p(x, y) = p_X(x)p_Y(y), or f(x, y) = f_X(x)f_Y(y), for every pair. A quick test for densities: the support must be a rectangle and the formula must split into a function of x times a function of y, as in 6e^(−2x − 3y) = 2e^(−2x) × 3e^(−3y). One table cell that fails the product rule proves dependence. Under independence, probabilities of 'X in A and Y in B' events multiply, and so do survival functions.

Functions of several variables are found the same way as in one dimension. For a sum of independent variables, the density is the convolution f_Z(z) = ∫ f_X(x) f_Y(z − x) dx; two uniforms on [0, 1] give a triangular density, and two exponentials give a gamma. For the maximum and minimum of independent variables, P(max ≤ t) = Π Fᵢ(t) and P(min > t) = Π Sᵢ(t). The k-th smallest of n values, an order statistic, is at most t exactly when at least k of the values are at most t, which is a binomial count.

Key ideas

Formulas and rules

Marginal: p_X(x) = Σ_y p(x, y); f_X(x) = ∫ f(x, y) dy
Conditional: f(y | x) = f(x, y)/f_X(x)
Independence: f(x, y) = f_X(x) f_Y(y) for all x, y
P((X, Y) ∈ A) = ∬_A f(x, y) dA
Convolution: f_{X+Y}(z) = ∫ f_X(x) f_Y(z − x) dx
Independent max/min: F_max(t) = Π Fᵢ(t); S_min(t) = Π Sᵢ(t)

Common mistakes

Before the test, make sure you can

Words to know

Joint PMF
p(x, y) = P(X = x, Y = y) for discrete X and Y.
Joint density
f(x, y) ≥ 0 with total volume 1; probabilities are volumes over regions.
Marginal distribution
The distribution of one variable alone, found by summing or integrating out the others.
Conditional distribution
The distribution of Y given X = x: f(x, y)/f_X(x).
Independent random variables
Variables whose joint distribution equals the product of their marginals.
Support
The region where the joint density is positive.
Convolution
The integral ∫ f_X(x) f_Y(z − x) dx giving the density of an independent sum.
Order statistics
The sorted values X₍₁₎ ≤ X₍₂₎ ≤ ··· ≤ X₍ₙ₎ of a sample.
Distribution of the maximum
For independent variables, P(max ≤ t) = Π P(Xᵢ ≤ t).
Distribution of the minimum
For independent variables, P(min > t) = Π P(Xᵢ > t).
Triangular distribution
The density of the sum of two independent uniform(0, 1) variables, peaking at 1.
Bivariate uniform
A joint density constant on a region, so probabilities are ratios of areas.
Factorization test
A joint density on a rectangle that splits as g(x)h(y) means independence.

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

X and Y have joint PMF p(x, y). How is the marginal PMF of X found?

  1. p_X(x) = Σ over y of p(x, y)
  2. p_X(x) = max over y of p(x, y)
  3. p_X(x) = p(x, y)/p_Y(y)
  4. p_X(x) = Σ over x of p(x, y)
Show the answer and steps

Answer: A) p_X(x) = Σ over y of p(x, y)

  1. P(X = x) is the total probability of all pairs with first coordinate x.
  2. Sum the joint PMF over every value of y.
  3. Dividing by p_Y(y) gives a conditional PMF, not a marginal.
Question 2 (level 1)

Continuous random variables X and Y are independent if and only if:

  1. The support of f is a triangle
  2. f(x, y) = f_X(x) f_Y(y) for all x and y
  3. f(x, y) = f_X(x) + f_Y(y) for all x and y
  4. E[XY] = 0
Show the answer and steps

Answer: B) f(x, y) = f_X(x) f_Y(y) for all x and y

  1. Independence means the joint density factors into the marginals.
  2. Equivalently, every event about X is independent of every event about Y.
  3. A triangular support makes the variables dependent, since the range of Y depends on X.
Question 3 (level 3)

f(x, y) = x + y on the unit square. Find P(X + Y ≤ 1).

  1. 2/3
  2. 1/6
  3. 1/2
  4. 1/3
Show the answer and steps

Answer: D) 1/3

  1. P = ∫₀¹ ∫₀^(1 − x) (x + y) dy dx.
  2. Inner integral: x(1 − x) + (1 − x)²/2.
  3. Integrating gives 1/6 + 1/6 = 1/3; ½ is the area of the region, which ignores the density.