Skip to content

Mean and Standard Deviation of a Discrete Random Variable

Compute and interpret the expected value, variance, and standard deviation of a discrete random variable from its probability distribution.

Written and reviewed by the Study Mondo Education TeamLast updated
🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

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

Start Interactive Lesson →

📊 Mean and Standard Deviation of a Discrete Random Variable

When working with a discrete random variable XX, the expected value (or mean) μ=E(X)\mu = E(X) and the standard deviation σ\sigma summarize the center and spread of the probability distribution. These measures are essential for understanding long-run behavior and making predictions about random outcomes.

The Expected Value (Mean)

The expected value of a discrete random variable XX is the long-run average value. It is computed as:

E(X)=μ=∑ixi⋅P(X=xi)E(X) = \mu = \sum_{i} x_i \cdot P(X = x_i)

This is a weighted average where each value xix_i is weighted by its probability. If you repeat the random experiment many times, the average of observed values approaches E(X)E(X).

Variance and Standard Deviation

Variance measures the average squared deviation from the mean:

Var(X)=σ2=E[(X−μ)2]=E(X2)−[E(X)]2\text{Var}(X) = \sigma^2 = E[(X - \mu)^2] = E(X^2) - [E(X)]^2

The second formula, E(X2)−[E(X)]2E(X^2) - [E(X)]^2, is often easier to compute:

  • Compute E(X2)=∑xi2⋅P(X=xi)E(X^2) = \sum x_i^2 \cdot P(X = x_i)
  • Subtract [E(X)]2[E(X)]^2

Standard Deviation is the square root of variance:

σ=Var(X)\sigma = \sqrt{\text{Var}(X)}

Standard deviation measures spread in the same units as XX, making it more interpretable than variance.

Key Interpretations

  • Small σ\sigma: Values cluster near the mean; outcomes are predictable.
  • Large σ\sigma: Values spread far from the mean; outcomes are highly variable.
  • Rule of Thumb: In many distributions, roughly 68% of values fall within μ±σ\mu \pm \sigma.

Worked Example: Discrete Probability Distribution

Consider a discrete random variable XX representing the payout (in dollars) from a lottery ticket with the following distribution:

XXP(X)P(X)
00.90
50.07
200.02
1000.01

Step 1: Calculate E(X)E(X)

E(X)=0(0.90)+5(0.07)+20(0.02)+100(0.01)=0+0.35+0.40+1.00=1.75E(X) = 0(0.90) + 5(0.07) + 20(0.02) + 100(0.01) = 0 + 0.35 + 0.40 + 1.00 = 1.75

So the expected payout is $1.75 per ticket.

Step 2: Calculate E(X2)E(X^2)

E(X2)=02(0.90)+52(0.07)+202(0.02)+1002(0.01)=0+1.75+8.00+100=109.75E(X^2) = 0^2(0.90) + 5^2(0.07) + 20^2(0.02) + 100^2(0.01) = 0 + 1.75 + 8.00 + 100 = 109.75

Step 3: Calculate Variance

Var(X)=E(X2)−[E(X)]2=109.75−(1.75)2=109.75−3.0625=106.6875\text{Var}(X) = E(X^2) - [E(X)]^2 = 109.75 - (1.75)^2 = 109.75 - 3.0625 = 106.6875

Step 4: Calculate Standard Deviation

σ=106.6875≈10.33\sigma = \sqrt{106.6875} \approx 10.33

Most tickets return $0 or a modest prize, but the rare $100 win creates high variability (SD ≈ $10.33).

Second Example: Fair Die Roll

Roll a fair six-sided die; let XX be the outcome (1–6).

  • E(X)=1⋅16+2⋅16+⋯+6⋅16=216=3.5E(X) = 1 \cdot \frac{1}{6} + 2 \cdot \frac{1}{6} + \cdots + 6 \cdot \frac{1}{6} = \frac{21}{6} = 3.5
  • E(X2)=1⋅16+4⋅16+⋯+36⋅16=916≈15.167E(X^2) = 1 \cdot \frac{1}{6} + 4 \cdot \frac{1}{6} + \cdots + 36 \cdot \frac{1}{6} = \frac{91}{6} \approx 15.167
  • Var(X)=15.167−(3.5)2=15.167−12.25=2.917\text{Var}(X) = 15.167 - (3.5)^2 = 15.167 - 12.25 = 2.917
  • σ=2.917≈1.71\sigma = \sqrt{2.917} \approx 1.71

Common Pitfalls

⚠️ Variance vs. Standard Deviation Confusion: Variance is in squared units (e.g., dollars²), while standard deviation is in the original units (dollars). Always report standard deviation when describing spread. Also, don't forget to take the square root of E(X2)−[E(X)]2E(X^2) - [E(X)]^2 to get σ\sigma.

⚠️ Probability Must Sum to 1: Before calculating, verify that ∑P(X=xi)=1\sum P(X = x_i) = 1. If not, you have an error in your probability table.

⚠️ Expected Value ≠ Most Likely Value: The expected value is a weighted average and may not be a value the random variable can actually take. For the die, E(X)=3.5E(X) = 3.5 is not an outcome.

Calculator Tip

💡 TI-84 / TI-Nspire: Enter values in L1 and probabilities in L2. Use 1-Var Stats L1, L2 (with frequency list L2) to compute mean and standard deviation directly. The calculator uses the given probabilities as weights.

📚 Practice Problems

1Problem 1easy

❓ Question:

A discrete random variable XX has distribution: P(X=1)=0.2P(X=1) = 0.2, P(X=3)=0.5P(X=3) = 0.5, P(X=5)=0.3P(X=5) = 0.3. Compute E(X)E(X) and σ(X)\sigma(X).

💡 Show Solution

Step 1: Calculate E(X)E(X) E(X)=1(0.2)+3(0.5)+5(0.3)=0.2+1.5+1.5=3.2E(X) = 1(0.2) + 3(0.5) + 5(0.3) = 0.2 + 1.5 + 1.5 = 3.2

Step 2: Calculate E(X2)E(X^2) E(X2)=12(0.2)+32(0.5)+52(0.3)=0.2+4.5+7.5=12.2E(X^2) = 1^2(0.2) + 3^2(0.5) + 5^2(0.3) = 0.2 + 4.5 + 7.5 = 12.2

Step 3: Calculate Variance Var(X)=12.2−(3.2)2=12.2−10.24=1.96\text{Var}(X) = 12.2 - (3.2)^2 = 12.2 - 10.24 = 1.96

Step 4: Calculate Standard Deviation σ=1.96=1.4\sigma = \sqrt{1.96} = 1.4

Answer: E(X)=3.2E(X) = 3.2 and σ(X)=1.4\sigma(X) = 1.4.

2Problem 2medium

❓ Question:

A spinner shows payoffs: $0 with probability 0.6, $10 with probability 0.3, and $50 with probability 0.1. Find the mean and standard deviation of the payout.

💡 Show Solution

Calculate E(X)E(X): E(X)=0(0.6)+10(0.3)+50(0.1)=0+3+5=8E(X) = 0(0.6) + 10(0.3) + 50(0.1) = 0 + 3 + 5 = 8

Calculate E(X2)E(X^2): E(X2)=02(0.6)+102(0.3)+502(0.1)=0+30+250=280E(X^2) = 0^2(0.6) + 10^2(0.3) + 50^2(0.1) = 0 + 30 + 250 = 280

Variance: Var(X)=280−82=280−64=216\text{Var}(X) = 280 - 8^2 = 280 - 64 = 216

Standard Deviation: σ=216≈14.70\sigma = \sqrt{216} \approx 14.70

The mean payout is $8, but with high variability ($\sigma \approx 14.70) due to the rare but substantial $50 outcome.

3Problem 3hard

❓ Question:

For a geometric random variable with success probability p=0.4p = 0.4 (number of trials until first success), verify that μ=1/p=2.5\mu = 1/p = 2.5 by computing E(X)E(X) directly from the first few terms of the geometric series (round to 2 decimals). Also compute σ\sigma.

💡 Show Solution

For a geometric distribution, P(X=k)=(1−p)k−1⋅pP(X = k) = (1-p)^{k-1} \cdot p for k=1,2,3,…k = 1, 2, 3, \ldots with p=0.4p = 0.4 and 1−p=0.61-p = 0.6.

Compute E(X)E(X) from first few terms: E(X)=1(0.4)+2(0.6)(0.4)+3(0.6)2(0.4)+4(0.6)3(0.4)+⋯E(X) = 1(0.4) + 2(0.6)(0.4) + 3(0.6)^2(0.4) + 4(0.6)^3(0.4) + \cdots =0.4+0.48+0.432+0.3456+⋯= 0.4 + 0.48 + 0.432 + 0.3456 + \cdots ≈2.50(convergesto1/0.4=2.5)\approx 2.50 (converges to 1/0.4 = 2.5)

For geometric distribution, variance and standard deviation: σ2=1−pp2=0.60.16=3.75\sigma^2 = \frac{1-p}{p^2} = \frac{0.6}{0.16} = 3.75 σ=3.75≈1.94\sigma = \sqrt{3.75} \approx 1.94

This shows high relative variability: σ/μ≈1.94/2.5≈0.78\sigma/\mu \approx 1.94/2.5 \approx 0.78, reflecting the unpredictability of when the first success occurs.

Explain using:

⚠️ Common Mistakes: Mean and Standard Deviation of a Discrete Random Variable

Avoid these 3 frequent errors

📌 Related Topics in Unit 4: Probability, Random Variables, and Probability Distributions

❓ Frequently Asked Questions

What is Mean and Standard Deviation of a Discrete Random Variable?▾
Compute and interpret the expected value, variance, and standard deviation of a discrete random variable from its probability distribution.
How can I study Mean and Standard Deviation of a Discrete Random Variable effectively?▾
Start by reading the study notes and working through the examples on this page. Then use the flashcards to test your recall. Practice with the 3 problems provided, checking solutions as you go. Regular review and active practice are key to retention.
Is this Mean and Standard Deviation of a Discrete Random Variable study guide free?▾
Yes — all study notes, flashcards, and practice problems for Mean and Standard Deviation of a Discrete Random Variable on Study Mondo are free to access. No account is needed.
What course covers Mean and Standard Deviation of a Discrete Random Variable?▾
Mean and Standard Deviation of a Discrete Random Variable is part of the AP Statistics course on Study Mondo, specifically in the Unit 4: Probability, Random Variables, and Probability Distributions section. You can explore the full course for more related topics and practice resources.
Are there practice problems for Mean and Standard Deviation of a Discrete Random Variable?▾
Yes, this page includes 3 practice problems with detailed solutions. Each problem includes a step-by-step explanation to help you understand the approach.