A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Expected Value and Variance

College Depth 62 in the knowledge graph ☐ I know this ☆ Set as goal
2,658topics build on this
274prerequisites beneath it
See this on the map →
Discrete Random Variables→→Bayesian OptimizationBias-Variance Tradeoff+15 more
expected-value mean variance standard-deviation

Core Idea

The expected value E[X] = Σ x × p(x) is the long-run average value of a random variable, representing its center. Variance Var(X) = E[(X - E[X])²] measures the spread of the distribution around its mean. Standard deviation σ = √Var(X) is variance expressed in the original units. These moments summarize key features of a distribution's shape and behavior.

How It's Best Learned

Compute expected value and variance for simple distributions (fair die, coin flip). Verify that variance increases when probability mass spreads away from the mean.

Common Misconceptions

Thinking E[X] is always the most likely value. Confusing variance with standard deviation in interpretation. Misunderstanding that E[aX + b] = aE[X] + b but Var(aX + b) = a²Var(X).

Explainer

The expected value E[X] is the mathematical formalization of "long-run average." If you roll a fair die thousands of times and track the running average, that average will converge toward 3.5 — even though 3.5 is never actually rolled. The formula E[X] = Σ x · p(x) weights each possible outcome by its probability and sums the products. Geometrically, the expected value is the balance point, or center of mass, of the probability distribution: if you placed physical weights proportional to each probability on a number line, the distribution would balance at E[X].

A critical misconception: the expected value is not the most likely value. The most likely value is the mode. For symmetric distributions these coincide, but for skewed distributions they can be far apart. If X takes value 0 with probability 0.9 and value 100 with probability 0.1, then E[X] = 10 — yet the most common outcome is 0. Income distributions are a real-world example: average income is pulled upward by high earners, while median and modal income are much lower. The expected value can even be a value that X can never take (3.5 for a die; 10 in the example above).

Variance Var(X) = E[(X − E[X])²] measures spread. It asks: on average, how far does X deviate from its mean, in squared terms? Squaring the deviation serves two purposes: it makes all deviations positive (so negative and positive deviations don't cancel), and it penalizes large deviations more heavily than small ones. The standard deviation σ = √Var(X) brings the units back in line with X, making it more interpretable as "typical distance from the mean."

The transformation rules for mean and variance capture something deep. For E[aX + b] = aE[X] + b: shifting every outcome by b shifts the average by b, and scaling by a scales the average by a. For variance: Var(aX + b) = a²Var(X). Adding a constant b moves every value by the same amount, so all deviations from the mean are unchanged — variance is unaffected. Multiplying by a scales every value and every deviation by a, so squared deviations scale by a². This asymmetry — E scales linearly but Var scales by the square — is a common source of errors and is essential to remember.

These two moments — mean and variance — do not fully characterize a distribution (you need the full density for that), but they capture the two most important features: where it is centered and how spread out it is. Nearly all of statistical inference builds on them. When you study the normal distribution, the binomial, and eventually the central limit theorem, you will use E[X] and Var(X) constantly — both to characterize distributions directly and to describe how statistics computed from samples behave.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Function Notation Review → Random Variables: Definition and Classification → Joint and Marginal Distributions → Conditional Distributions of Random Variables → Random Variables → Discrete Random Variables → Expected Value and Variance

Longest path: 63 steps · 274 total prerequisite topics

Prerequisites (1)

Leads To (17)