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 VariablesBayesian 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Making 10 as an Addition StrategyAddition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts Through 10Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsFunction Notation ReviewRandom Variables: Definition and ClassificationJoint and Marginal DistributionsConditional Distributions of Random VariablesRandom VariablesDiscrete Random VariablesExpected Value and Variance

Longest path: 63 steps · 274 total prerequisite topics

Prerequisites (1)

Leads To (17)