01 / 21
E

Expectation
Properties

Master the expectation operator and its powerful linearity properties: the foundation for probability, statistics, and stochastic analysis.

Statistics Probability Theory

What Is Expectation?

The expected value (or expectation) of a random variable \(X\) is a weighted average of all possible values, weighted by their probabilities. It answers: "What value does \(X\) take on average?"

Think of \(E[X]\) as the "center of mass" of the probability distribution of \(X\).

Expectation as an Operator

Rather than thinking of \(E[X]\) as just a number, we treat \(E[\cdot]\) as a linear functional: an operator that maps random variables to real numbers.

Random Variable
\(X : \Omega \to \mathbb{R}\)
\(E[\cdot]\)
Real Number
\(\mu \in \mathbb{R}\)

Why Expectation Matters

Decision Theory
Expected utility maximization is the foundation of rational choice under uncertainty.
Estimation
Unbiasedness of estimators is defined via \(E[\hat{\theta}] = \theta\). Expectation governs bias and MSE.
Limit Theorems
The Law of Large Numbers and CLT both hinge on the existence and properties of \(E[X]\).

Nearly every result in probability and statistics either uses or derives from properties of the expectation operator.

The Linearity of Expectation

This is arguably the single most useful property in all of probability. It decomposes into two sub-properties:

Homogeneity
\( E[aX] = a\,E[X] \)
Constants factor out.
Additivity
\( E[X + Y] = E[X] + E[Y] \)
Expectation distributes over sums.

Visualizing Linearity

\(x\)
\(P(x)\)
1 2 3 4 5
\(E[X] \approx 2.92\)
\(E[2X\!+\!1] \approx 6.84\)
\(\approx 2(2.92) + 1\)
\(P(X = x)\)

Complete Property List

1
Constant: \( E[c] = c \) for any constant \(c\).
2
Scaling: \( E[aX] = a\,E[X] \) for any constant \(a\).
3
Additivity: \( E[X + Y] = E[X] + E[Y] \), always.
4
Monotonicity: If \( X \leq Y \) a.s., then \( E[X] \leq E[Y] \).
5
Product (independence): If \(X \perp Y\), then \( E[XY] = E[X]\,E[Y] \).
6
Law of the Unconscious Statistician (LOTUS): \( E[g(X)] = \sum_x g(x)\,P(X=x) \).

Linearity vs. Multiplicativity

Linearity (Always) Product Rule (Conditional)
Statement \(E[X+Y] = E[X]+E[Y]\) \(E[XY] = E[X]\cdot E[Y]\)
Requires independence? No Yes
Works for dependent RVs? Always Only if independent
General formula Same \(E[XY] = E[X]E[Y] + \text{Cov}(X,Y)\)
Common use Decomposing sums Computing variance, covariance

How to Apply Expectation Properties

1
Identify the expression: Write out what you need to compute: \(E[\text{something}]\).
2
Decompose using linearity: Break sums apart and pull out constants: \(E[aX + bY] = aE[X] + bE[Y]\).
3
Check for products: If you see \(E[XY]\), ask: are \(X\) and \(Y\) independent?
4
Use LOTUS if needed: For \(E[g(X)]\), don't find the distribution of \(g(X)\): apply LOTUS directly.
5
Substitute known values: Plug in \(E[X]\), \(E[Y]\), etc. and simplify.

Example 1: Linear Combination

Let \(X\) and \(Y\) be random variables with \(E[X] = 4\) and \(E[Y] = -2\). Find \(E[3X - 5Y + 7]\).

1
Apply linearity: \( E[3X - 5Y + 7] = 3\,E[X] - 5\,E[Y] + 7 \)
2
Substitute: \( = 3(4) - 5(-2) + 7 \)
3
Compute: \( = 12 + 10 + 7 = \) \(29\)

Example 2: Sum of Dice

Find the expected sum when rolling three fair six-sided dice.

1
Define: Let \(S = X_1 + X_2 + X_3\), where each \(X_i \sim \text{Uniform}\{1,2,3,4,5,6\}\).
2
Each die: \( E[X_i] = \frac{1+2+3+4+5+6}{6} = 3.5 \)
3
Linearity: \( E[S] = E[X_1] + E[X_2] + E[X_3] = 3(3.5) = \) \(10.5\)

Example 3: LOTUS and Products

Let \(X \sim \text{Bernoulli}(p)\). Find \(E[X^2]\) and \(E[X(1-X)]\).

1
LOTUS for \(E[X^2]\): \( E[X^2] = 0^2 \cdot (1-p) + 1^2 \cdot p = p \)
2
Expand: \( E[X(1-X)] = E[X - X^2] = E[X] - E[X^2] \) (by linearity)
3
Substitute: \( = p - p = \) \(0\)

The Indicator Variable Trick

One of the most elegant applications of linearity: decompose a count into a sum of indicator random variables.

Example: How many fixed points does a random permutation of \(\{1, \ldots, n\}\) have on average?

1
Let \( X_i = \mathbf{1}\{\pi(i) = i\} \). The total count is \( X = \sum_{i=1}^n X_i \).
2
\( P(\pi(i) = i) = \frac{1}{n} \) for each \(i\).
3
\( E[X] = \sum_{i=1}^n E[X_i] = \sum_{i=1}^n \frac{1}{n} = \) \( 1 \), regardless of \(n\).

Variance via Expectation Properties

Variance is defined using expectation, and its computational formula follows directly from linearity:

1
Expand: \( E[(X - \mu)^2] = E[X^2 - 2\mu X + \mu^2] \)
2
Linearity: \( = E[X^2] - 2\mu\,E[X] + E[\mu^2] \)
3
Simplify: \( = E[X^2] - 2\mu^2 + \mu^2 = E[X^2] - \mu^2 \)

Common Mistakes

✕ Product without independence
Writing \(E[XY] = E[X]E[Y]\) without verifying that \(X\) and \(Y\) are independent. This fails when \(\text{Cov}(X,Y) \neq 0\).
✕ Nonlinear functions
Claiming \(E[X^2] = (E[X])^2\) or \(E[1/X] = 1/E[X]\). Expectation is linear, not multiplicative or invertible through nonlinear functions.
✕ Forgetting constant rule
Treating \(E[c]\) as if it requires a distribution. Constants pass through: \(E[c] = c\), and \(E[X + c] = E[X] + c\).

Summary of Properties

Property Formula Condition
Constant \( E[c] = c \) Always
Scaling \( E[aX] = aE[X] \) Always
Additivity \( E[X+Y] = E[X]+E[Y] \) Always
Linearity \( E[aX+bY] = aE[X]+bE[Y] \) Always
Monotonicity \( X \leq Y \Rightarrow E[X] \leq E[Y] \) Always
Product \( E[XY] = E[X]E[Y] \) Independence
LOTUS \( E[g(X)] = \sum g(x)P(X\!=\!x) \) Always

Question 1 of 5

If \(E[X] = 3\) and \(E[Y] = 5\), what is \(E[2X + 3Y - 4]\)?

Question 2 of 5

Which of the following is always true, even when \(X\) and \(Y\) are dependent?

Question 3 of 5

A fair coin is flipped 100 times. Let \(X\) be the number of heads. Using linearity, what is \(E[X]\)?

Question 4 of 5

If \(E[X] = 2\) and \(E[X^2] = 8\), what is \(\text{Var}(X)\)?

Question 5 of 5

Let \(X\) and \(Y\) be independent with \(E[X] = 3\) and \(E[Y] = 4\). What is \(E[XY + 2X]\)?