Skip to content

Methodology

Estimation

How expected returns and covariances are estimated, and why the estimates deserve scepticism.

Mean–variance optimisation needs two inputs: a vector of expected returns μ\mu and a covariance matrix Σ\Sigma. Neither is observable. Ardentum estimates both from a user-chosen historical window and records the estimator, window, number of observations and shrinkage intensity with every result.

Estimation error is the central problem

The standard error of an annualised mean return is roughly σA/Tyears\sigma_A/\sqrt{T_{\text{years}}}. For an asset with 20% volatility and ten years of data that is about 6.3 percentage points, larger than most differences in expected returns between assets. Optimisers amplify these errors: they overweight assets whose returns were overestimated (Best & Grauer, 1991; Chopra & Ziemba, 1993; Michaud, 1998). Ardentum responds by offering shrinkage estimators, constraints, objectives that ignore expected returns (minimum volatility), and a weight-stability analysis.

Expected returns

Historical mean. μ^=P⋅rˉ\hat\mu = P\cdot\bar r, the annualised arithmetic sample mean.

Bayes–Stein shrinkage (Jorion, 1986). Sample means are shrunk toward the mean return of the global minimum-variance portfolio:

μ^BS=(1−ϕ) μ^+ϕ μ01,μ0=1⊤Σ~−1μ^1⊤Σ~−11,ϕ=N+2(N+2)+T (μ^−μ01)⊤Σ~−1(μ^−μ01)\hat\mu_{BS} = (1-\phi)\,\hat\mu + \phi\,\mu_0\mathbf 1,\qquad \mu_0 = \frac{\mathbf 1^\top \tilde\Sigma^{-1}\hat\mu}{\mathbf 1^\top\tilde\Sigma^{-1}\mathbf 1},\qquad \phi = \frac{N+2}{(N+2) + T\,(\hat\mu-\mu_0\mathbf 1)^\top\tilde\Sigma^{-1}(\hat\mu-\mu_0\mathbf 1)}

with Σ~=T−1T−N−2S\tilde\Sigma = \frac{T-1}{T-N-2}S. The intensity ϕ∈(0,1]\phi\in(0,1] is data-driven: when sample means barely differ relative to their noise, ϕ→1\phi\to1. Requires T>N+2T > N+2.

Black–Litterman

Historical means are so noisy that mean-variance portfolios built on them are extreme and unstable. Black and Litterman (1992) start instead from equilibrium returns: those under which an investor with risk aversion δ\delta would choose the prior weights weqw_{eq} (market capitalisation weights by default, or equal/custom weights),

π=δ Σ weq+rf.\pi = \delta\,\Sigma\,w_{eq} + r_f .

Investor views are linear statements Pμ=Q+εP\mu = Q + \varepsilon, ε∼N(0,Ω)\varepsilon \sim N(0,\Omega): absolute ("A returns 8%") or relative ("A outperforms B by 2%"). Following He and Litterman (1999), Ωkk=τ pk⊤Σpk\Omega_{kk} = \tau\,p_k^\top\Sigma p_k; with a stated confidence c∈(0,1]c\in(0,1] Idzorek's (2005) closed form Ωkk=τ1−cc pk⊤Σpk\Omega_{kk} = \tau\frac{1-c}{c}\,p_k^\top\Sigma p_k is used (c=1c=1: the view holds exactly). The posterior is

μBL=π+τΣP⊤(τPΣP⊤+Ω)−1(Q−Pπ),\mu_{BL} = \pi + \tau\Sigma P^\top(\tau P\Sigma P^\top + \Omega)^{-1}(Q - P\pi), ΣBL=Σ+τΣ−τΣP⊤(τPΣP⊤+Ω)−1PτΣ,\Sigma_{BL} = \Sigma + \tau\Sigma - \tau\Sigma P^\top(\tau P\Sigma P^\top + \Omega)^{-1}P\tau\Sigma ,

the predictive covariance including uncertainty about the mean. Σ\Sigma comes from the selected covariance estimator. Historical average returns are not used at all. Results list the prior weights, equilibrium and posterior returns and each view in words. The implementation agrees with PyPortfolioOpt to 10−1010^{-10} and satisfies reverse optimisation ((δΣ)−1(π−rf)=weq(\delta\Sigma)^{-1}(\pi-r_f) = w_{eq}).

Market capitalisations come from the data source: the Ken French industry files (number of firms × average firm size, latest month) or a market_cap column in uploaded metadata. Datasets without them (such as the synthetic demo) use equal or custom prior weights. In backtests the same views are applied in every window; market-capitalisation prior weights are those known at each rebalance date (see Backtesting).

Covariance

Sample covariance (unbiased, T−1T-1). Singular when T≤NT\le N and noisy when T/NT/N is small; Ardentum refuses to use it when it is singular.

Ledoit–Wolf, scaled-identity target (Ledoit & Wolf, 2004a). The default:

Σ^LW=δ σˉ2I+(1−δ)S,σˉ2=tr⁡(S)/N\hat\Sigma_{LW} = \delta\,\bar\sigma^2 I + (1-\delta)S,\qquad \bar\sigma^2 = \operatorname{tr}(S)/N

with the asymptotically optimal intensity δ\delta estimated from the data. The result is always positive definite and well-conditioned. Ardentum's implementation matches scikit-learn's to machine precision (automated test).

Ledoit–Wolf, constant-correlation target (Ledoit & Wolf, 2004b). Shrinks toward a matrix with the sample variances and the average pairwise correlation ρˉ\bar\rho:

Fii=sii,Fij=ρˉsiisjj,Σ^=δF+(1−δ)S,δ=max⁡ ⁣(0,min⁡ ⁣(1,κ^T)), κ^=π^−ρ^γ^F_{ii} = s_{ii},\quad F_{ij} = \bar\rho\sqrt{s_{ii}s_{jj}},\qquad \hat\Sigma = \delta F + (1-\delta)S,\qquad \delta = \max\!\left(0,\min\!\left(1,\tfrac{\hat\kappa}{T}\right)\right),\ \hat\kappa = \tfrac{\hat\pi-\hat\rho}{\hat\gamma}

where π^,ρ^,γ^\hat\pi,\hat\rho,\hat\gamma follow the paper's appendix. It suits equity universes, where correlations are broadly similar. Verified against a direct loop implementation of the paper's formulas.

Both Ledoit–Wolf estimators use the 1/T1/T normalisation of the original papers.

Choosing the window and frequency

  • Longer windows reduce sampling error but may mix different regimes.
  • Daily data provides more observations for covariance estimation; expected-return precision depends on the calendar length of the window, not the number of observations.
  • Monthly data is less affected by asynchronous closing prices across markets.

What is reported

Every optimisation, frontier, simulation and comparison lists: window start and end, number of observations, frequency, mean and covariance estimators and their shrinkage intensities, and the risk-free rate.