Expectation and Variance
Motivation: why this matters in quant finance
For risk and portfolio construction, the next question is how far outcomes spread around their average. Variance and covariance supply that second-order information: volatility, tracking error, hedge error, and Markowitz portfolio risk all come from the same calculation.
Bertsekas motivates expectation as a long-run average payoff and variance as the mean squared deviation from that average. In quant finance, the same interpretation survives but the stakes are sharper. An expectation prices a payoff only after the measure has been chosen; a variance describes dispersion only after the random variable and its distribution are specified.
The informal idea
Expectation is a probability-weighted centre of mass. If a payoff pays in one state and in another, the expectation is not the most likely payoff; it is the balancing point after probability weights are attached.
Variance measures how far outcomes tend to sit from that balancing point. It squares deviations, so large misses dominate. That is why volatility is sensitive to tail events and why portfolio variance can fall when positions offset each other.
Expectation and variance answer different questions:
| Quantity | Question answered | Finance reading |
|---|---|---|
| Where is the probability-weighted centre? | Price, drift, expected P&L | |
| How dispersed are outcomes around the centre? | Volatility, risk, hedge error | |
| Do two quantities move together linearly? | Diversification, factor exposure |
Formal definitions
Discrete expectation
If takes values with PMF , then
provided the absolute sum is finite. The absolute convergence condition matters: some symmetric-looking heavy-tailed variables do not have a well-defined mean.
Continuous expectation
If has density , then
again provided .
General expectation
Variance, covariance, and correlation
For ,
For two square-integrable random variables,
Correlation normalises covariance:
Key properties
Linearity of expectation
For constants ,
No independence is required. This is why the value of a portfolio is the sum of the values of its components under a linear pricing rule.
Expected value rule
For a function ,
in the discrete case, and
in the continuous case. Bertsekas treats this as the clean way to avoid first deriving the distribution of . Option pricing uses exactly this move when integrating against the density of .
Affine transformations
If , then
Adding cash shifts a payoff's mean but does not change its variance. Scaling a position by scales volatility by and variance by .
Variance of sums
If and are independent, the covariance term is zero. Portfolio risk lives in this cross term: diversification is not magic; it is covariance arithmetic.
Nonlinear functions cannot be averaged by substitution
Usually
This is not a technicality. Convex payoffs, exponentials of normal variables, and reciprocal quantities all punish the shortcut.
Worked examples
Example 1: a two-state call payoff
In the one-period model with risk-neutral probability , a call with strike has payoff .
With risk-free discounting, the price is . The arithmetic is elementary; the modelling content is the choice of measure.
Example 2: variance of an equally weighted portfolio
Let two asset returns have volatilities and and correlation . For equal weights,
So . The volatility is below the simple average because correlation is below one.
Example 3: average speed is not average time
Bertsekas uses a simple pitfall: if speed is random and travel time is , then . The finance analogue is discounting or convex payoffs. If is random, is not unless the rate is deterministic or special structure is present.
Example 4: the exponential moment behind Black-Scholes
If , then
The term is the convexity correction. It is the same second-order effect that appears in geometric Brownian motion when the log drift is adjusted by .
Common confusions and pitfalls
Where this goes next
- Independence and Conditioning: Explains when products factor and when conditioning changes averages.
- Conditional Expectation: Turns expectation into a forecast given information.
- Moment Generating Functions: Packages all moments into when that quantity exists.
- Normal Distribution: The mean-variance benchmark used throughout return modelling.
- Mean-Variance Optimisation: Uses expected returns, variances, and covariances to choose portfolios.
References
- Bertsekas, D. P., & Tsitsiklis, J. N. (2008). Introduction to Probability (2nd ed.). Athena Scientific. Ch. 2 §2.4 (Expectation, Mean, and Variance), §2.5 (Joint PMFs of Multiple Random Variables).