Markowitz and report statistics

Markowitz mean–variance optimization allocates capital according to the estimated trade-off between expected return and variance. Portfolio expected return is the weighted sum of asset means, and portfolio variance is the quadratic form wT Σ w of weights and covariance.

Inputs and constraints

The application passes the training matrix of daily simple returns to AlgoQuant’s MarkowitzOptimizationAlgorithm. The rows are ordered by date and columns follow the entered symbols. AlgoQuant estimates the mean vector and covariance matrix from these returns and sets the user's risk-aversion coefficient on its critical-line solver. The default solver is fully invested and long-only. A higher coefficient puts more weight on controlling variance. Because these inputs are noisy estimates, small changes to the universe or history can materially change weights.

Test-period evaluation

The split is chronological. The fitted weights remain fixed as targets throughout the test period and are reset at each observation. The benchmark always targets 1/N per asset on the same dates. Equity starts at 1 and compounds daily weighted returns. Both series exclude commissions, slippage, borrow costs and taxes. This is a single historical holdout simulation without transaction costs.

StatisticCalculation
Total returnEnding equity minus 1.
Annualized returnEnding equity raised to periods per year divided by test observations, minus 1.
Annualized volatilitySample standard deviation of test returns multiplied by the square root of periods per year.
Sharpe ratioAnnualized arithmetic mean test return divided by annualized volatility, using a zero risk-free rate. Unavailable at effectively zero volatility.
Maximum drawdownMost negative percentage decline in equity from a previous running peak.

Annualization uses 252 observations per year for Yahoo and 365 for Coinbase and synthetic daily series.

Markowitz, H. (1952). Portfolio Selection. The Journal of Finance 7(1), 77–91. Paper