How to calculate expected value
The expected value is the probability-weighted average of all possible values of a discrete random variable . It applies when you have a finite or countably infinite set of mutually exclusive outcomes, each with a known probability.
The setup
Identify the random variable , its possible values , and the corresponding probabilities . Ensure that all probabilities are non-negative and that the sum of all probabilities equals exactly 1 ().
The steps
- List all mutually exclusive outcomes . 2. Determine the probability for each outcome. 3. Multiply each outcome by its probability to compute . 4. Sum these products to find the expected value: .
Checking the result
Verify that the calculated expected value falls strictly within the inclusive range of the minimum and maximum possible outcomes: . If is outside this range, check your multiplication or probability sum.
Common errors
A frequent error is forgetting to verify that the probabilities sum to 1 before calculating. Another common mistake is treating the expected value as a guaranteed outcome for a single trial; it represents the long-term arithmetic mean as the number of trials approaches infinity.
Worked example
Calculate the expected value of rolling a standard, fair six-sided die.
Let be the outcome of the roll. The possible values are . The probability for each outcome is . The expected value formula is . Substituting the values yields . Factoring out the probability gives . Summing the numerator results in .
FAQ
Run your own problem
References: OpenStax Introductory Statistics, Chapter 4 · Introduction to Probability by Bertsekas and Tsitsiklis
See also