# How much it swings

> The variance of a random variable is the expected squared gap from its mean: Σ (x − μ)² · P(x). The SD is its square root, and it measures risk.

Canonical URL: https://monte.markets/learn/rv/spread-of-a-random-variable/

License: CC BY 4.0, reuse with credit to monte.markets.

Lesson 4 of 5 in [Random variables and expected value](https://monte.markets/learn/rv.md).

**Question:** Two bets both average $0. One always pays $0; the other pays +$100 or −$100 with equal chance. What's different?

- **The spread** (right answer): Yes. Same expected value, very different risk.
- The expected value: Both average $0.
- Nothing: One never moves; the other swings by $100 every time.

The variance of a random variable is the expected squared gap from its mean: Σ (x − μ)² · P(x). The SD is its square root, and it measures risk.

**Question:** X is +100 or −100 with chance 0.5 each. What is its SD?

- **100** (right answer): Yes. Every outcome is 100 from the mean of 0, so the typical distance is 100.
- 0: The mean is 0, but the values sit 100 away from it.
- 10,000: That's the variance. Take the square root.

Expected value says where it lands on average. SD says how far a single try can stray.

Next: [Adding and multiplying](https://monte.markets/learn/rv/shifting-and-scaling.md)
