01 / 20

Empirical Probability
& Expected Value

Build probability distributions from real data and compute the long-run average outcome, \( E(X) \).

Statistics & Probability

What is a Random Variable?

A random variable \( X \) assigns a number to each outcome of a random process. The set of all possible outcomes is the sample space.

Each value of \( X \) has a probability of occurring. When we estimate those probabilities from collected data, we call them empirical probabilities.

Empirical vs. Theoretical

Empirical probability comes from observed frequencies in actual data:

Theoretical probability comes from a known model (like a fair die where each face has probability \( \tfrac{1}{6} \)). When no model exists, we collect data and build the distribution empirically.

From Data to Distribution

Suppose we survey 100 households and record the number of TV sets in each:

10 30 40 15 5 0 1 2 3 4 Number of TV sets per household Households

Building the Distribution Table

Divide each frequency by the total (100) to get the probability for each value of \( X \):

\( x \) (TVs) Frequency \( P(X=x) \)
0100.10
1300.30
2400.40
3150.15
450.05

Rules of a Valid Distribution

1
Each probability is between 0 and 1. \( 0 \leq P(X=x) \leq 1 \) for every value.
2
All probabilities sum to 1. \( \sum P(X=x) = 1 \) across the whole sample space.

The Expected Value \( E(X) \)

The expected value is the long-run average value of \( X \) over many repetitions. It is a weighted average of the outcomes:

Multiply each value by its probability, then add them all up. The result need not be a value \( X \) can actually take.

Computing \( E(X) \): TV Sets

Using our distribution, multiply each \( x \) by its \( P(X=x) \):

On average, a household has 1.75 TV sets. Even though no household owns 1.75 TVs, this is the mean of the distribution.

Scaling to a Population

Once you know \( E(X) \), you can predict totals. For \( n \) independent trials, the expected total is:

For 100 randomly selected households, the expected number of TV sets is:

\( E(X) \) is Not the Mode

It's easy to confuse the expected value with the most common outcome. They are different ideas:

Expected Value
The weighted mean, \( \sum x\,P(x) \). Here \( E(X)=1.75 \).
Mode
The most likely single value. Here the mode is \( 2 \) (probability 0.40).
Median
The middle value of the ordered distribution. Here the median is \( 2 \).

How to Apply It

1
List the sample space. Identify all possible values of \( X \).
2
Find frequencies. Count how often each value appears in your data.
3
Compute probabilities. Divide each frequency by the total; check they sum to 1.
4
Multiply and add. \( E(X) = \sum x\,P(x) \).
5
Scale if needed. Multiply \( E(X) \) by the population size \( n \).

Worked Example: Cars per Family

A survey of 50 families recorded the number of cars owned. Build the distribution and find \( E(X) \).

\( x \)Freq\( P(x) \)
050.10
1200.40
2200.40
350.10

Worked Example: Game Winnings

A carnival game pays out based on a spinner. Let \( X = \) the dollar payout. Find the expected payout per play.

Payout \( x \)\( P(x) \)
\(\$0\)0.50
\(\$2\)0.30
\(\$5\)0.15
\(\$10\)0.05

Worked Example: Predicting Totals

Using the cars-per-family distribution where \( E(X) = 1.5 \), how many cars would you expect across 200 families?

This works because expectation is additive: the expected total over many families is just the per-family average times the number of families.

Common Mistakes

✕ Forgetting to weight
Averaging the \( x \) values directly instead of weighting each by its probability \( P(x) \).
✕ Probabilities don't sum to 1
Skipping the check \( \sum P(x) = 1 \), which catches counting or division errors.
✕ Rounding \( E(X) \) to whole
An expected value like 1.75 is correct as-is. It need not be a value \( X \) can actually take.
✕ Confusing \( E(X) \) with mode
The expected value is the weighted mean, not the most frequent outcome.

Quick Summary

StepFormula / Action
Empirical probability\( P(x) = \dfrac{\text{freq}}{\text{total}} \)
Validity check\( \sum P(x) = 1 \)
Expected value\( E(X) = \sum x\,P(x) \)
Population total\( n \cdot E(X) \)

Question 1 of 5

For a valid probability distribution, the sum of all \( P(X=x) \) must equal:

Question 2 of 5

A spinner gives \( X \) with \( P(1)=0.5,\ P(2)=0.3,\ P(3)=0.2 \). What is \( E(X) \)?

Question 3 of 5

A survey of 20 people: 8 own 0 pets, 6 own 1, 4 own 2, 2 own 3. What is \( P(X=2) \)?

Question 4 of 5

If \( E(X) = 1.75 \) TV sets per household, how many sets are expected in 400 households?

Question 5 of 5

A game pays \( P(\$0)=0.6,\ P(\$5)=0.4 \). It costs \(\$3\) to play. On average, the player: