Mean-Variance Optimization (Markowitz Framework)

College Depth 74 in the knowledge graph I know this Set as goal
Unlocks 37 downstream topics
markowitz portfolio-optimization covariance-matrix modern-portfolio-theory

Core Idea

Harry Markowitz (1952) formalized portfolio selection as an optimization problem: for any target expected return, find the portfolio weights that minimize variance, subject to weights summing to one. The inputs are expected returns, variances, and all pairwise covariances — summarized in the covariance matrix. Solving this quadratic optimization for all feasible return levels traces out the minimum-variance frontier, and the upper portion — where no portfolio can offer higher expected return for the same variance — is the efficient frontier. This was the first rigorous mathematical treatment of diversification, earning Markowitz a Nobel Prize in Economics in 1990.

How It's Best Learned

Set up the optimization in matrix form for three assets to see the role of the covariance matrix. Use software (Python/scipy or Excel Solver) to trace the full efficient frontier. Observe how the frontier shifts when correlations change, highlighting the central role of covariance structure.

Common Misconceptions

Explainer

You already know from portfolio diversification that combining assets with imperfect correlation reduces portfolio risk without necessarily reducing expected return. Markowitz's contribution was to formalize exactly *how* to do this optimally. Instead of relying on intuition about which assets to combine, he posed it as a precise mathematical problem: given a target expected return, find the portfolio weights that minimize variance. Solving this for every possible target return generates a curve in expected-return/standard-deviation space — the minimum-variance frontier.

The inputs to this optimization are three things: a vector of expected returns (one per asset), a vector of variances, and — crucially — the full matrix of pairwise covariances between every pair of assets. This covariance matrix is what captures the diversification structure of the portfolio. Two assets that are individually volatile but negatively correlated create a combined portfolio with dramatically lower variance. The optimization exploits all of these correlations simultaneously, which is why it requires matrix algebra rather than simple arithmetic.

The efficient frontier is the upper portion of the minimum-variance frontier. For a given level of variance (horizontal axis), the efficient portfolio maximizes expected return; equivalently, for a given expected return, it minimizes variance. Portfolios below the minimum-variance point are dominated — there exists another portfolio with the same variance but higher expected return — so no rational investor would choose them. The efficient frontier does not specify a single best portfolio; which point on it is optimal depends on the investor's risk tolerance, which is encoded in their utility function.

A critical and counterintuitive property of the framework is its sensitivity to expected return inputs. Small changes in projected returns — well within the range of estimation error — can cause the optimizer to shift portfolio weights dramatically, concentrating heavily in assets whose expected return is only trivially higher. This "error maximization" problem means that naïvely applying Markowitz optimization to historical return estimates often produces unstable, concentrated portfolios that perform poorly out of sample. Practitioners respond with robust estimation methods, Bayesian shrinkage, or by constraining weights directly.

The mean-variance framework earned Markowitz the 1990 Nobel Prize not because it is perfectly practical in its raw form, but because it established the foundational principle: return and risk must be traded off *at the portfolio level*, accounting for correlations, not just asset by asset. Every subsequent asset pricing model — the CAPM, factor models, Black-Litterman — builds directly on this foundation.

Practice Questions 3 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsOne-Sided LimitsContinuity DefinitionLimit Definition of the DerivativePower RuleConstant Multiple and Sum/Difference RulesProduct RuleChain RuleDerivatives of Exponential FunctionsDerivatives of Logarithmic FunctionsImplicit DifferentiationComparative StaticsPrice Elasticity of DemandAggregate DemandThe AS-AD ModelBusiness CyclesMonetary Policy ToolsTerm Structure of Interest RatesRisk and Return TradeoffExpected Return and Variance of Financial AssetsPortfolio DiversificationMean-Variance Optimization (Markowitz Framework)

Longest path: 75 steps · 455 total prerequisite topics

Prerequisites (10)

Leads To (3)