Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide/Portfolio & risk

Returns and volatility

Lesson 1 of 8 · 1 min read

The lesson "Interest, compounding and discounting" dealt with money that grows at a known rate. A stock does not: its price moves up and down in a way nobody can predict exactly. This lesson introduces the two numbers used to describe such movements, the average return and the volatility, and shows how both scale with the length of the holding period.

Prices and returns

Write StS_tSt​ for the price of a stock at time ttt. Prices themselves are awkward to compare: a move of 5 means a lot for a stock at 20 and little for a stock at 1000. What an investor cares about is the change relative to the starting price. So instead of prices we study returns, the relative change over a period.

Throughout this lesson the stock pays no dividends, so the price change is the whole return.

Simple returns

The simple return from time t−1t-1t−1 to ttt is

Rt=St−St−1St−1=StSt−1−1.R_t = \frac{S_t - S_{t-1}}{S_{t-1}} = \frac{S_t}{S_{t-1}} - 1.Rt​=St−1​St​−St−1​​=St−1​St​​−1.

It is the number most people mean by "the stock went up 10%". Its drawback appears when periods are chained. Over two periods the total growth factor is the product (1+R1)(1+R2)(1+R_1)(1+R_2)(1+R1​)(1+R2​), not the sum of the returns.

Example: a price goes from 100 to 110 and then back to 99. The simple returns are +10%+10\%+10% and −10%-10\%−10%. They add up to zero, yet the investor has lost 1%, because 1.1×0.9=0.991.1 \times 0.9 = 0.991.1×0.9=0.99.

Log returns

The log return (continuously compounded return) is the natural logarithm of the growth factor:

rt=ln⁡StSt−1=ln⁡(1+Rt).r_t = \ln\frac{S_t}{S_{t-1}} = \ln(1 + R_t).rt​=lnSt−1​St​​=ln(1+Rt​).

It is the rate that, compounded continuously over the period, turns St−1S_{t-1}St−1​ into StS_tSt​, exactly as in "Interest, compounding and discounting": St=St−1ertS_t = S_{t-1}e^{r_t}St​=St−1​ert​. Because a logarithm turns products into sums, log returns over consecutive periods add up:

ln⁡SnS0=ln⁡S1S0+ln⁡S2S1+⋯+ln⁡SnSn−1=r1+r2+⋯+rn.\ln\frac{S_n}{S_0} = \ln\frac{S_1}{S_0} + \ln\frac{S_2}{S_1} + \cdots + \ln\frac{S_n}{S_{n-1}} = r_1 + r_2 + \cdots + r_n.lnS0​Sn​​=lnS0​S1​​+lnS1​S2​​+⋯+lnSn−1​Sn​​=r1​+r2​+⋯+rn​.

In the example above, ln⁡1.1≈0.0953\ln 1.1 \approx 0.0953ln1.1≈0.0953 and ln⁡0.9≈−0.1054\ln 0.9 \approx -0.1054ln0.9≈−0.1054. Their sum is −0.0101=ln⁡0.99-0.0101 = \ln 0.99−0.0101=ln0.99, which correctly reports the 1% loss. For small moves the two kinds of return are nearly equal, since ln⁡(1+R)≈R\ln(1+R) \approx Rln(1+R)≈R when RRR is close to zero.

From here on, "return" means log return. Additivity is what makes the scaling rules below so simple.

Mean and standard deviation

Treat the return over one period as a random variable rrr. Its mean (expected value) E[r]\mathbb{E}[r]E[r] is the average return you would see over many repetitions. Its standard deviation measures the typical size of the deviation from that mean:

sd⁡(r)=Var⁡(r),Var⁡(r)=E[(r−E[r])2].\operatorname{sd}(r) = \sqrt{\operatorname{Var}(r)}, \qquad \operatorname{Var}(r) = \mathbb{E}\big[(r - \mathbb{E}[r])^2\big].sd(r)=Var(r)​,Var(r)=E[(r−E[r])2].

From a sample of nnn observed returns r1,…,rnr_1, \dots, r_nr1​,…,rn​ we estimate them by

rˉ=1n∑i=1nri,s=1n−1∑i=1n(ri−rˉ)2.\bar r = \frac{1}{n}\sum_{i=1}^{n} r_i, \qquad s = \sqrt{\frac{1}{n-1}\sum_{i=1}^{n} (r_i - \bar r)^2}.rˉ=n1​i=1∑n​ri​,s=n−11​i=1∑n​(ri​−rˉ)2​.

Example: four daily returns of 2%2\%2%, −1%-1\%−1%, 3%3\%3% and −2%-2\%−2%. The mean is rˉ=0.5%\bar r = 0.5\%rˉ=0.5%. The deviations are 1.51.51.5, −1.5-1.5−1.5, 2.52.52.5 and −2.5-2.5−2.5 (in percent), their squares add up to 17, and s=17/3≈2.38%s = \sqrt{17/3} \approx 2.38\%s=17/3​≈2.38% per day.

Volatility

Volatility σ\sigmaσ is the standard deviation of log returns, quoted per year. A stock with σ=20%\sigma = 20\%σ=20% has annual log returns that typically land within about 20 percentage points of their mean. Volatility measures how uncertain the outcome is, not which direction it takes.

Volatility σ\sigmaσ is the annualised standard deviation of log returns. The drift μ\muμ is the annualised mean log return.

Annualising and the square-root-of-time rule

Returns are measured daily or monthly, but μ\muμ and σ\sigmaσ are quoted per year. To convert, make two assumptions: returns over non-overlapping periods are independent, and they all have the same distribution. Split a horizon of TTT years into nnn periods of length Δt=T/n\Delta t = T/nΔt=T/n, each with mean μ Δt\mu\,\Delta tμΔt and variance σ2Δt\sigma^2\Delta tσ2Δt. The total log return is the sum of the period returns, so

E[∑i=1nri]=n μ Δt=μT,Var⁡(∑i=1nri)=n σ2Δt=σ2T.\mathbb{E}\Big[\sum_{i=1}^n r_i\Big] = n\,\mu\,\Delta t = \mu T, \qquad \operatorname{Var}\Big(\sum_{i=1}^n r_i\Big) = n\,\sigma^2\Delta t = \sigma^2 T.E[i=1∑n​ri​]=nμΔt=μT,Var(i=1∑n​ri​)=nσ2Δt=σ2T.

The variance adds because the returns are independent. Taking the square root gives the square-root-of-time rule:

sd⁡(return over T)=σT.\operatorname{sd}(\text{return over } T) = \sigma\sqrt{T}.sd(return over T)=σT​.

The mean grows in proportion to TTT, the standard deviation only in proportion to T\sqrt{T}T​. With about 252 trading days a year, a daily standard deviation of 1.2%1.2\%1.2% corresponds to an annual volatility of 1.2%×252≈19.0%1.2\% \times \sqrt{252} \approx 19.0\%1.2%×252​≈19.0%. In the other direction, σ=20%\sigma = 20\%σ=20% per year means 20%/12≈5.8%20\% / \sqrt{12} \approx 5.8\%20%/12​≈5.8% per month.

The normal distribution as a first model

A simple first model assumes that the log return over TTT years is normally distributed:

ln⁡STS0∼N(μT, σ2T).\ln\frac{S_T}{S_0} \sim N\big(\mu T,\ \sigma^2 T\big).lnS0​ST​​∼N(μT, σ2T).

This is natural given the previous section: the total log return is a sum of many small independent pieces, and such sums are approximately normal (central limit theorem). For a normal variable about 68% of outcomes fall within one standard deviation of the mean and about 95% within two.

Example: with μ=8%\mu = 8\%μ=8%, σ=20%\sigma = 20\%σ=20% and T=4T = 4T=4 years, the mean log return is μT=0.32\mu T = 0.32μT=0.32 and the standard deviation is σT=0.40\sigma\sqrt{T} = 0.40σT​=0.40. The one-standard-deviation range is −0.08-0.08−0.08 to 0.720.720.72. In price terms, a stock starting at 100 ends between about 100 e−0.08≈92.3100\,e^{-0.08} \approx 92.3100e−0.08≈92.3 and 100 e0.72≈205.4100\,e^{0.72} \approx 205.4100e0.72≈205.4 in roughly two cases out of three.

Real returns have fatter tails than the normal distribution: large moves happen more often than it predicts. The model is still the standard starting point, and later lessons build on it.

The figure plots the expected cumulative log return μT\mu TμT over horizons up to 10 years, with bands at μT±σT\mu T \pm \sigma\sqrt{T}μT±σT​ and μT±2σT\mu T \pm 2\sigma\sqrt{T}μT±2σT​. Increase σ\sigmaσ and note that the bands widen while the centre line does not move. Over short horizons the bands dominate the drift; only over long horizons does the line pull away from zero relative to their width.

Expected return and uncertainty against the horizonOpen in Risk & Return →
6.0%
-0.10.2
20%
0.050.6
Expected log return μTμT ± σ√TμT ± 2σ√T
T = 1 y
6.0% ± 20.0%
T = 4 y
24.0% ± 40.0%
T = 9 y
54.0% ± 60.0%

Summary

  • Returns, not prices, are the objects to model. Log returns ln⁡(St/St−1)\ln(S_t/S_{t-1})ln(St​/St−1​) add up over consecutive periods.
  • Volatility σ\sigmaσ is the annualised standard deviation of log returns; μ\muμ is their annualised mean.
  • With independent, identically distributed returns, the mean grows like μT\mu TμT and the standard deviation like σT\sigma\sqrt{T}σT​.
  • A first model takes ln⁡(ST/S0)\ln(S_T/S_0)ln(ST​/S0​) to be normal with mean μT\mu TμT and variance σ2T\sigma^2 Tσ2T.

The next lesson, "Diversification and correlation", combines several assets and shows how their volatilities add up. Where the T\sqrt{T}T​ comes from is shown in "Random walks and Brownian motion", the first lesson of the Stochastic models track.

Try itEstimate means, volatilities and the risk–return trade-off in the Risk & Return lab →
Next →Diversification and correlation
Connections
Returns and volatility
Open the full graph →
Labs for this lesson
Risk & Return