0bps

Learn / Track I / lesson 1 of 4

Expected value and variance

The two numbers behind every trade — what you make on average, and how far a single outcome can land from it.

9 min read

Every trading decision is a bet with a distribution of outcomes. Before you can say anything about a strategy, you need two summaries of that distribution: where its centre is, and how spread out it is.

Expected value

For a discrete random variable XX that takes value xix_i with probability pip_i, the expected value is the probability-weighted average:

E[X]=∑ixi pi\mathbb{E}[X] = \sum_i x_i \, p_i

For a continuous variable with density ff, the sum becomes an integral, E[X]=∫xf(x) dx\mathbb{E}[X] = \int x f(x)\,dx.

Worked example

A setup wins 40% of the time for +3R+3R and loses 60% of the time for −1R-1R (where RR is the amount you risk). Its expectancy per trade is

E[X]=0.4(3)+0.6(−1)=0.6R\mathbb{E}[X] = 0.4(3) + 0.6(-1) = 0.6R

You lose more often than you win, and the trade is still strongly positive. Win rate alone tells you almost nothing.

Expectation is linear, which is what makes it so useful: E[aX+bY]=a E[X]+b E[Y]\mathbb{E}[aX + bY] = a\,\mathbb{E}[X] + b\,\mathbb{E}[Y], whether or not XX and YY are independent. The expected P&L of a portfolio is the weighted sum of the expected P&Ls of its parts — always.

Variance and standard deviation

Variance measures the average squared distance from the mean:

Var⁡(X)=E[(X−E[X])2]=E[X2]−E[X]2\operatorname{Var}(X) = \mathbb{E}\big[(X - \mathbb{E}[X])^2\big] = \mathbb{E}[X^2] - \mathbb{E}[X]^2

The standard deviation σ=Var⁡(X)\sigma = \sqrt{\operatorname{Var}(X)} is in the same units as XX, so it is the number you quote. In finance, the standard deviation of returns is called volatility.

For the example above, E[X2]=0.4(9)+0.6(1)=4.2\mathbb{E}[X^2] = 0.4(9) + 0.6(1) = 4.2, so Var⁡(X)=4.2−0.36=3.84\operatorname{Var}(X) = 4.2 - 0.36 = 3.84 and σ≈1.96R\sigma \approx 1.96R.

Unlike expectation, variance is not linear:

Var⁡(aX+bY)=a2Var⁡(X)+b2Var⁡(Y)+2abCov⁡(X,Y)\operatorname{Var}(aX + bY) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(Y) + 2ab\operatorname{Cov}(X, Y)

That covariance term is the whole reason diversification works, and it is the starting point of portfolio construction.

Why the square root of n matters

Take nn independent trades with the same mean μ\mu and volatility σ\sigma. The total P&L has mean nμn\mu and standard deviation σn\sigma\sqrt{n}. The ratio of signal to noise therefore grows like

nμσn=n μσ\frac{n\mu}{\sigma\sqrt{n}} = \sqrt{n}\,\frac{\mu}{\sigma}
Intuition

A small edge becomes reliable only through repetition. A strategy with μ/σ=0.05\mu/\sigma = 0.05 per trade is invisible over 10 trades, but over 1,600 trades the cumulative result is two standard deviations above zero. This is why high-frequency firms can live on edges a discretionary trader could never detect.

Expected value is not enough

Two bets can share an expected value and be completely different to hold. A strategy that earns +1%+1\% a month with certainty, and one that earns +11%+11\% or −9%-9\% on a coin flip, both have mean 1%1\%. Only one will ever bankrupt you. The rest of this curriculum is largely about what you need beyond the mean: variance and risk-adjusted return, growth and sizing, and tail risk.

Common mistake

Optimising for win rate. Strategies that “win 90% of the time” often do so by taking small profits and holding losers (selling options, martingale, tight take-profits with no stop). The expectancy can still be negative, and the losing tail is where accounts end.

Check yourself

  • A trade wins +2R+2R with probability pp and loses −1R-1R otherwise. What is the break-even win rate? (Answer: 2p−(1−p)=0⇒p=1/32p - (1-p) = 0 \Rightarrow p = 1/3.)
  • If two strategies each have volatility 10%10\% and correlation 0.50.5, what is the volatility of an equal-weight blend? (Answer: 0.25(0.01)+0.25(0.01)+2(0.25)(0.5)(0.01)≈8.66%\sqrt{0.25(0.01) + 0.25(0.01) + 2(0.25)(0.5)(0.01)} \approx 8.66\%.)

Put it to work

esc

Try , , or .

↑↓ move↵ open