Compute the expectation of a discrete random variable
Compute an expectation from a mass function. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.
The expectation of a discrete variable is its probability-weighted average: Multiply each value by how likely it is, and add.
The word "average" misleads here in two ways. It is not the average of the values (that would weight each one equally, ignoring the law), and it need not be a value the variable can take — the mean of a fair die is, which no roll produces. It is a balance point: put the values on a ruler with a weight at each equal to its probability, and is where it balances.
Two consequences that are used constantly:
- - A constant is certain. for a constant; there is no variation to average out.
- - A shift moves the mean.. Adding to every value adds to the mean.
The expectation is a summary, not a description. Two laws can share a mean and be entirely different — one always near it, one wildly variable — which is why the variance is the next thing computed and never an optional extra.
Over many independent repetitions, the running average of the observed values settles at the weighted average of the possible values, with the weights given by how often each occurs. That is the content of the law of large numbers, and it is why the expectation is the useful summary: it is the number the average is heading for.
Formally, group the repetitions by value. If value occurs a proportion of the time, then the average of all observations is, which is. That identity is exact for a finite sample and becomes a limit as the sample grows.
Note what it does NOT say. It says nothing about a single observation, and nothing about the spread. A lottery has a small positive expectation and a very large chance of losing; the expectation is the right number for an insurer pooling thousands of tickets and the wrong number for one player deciding tonight.
Law A.,,,.
Law B.,,.
Check against the plain average. The plain average of law A's values is, which is not — the values are not equally likely, so the plain average is the wrong number. That gap is the whole reason for weighting.
Check with a shift. If law B's values are each increased by 10, its mean becomes without recomputing the sum.
- Compute an expectation from a mass function
- Explain why the mean need not be an attainable value
- Use the shift and scale rules for a mean
- 1.,. Find.
- 2. The same law with 2 added to each value. Find the new mean.
- 3. Why is the plain average of the support the wrong answer in general?
Answers
- 1..
- 2..
- 3. Because it assumes every value is equally likely, which a mass function usually contradicts.