Multiple Random Variables
Joint Distribution
When two or more random variables constitute the coordinates of a random vector, their joint distribution is often of interest. For a random vector \((X, Y)\), the joint distribution function is defined via the probability of the event \(\left\{ X \leq x, Y \leq y \right\}\):
Joint Distribution Properties
The last two are the marginal CDFs \(F_X\) and \(F_Y\)
Jointly Distributed Discrete Random Variables
For a discrete bivariate random variable, the PMF is:
while for marginal random variables \(X\) and \(Y\), the PMFs are:
The conditional distribution of \(X\) given \(Y = y\) is defined as:
and similarly, the conditional distribution for \(Y\) given \(X = x\) is:
When \(X\) and \(Y\) are independent, the joint probability is equal to the product of the marginal probabilities:
For two independent random variables \(X\) and \(Y\):
The covariance of two random variables \(X\) and \(Y\) is defined as:
For a discrete random vector \((X, Y)\):
and the covariance is expressed as:
Covariance Properties
- \(C_{XX} = \mathbb{V}\text{ar}(X)\)
- \(C_{XY} = C_{YX}\)
- \(C_{aX + bY, Z} = a C_{XZ} + b C_{YZ}\)
The correlation between random variables \(X\) and \(Y\) is the covariance normalized by the standard deviations:
Joint Distribution of Two Continuous Random Variables
Two random variables \(X\) and \(Y\) are jointly distributed if there exists a non-negative function \(f_{XY}(x, y)\) such that for any two-dimensional domain \(D\):
When such a two-dimensional density \(f_{XY}(x, y)\) exists, it is a repeated partial derivative of the cumulative distribution function \(F_{XY}(x, y) = \mathbb{P}(X \leq x, Y \leq y)\):
The marginal densities for \(X\) and \(Y\) are:
The conditional distributions of \(X\) when \(Y = y\) and of \(Y\) when \(X = x\) are:
If \(X\) and \(Y\) are independent:
The covariance and correlation for \(X\) and \(Y\) are:
where \(\mathbb{E}XY = \int_{\mathbb{R}^2} x y f(x, y) dx dy\).
Iterated Expectation and Total Variance Rules
Conditional expectation of \(Y\) given \(\left\{ X = x \right\}\) is simply the expectation with respect to the conditional distribution:
\(\mathbb{E}Y|X\) is a random variable for which: