How to Find the Expected Value of a Random Variable?
TL;DR: Expected value is the long-run average outcome of a random variable, computed as the sum of each possible value times its probability. It’s the single most useful summary statistic of a probability distribution — once you can compute it, you can compare games, value investments, and reason about uncertainty.
Key takeaways:
- For a discrete random variable \( X \): \( E[X] = \sum x \cdot P(X = x) \).
- Expected value is a weighted average — values that are more likely count more.
- The expected value doesn’t have to be a possible outcome (a fair die’s expected value is 3.5).
- For continuous variables, replace the sum with an integral: \( E[X] = \int x \cdot f(x) \, dx \).
- Expected value is linear: \( E[aX + b] = a E[X] + b \), and \( E[X + Y] = E[X] + E[Y] \) even when \( X \) and \( Y \) aren’t independent.
A step-by-step guide to the expected value of a random variable
- \(EV\): the expected value
- \(P(X)\): the probability of the occurrence of the event
- \(n\): the number of repetitions of the event
- \(EV\): the expected value
- \(P(X_i)\): the probability of the event
- \(X_i\): the event
The Expected Value of a Random Variable – Example 1:
To find the expected value, use this formula: \(\color{blue}{EV=\sum P(X_i) \times X_i}\)
\(EV=0 (\frac{1}{6})+ 1 (\frac{1}{6}) + 2 (\frac{1}{6})+ 3 (\frac{1}{6})\)
\(=0+\frac{1}{6}+\frac{2}{6}+\frac{3}{6}\) \(=\frac{0+1+2+3}{6}=\frac{6}{6}=1\)
\(EV=1\)
The Expected Value of a Random Variable – Example 2:
When you roll a die, you get paid \(\(2\) for an odd number and \(\) 1\) for an even number. Find the expected value of money you get for one roll of the die.
The sample space of the experiment is:\((1,2,3,4,5,6)\)
First, we draw the table of the probability distribution for a single roll of a die and the amount paid for each result.
Then, to find the expected value, use this formula: \(\color{blue}{EV=\sum P(X_i) \times X_i}\)
\(EV= 2 (\frac{1}{6})+ 1 (\frac{1}{6})+ 2 (\frac{1}{6}) + 1 (\frac{1}{6})+ 2 (\frac{1}{6})+ 1 (\frac{1}{6})\)
\(=\frac{2}{6}+\frac{1}{6}+\frac{2}{6}+\frac{1}{6}+\frac{2}{6}+\frac{1}{6}\) \(=\frac{2+1+2+1+2+1}{6}\)=\(\frac{9}{6}\)
\(EV=\frac{9}{6}=1.5\)
Exercises for the Expected Value of a Random Variable
- A men’s soccer team plays zero football, one or two days a week. The probability that they will play on day zero is \(0.2\), the probability that they will play one day is \(0.5\) and the probability that they will play two days is \(0.4\). Find the expected value of the number of days per week the men’s soccer team plays football.
- A hospital researcher is interested in the number of times a typical patient calls the nurse after surgery during a \(12\)-hour shift. The following information was obtained from a random sample of \(40\) people. What is the expected value?
- In a city, \(12\%\) of families have three children, \(50\%\) of families have two children, \(22\%\) of families have one child, and \(11\%\) of families have no children. What is the expected value of children in a family?
- \(\color{blue}{1.3}\)
- \(\color{blue}{\frac{29}{10}}\)
- \(\color{blue}{1.58}\)
Frequently Asked Questions
What is expected value, in plain language?
The long-run average outcome of a random process if you ran it infinitely many times. For a fair coin flip paying \$1 on heads and \$0 on tails, the expected value is \( 0.5 \times 1 + 0.5 \times 0 = \$0.50 \) — the average winning per flip over many flips.
What’s the formula for a discrete random variable?
\( E[X] = \sum x \cdot P(X = x) \), summing over every possible value \( x \). Each outcome is weighted by its probability. The probabilities must sum to 1 for the formula to make sense.
Walk through a die-roll example.
For a fair six-sided die, each outcome has probability \( 1/6 \). \( E[X] = (1)(1/6) + (2)(1/6) + \ldots + (6)(1/6) = (1+2+3+4+5+6)/6 = 21/6 = 3.5 \). The expected value isn’t a possible roll — and that’s fine, it’s an average over many rolls.
How is expected value used in real life?
Insurance premiums (expected loss), investing (expected return), gambling (house edge = negative expected value), decision analysis (expected utility), and quality control all rely on expected value to compare alternatives under uncertainty.
What does it mean if expected value is negative?
It means the long-run average outcome is a loss. A roulette bet has a slightly negative expected value because of the casino’s house edge — over many spins you can predict, with confidence, that you’ll lose on average.
Is the expected value always one of the possible outcomes?
No. The expected value of a fair die is 3.5, which isn’t a possible roll. Expected value is an average, not a typical single outcome. Think of it as the long-run average of many trials, not as a likely single result.
How do you compute expected value for a continuous variable?
Replace the sum with an integral: \( E[X] = \int x \cdot f(x) \, dx \), where \( f(x) \) is the probability density function and the integral runs over the variable’s entire range. The same intuition holds — each value is weighted by its density.
What’s the linearity property of expected value?
For any random variables \( X, Y \) and constants \( a, b \): \( E[aX + b] = a E[X] + b \), and \( E[X + Y] = E[X] + E[Y] \). The second part holds even when \( X \) and \( Y \) are NOT independent — a uniquely powerful property.
What’s the difference between expected value and median?
Expected value is the weighted average; the median is the middle value when the distribution is ordered. For symmetric distributions like the normal, they’re equal. For skewed distributions, they can differ significantly — income data is the classic example, with the mean (expected value) pulled up by a few high earners.
Walk through a lottery-ticket example.
A ticket costs \$2. The jackpot is \$10 million; the probability of winning is 1 in 30 million. EV of the ticket: \( (10{,}000{,}000)(1/30{,}000{,}000) – 2 \approx 0.33 – 2 = -\$1.67 \). On average, you lose \$1.67 per ticket — even with the huge jackpot, the expected value is negative.
Related Lessons You May Like
- How to find the probability of an event
- How to solve probability problems
- How to find the measures of central tendency
- How to find experimental probability
- Probability distribution
For a friendly introduction to probability and statistics that builds the intuition before the formulas, Pre-Algebra for Beginners covers the prerequisites and includes a probability chapter. For deeper distributions, expected value, and combinatorics, Algebra II for Beginners goes further.
Related to This Article
More math articles
- Growing Patterns
- ALEKS Math FREE Sample Practice Questions
- Free Grade 6 English Worksheets for Mississippi Students
- Top 10 7th Grade MCAS Math Practice Questions
- Number Navigators: How to Select Pairs with Targeted Sums and Differences
- 10 Most Common 4th Grade STAAR Math Questions
- The Best Grade 8 Math Book for New Jersey Students
- Free Grade 3 Math Worksheets for California Third Graders: 49 CAASPP-Aligned PDFs with Solutions
- The Ultimate CHSPE Math Course (+FREE Worksheets & Tests)
- DAT Quantitative Reasoning Math Worksheets: FREE & Printable




























What people say about "How to Find the Expected Value of a Random Variable? - Effortless Math: We Help Students Learn to LOVE Mathematics"?
No one replied yet.