Skip to content
BIASED

Joint distributions and independence

Block 1 of 8~2 min

Two variables at once

The topic Expectation and variance summarized one random variable with a few numbers. Linearity already let us add expectations, E[X+Y]=E[X]+E[Y]\mathbb E[X + Y] = \mathbb E[X] + \mathbb E[Y], without asking how XX and YY are related. Variance is less forgiving. Whether two errors tend to strike together decides how much their sum varies. To see that, we need to describe several variables at once.

Roll two fair dice. Let XX be the first die and YY the larger of the two. The joint distribution of (X,Y)(X, Y) gives the probability of every pair of values. For discrete variables it is the joint pmf

pX,Y(x,y)=P(X=x, Y=y),p_{X,Y}(x, y) = P(X = x,\ Y = y),

a table with one cell per pair of values. The cells are nonnegative and sum to 1.

Each of the 36 equally likely rolls (a,b)(a, b) lands in the cell (a,max⁡(a,b))(a, \max(a, b)). A cell (x,y)(x, y) with y>xy > x gets one roll, the one where the second die shows yy, so it holds 1/361/36. A diagonal cell (x,x)(x, x) gets every roll where the second die shows at most xx, so it holds x/36x/36. A cell with y<xy < x gets nothing.

For continuous variables the table becomes a joint density pX,Y(x,y)≥0p_{X,Y}(x, y) \ge 0 on the plane, with total volume 1 under its surface. Probabilities are volumes over a region AA:

P((X,Y)∈A)=∬ApX,Y(x,y) dx dy.P\big((X, Y) \in A\big) = \iint_A p_{X,Y}(x, y)\, dx\, dy.

A double integral is computed one variable at a time: integrate over yy with xx fixed, then over xx. As in one dimension, a density is not a probability and can exceed 1. A point uniform in the square [0,0.5]2[0, 0.5]^2 has density 4 there, since the square's area is 1/41/4.

Answers are saved on the server and tied to this browser until you sign in.