Expectation
Properties
Master the expectation operator and its powerful linearity properties: the foundation for probability, statistics, and stochastic analysis.
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.
Why Expectation Matters
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:
Constants factor out.
Expectation distributes over sums.
Visualizing Linearity
Complete Property List
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
Example 1: Linear Combination
Let \(X\) and \(Y\) be random variables with \(E[X] = 4\) and \(E[Y] = -2\). Find \(E[3X - 5Y + 7]\).
Example 2: Sum of Dice
Find the expected sum when rolling three fair six-sided dice.
Example 3: LOTUS and Products
Let \(X \sim \text{Bernoulli}(p)\). Find \(E[X^2]\) and \(E[X(1-X)]\).
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?
Variance via Expectation Properties
Variance is defined using expectation, and its computational formula follows directly from linearity:
Common Mistakes
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]\)?