Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. Statistics
  2. Expected Value: Find the Mean of a Random Variable

STATISTICS & PROBABILITY • MATH

Expected Value: Find the Mean of a Random Variable

Discover how to calculate the average outcome of uncertain events using probability.

SECTION 1

Historical Context and Motivation

The concept of expected value emerged from humanity's need to make rational decisions in the face of uncertainty. When merchants in 17th-century Europe faced risky sea voyages, insurance companies needed a mathematical way to set fair premiums. When gamblers sought to understand their long-term prospects, mathematicians developed tools to calculate average outcomes. This intersection of commerce, gambling, and mathematics gave birth to probability theory and the concept of expected value.

1654
Birth of Probability
Blaise Pascal and Pierre de Fermat exchange letters about gambling problems, creating the foundation of probability theory and the concept of mathematical expectation.
1657
Mathematical Expectation
Christiaan Huygens publishes the first formal treatment of expected value in "De Ratiociniis in Ludo Aleae," establishing the mathematical framework.
1713
Law of Large Numbers
Jakob Bernoulli proves that as the number of trials increases, the average outcome approaches the expected value, connecting theory to practice.
1812
Modern Applications
Pierre-Simon Laplace formalizes probability theory in "Théorie Analytique des Probabilités," expanding expected value into insurance, astronomy, and social sciences.

Today, expected value serves as the cornerstone of decision-making in countless fields. Insurance companies use it to set premiums, investors use it to evaluate portfolio returns, and economists use it to model consumer behavior. The fundamental question that expected value answers is: "If we could repeat this uncertain situation many times, what would be the average outcome?" This single number provides powerful insight into the long-term behavior of random events.

SECTION 2

Core Principles and Definitions

The expected value of a random variable represents the theoretical mean of that variable if we could observe it infinitely many times. It's calculated by multiplying each possible outcome by its probability and summing these products. This creates a probability-weighted average that accounts for both the magnitude of outcomes and their likelihood of occurring.

1

Random Variable

A function that assigns numerical values to the outcomes of a random experiment. It transforms uncertain events into measurable quantities we can analyze mathematically.
2

Probability Distribution

A complete description of all possible values a random variable can take and their associated probabilities. The sum of all probabilities must equal 1.
3

Weighted Average

Unlike a simple average, expected value weights each outcome by its probability of occurrence, giving more influence to likely outcomes and less to rare ones.
4

Linear Operator

Expected value follows linearity rules: E(aX + bY) = aE(X) + bE(Y), making it easier to work with combinations of random variables.
✦ KEY TAKEAWAY
Think of expected value like planning your budget for a road trip. You might spend $50 on gas one day, $80 another day, and $30 on a third day, but you need to know the average daily cost to budget properly. Expected value does the same thing for uncertain outcomes – it tells you the "average" result you should expect over many repetitions, weighted by how likely each outcome is to occur.
SECTION 3

Visual Explanation of Expected Value

Dice Roll Expected Value Calculation00.10.20.30.40.5Outcome ValueProbability1234561/61/61/61/61/61/6E(X) = 3.5Each outcome has equal probability (1/6)E(X) = 1×(1/6) + 2×(1/6) + 3×(1/6) + 4×(1/6) + 5×(1/6) + 6×(1/6) = 3.5
This probability distribution shows a fair six-sided die where each outcome (1 through 6) has an equal probability of 1/6. The expected value of 3.5 represents the theoretical average of all possible outcomes weighted by their probabilities. Notice that the expected value doesn't need to be a possible outcome – you can't actually roll a 3.5, but this is the long-term average you'd expect if you rolled the die many times.

The visualization above demonstrates how expected value works as a balance point for a probability distribution. Each bar represents both an outcome value and its probability of occurring. The expected value of 3.5 acts like the center of mass for this distribution – it's where the distribution would balance if the bars were physical weights. This geometric interpretation helps explain why expected value captures the "typical" outcome even when dealing with discrete values that might not include the expected value itself.

SECTION 4

Mathematical Framework

The mathematical definition of expected value depends on whether we're working with a discrete or continuous random variable. At the high school level, we primarily focus on discrete variables where outcomes can be counted and listed. The formula builds on the fundamental concept of weighted averages but uses probabilities as the weights.

DISCRETE EXPECTED VALUE
E(X) = Σ xᵢ × P(X = xᵢ)
Where xᵢ represents each possible outcome value, P(X = xᵢ) is the probability of that outcome, and Σ indicates we sum over all possible outcomes.
EXPANDED NOTATION
E(X) = x₁P(X = x₁) + x₂P(X = x₂) + ... + xₙP(X = xₙ)
This expanded form shows that expected value is literally a weighted sum where each outcome value xᵢ is multiplied by its corresponding probability and all products are added together.
LINEARITY PROPERTY
E(aX + b) = aE(X) + b
This powerful property means the expected value of a linear transformation equals the linear transformation of the expected value. Constants a and b can be factored out of the expectation operator.

The linearity property is particularly useful when working with combinations of random variables or when converting between different units. For example, if you know the expected value of a temperature in Celsius, you can immediately find the expected value in Fahrenheit using the linear transformation formula F = (9/5)C + 32. This property makes expected value calculations much more manageable in complex scenarios.

SECTION 5

Types of Random Variables and Their Expected Values

Different types of random variables have characteristic patterns for their expected values. Understanding these common distributions helps you recognize when to apply specific formulas and what the results mean in practical contexts. The most important distinction is between discrete and continuous variables, which determines both the calculation method and the interpretation of results.

Discrete VariablesContinuous VariablesE(X) = 4.2E(X) = 5.7Countable outcomes(e.g., number of heads in coin flips)Uncountable outcomes(e.g., height measurements)PXf(x)x
The left panel shows a discrete probability distribution with specific, countable outcomes represented by individual points and vertical lines. The right panel shows a continuous probability density function where outcomes form a smooth curve over a range of values. Both distributions have their expected values marked below, showing how the concept applies to different types of random variables.
Common probability distributions and their expected value formulas
Variable TypeExamplesExpected Value FormulaKey Insight
DiscreteCoin flips, dice rolls, number of defective items in a batchE(X) = Σ xᵢ × P(xᵢ)Sum over all possible values weighted by their probabilities
BinomialNumber of successes in n trials with probability pE(X) = npExpected successes = trials × success probability
GeometricNumber of trials until first successE(X) = 1/pExpected wait time is inversely related to success probability
UniformAny outcome in a range with equal probabilityE(X) = (a + b)/2Expected value is the midpoint of the range [a, b]
SECTION 6

Worked Example: Insurance Premium Calculation

Let's work through a practical example that demonstrates how insurance companies use expected value to set fair premiums. This scenario involves calculating the expected payout for a car insurance policy, which directly determines how much the company should charge customers to remain profitable while providing fair coverage.

Car Insurance Expected Payout

Step 1 — Identify the Scenario

An insurance company offers car insurance policies with the following claim probabilities based on historical data: 85% chance of no claim ($0 payout), 12% chance of minor damage ($2,000 payout), 2.5% chance of major damage ($15,000 payout), and 0.5% chance of total loss ($40,000 payout).
Four possible outcomes with known probabilities and payouts

Step 2 — Set Up the Expected Value Formula

Using E(X) = Σ xᵢ × P(xᵢ), we multiply each payout amount by its probability and sum all products. Let X represent the insurance payout amount.
E(X) = $0×P(no claim) + $2,000×P(minor) + $15,000×P(major) + $40,000×P(total)

Step 3 — Substitute the Probability Values

Convert percentages to decimal form and substitute: 85% = 0.85, 12% = 0.12, 2.5% = 0.025, 0.5% = 0.005. Verify that probabilities sum to 1.00.
E(X) = $0×(0.85) + $2,000×(0.12) + $15,000×(0.025) + $40,000×(0.005)

Step 4 — Calculate Each Product

Compute each term separately: $0×0.85 = $0, $2,000×0.12 = $240, $15,000×0.025 = $375, $40,000×0.005 = $200.
Individual contributions: $0 + $240 + $375 + $200

Step 5 — Sum to Find Expected Value

Add all terms: $0 + $240 + $375 + $200 = $815. This represents the average amount the insurance company expects to pay per policy over many customers.
E(X) = $815

Step 6 — Interpret the Business Meaning

The insurance company expects to pay out $815 per policy on average. To be profitable, they must charge more than $815 (plus administrative costs). If they charge $1,200 annually, they expect $385 profit per policy before expenses.
Minimum premium needed: $815 + administrative costs + profit margin
SECTION 7

Strengths and Limitations of Expected Value

While expected value is an incredibly useful tool for decision-making and analysis, it's important to understand both its strengths and limitations. Expected value provides a single number summary of a complex probability distribution, but this simplification can sometimes hide important information about variability, extreme outcomes, and the shape of the distribution.

Comparing the advantages and disadvantages of using expected value
AspectStrengthsLimitations
Decision MakingProvides clear, objective criteria for comparing uncertain alternativesIgnores risk tolerance and doesn't account for extreme outcomes
Mathematical PropertiesLinear operator with clean algebraic rules that simplify calculationsMay not represent any actual possible outcome of the random variable
Information ContentSummarizes central tendency efficiently for communication and planningLoses information about variability, skewness, and distribution shape
Practical ApplicationFoundation for insurance, investment analysis, and quality controlCan be misleading when distributions have high variance or are skewed
⚠️ CRITICAL INSIGHT
Expected value is like looking at the average speed for a road trip – it tells you useful information for planning, but it doesn't tell you whether you drove 60 mph the whole time or alternated between 30 mph in traffic and 90 mph on highways. Two completely different experiences can have the same average. Similarly, two random variables can have identical expected values but dramatically different levels of risk and variability.

This is why professional analysts often use expected value alongside other measures like variance (which measures spread) and value at risk (which measures potential extreme losses). Expected value provides the foundation, but complete analysis requires understanding the full distribution of possible outcomes.

SECTION 8

Connection to Advanced Statistical Concepts

The concept of expected value serves as a gateway to more advanced statistical and probabilistic concepts that you'll encounter in college-level courses. Understanding how expected value connects to these advanced topics provides insight into the deeper mathematical structure underlying probability theory and helps you appreciate the elegance of the mathematical framework you're building.

How high school expected value concepts extend into advanced mathematics
High School ConceptAdvanced ExtensionKey Connection
Expected value E(X)Moment generating functions and characteristic functionsExpected value is the first moment; higher moments describe shape
Linear property E(aX + b) = aE(X) + bLinearity of integration in continuous distributionsExpectation is a linear operator, like integrals and derivatives
Law of Large Numbers conceptStrong and weak laws of large numbers with rigorous proofsSample means converge to expected values under precise conditions
Expected value of sums E(X + Y)Covariance, correlation, and multivariate distributionsIndependence assumptions determine when E(XY) = E(X)E(Y)
Discrete probability distributionsContinuous distributions using probability density functionsSummation becomes integration: E(X) = ∫ x f(x) dx

Perhaps most importantly, expected value introduces you to the concept of mathematical expectation as a fundamental operation in probability theory. In advanced courses, you'll learn that expectation can be applied to functions of random variables, leading to concepts like moment generating functions that completely characterize probability distributions. The linearity property you've learned extends to infinite sums and integrals, making expectation one of the most well-behaved mathematical operations in probability theory.

🔮 LOOKING AHEAD
In calculus-based statistics, you'll discover that expected value for continuous distributions uses integration instead of summation: E(X) = ∫ x f(x) dx. The fundamental concept remains the same – weighting outcomes by their probability – but the mathematical tools become more sophisticated to handle infinite possibilities.
SECTION 9

Practice Problems

PROBLEM 1 — CONCEPTUAL
A carnival game costs $3 to play. You spin a wheel with four equally likely outcomes: win $0 (25% chance), win $2 (25% chance), win $5 (25% chance), or win $10 (25% chance). Is this game fair to the player? Explain your reasoning using expected value.
PROBLEM 2 — BASIC CALCULATION
A quality control inspector finds that in a batch of 100 electronic components, 92 are perfect, 6 have minor defects (worth $8 each), and 2 are completely defective (worth $0). If perfect components are worth $12 each, what is the expected value per component?
PROBLEM 3 — INTERMEDIATE
A basketball player has a 70% free throw success rate. In a game situation, she will attempt free throws until she either makes one (and the sequence ends) or misses three in a row (and the sequence ends). What is the expected number of free throws she will attempt?
PROBLEM 4 — APPLIED
A tech startup is considering two investment opportunities. Project A has a 60% chance of returning $100,000, a 30% chance of breaking even ($0), and a 10% chance of losing $50,000. Project B has a 40% chance of returning $150,000, a 40% chance of returning $25,000, and a 20% chance of losing $75,000. Which project has the higher expected value, and what factors beyond expected value should influence the decision?
PROBLEM 5 — CRITICAL THINKING
A insurance company offers earthquake insurance with these historical claim rates: 95% chance of no claim, 4% chance of $25,000 claim, 0.8% chance of $100,000 claim, and 0.2% chance of $500,000 claim. If they charge a $1,500 annual premium, analyze whether this pricing strategy is sustainable. What assumptions are embedded in using expected value for this business decision?
SUMMARY

Key Concepts Review

The expected value of a random variable represents the theoretical mean outcome if we could repeat an uncertain event infinitely many times. It's calculated using the formula E(X) = Σ xᵢ × P(xᵢ), which creates a probability-weighted average that accounts for both the magnitude of outcomes and their likelihood. This powerful concept enables rational decision-making in situations involving uncertainty, from insurance pricing to investment analysis to quality control.

While expected value provides invaluable insight into the central tendency of random variables, it's crucial to understand its limitations. The linearity property E(aX + b) = aE(X) + b makes calculations manageable, but expected value alone doesn't capture information about variability or extreme outcomes. Complete analysis often requires considering additional measures like variance and understanding the full shape of the probability distribution to make truly informed decisions.

Varsity Tutors • Statistics & Probability • Expected Value: Find the Mean of a Random Variable