Independence of Discrete Random Variables

Define what it means for two discrete random variables to be independent, check independence from a joint pmf table, and use independence to compute joint probabilities from marginal information.

Step 1 of 119%

Tutorial

Introduction

Two discrete random variables XX and YY are independent if their joint pmf factors as the product of their marginal pmfs:

P(X=x,Y=y)  =  P(X=x)P(Y=y)P(X=x,\, Y=y) \;=\; P(X=x)\cdot P(Y=y)

for every pair (x,y)(x,y) in the support of (X,Y).(X,Y).

Intuitively, knowing the value of one variable gives no information about the other. We write XYX\perp Y to denote that XX and YY are independent.

This condition must hold at every cell of the joint pmf table -- if even a single entry fails to equal the product of the corresponding marginals, then XX and YY are not independent.

To check independence from a joint pmf table:

  1. Sum each row to obtain the marginal pmf of X,X, and each column to obtain the marginal pmf of Y.Y.
  2. For each cell, verify that P(X=x,Y=y)=P(X=x)P(Y=y).P(X=x,Y=y)=P(X=x)\cdot P(Y=y).
  3. If every cell matches, XY.X\perp Y. As soon as one cell fails, XX and YY are not independent.

For example, consider the joint pmf

Y=0Y=1X=00.120.18X=10.280.42\begin{array}{c|cc} & Y{=}0 & Y{=}1 \\ \hline X{=}0 & 0.12 & 0.18 \\ X{=}1 & 0.28 & 0.42 \end{array}

The marginals are P(X=0)=0.30,P(X{=}0)=0.30, P(X=1)=0.70,P(X{=}1)=0.70, P(Y=0)=0.40,P(Y{=}0)=0.40, and P(Y=1)=0.60.P(Y{=}1)=0.60. Every cell equals the product of the corresponding marginals (for instance, 0.300.40=0.120.30\cdot 0.40=0.12), so XX and YY are independent.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle