Multivariate Distributions
Independence and Functions of Two Random Variables
A multivariate distribution describes how two or more random variables behave together. Two exam-relevant skills built on a joint distribution are (1) deciding whether the variables are independent and (2) finding the distribution of a function of two random variables, such as their sum.
Independence
X and Y are independent if and only if
holds almost everywhere, at every (x,y) except possibly on a set of zero area.
The qualifier is not a technicality: a continuous density is pinned down only up to changes on such a set, so redefining fX,Y along a single line alters no probability and cannot create or destroy independence.
Requiring the identity at literally every point would therefore be a stricter demand than the distribution itself makes.
For discrete variables, independence requires equality at every pair: a zero-mass joint pair can still violate the product rule when both marginals are positive, while an individual positive-mass pair cannot be ignored.
Unlike a zero-area set for a continuous density, no individual pair is discarded as a null-set exception. There independence means P(X=x,Y=y)=P(X=x)P(Y=y) at every pair.
Reading the condition off the support, the set of (x,y) carrying nonzero probability/density, gives a fast structural test.
A product fX(x)fY(y) is nonzero exactly where both factors are, so independence forces the support to factor as a Cartesian product SX×SY of the two marginal supports, again up to a set of zero area.
When SX and SY are both intervals that product is a rectangle a<x<b, c<y<d, which is the familiar picture, but the criterion is the factorization, not the rectangle.
If each marginal is positive on (0,1)∪(2,3), then independent X and Y are supported on four disjoint unit squares: a Cartesian product, and nothing like a single interval-defined rectangle. What the test rules out is a support that cannot be split at all.
A triangle or a disk, where the range of x moves with y, is not any SX×SY, so those variables cannot be independent even if f(x,y) algebraically looks like a product.
Worked Example
Let f(x,y)=cxy on the triangle 0<x<y<2. Normalizing:
Even though cxy is 'separable' in x and y, X and Y are not independent because knowing Y=y restricts X to (0,y). Both marginals are positive on the whole of (0,2), so a product support would have to be the square (0,2)×(0,2); the triangle is only half of it.
Functions of Two Random Variables
To find the distribution of Z=g(X,Y) (e.g. Z=X+Y, max(X,Y)), integrate the joint density over the region where g(x,y)≤z:
Sketching the boundary curve g(x,y)=z on top of the support (as with the dashed line in the figure) makes the limits of integration much easier to set up.
The shaded triangle is the support 0<x<y<1 of a joint density f(x,y)=kxy; its slanted edge is the line y=x. The red dashed line is x+y=1, drawn for reference when integrating over a region defined by a function of X and Y; it meets the edge y=x at (0.5,0.5). Axis scales are equal, with one unit spanning the same length on both axes.
Support of the joint density and the reference line x + y = 1
The figure shows the triangular support 0<x<y<1 of a joint density of the form f(x,y)=kxy on that triangle (zero elsewhere). Although kxy looks like a product of a function of x and a function of y, are X and Y independent?
The shaded triangle is the support 0<x<y<1 of a joint density f(x,y)=kxy; its slanted edge is the line y=x. The red dashed line is x+y=1, drawn for reference when integrating over a region defined by a function of X and Y; it meets the edge y=x at (0.5,0.5). Axis scales are equal, with one unit spanning the same length on both axes.
Support of the joint density and the reference line x + y = 1
The joint probability mass function of discrete random variables X (rows) and Y (columns) is given below.
Y=1 | Y=2 | |
|---|---|---|
X=0 | 0.10 | 0.20 |
X=1 | 0.15 | 0.30 |
X=2 | 0.05 | 0.20 |
Are X and Y independent?