In risk management, volatility is the most fundamental measure of uncertainty in asset prices, and variance and standard deviation are the core mathematical tools for quantifying volatility. Whether you are calculating portfolio risk, VaR, or running Monte Carlo simulations, you cannot avoid these two concepts. In the FRM Level I exam, variance and standard deviation calculations appear almost every year, often as multi-step comprehensive problems.
This article walks you through the logic of variance and standard deviation calculations using 3 typical examples, and includes specific BA II Plus keystroke procedures to help you truly master this high-frequency exam topic.
| Type | Formula | Use Case |
|---|---|---|
| Population variance | $\sigma^2 = \frac{1}{N}\sum_{i=1}^{N}(X_i - \mu)^2$ | When you have the complete population data |
| Sample variance | $S^2 = \frac{1}{N-1}\sum_{i=1}^{N}(X_i - \bar{X})^2$ | When you draw a sample from the population |
Key distinction: Population variance uses $N$ as the denominator, while sample variance uses $N-1$ (Bessel correction). In the FRM exam, historical return data is typically treated as a sample, so $N-1$ is the default.
The standard deviation is the square root of the variance: $\sigma = \sqrt{\sigma^2}$ and $S = \sqrt{S^2}$.
In finance, volatility typically refers to the annualized standard deviation. If the monthly standard deviation is $\sigma_m$, then the annualized volatility is:
$$\sigma_{annual} = \sigma_m \times \sqrt{12}$$
Problem: The annual returns of a stock over the past 5 years were: 12%, 8%, -3%, 15%, 7%. Calculate the sample variance and sample standard deviation of this data set.
Solution Steps:
Step 1: Calculate the sample mean
$$\bar{X} = \frac{12 + 8 + (-3) + 15 + 7}{5} = \frac{39}{5} = 7.8\%$$
Step 2: Calculate the squared deviation of each observation from the mean
| Year | $X_i$ | $X_i - \bar{X}$ | $(X_i - \bar{X})^2$ |
|---|---|---|---|
| 1 | 12% | 4.2% | 17.64 |
| 2 | 8% | 0.2% | 0.04 |
| 3 | -3% | -10.8% | 116.64 |
| 4 | 15% | 7.2% | 51.84 |
| 5 | 7% | -0.8% | 0.64 |
Step 3: Sum the squared deviations
$$\sum(X_i - \bar{X})^2 = 17.64 + 0.04 + 116.64 + 51.84 + 0.64 = 186.80$$
Step 4: Divide by $N-1$ to get the sample variance
$$S^2 = \frac{186.80}{5-1} = \frac{186.80}{4} = 46.70$$
Step 5: Take the square root to get the sample standard deviation
$$S = \sqrt{46.70} \approx 6.83\%$$
โ BA II Plus keystrokes:
Step 1: Clear statistical cache
2nd โ CLN (screen shows 0.000000000)
Step 2: Enter data
Enter sequentially: 12 โ STO 1
8 โ STO 1
-3 โ STO 1
15 โ STO 1
7 โ STO 1
Step 3: Read results
2nd โ STO (switch to statistics mode)
โ Press 1 to view xฬ (mean = 7.8)
โ Press 3 to view s (sample standard deviation = 6.8338)
โ Press 4 to view sยฒ (sample variance = 46.70)
๐ก Tip: In the statistics mode of the BA II Plus, after
2nd โ STO, pressing3gives the sample standard deviation (s), and pressing4gives the sample variance (sยฒ). This is the most commonly used keystroke combination in the FRM exam.
Problem: An index fund had quarterly returns of 5%, -2%, 8%, and 3% over the past 4 quarters. Calculate both the population variance and the sample variance, and explain the reason for the difference.
Solution:
Mean: $\bar{X} = \frac{5 + (-2) + 8 + 3}{4} = 3.5\%$
Sum of squared deviations: $(5-3.5)^2 + (-2-3.5)^2 + (8-3.5)^2 + (3-3.5)^2 = 2.25 + 30.25 + 20.25 + 0.25 = 53.00$
Reason for the difference: The sample variance uses $N-1$ as the denominator to provide an unbiased estimate of the population variance. When the sample size is small, using $N$ as the denominator systematically underestimates the population variance, so the Bessel correction is needed.
โ BA II Plus keystrokes:
Step 1: 2nd โ CLN to clear cache
Step 2: Enter sequentially
5 โ STO 1
-2 โ STO 1
8 โ STO 1
3 โ STO 1
Step 3: 2nd โ STO to enter statistics mode
โ Press 3: s = 4.2036 (sample standard deviation)
โ Press 4: sยฒ = 17.6667 (sample variance)
Step 4: Calculate population variance
17.6667 ร (3 รท 4) = 13.25
(i.e., sยฒ ร (N-1)/N)
Problem: The monthly standard deviation of a stock's returns over the past 12 months is 4.5%. Calculate the annualized volatility of the stock, and estimate its monthly VaR at the 95% confidence level (assume the mean is zero and the Z-value is 1.645).
Solution:
Step 1: Annualized volatility
$$\sigma_{annual} = 4.5\% \times \sqrt{12} = 4.5\% \times 3.4641 \approx 15.59\%$$
Step 2: Monthly VaR
$$VaR_{95\%} = Z_{95\%} \times \sigma_m = 1.645 \times 4.5\% = 7.40\%$$
This means that at the 95% confidence level, the maximum expected one-month loss for this stock is 7.40% of the market value of the position.
โ BA II Plus keystrokes:
Step 1: Annualized volatility
4.5 โ ร โ 12 โ โ โ ร = 15.5885%
Step 2: Monthly VaR
1.645 ร 4.5 = 7.4025%
๐ก RBA Calculator recommendation: If you prefer to practice on your phone, we recommend the RBA Calculator (TI BA II Plus iOS app). Its interface fully simulates the real BA II Plus calculator and supports all functions including statistics mode, TVM, and cash flows. It is especially useful for repeatedly practicing variance and standard deviation calculations during commutes or spare moments, helping you build muscle memory for the exam.
This is the most common point loss in the FRM exam. Historical data = sample, so you must use $N-1$. Only when the question explicitly states "the following is the complete data set" or mentions "population" should you use $N$.
When the question gives monthly or weekly standard deviation and asks for annualized volatility, you must multiply by $\sqrt{k}$ (where $k$ is the number of periods in a year). For monthly data, multiply by $\sqrt{12}$; for weekly, $\sqrt{52}$; for daily, $\sqrt{252}$.
When solving two consecutive problems, if you forget to press 2nd โ CLN to clear the previous statistical data, the newly entered data will be mixed with the old data, leading to completely incorrect results.
The standard deviation is the square root of the variance, and its units are the same as the original data (e.g., percentage), while the variance has units of percentage squared. In portfolio risk calculations, standard deviations can be added directly (when the correlation coefficient is 1), but variances cannot.
Both are tested, but standard deviation (i.e., volatility) appears more frequently in risk management contexts. It is recommended to master both, especially being able to quickly read $s$ and $sยฒ$ on the BA II Plus.
The variance calculated using $N$ is a biased estimate of the population variance (systematically underestimating it). After dividing by $N-1$, the sample variance becomes an unbiased estimator of the population variance. This is crucial in FRM risk estimation because we need to use limited historical data to infer future risk levels.
The normality assumption does not change the method of calculating variance, but it affects the derivation of subsequent risk measures. For example, under the normality assumption, the 95% confidence level VaR can be calculated directly as $1.645 \times \sigma$; if the distribution has fat tails, other methods are needed.
For a portfolio consisting of two assets, the standard deviation formula is:
$$\sigma_p = \sqrt{w_1^2\sigma_1^2 + w_2^2\sigma_2^2 + 2w_1w_2\rho_{12}\sigma_1\sigma_2}$$
where $\rho_{12}$ is the correlation coefficient between the two assets. Note that the portfolio variance (not the standard deviation) includes the covariance term $2w_1w_2\rho_{12}\sigma_1\sigma_2$, which is the mathematical expression of how diversification reduces risk.
Although variance and standard deviation are simple concepts, they are often tested in combination with other topics in the FRM exam. Here are some suggestions for your practice:
Mastering variance and standard deviation means mastering the "measuring stick" of quantitative risk. Good luck with your exam preparation!
RBA Calculator handles all TVM, NPV/IRR and bond calculations, matching the BA II Plus used in exams 100%.
Free Download on App StoreDon't want to download?Try the web calculators โ