Skip to content

Methodology

Returns and risk

Definitions of every realised (historical) statistic, with the exact conventions used.

Returns

For adjusted closing prices PtP_t (split- and dividend-adjusted, so price returns are total returns):

rt=PtPt−1−1(simple, arithmetic)xt=ln⁡PtPt−1=ln⁡(1+rt)(logarithmic)r_t = \frac{P_t}{P_{t-1}} - 1 \qquad\text{(simple, arithmetic)}\qquad x_t = \ln\frac{P_t}{P_{t-1}} = \ln(1+r_t) \qquad\text{(logarithmic)}

The first date has no return and is dropped. It is never filled with zero, because a fabricated zero would bias means and volatilities downwards. Log returns add over time; simple returns aggregate across assets (rp,t=∑iwiri,tr_{p,t} = \sum_i w_i r_{i,t}), which is why portfolio calculations use simple returns.

Annualisation

With PP periods per year (252, 52 or 12) and nn observations:

QuantityFormula
Arithmetic annual returnrˉA=P⋅1n∑trt\bar r_A = P\cdot\frac{1}{n}\sum_t r_t
CAGR (geometric)(∏t(1+rt))P/n−1\left(\prod_t (1+r_t)\right)^{P/n} - 1
Annualised volatilityσA=P⋅s(r)\sigma_A = \sqrt{P}\cdot s(r), sample standard deviation with n−1n-1
Annualised covarianceΣA=P⋅Cov^(r)\Sigma_A = P\cdot \widehat{\mathrm{Cov}}(r)

The square-root-of-time rule assumes serially uncorrelated returns; with autocorrelation it misstates annual volatility (Lo, 2002).

Risk-adjusted performance

Sharpe ratio (Sharpe, 1966; 1994), using an effective annual risk-free rate RfR_f converted to a per-period rate rf=(1+Rf)1/P−1r_f = (1+R_f)^{1/P}-1:

SR=P r−rf‾s(r−rf)SR = \sqrt{P}\,\frac{\overline{r - r_f}}{s(r - r_f)}

It is reported as undefined (with the reason) when volatility is zero.

Sharpe ratio interval. A Sharpe ratio estimated from a few years of returns is uncertain, often by more than its size, so every one comes with a 95% confidence interval SR±1.96 SESR \pm 1.96\,SE. Write xtx_t for the excess returns, \mu = ar x, g=x2‾g = \overline{x^2} and v=g−μ2v = g - \mu^2, so the per-period ratio is μ/v\mu/\sqrt{v}. By the delta method

SE^2 = rac{P}{T}\, abla^ op \Psi\, abla,\qquad abla = \left( rac{g}{v^{3/2}},\; - rac{\mu}{2v^{3/2}} ight),

where Ψ\Psi is the Newey-West (Bartlett kernel) long-run covariance of (xt−μ,  xt2−g)(x_t - \mu,\; x_t^2 - g) with ⌊4(T/100)2/9floor\lfloor 4(T/100)^{2/9} floor lags. For independent normal returns this reduces to Lo's (2002) (1+SR2/2)/T\sqrt{(1 + SR^2/2)/T} per period; without lags it is Mertens' (2002) formula, which adds skewness and kurtosis; with lags it also allows for autocorrelation, which Lo shows can change the standard error considerably. Both reductions, and the interval's coverage in simulations, are automated tests. Fewer than 24 returns give no interval (n/a, with the reason).

Sortino ratio (Sortino & Price, 1994) with minimum acceptable return mm (per period), target downside deviation over all observations:

DD=1n∑tmin⁡(rt−m,0)2,Sortino=P rˉ−mDDDD = \sqrt{\tfrac{1}{n}\textstyle\sum_t \min(r_t - m, 0)^2}, \qquad \text{Sortino} = \sqrt{P}\,\frac{\bar r - m}{DD}

Undefined when no return falls below mm.

Maximum drawdown on the wealth index W0=1W_0 = 1, Wt=∏s≤t(1+rs)W_t = \prod_{s\le t}(1+r_s):

MDD=min⁡t(Wtmax⁡s≤tWs−1)\text{MDD} = \min_t \left(\frac{W_t}{\max_{s\le t} W_s} - 1\right)

The initial value W0W_0 is included, so a loss in the first period counts as a drawdown. The Calmar ratio is CAGR/∣MDD∣\text{CAGR}/|\text{MDD}|.

Relationship to a benchmark

β=Cov(ra,rm)Var(rm),TE=P s(rp−rb),IR=P rp−rb‾s(rp−rb)\beta = \frac{\mathrm{Cov}(r_a, r_m)}{\mathrm{Var}(r_m)},\qquad TE = \sqrt{P}\,s(r_p - r_b),\qquad IR = \sqrt{P}\,\frac{\overline{r_p - r_b}}{s(r_p - r_b)}

Tail risk

Historical one-period Value at Risk at confidence cc is the loss not exceeded in a fraction cc of observations, VaRc=−q1−c(r)\text{VaR}_c = -q_{1-c}(r) (empirical quantile, linear interpolation). Conditional VaR (expected shortfall) is the mean loss in that tail, CVaRc=−E[r∣r≤q1−c]\text{CVaR}_c = -\mathbb{E}[r \mid r \le q_{1-c}], a coherent risk measure (Artzner et al., 1999). Both are reported as positive fractions and refer to the data frequency (e.g. one day).

Portfolio risk decomposition

With weights ww and covariance Σ\Sigma, portfolio volatility σp=w⊤Σw\sigma_p = \sqrt{w^\top\Sigma w} is homogeneous of degree one, so by Euler's theorem

σp=∑iwi∂σp∂wi=∑iwi(Σw)iσp⏟risk contribution RCi\sigma_p = \sum_i w_i \frac{\partial \sigma_p}{\partial w_i} = \sum_i \underbrace{\frac{w_i (\Sigma w)_i}{\sigma_p}}_{\text{risk contribution } RC_i}

Risk contributions sum exactly to σp\sigma_p (Litterman, 1996). When σp=0\sigma_p = 0 they are undefined and shown as n/a with the reason, never as zeros. Ardentum also reports the diversification ratio ∑iwiσi/σp\sum_i w_i\sigma_i / \sigma_p (Choueifaty & Coignard, 2008) and the effective number of assets 1/∑iwi21/\sum_i w_i^2; with short positions it uses the gross weights, 1/∑i(∣wi∣/∑j∣wj∣)21/\sum_i \left(|w_i| / \sum_j |w_j|\right)^2, so shorts count as positions.

Correlation

Pearson correlations of returns. An asset whose returns never change over the window (cash at a fixed price, for example) has no variance, so its correlations are undefined: its row and column are n/a with a note naming it, and every other pair keeps its correlation.

Consistency check

Because expected returns and covariances are annualised linearly and the risk-free rate is expressed as P⋅rfP\cdot r_f on the same scale, the ex-ante Sharpe ratio of a portfolio computed from sample estimates equals its ex-post Sharpe ratio on the same sample exactly. This identity is an automated test.