Essa Shakeel Finance 100 #50 · Investing View source on GitHub

Efficient Frontier Explorer

Mix 2 to 5 assets and see the efficient frontier, minimum-variance and max-Sharpe portfolios.

Assets

Two to five assets. Returns and volatility are annual percentages. The correlation grid fills in as you add assets; fill only the upper triangle, the lower half mirrors it.

Correlations

Results

Risk and return of 5,000 random mixes

Weights

How it works

Each portfolio is a set of weights that add to 100%. Its expected return is the weighted average of the asset returns. Its volatility is sqrt(w' x Cov x w), where Cov_ij = vol_i x vol_j x correlation_ij.

The tool draws 5,000 random weight sets from a fixed seed, so the same inputs always give the same chart. It then keeps the lowest-volatility and highest-Sharpe sets and refines each with a small random search that only accepts improvements.

Sharpe ratio is (return - risk-free rate) / volatility. The frontier is the highest return found at each level of volatility, from the minimum-variance portfolio upward.

Limits: expected returns and volatilities are estimates, and the optimiser is very sensitive to them. Long-only mode allows no short positions. Results ignore fees, taxes and rebalancing costs. Figures are editable; verify them for the current year.