Course contentsShow
← Data Science
Lesson 147 of 2,1454. Discrete Probability DistributionsFree lesson

Expected Value of Discrete Random Variables

Learn to calculate and interpret the expected value (mean) of a discrete random variable using probability mass functions.

Expected Value of Discrete Random Variables

What you'll learn: How to calculate the long-run average outcome of a discrete random variable by weighting each possible value by its probability.

The Core Idea

The expected value (also called the mean) of a discrete random variable is the theoretical average you'd get if you repeated a random experiment infinitely many times. It's not necessarily a value the variable can actually take—it's the balance point of the probability distribution.

Think of it like a weighted average: instead of treating all outcomes equally, you give more weight to outcomes that are more likely to occur.

The Formula

For a discrete random variable X with probability mass function (PMF), the expected value is:

E(X) = Σ [x · P(X = x)]

In plain English: multiply each possible value by its probability, then add them all up.

Example Walkthrough

Suppose you roll a fair six-sided die. Each outcome (1, 2, 3, 4, 5, 6) has probability 1/6.

  • E(X) = 1·(1/6) + 2·(1/6) + 3·(1/6) + 4·(1/6) + 5·(1/6) + 6·(1/6)
  • E(X) = (1 + 2 + 3 + 4 + 5 + 6)/6 = 21/6 = 3.5

Notice you can never actually roll a 3.5, but it's the center of mass of the distribution.

Why It Matters

Expected value tells you what to anticipate "on average" over many trials. It's crucial for decision-making: if a lottery ticket costs 2buthasanexpectedvalueof2 but has an expected value of 1.50, you lose money on average by playing.

Key Takeaway: The expected value of a discrete random variable is calculated by multiplying each outcome by its probability and summing the results—it represents the long-run average outcome.