Skip to main content

Portfolio Optimization Methods

Maximum Sharpe, Minimum Variance, HRP, Equal Risk Contributions, Most Diversified, and more: 8 optimization methods with math, strengths, and Workbench walkthroughs.

From Thrive on YouTube

Watch the matching Thrive video

Watch the series
Win Rate vs Reward to Risk: The Math That Decides If You Make Money

Win Rate vs Reward to Risk: The Math That Decides If You Make Money

Part of Risk Management and Position Sizing. Education only. Not financial advice.

Portfolio Optimization in Thrive

Portfolio optimization is the mathematical process of finding the best asset weights for a given objective, whether that is maximizing return, minimizing risk, or achieving equal risk contributions. Thrive's Workbench provides eight distinct optimization methods, each with different assumptions about what "optimal" means. There is no single best method: the right choice depends on your conviction in return estimates, your tolerance for concentration, and whether you believe historical correlations will persist.

Maximum Sharpe Ratio

The Maximum Sharpe portfolio finds the weights that produce the highest return per unit of risk: the tangent point on the efficient frontier. It maximizes (w'μ − Rf) / √(w'Σw), where w is the weight vector, μ is the expected return vector, Σ is the covariance matrix, and Rf is the risk-free rate.

Strengths: Produces the mathematically optimal risk-return tradeoff when return and covariance estimates are accurate. Weaknesses: Extremely sensitive to return estimates, small changes in expected returns can flip the entire portfolio. In crypto, where expected returns are nearly impossible to estimate reliably, Maximum Sharpe portfolios often produce concentrated, unstable allocations. Use only when you have strong conviction in return forecasts.

sql-Maximum Sharpe optimization
1-- Find the Maximum Sharpe portfolio weights
2SELECT *
3FROM portfolio_optimize('maximum-sharpe-ratio', 'BTC,ETH,SOL,AVAX,LINK,DOT');
4
5-- Returns: asset | weight | method
6-- BTC | 0.42 | maximum-sharpe-ratio
7-- ETH | 0.28 | maximum-sharpe-ratio
8-- SOL | 0.18 | maximum-sharpe-ratio
9-- AVAX | 0.07 | maximum-sharpe-ratio
10-- LINK | 0.05 | maximum-sharpe-ratio
11-- DOT | 0.00 | maximum-sharpe-ratio ← often zeros out weaker assets

Minimum Variance

The Minimum Variance portfolio minimizes total portfolio volatility: min w'Σw subject to Σwᵢ = 1. It ignores expected returns entirely and focuses solely on reducing risk. This sounds like a weakness, but it is actually an advantage, since expected returns are the hardest parameter to estimate, removing them from the optimization eliminates the largest source of estimation error.

Strengths: Robust, stable allocations that consistently reduce realized volatility. Does not require return forecasts. Weaknesses: Can heavily concentrate in the least volatile assets, which in crypto means overweighting stablecoins or BTC at the expense of higher-return alts. Produces lower returns than Maximum Sharpe when return estimates are accurate.

sql-Minimum Variance optimization
1SELECT *
2FROM portfolio_optimize('minimum-variance', 'BTC,ETH,SOL,AVAX,LINK,DOT');

Hierarchical Risk Parity (HRP)

HRP is a machine-learning-inspired approach developed by Marcos López de Prado. Instead of inverting the covariance matrix (which is notoriously unstable for large portfolios), HRP uses hierarchical clustering to group correlated assets together, then allocates risk top-down through the cluster tree. Assets within the same cluster share risk budget, and dissimilar clusters receive independent allocations.

Strengths: Works with singular or near-singular covariance matrices (common when you have many correlated crypto assets). Produces more diversified, stable portfolios than mean-variance optimization. Out-of-sample performance consistently beats traditional methods in academic studies. Weaknesses: Less transparent, the hierarchical structure can be hard to interpret. Does not directly optimize for any specific objective like Sharpe or minimum variance.

sql-HRP optimization
1SELECT *
2FROM portfolio_optimize('hierarchical-risk-parity', 'BTC,ETH,SOL,AVAX,LINK,DOT,AAVE,UNI');
3
4-- HRP handles larger asset universes gracefully.
5-- It clusters correlated assets (e.g., ETH+AAVE+UNI as DeFi)
6-- and diversifies across clusters, not just individual assets.

Equal Risk Contributions (ERC)

Also known as Risk Parity, ERC finds weights where each asset contributes the same amount of risk to the total portfolio. The risk contribution of asset i is: RC_i = w_i × (Σw)_i / σ_p. The optimization targets RC_i = RC_j for all assets i, j.

Strengths: No asset dominates portfolio risk. You are never blindsided by a single position causing outsized damage. Produces naturally diversified portfolios that are robust across regimes. Weaknesses: Tends to overweight low-volatility assets and underweight high-volatility ones. In a bull market, this means you hold more BTC and less SOL: potentially sacrificing returns for stability.

sql-Equal Risk Contributions optimization
1SELECT *
2FROM portfolio_optimize('equal-risk-contributions', 'BTC,ETH,SOL,AVAX,LINK');
3
4-- Each asset contributes ~20% of total portfolio risk.
5-- BTC (lower vol) gets higher capital weight.
6-- SOL (higher vol) gets lower capital weight.
7-- Risk is equalized even though capital is not.

Most Diversified Portfolio

The Most Diversified Portfolio maximizes the diversification ratio: DR = (w'σ) / σ_p, the ratio of weighted average individual volatilities to portfolio volatility. A DR of 1.0 means zero diversification benefit (all assets perfectly correlated). A DR of 2.0 means the portfolio has half the volatility you would expect from averaging individual volatilities: strong diversification.

Strengths: Explicitly maximizes the decorrelation benefit. Ideal when your primary goal is diversification rather than return maximization. Weaknesses: In crypto, correlations tend to spike during crashes, so the diversification ratio measured in calm markets overstates the benefit you get when you need it most.

Equal Volatility Weighted

Each asset gets a weight inversely proportional to its volatility, then weights are rescaled to sum to 1: w_i = (1/σ_i) / Σ(1/σ_j). This ensures each asset contributes roughly equal volatility to the portfolio, though it ignores correlations entirely. It is a simpler cousin of ERC, when correlations are uniform, the two methods produce identical results.

Strengths: Dead simple to compute and explain. No covariance matrix required, only individual volatilities. Surprisingly effective in practice, often matches or beats more complex methods out of sample. Weaknesses: Ignores correlations, so it misses diversification opportunities between negatively or lowly correlated assets.

Inverse Variance Weighted

Weights are proportional to 1/σ²_i. This is similar to equal volatility weighting but with a stronger tilt toward low-variance assets because it uses variance (σ²) rather than standard deviation (σ). The result is an even more defensive allocation that further concentrates in the most stable assets.

Maximum Decorrelation

Maximum Decorrelation minimizes the portfolio's average correlation: min w'Cw where C is the correlation matrix (not the covariance matrix). By operating on the correlation matrix, this method isolates diversification from volatility scaling. It finds the portfolio whose constituents are most dissimilar to each other in terms of co-movement.

Method Comparison

Maximum SharpeBest risk-adjusted return when return estimates are accurate. Concentrated, unstable. Sensitive to inputs. Use with high conviction.
Minimum VarianceLowest volatility portfolio. Ignores returns. Robust and defensive. Overweights low-vol assets. Use when preservation matters most.
HRPML-based clustering approach. Handles large universes. Stable out of sample. Less interpretable. Best general-purpose choice.
Equal Risk ContributionsEach asset contributes equal risk. Naturally diversified. Balanced and intuitive. Underweights high-potential assets.
Most DiversifiedMaximizes diversification ratio. Targets decorrelation explicitly. Overstates benefit if correlations spike in crises.
Equal VolatilityWeight by inverse volatility. Simple, no covariance needed. Ignores correlations. Solid baseline for comparison.
Inverse VarianceStronger tilt to low-variance assets than equal vol. Very defensive. Good for capital preservation mandates.
Max DecorrelationMinimizes average correlation. Isolates diversification from volatility. Best when seeking truly uncorrelated exposure.
sql-Compare all methods side by side
1-- Run all optimization methods and compare
2SELECT * FROM portfolio_optimize('maximum-sharpe-ratio', 'BTC,ETH,SOL,AVAX,LINK');
3SELECT * FROM portfolio_optimize('minimum-variance', 'BTC,ETH,SOL,AVAX,LINK');
4SELECT * FROM portfolio_optimize('hierarchical-risk-parity', 'BTC,ETH,SOL,AVAX,LINK');
5SELECT * FROM portfolio_optimize('equal-risk-contributions', 'BTC,ETH,SOL,AVAX,LINK');
6
7-- Compare how each method weights BTC differently:
8-- Max Sharpe might give BTC 45% (return-driven)
9-- Min Variance might give BTC 55% (lowest vol)
10-- HRP might give BTC 30% (cluster-balanced)
11-- ERC might give BTC 35% (risk-equalized)

Which method should you use?

Start with HRP or Equal Risk Contributions as your default. Both produce stable, diversified allocations without requiring return estimates. Use Maximum Sharpe only when you have strong, well-researched views on expected returns. Use Minimum Variance when you are in risk-off mode and preservation matters more than growth. Run all four in the Workbench and compare: if the allocations are similar across methods, you can be confident in the portfolio. If they diverge wildly, that divergence is telling you the optimal allocation is highly uncertain.
Module Quiz

1.Why does Maximum Sharpe optimization often produce unstable portfolios in crypto?

2.What advantage does Hierarchical Risk Parity have over traditional mean-variance optimization?

0/2 answered

Put this lesson to work

Free on Thrive, no account needed.