KatInterview

Build a Mean-Variance Objective for a Single-Period Portfolio

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsportfolio optimizationconvex optimizationmean-variance

Last updated

Derive and explain the classic mean-variance trade-off objective, covering term definitions, units, risk-aversion role, and convexity conditions.

Build a Mean-Variance Objective for a Single-Period Portfolio

You are designing the core objective function for a single-period portfolio optimizer. The optimizer selects a vector of target positions to trade off expected return against risk — without yet worrying about transaction costs or turnover constraints.

Your task: Write down the objective function, define every symbol precisely, explain how units must be consistent across terms, describe what the risk-aversion parameter controls, and state the conditions under which the problem is convex (or concave, depending on how you frame it).

Given quantities

SymbolMeaning
hVector of target holdings (e.g., dollar values, share counts, or portfolio weights)
alphaVector of expected returns, in units compatible with h
SigmaSymmetric positive-semidefinite covariance matrix of returns
lambdaRisk-aversion parameter (scalar)

Feasibility constraints (budget, long-only, leverage limits, etc.) are out of scope here — focus only on the objective.

What your answer should cover

  1. The explicit formula for the objective, in both maximization and minimization forms.
  2. A precise definition of each term, including its units.
  3. The role of lambda and how changing it shifts the solution.
  4. Why the problem is convex (or concave), and what property of Sigma guarantees that.
  5. Common pitfalls — especially around the optional one-half convention and dimensional inconsistency.

Clarifying questions a strong candidate raises

  • Are holdings in dollars, shares, or fractions of capital? The answer affects how alpha and Sigma must be scaled.
  • Does alpha represent a return forecast (dimensionless) or an expected profit in currency units?
  • Do alpha and Sigma share the same time horizon?
  • Is the one-half factor in front of the variance term a convention choice, or is it fixed by the problem spec?

Hints

Hint 1

Start by writing the expected portfolio return as a dot product, then express portfolio variance as a quadratic form — only then combine them with the risk-aversion scalar.

Hint 2

Check units term by term: if h is in dollars and alpha is a fractional return, then alpha^T h is in dollars; Sigma must then be in (return)^2 so that lambda * h^T Sigma h is also in dollars — otherwise the subtraction is meaningless.

Hint 3

Concavity of the objective (when maximizing) follows directly from Sigma being positive semidefinite: the quadratic penalty is convex in h, so negating it to subtract from the linear term yields a concave function.