Definition
Random variables X and Y are independent if:
F(x,y)=FX(x)⋅FY(y)for all x,y
Equivalently (for the usual cases):
Discrete:
p(x,y)=pX(x)⋅pY(y)for all x,y
Continuous:
f(x,y)=fX(x)⋅fY(y)for all x,y
Intuition
X and Y are independent if knowing X gives no information about Y (and vice versa). The joint distribution factors into the product of marginals.
Checking Independence
Method 1: Factor Joint into Marginals
Compute pX(x) and pY(y), then verify p(x,y)=pX(x)pY(y) everywhere.
Example:
p(x,y)=e−x−y for x,y>0.
pX(x)=e−x (marginal)
pY(y)=e−y (marginal)
pX(x)pY(y)=e−xe−y=e−x−y=p(x,y)
Independent.
Method 2: Check if Support is Rectangular
If the support of (X,Y) is not a rectangle (or hyper-rectangle for n>2), then X and Y cannot be independent.
Example:
f(x,y)=6xy on 0≤x≤1, 0≤y≤x.
The support is triangular, not rectangular, so X and Y are NOT independent.
Independence Implies
If X and Y are independent:
1. Joint Probability Factors
P(X∈A,Y∈B)=P(X∈A)⋅P(Y∈B)
2. Expectation of Product
E[XY]=E[X]E[Y]
Proof:
E[XY]=∑x∑yxy⋅p(x,y)=∑x∑yxy⋅pX(x)pY(y)=(∑xxpX(x))(∑yypY(y))=E[X]E[Y]
3. Variance of Sum
Var(X+Y)=Var(X)+Var(Y)
This follows from E[XY]=E[X]E[Y] for independent variables.
4. Functions of Independent Variables
If X and Y are independent, then g(X) and h(Y) are also independent for any functions g,h.
Independence Does NOT Imply
Common misconceptions:
- Zero correlation = independence: Independent implies zero correlation, but the converse is false
- Uncorrelated = independent: Zero covariance doesn’t guarantee independence
Counterexample
Let X be uniform on {−1,0,1} and Y=X2.
Cov(X,Y)=E[X⋅X2]−E[X]E[X2]=E[X3]−0=0
But X and Y are clearly not independent: knowing X completely determines Y.
Estimates from Data
If we observe (Xi,Yi) pairs, we estimate:
- Marginal of X: distribution of Xi values alone
- Marginal of Y: distribution of Yi values alone
- Independence: check if joint empirical distribution factorises
Mutual Independence
X1,X2,…,Xn are mutually independent if:
F(x1,…,xn)=FX1(x1)⋯FXn(xn)
For all subsets, the joint factors into the product of marginals.
Pairwise independence does NOT imply mutual independence.
Summary
| Condition | Statement |
|---|
| Independence | Joint = product of marginals |
| Implies | E[XY]=E[X]E[Y] |
| Implies | Var(X+Y)=Var(X)+Var(Y) |
| Zero correlation | Does NOT imply independence |