Mean–Variance Lab

Explore Markowitz geometry, the GMVP, asymptotes, tangency portfolio, and the Capital Market Line.

Interactive teaching simulator · all calculations in your browser

Inputs

Risky assets

Expected return μ and volatility σ are annual percentages.

Correlations ρ

The covariance matrix must be positive definite. Invalid inputs are flagged automatically.

Risk-free asset & geometry

Target portfolio

Move along the risky frontier. Type any target return directly; the slider and chart will expand automatically when you go beyond the current view.

Guided experiments

Mean–standard deviation space

σ–μ geometry · loading v4

Live portfolio anatomy

Special portfolios

GMVP return
GMVP risk
Tangency return
Tangency Sharpe

Selected risky-frontier portfolio

Return
Risk

Same target return on the CML

CML risk
Tangency allocation

Geometry

Interpretation

Move the target-return slider.

Watch portfolio weights change along the Markowitz frontier and compare the risky-only solution with the CML.