Discrete Random Variables

Define discrete random variables, calculate expected value, variance, and standard deviation.

🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson →

Discrete Random Variables

What Is a Random Variable?

A random variable XX assigns a numerical value to each outcome in a sample space.

A discrete random variable takes a countable number of values (often integers).

Probability Distribution

A probability distribution lists all possible values and their probabilities:

| xix_i | x1x_1 | x2x_2 | \cdots | xkx_k | |--------|--------|--------|-----------|--------| | P(X=xi)P(X = x_i) | p1p_1 | p2p_2 | \cdots | pkp_k |

Requirements:

  • 0pi10 \leq p_i \leq 1 for all ii
  • pi=1\sum p_i = 1

Expected Value (Mean)

μX=E(X)=xiP(X=xi)\mu_X = E(X) = \sum x_i \cdot P(X = x_i)

The expected value is the long-run average — what you'd expect on average over many repetitions.

Example: Roll a fair die. E(X)=1(16)+2(16)+3(16)+4(16)+5(16)+6(16)=3.5E(X) = 1(\frac{1}{6}) + 2(\frac{1}{6}) + 3(\frac{1}{6}) + 4(\frac{1}{6}) + 5(\frac{1}{6}) + 6(\frac{1}{6}) = 3.5

Variance and Standard Deviation

σX2=Var(X)=(xiμX)2P(X=xi)\sigma_X^2 = \text{Var}(X) = \sum (x_i - \mu_X)^2 \cdot P(X = x_i)

σX=SD(X)=Var(X)\sigma_X = SD(X) = \sqrt{\text{Var}(X)}

Rules for Transformations

If Y=a+bXY = a + bX:

  • E(Y)=a+bE(X)E(Y) = a + b \cdot E(X)
  • Var(Y)=b2Var(X)\text{Var}(Y) = b^2 \cdot \text{Var}(X)
  • SD(Y)=bSD(X)SD(Y) = |b| \cdot SD(X)

Rules for Combining Random Variables

If XX and YY are independent:

  • E(X+Y)=E(X)+E(Y)E(X + Y) = E(X) + E(Y) (always true, even if not independent)
  • E(XY)=E(X)E(Y)E(X - Y) = E(X) - E(Y) (always true)
  • Var(X+Y)=Var(X)+Var(Y)\text{Var}(X + Y) = \text{Var}(X) + \text{Var}(Y) (only if independent)
  • Var(XY)=Var(X)+Var(Y)\text{Var}(X - Y) = \text{Var}(X) + \text{Var}(Y) (only if independent — ADD variances!)

Key Insight: Variances always add, even when subtracting random variables. This is because the variability of a difference is just as large as the variability of a sum.

AP Tip: The most common mistake is subtracting variances when computing Var(XY)\text{Var}(X - Y). Always ADD variances!

📚 Practice Problems

No example problems available yet.