Motivation: Same Mean, Different Risk
Consider three scenarios where you win money, all with expected value of $1000:
Interactive: Spread Visualizer
Scenario A: You get $1000 guaranteed.
Mean as a Balance Point
The expected value (mean) acts as the "balance point" of a distribution. Variance measures how far values deviate from this point.
Interactive: Balance Point Visualizer
Definition
Variance
$$ \text{Var}(X) = E[(X - \mu)^2] = \sum_x (x - \mu)^2 p(x) $$ where \(\mu = E[X]\).
Standard Deviation
$$ \sigma = \sqrt{\text{Var}(X)} $$
Interactive Proof: Computational Formula
We will prove that: \(\text{Var}(X) = E[X^2] - (E[X])^2\)
Variance Calculator
Enter a custom probability distribution and see its variance computed step-by-step.