> ## Documentation Index
> Fetch the complete documentation index at: https://kalpi.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Volatility (Standard Deviation)

> Measure the absolute dispersion of your portfolio's returns relative to its average performance.

**Volatility**, mathematically expressed as **Standard Deviation**, is the foundational metric for measuring absolute risk in quantitative finance. It calculates how wildly your portfolio's returns swing up and down on a day-to-day or month-to-month basis.

If a strategy has an average annualized return of 15% but a massive standard deviation, it means the actual return in any given year could swing anywhere from +40% to -10%. A low standard deviation means the returns are highly predictable and tightly clustered around that 15% average.

## The Mathematical Formula

Standard deviation ($\sigma$) is calculated by taking the square root of the variance of your portfolio's returns:

$\sigma = \sqrt{\frac{\sum (R_i - \mu)^2}{N}}$

**Where:**

* $R_i$ = Each individual periodic return.
* $\mu$ = The mean (average) of all returns.
* $N$ = The total number of periods.

## Strategic Application

Standard Deviation is completely blind to direction—it treats a sudden 10% gain and a sudden 10% loss as the exact same amount of "risk." Because of this, it is rarely evaluated on its own.

Instead, Standard Deviation serves as the core risk denominator for high-level efficiency metrics. If you want to know whether your portfolio's returns are worth the wild price swings you are enduring, you must plug your Standard Deviation into the **Sharpe Ratio**.
