Discrete random expectation
The expectation of a random variable is the mean of the results we can expect to get if we measure the random variable ‘infinite’ times.
It’s basically the mean value of the list of possible values multiplied by their individual probabilities.
Notation
We can write the expected value of a list of values
Formula
Suppose we have a list of possible discrete values and their associated
probabilities. The value at position
That means we can write the expectation of a list of discrete values and
their probabilities (
E(X) = \sum x_n p_n
A reminder that the
Calculating the expectation
Given that formula, it tells us that we can calculate the expectation of a list of values and their probabilities by multiplying each value by its probability (chance of it happening) and then adding all those products together.
This effectively calculates the mean of the values, weighted by their probabilities. We don’t need to divide by the sum of probabilities, because their sum is always 1 (since they represent all possible outcomes).
Example: Calculating the expectation of a fair die roll
Let’s say we have a standard six-sided die, and we want to calculate the expectation of what we’ll get when we roll it.
The possible values are 1, 2, 3, 4, 5, and 6. Each value has an equal
probability of
Given that, we can then calculate the expectation using our formula:
E(X)=\sum x_n p_n E(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} E(X) = \frac{1}{6} + \frac{2}{6} + \frac{3}{6} + \frac{4}{6} + \frac{5}{6} + \frac{6}{6} E(X) = \frac{21}{6} E(X) = 3.5
So the expectation of rolling a fair die is 3.5. This means that if we were to roll the die an infinite number of times, the average (mean) value we would get would be 3.5.
flashcards
| Question | Answer |
|---|---|
| What is the expectation of a random variable? | The mean of the results we can expect to get if we measure the random variable ‘infinite’ times. |
| What is the notation for the expected value of a list of values | |
| What is the formula for the expectation of a list of discrete values and their probabilities ( | |
| How do you calculate the expectation from a list of values and their probabilities? | Multiply each value by its probability and add all those products together. |
| In calculating expectation, why do we not need to divide by the sum of probabilities? | Because the sum of probabilities is always 1. |
| What is the expectation of a standard six-sided die roll? | 3.5 |
| Using the formula | |
| What does a die roll expectation of 3.5 mean? | If we roll the die an infinite number of times, the average (mean) value we would get would be 3.5. |