Course contentsShow
← Mathematics
Lesson 2940 of 3,12158. Joint and Limit BehaviorFree lesson

Checking Independence for Discrete Random Variables

Practice verifying independence by checking if p(x,y) = p_X(x)p_Y(y) for all values in a joint probability table.

Checking Independence for Discrete Random Variables

What you'll learn: You'll learn how to verify whether two discrete random variables are independent by testing if their joint probability equals the product of their marginal probabilities.

The Core Idea

Two discrete random variables X and Y are independent if knowing the value of one tells you nothing about the other. Mathematically, this means:

p(x,y) = p_X(x) · p_Y(y) for every pair (x,y)

Think of it like checking if two friends make plans independently. If Sarah going to the movies (70% chance) and Alex ordering pizza (40% chance) are independent events, then both happening together should occur 0.70 × 0.40 = 0.28 = 28% of the time. If the actual probability differs, their decisions aren't independent!

How to Check Independence

Step 1: Extract the marginal distributions

  • Sum across rows to get p_X(x)
  • Sum down columns to get p_Y(y)

Step 2: For each cell in the joint probability table, multiply the corresponding marginals: p_X(x) · p_Y(y)

Step 3: Compare this product to the actual joint probability p(x,y)

Step 4: If they match for all cells, the variables are independent. If even one cell fails the test, they're dependent.

Example

Suppose you have:

  • p(1,1) = 0.12, p_X(1) = 0.3, p_Y(1) = 0.4
  • Check: 0.3 × 0.4 = 0.12 ✓

You must verify this for every (x,y) pair. One match isn't enough—all must satisfy the equality.

Why This Works

Independence means joint behavior factors completely into separate behaviors. If the variables "talk to each other," their joint probabilities won't factor neatly into marginal products.

Key Takeaway: Two discrete random variables are independent if and only if p(x,y) = p_X(x)p_Y(y) holds for every single value pair in their joint distribution—no exceptions allowed.