# Standard Deviation

> The yardstick of how spread out returns are.

Module: Trading Concepts & Glossary — Finotaur Academy (free lesson)
Source: https://www.finotaur.com/academy/trading-glossary/standard-deviation

## You'll be able to

Calculate the standard deviation of a set of returns by hand, read what it says about their spread, and know where the bell-curve rules of thumb break down.

## In plain words

Standard deviation is a statistic that measures how spread out a set of numbers is around their average. In trading it is the standard yardstick for how much returns vary: a small standard deviation means results cluster near the average, a large one means they swing widely. It is the building block of volatility, the Sharpe ratio, Bollinger Bands and many risk models.

```takeaways
- **Standard deviation = square root of the average squared distance from the mean.**
- Use the **sample** version (divide by n − 1) for a sample of trades or returns; the **population** version divides by n.
- For a normal distribution, about **68%** of values lie within 1 standard deviation of the mean, **95%** within 2 and **99.7%** within 3.
- Market returns have **fatter tails** than the normal curve, so extreme moves happen more often than those figures imply.
```

## Quick demo

**Hypothetical five daily returns:** +2%, −1%, +3%, 0%, −4%.

1. Mean = (2 − 1 + 3 + 0 − 4) ÷ 5 = **0%**.
2. Deviations from the mean: 2, −1, 3, 0, −4. Squared: 4, 1, 9, 0, 16 → sum **30**.
3. Sample variance = 30 ÷ (5 − 1) = **7.5**. Sample standard deviation = √7.5 ≈ **2.74%**.
4. Population variance = 30 ÷ 5 = 6. Population standard deviation = √6 ≈ **2.45%**.

If these returns came from a normal distribution with a 2.74% standard deviation, about two days in three would fall between −2.74% and +2.74%.

```stats
0% | Mean daily return | Five hypothetical days
30 | Sum of squared deviations | 4 + 1 + 9 + 0 + 16
2.74% | Sample standard deviation | √(30 ÷ 4)
2.45% | Population standard deviation | √(30 ÷ 5)
```

## Full explanation

### Formula

**Sample standard deviation s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )**

- **xᵢ** = each value, **x̄** = the mean, **n** = number of values.
- Dividing by n − 1 rather than n corrects for the fact that the mean itself was estimated from the same data. With large samples the difference is small.

Variance is the standard deviation squared. Standard deviation is used more often because it is in the same units as the data (percent, dollars or R).

### Scaling over time

If returns are independent from period to period, standard deviation grows with the **square root of time**. Daily standard deviation × √252 gives an annual figure; × √5 gives a rough weekly figure. That is the basis of annualised volatility.

### How traders use it

- **Volatility:** annualised standard deviation of returns is the most common volatility measure.
- **Risk-adjusted returns:** it is the denominator of the Sharpe ratio.
- **Bands and stops:** Bollinger Bands place lines a set number of standard deviations from a moving average; some traders set stops a multiple of standard deviation away from entry.
- **Reliability of results:** the standard error of your expectancy is the standard deviation of trade results ÷ √n. It tells you how much a sample average can be trusted.

```warning
"A three-standard-deviation move should happen almost never" is true for a normal distribution, not for markets. Crashes and spikes far beyond three standard deviations have occurred many times. Size positions for fat tails, not for the bell curve.
```

### Common mistakes

- **Mixing sample and population formulas** without knowing which a tool uses.
- **Computing it on prices instead of returns.** Prices trend, so their spread is not a measure of risk.
- **Assuming normality** when reading probabilities.
- **Using too short a window,** which makes the estimate jumpy.

### Related terms

- **Volatility** — annualised standard deviation of returns.
- **Sharpe Ratio** and **Sortino Ratio** — return divided by a standard-deviation-based risk measure.
- **Beta** — built on covariance, a close relative of variance.
- **Expectancy** — its reliability depends on the standard deviation of trade results.
- **Average True Range (ATR)** — an alternative range-based volatility gauge.

```checklist
title: Using standard deviation well
- Compute it on returns, not on raw prices.
- Use the sample formula for a sample of trades or periods.
- Annualise with the square root of the number of periods.
- Use a window long enough to be stable but short enough to stay relevant.
- Allow for fat tails when turning it into probabilities.
```

```quiz
[
  {
    "q": "Values 1, 3 and 5 have a mean of 3. What is the sample standard deviation?",
    "options": ["1", "2", "2.67", "4"],
    "answer": 1,
    "why": "Squared deviations 4 + 0 + 4 = 8; 8 ÷ (3 − 1) = 4; √4 = 2."
  },
  {
    "q": "For a normal distribution, roughly what share of values lie within two standard deviations of the mean?",
    "options": ["50%", "68%", "95%", "99.7%"],
    "answer": 2,
    "why": "About 95% of values fall within ±2 standard deviations in a normal distribution."
  },
  {
    "q": "Daily standard deviation is 1%. Roughly what is the annualised figure, assuming independent returns?",
    "options": ["1%", "5%", "16%", "252%"],
    "answer": 2,
    "why": "1% × √252 ≈ 15.9%."
  }
]
```
