Expected value and variance from scenarios
The expected value weights each outcome by its probability, and so does the variance:
E(X) = sum of P_i x X_i Var(X) = sum of P_i x [X_i - E(X)]^2
Example: an analyst gives a retailer's share a 0.2 chance of returning 25% next year, a 0.5 chance of 10% and a 0.3 chance of -15%.
- E(R) = 0.2 x 25 + 0.5 x 10 + 0.3 x (-15) = 5 + 5 - 4.5 = 5.5%.
- Var = 0.2 x 19.5^2 + 0.5 x 4.5^2 + 0.3 x (-20.5)^2 = 76.05 + 10.125 + 126.075 = 212.25.
- Standard deviation = sqrt(212.25) = 14.57%.
Expected values can also be conditional: the expected return given a recession, or given no recession. The overall expected value is the probability-weighted sum of those conditional expectations, the same logic as the total probability rule below. A probability tree, with one branch per scenario and its probability on the branch, keeps the weights straight.