Course contentsShow
← Mathematics
Lesson 2852 of 3,12156. Probability — Random VariablesFree lesson

Definition of Expectation (Mean) for Discrete Random Variables

Learn how to compute the expected value of a discrete random variable using weighted averages of outcomes.

Definition of Expectation (Mean) for Discrete Random Variables

What You'll Learn

You'll learn how to compute the expected value (or mean) of a discrete random variable by taking a weighted average of all possible outcomes.

The Core Idea

The expectation or mean of a discrete random variable tells you the "average" value you'd expect if you could repeat the random experiment infinitely many times. It's not just a simple average of outcomes—it's a weighted average, where each outcome is multiplied by its probability.

Think of it like this: imagine you're investing in a lottery. Some outcomes are rare but valuable, others are common but modest. The expected value balances both the size of each outcome and how likely it is to occur.

The Definition

For a discrete random variable XX with PMF p(x)p(x), the expected value or mean, denoted E[X]E[X] or μ\mu, is:

E[X]=∑all xx⋅p(x)E[X] = \sum_{\text{all } x} x \cdot p(x)

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

Example

Suppose XX represents the outcome of rolling a fair six-sided die. Each outcome has probability 16\frac{1}{6}:

E[X]=1⋅16+2⋅16+3⋅16+4⋅16+5⋅16+6⋅16=216=3.5E[X] = 1 \cdot \frac{1}{6} + 2 \cdot \frac{1}{6} + 3 \cdot \frac{1}{6} + 4 \cdot \frac{1}{6} + 5 \cdot \frac{1}{6} + 6 \cdot \frac{1}{6} = \frac{21}{6} = 3.5

Even though you can't roll 3.5, this is the average outcome over many rolls.

When to Use It

Use the expectation to summarize a random variable's "center" or typical value. It's especially useful in decision-making, risk analysis, and comparing different random scenarios.

Key Takeaway: The expected value of a discrete random variable is the weighted sum of all outcomes, where weights are their probabilities: E[X]=∑x⋅p(x)E[X] = \sum x \cdot p(x).