numeraire.baselines#
Universal benchmarks bundled in numeraire — the reference rules every method is compared to.
Four estimators, all framework citizens (they pass numeraire.testing.check_estimator) and all
registered via the numeraire.methods entry-point group (dogfooding the open discovery):
EqualWeight— 1/Nto_weights(the naive benchmark).MinVariance— global minimum-varianceto_weights(sample covariance + window).MeanVariance— plug-in mean-varianceto_weights(S^-1 mu, explicit norm).HistoricalMean— prevailing-historical-meanto_forecast(Goyal-Welch benchmark).
The pure weight functions (equal_weights(), minimum_variance_weights(),
mean_variance_weights()) are the single source of truth for these formulae — method packages
(e.g. the naive-diversification reproduction) build on them rather than re-deriving the algebra.
Serious constrained optimizers are not re-implemented here; they arrive through the optional
skfolio adapter (numeraire.adapters). These baselines are the always-available floor.
The 1/N benchmark estimator: rebalances to equal weights over |
|
Global minimum-variance estimator: sample covariance from the (optionally windowed) view. |
|
Plug-in mean-variance estimator: sample |
|
The prevailing-historical-mean forecaster (Goyal-Welch benchmark). |
|
The naive 1/N portfolio: |
|
Global minimum-variance weights |
|
Plug-in mean-variance (tangency) weights |