Formulas and metrics
CAGR, volatility, Sharpe, Sortino, Calmar, beta, CAPM and Fama-French.
The formulas behind the backtester's metrics. They're published for transparency: knowing how a number is built is the best way to understand when it stops being reliable.
Return
CAGR (Compound Annual Growth Rate)
Compound annual return between starting and ending value over years. It says nothing about the path: two portfolios with the same CAGR can have had completely different histories.
Risk
Volatility
Standard deviation of monthly returns, annualised. The √12 factor assumes returns are independent from one month to the next, a convenient assumption that real markets violate precisely during crises, when declines cluster.
Drawdown
The fall from a previous peak. Computed on monthly closes, so shallower than the real daily drawdown.
Risk-adjusted return
Sharpe Ratio
Excess return over the risk-free rate, per unit of volatility.
Sortino Ratio
Like Sharpe, but the denominator counts only downside volatility. It answers a reasonable objection to Sharpe: upside volatility isn't a risk, it's exactly what you're after.
Calmar Ratio
Return per unit of maximum loss. It's the metric closest to how people actually experience risk.
Market exposure
Portfolio Beta
How much the portfolio moves relative to its reference market.
CAPM Expected Return
Expected return under the Capital Asset Pricing Model, given beta.
Correlation
How much two instruments move together, between −1 and +1. It's the engine of diversification: low correlation, not the number of instruments, is what reduces total volatility.
Five-factor model
Fama-French
Decomposes a portfolio's return into exposures to market, size (SMB), value (HML), profitability (RMW) and investment policy (CMA). Backtes.to adds momentum (WML) to this multivariate regression, estimating all six betas from monthly excess returns:
Caveat. Historical factor premia are estimated over long periods and are not guaranteed going forward: some factors went through entire decades of underperformance after publication. Factor exposure describes what the portfolio is made of, it does not forecast its return. The rolling chart repeats that same regression over each trailing 60-month window; it shows how the estimated exposure has changed, not a forecast.
Graphical methods
- Monte Carlo: thousands of simulations to estimate the distribution of possible outcomes.
- Rolling windows: return over moving windows, to see how much the result depends on entry date.
- FIRE simulations: accumulation and withdrawal projections; the method is described in How the FIRE simulation works.
Conventions
- The risk-free rate used in ratios is Euribor.
- All metrics are computed on end-of-month monthly returns.
- With a DCA plan active, volatility and risk-adjusted ratios use returns that neutralise contributions: see Simulating a DCA plan.