Unit 12, lesson 92

Robust optimization and estimation risk

How a mean uncertainty set turns estimation error into a worst-case objective, why its support function adds a norm or weighted absolute-value penalty, and when that regularization sets a position exactly to zero.

  • Video 92
  • Views, estimation risk and risk parity

A risky asset has an estimated mean excess return of 0.080.08 per period and a variance of 0.040.04, and an investor with risk aversion 33 holds the mean-variance weight μ^/(γσ2)=0.08/0.12=2/3\widehat{\mu}/(\gamma\sigma^2) = 0.08/0.12 = 2/3. An error of two percentage points in the estimate moves that weight by about 0.170.17, and a few decades of data cannot rule out an error of that size. Robust optimization asks for the position that does best when the mean is chosen as unfavorably as a stated set of plausible values allows. This lesson derives the penalty such a set adds to the objective, solves the one-asset problem exactly, including short and zero positions, and shows that the resulting regularization depends on the constraints as much as on the set.

Key terms

Estimation error

Definition Let μ∈Rn\mu \in \mathbb{R}^n be the true vector of expected one-period excess returns, in decimals, and let μ^\widehat{\mu} be an estimate computed from data. The estimation error is μ^−μ\widehat{\mu} - \mu. It is random, because μ^\widehat{\mu} depends on the sample. If the excess returns R1,…,RNR_1, \dots, R_N are independent and identically distributed with mean μ\mu and covariance Σ\Sigma, and μ^\widehat{\mu} is their sample mean, then

E[μ^]=μ,Cov⁡(μ^)=ΣN,\begin{gathered} \mathbb{E}[\widehat{\mu}] = \mu, \\[0.4em] \operatorname{Cov}(\widehat{\mu}) = \frac{\Sigma}{N}, \end{gathered}

so coordinate ii has standard error σi/N\sigma_i/\sqrt{N}, where σi2=Σii\sigma_i^2 = \Sigma_{ii}. This sampling variability of the estimate is a different quantity from Σ\Sigma, the variability of returns around their mean. A plug-in optimizer treats μ^\widehat{\mu} as if it were μ\mu. With one risky asset of known variance σ2>0\sigma^2 > 0, risk aversion γ>0\gamma > 0 and the mean-variance utility

U(w;m)=mw−γ2σ2w2U(w; m) = m w - \tfrac{\gamma}{2} \sigma^2 w^2

of the weight ww under the mean mm, the true optimum is w=μ/(γσ2)w = \mu/(\gamma\sigma^2) with utility μ2/(2γσ2)\mu^2/(2\gamma\sigma^2), and the plug-in weight w^=μ^/(γσ2)\widehat{w} = \widehat{\mu}/(\gamma\sigma^2) has the error (μ^−μ)/(γσ2)(\widehat{\mu} - \mu)/(\gamma\sigma^2). If μ^\widehat{\mu} is unbiased with variance s2s^2, then E[μ^2]=μ2+s2\mathbb{E}[\widehat{\mu}^2] = \mu^2 + s^2, and expanding the two utilities gives

E[U(w^;μ^)]=μ2+s22γσ2,E[U(w^;μ)]=μ2−s22γσ2.\begin{aligned} \mathbb{E}\bigl[U(\widehat{w}; \widehat{\mu})\bigr] &= \frac{\mu^2 + s^2}{2\gamma\sigma^2}, \\[0.4em] \mathbb{E}\bigl[U(\widehat{w}; \mu)\bigr] &= \frac{\mu^2 - s^2}{2\gamma\sigma^2}. \end{aligned}

On average the optimized utility computed from the estimate exceeds the true optimum by s2/(2γσ2)s^2/(2\gamma\sigma^2), and the utility the plug-in weight actually delivers falls short of it by the same amount.

In plain words An optimizer cannot tell a real edge from a lucky estimate, so it scales up whatever the data suggest. Errors in the mean become errors in position size, and the optimized utility computed from the same data looks better on average than what the position will deliver.

Example In a constructed model, annual excess returns are independent with standard deviation 0.200.20, and 2525 years of data give a sample mean with standard error 0.20/25=0.040.20/\sqrt{25} = 0.04. Sampling more often does not help here. If each annual return is the sum of twelve independent, identically distributed monthly returns, as log returns are, the 300300 monthly returns of the same 2525 years give an annualized mean with the same standard error 0.040.04. With γ=3\gamma = 3 and σ2=0.04\sigma^2 = 0.04 the weight moves by 1/0.12≈8.331/0.12 \approx 8.33 per unit of mean, so the plug-in weight has standard error about 0.330.33. If the true mean is 0.080.08, the true optimum utility is 0.0064/0.24≈0.02670.0064/0.24 \approx 0.0267, the expected in-sample optimum is 0.0080/0.24≈0.03330.0080/0.24 \approx 0.0333, and the expected utility actually delivered by the plug-in weight is 0.0048/0.24=0.02000.0048/0.24 = 0.0200.

Mean uncertainty set

Definition A mean uncertainty set U⊆Rn\mathcal{U} \subseteq \mathbb{R}^n is a nonempty set of mean vectors that the investor treats as plausible, fixed before the portfolio is chosen. The two standard shapes are an ellipsoid and a box,

U={μ^+Au:∥u∥2≤ε},Ubox={μ:∣μi−μ^i∣≤δi},\begin{aligned} \mathcal{U} &= \bigl\{ \widehat{\mu} + A u : \lVert u \rVert_2 \le \varepsilon \bigr\}, \\[0.4em] \mathcal{U}_{\text{box}} &= \bigl\{ \mu : \lvert \mu_i - \widehat{\mu}_i \rvert \le \delta_i \bigr\}, \end{aligned}

where AA is an n×kn \times k matrix in units of mean return, ε≥0\varepsilon \ge 0 is a radius and each half-width δi\delta_i is nonnegative. With one asset both shapes reduce to an interval [μ^−δ,μ^+δ][\widehat{\mu} - \delta, \widehat{\mu} + \delta]. The matrix AA describes the shape of the estimation error, not the variability of returns, so it need not be a square root of Σ\Sigma. One standard choice, for independent, identically distributed normal excess returns with a known positive definite Σ\Sigma, takes A=(Σ/N)1/2A = (\Sigma/N)^{1/2} and ε2\varepsilon^2 equal to the quantile at level α\alpha of the chi-square distribution with nn degrees of freedom. Then μ∈U\mu \in \mathcal{U} exactly when N(μ^−μ)⊤Σ−1(μ^−μ)≤ε2N (\widehat{\mu} - \mu)^{\top} \Sigma^{-1} (\widehat{\mu} - \mu) \le \varepsilon^2, and the random set U\mathcal{U} contains the true mean with probability α\alpha. This lesson takes the set as given and does not calibrate it. A decision optimized against U\mathcal{U} carries a guarantee for every mean in the set and none for means outside it. In this lesson Σ\Sigma is known. A set of possible covariance matrices must contain only symmetric positive semidefinite matrices, and uncertainty about a whole distribution needs further restrictions, such as fixed moments or a ball in a stated distance between distributions.

In plain words The set is the investor’s statement of how wrong the estimate might be and in which directions. A box lets each mean be off by its own amount independently of the others. An ellipsoid ties the errors together and rules out the corners where every error is extreme at once.

Example Take two assets with μ^=(0.08,0.05)\widehat{\mu} = (0.08, 0.05). The box with half-widths (0.02,0.01)(0.02, 0.01) contains the corner (0.06,0.06)(0.06, 0.06). The ellipse with A=diag⁡(0.02,0.01)A = \operatorname{diag}(0.02, 0.01) and ε=1\varepsilon = 1 fits inside that box and touches the midpoints of its sides. It excludes the corner, which would need u=(−1,1)u = (-1, 1) with ∥u∥2=2>1\lVert u \rVert_2 = \sqrt{2} > 1. For covariance, take variances 0.040.04 and 0.090.09 with an estimated covariance of 0.0150.015, and allow the covariance to lie anywhere in [−0.035,0.065][-0.035, 0.065]. The endpoint 0.0650.065 means a correlation of 0.065/0.06≈1.080.065/0.06 \approx 1.08, and the matrix

[0.040.0650.0650.09]\begin{bmatrix} 0.04 & 0.065 \\ 0.065 & 0.09 \end{bmatrix}

assigns the portfolio w=(0.6,−0.4)w = (0.6, -0.4) the variance 0.0144+0.0144−0.0312=−0.00240.0144 + 0.0144 - 0.0312 = -0.0024. Such an interval of entries is not an admissible covariance uncertainty set.

Robust optimization

Definition Robust optimization chooses a decision to maximize the worst value of its objective over an uncertainty set. For portfolios, let w∈Rnw \in \mathbb{R}^n hold wealth fractions in the risky assets, with a cash account of zero excess return taking the rest unless the feasible set W⊆Rn\mathcal{W} \subseteq \mathbb{R}^n imposes a budget. Let Σ\Sigma be a known symmetric positive semidefinite covariance matrix and γ>0\gamma > 0, and write U(w;μ)=μ⊤w−γ2w⊤ΣwU(w; \mu) = \mu^{\top} w - \tfrac{\gamma}{2} w^{\top} \Sigma w for the mean-variance utility under the mean μ\mu. The worst-case objective is

J(w)=inf⁡μ∈UU(w;μ)=inf⁡μ∈Uμ⊤w−γ2 w⊤Σw,\begin{aligned} J(w) &= \inf_{\mu \in \mathcal{U}} U(w; \mu) \\[0.4em] &= \inf_{\mu \in \mathcal{U}} \mu^{\top} w \\[0.4em] &\quad - \tfrac{\gamma}{2}\, w^{\top} \Sigma w, \end{aligned}

since the variance term does not depend on μ\mu, and the robust optimization problem is

max⁡w∈WJ(w).\max_{w \in \mathcal{W}} J(w).

The infimum is taken separately for each ww, so the least favorable mean depends on the position. Each function w↦μ⊤w−γ2w⊤Σww \mapsto \mu^{\top} w - \tfrac{\gamma}{2} w^{\top} \Sigma w is concave, and an infimum of concave functions is concave, so JJ is concave. It is finite when U\mathcal{U} is bounded, and maximizing it is a convex optimization problem when W\mathcal{W} is convex. Because J(w)≤U(w;μ)J(w) \le U(w; \mu) for every μ∈U\mu \in \mathcal{U}, the optimal worst-case value is at most the plug-in optimal value at any mean in the set, in particular at μ^\widehat{\mu}, which lies in both standard shapes. A larger set gives a smaller objective, since U1⊆U2\mathcal{U}_1 \subseteq \mathcal{U}_2 implies J1(w)≥J2(w)J_1(w) \ge J_2(w) for every ww.

In plain words The investor commits to a position first, and the least favorable mean in the set is then used to score it. A long position is scored with a low mean and a short position with a high one. The chosen position is the one whose worst score is best.

Example The constructed one-asset example has μ^=0.08\widehat{\mu} = 0.08, σ2=0.04\sigma^2 = 0.04, γ=3\gamma = 3 and the interval of half-width δ=0.02\delta = 0.02, so

J(w)=0.08w−0.02∣w∣−0.06w2.\begin{aligned} J(w) &= 0.08 w - 0.02 \lvert w \rvert \\[0.4em] &\quad - 0.06 w^2 . \end{aligned}

At w=0.5w = 0.5 the worst mean is 0.060.06, and J(0.5)=0.03−0.015=0.015J(0.5) = 0.03 - 0.015 = 0.015. At the plug-in weight 2/32/3 the worst mean is again 0.060.06, and J(2/3)=0.04−0.0267≈0.0133J(2/3) = 0.04 - 0.0267 \approx 0.0133. Under the central estimate the ranking reverses, with U(2/3;0.08)≈0.0267U(2/3; 0.08) \approx 0.0267 and U(0.5;0.08)=0.025U(0.5; 0.08) = 0.025. Each position beats the other by about 0.00170.0017 under one criterion, and which one is preferred depends on the criterion chosen.

Worst-case penalty

Definition For a fixed ww, the worst-case mean return inf⁡μ∈Uμ⊤w\inf_{\mu \in \mathcal{U}} \mu^{\top} w equals −hU(−w)-h_{\mathcal{U}}(-w), where hU(y)=sup⁡μ∈Uy⊤μh_{\mathcal{U}}(y) = \sup_{\mu \in \mathcal{U}} y^{\top} \mu is the support function of the set. For the ellipsoid it is

inf⁡∥u∥2≤ε(μ^+Au)⊤w=μ^⊤w−ε∥A⊤w∥2.\begin{aligned} &\inf_{\lVert u \rVert_2 \le \varepsilon} (\widehat{\mu} + A u)^{\top} w \\[0.4em] &\quad = \widehat{\mu}^{\top} w - \varepsilon \lVert A^{\top} w \rVert_2 . \end{aligned}

By the Cauchy-Schwarz inequality, (Au)⊤w=u⊤(A⊤w)≥−∥u∥2∥A⊤w∥2≥−ε∥A⊤w∥2(Au)^{\top} w = u^{\top}(A^{\top} w) \ge -\lVert u \rVert_2 \lVert A^{\top} w \rVert_2 \ge -\varepsilon \lVert A^{\top} w \rVert_2. If A⊤w≠0A^{\top} w \ne 0, the choice u∗=−εA⊤w/∥A⊤w∥2u^{*} = -\varepsilon A^{\top} w / \lVert A^{\top} w \rVert_2 attains the bound, and the worst mean is

μ∗=μ^−ε AA⊤w∥A⊤w∥2.\mu^{*} = \widehat{\mu} - \frac{\varepsilon\, A A^{\top} w}{\lVert A^{\top} w \rVert_2}.

If A⊤w=0A^{\top} w = 0, every uu gives 00 and the penalty is 00. For the box each coordinate is minimized separately. Over μi∈[μ^i−δi,μ^i+δi]\mu_i \in [\widehat{\mu}_i - \delta_i, \widehat{\mu}_i + \delta_i] the term μiwi\mu_i w_i is smallest at the lower endpoint when wi>0w_i > 0 and at the upper endpoint when wi<0w_i < 0, because multiplying by a negative weight reverses the order, so

inf⁡μ∈Uboxμ⊤w=μ^⊤w−∑iδi∣wi∣.\begin{aligned} &\inf_{\mu \in \mathcal{U}_{\text{box}}} \mu^{\top} w \\[0.4em] &\quad = \widehat{\mu}^{\top} w - \sum_{i} \delta_i \lvert w_i \rvert . \end{aligned}

The robust counterparts of the mean-variance problem are therefore deterministic problems,

max⁡w∈W μ^⊤w−ε∥A⊤w∥2−γ2 w⊤Σw\begin{aligned} &\max_{w \in \mathcal{W}} \ \widehat{\mu}^{\top} w - \varepsilon \lVert A^{\top} w \rVert_2 \\[0.4em] &\qquad - \tfrac{\gamma}{2}\, w^{\top} \Sigma w \end{aligned}

for the ellipsoid, and the same problem with ∑iδi∣wi∣\sum_i \delta_i \lvert w_i \rvert in place of ε∥A⊤w∥2\varepsilon \lVert A^{\top} w \rVert_2 for the box. Both penalties are convex and positively homogeneous of degree one in ww, so subtracting them keeps the objective concave.

In plain words The penalty is the largest amount by which an admissible error can lower the mean return of the position. For an ellipsoid it is the length of the position measured in the geometry of the errors. For a box every holding is charged its own half-width times its size, whatever its sign.

Example Take μ^=(0.08,0.05)\widehat{\mu} = (0.08, 0.05) and the long-short position w=(0.5,−0.3)w = (0.5, -0.3), whose estimated mean return is 0.04−0.015=0.0250.04 - 0.015 = 0.025. With box half-widths (0.02,0.01)(0.02, 0.01) the worst mean is (0.06,0.06)(0.06, 0.06), low for the long holding and high for the short one. The worst-case mean return is 0.03−0.018=0.0120.03 - 0.018 = 0.012, and the penalty is 0.02⋅0.5+0.01⋅0.3=0.0130.02 \cdot 0.5 + 0.01 \cdot 0.3 = 0.013. With the ellipse A=diag⁡(0.02,0.01)A = \operatorname{diag}(0.02, 0.01) and ε=1\varepsilon = 1, the vector A⊤w=(0.01,−0.003)A^{\top} w = (0.01, -0.003) has length 0.000109≈0.01044\sqrt{0.000109} \approx 0.01044. The worst mean is about (0.06084,0.05287)(0.06084, 0.05287) and the worst-case mean return about 0.014560.01456. The penalty is smaller because the ellipse lies inside the box.

One-asset worst-case weight

Definition Suppose there is one risky asset with estimated mean excess return μ^\widehat{\mu}, known variance σ2>0\sigma^2 > 0 and risk aversion γ>0\gamma > 0, the mean uncertainty set is [μ^−δ,μ^+δ][\widehat{\mu} - \delta, \widehat{\mu} + \delta] with δ≥0\delta \ge 0, cash has zero excess return, and the weight w∈Rw \in \mathbb{R} is unrestricted, so short positions and borrowing are allowed. Then the worst-case objective

J(w)=μ^w−δ∣w∣−γ2σ2w2J(w) = \widehat{\mu} w - \delta \lvert w \rvert - \tfrac{\gamma}{2} \sigma^2 w^2

is strictly concave, and its unique maximizer and maximum are

w∗=sign⁡(μ^)(∣μ^∣−δ)+γσ2,J(w∗)=((∣μ^∣−δ)+)22γσ2.\begin{gathered} w^{*} = \frac{\operatorname{sign}(\widehat{\mu}) \bigl(\lvert \widehat{\mu} \rvert - \delta\bigr)^{+}}{\gamma \sigma^2}, \\[0.4em] J(w^{*}) = \frac{\bigl((\lvert \widehat{\mu} \rvert - \delta)^{+}\bigr)^2}{2 \gamma \sigma^2}. \end{gathered}

The kink at 00 needs one-sided derivatives. For w>0w > 0 the derivative μ^−δ−γσ2w\widehat{\mu} - \delta - \gamma\sigma^2 w vanishes at (μ^−δ)/(γσ2)(\widehat{\mu} - \delta)/(\gamma\sigma^2), which is positive exactly when μ^>δ\widehat{\mu} > \delta. For w<0w < 0 the derivative μ^+δ−γσ2w\widehat{\mu} + \delta - \gamma\sigma^2 w vanishes at (μ^+δ)/(γσ2)(\widehat{\mu} + \delta)/(\gamma\sigma^2), which is negative exactly when μ^<−δ\widehat{\mu} < -\delta. A concave function on R\mathbb{R} is maximized at 00 exactly when its right derivative there, μ^−δ\widehat{\mu} - \delta, is at most 00 and its left derivative, μ^+δ\widehat{\mu} + \delta, is at least 00, that is, when ∣μ^∣≤δ\lvert \widehat{\mu} \rvert \le \delta. If ww must lie in an interval [ℓ,h][\ell, h], concavity makes the constrained maximizer the point of [ℓ,h][\ell, h] closest to w∗w^{*}. The hypothesis σ2>0\sigma^2 > 0 matters. With σ2=0\sigma^2 = 0 and ∣μ^∣>δ\lvert \widehat{\mu} \rvert > \delta the objective is piecewise linear and grows without bound in the direction of the estimate, so it has no maximizer.

In plain words Subtract the uncertainty radius from the size of the estimated edge. If nothing is left, hold no risky asset. If something is left, size the position as if the edge were only that remainder, in the direction of the estimate. This rule is called soft thresholding.

Example In the constructed example γσ2=0.12\gamma\sigma^2 = 0.12, so w∗=0.06/0.12=0.5w^{*} = 0.06/0.12 = 0.5 against the plug-in weight 2/32/3, and J(w∗)=0.0036/0.24=0.015J(w^{*}) = 0.0036/0.24 = 0.015. On the negative side the slope 0.10−0.12w0.10 - 0.12 w is positive for every w<0w < 0, so the objective rises all the way to 00 and no short position competes. If the radius grows to δ=0.09\delta = 0.09, larger than the estimated edge, the one-sided slopes at 00 are −0.01-0.01 and 0.170.17, so w∗=0w^{*} = 0. A mandate requiring w≥0.1w \ge 0.1 would then force the weight 0.10.1. For a negative estimate, take μ^=−0.03\widehat{\mu} = -0.03, σ=0.15\sigma = 0.15, γ=4\gamma = 4 and δ=0.01\delta = 0.01. Then γσ2=0.09\gamma\sigma^2 = 0.09, the plug-in weight is −1/3-1/3, and the worst-case weight is −0.02/0.09≈−0.222-0.02/0.09 \approx -0.222, a smaller short whose least favorable mean is the upper endpoint −0.02-0.02.

Regularization effect

Definition Regularization adds to an objective a penalty on the size of the decision. The worst-case penalties are regularizers produced by the uncertainty set, ε∥A⊤w∥2\varepsilon \lVert A^{\top} w \rVert_2 from an ellipsoid and the weighted absolute-value penalty ∑iδi∣wi∣\sum_i \delta_i \lvert w_i \rvert from a box. Their effect depends on the feasible set. Let PP be the penalty, w0w_0 a maximizer of the estimated utility U(w;μ^)U(w; \widehat{\mu}) over W\mathcal{W} and w1w_1 a maximizer of U(w;μ^)−P(w)U(w; \widehat{\mu}) - P(w) over the same set. Adding the optimality inequalities U(w0;μ^)≥U(w1;μ^)U(w_0; \widehat{\mu}) \ge U(w_1; \widehat{\mu}) and U(w1;μ^)−P(w1)≥U(w0;μ^)−P(w0)U(w_1; \widehat{\mu}) - P(w_1) \ge U(w_0; \widehat{\mu}) - P(w_0) gives P(w1)≤P(w0)P(w_1) \le P(w_0), so the penalty is never larger at the penalized optimum than at the plug-in optimum. That guarantee is for the penalty as a whole, not for each holding. Because the penalties are not differentiable at zero, they can also set positions exactly to zero. The box penalty has a kink wherever a single coordinate is zero, so it can remove individual holdings. With an invertible AA the ellipsoidal penalty has its only kink at w=0w = 0, so it can remove the whole risky portfolio at once. Under the long-only full-investment constraint w≥0w \ge 0, 1⊤w=1\mathbf{1}^{\top} w = 1, the box penalty equals ∑iδiwi\sum_i \delta_i w_i, which is linear, so it acts exactly as replacing each μ^i\widehat{\mu}_i by μ^i−δi\widehat{\mu}_i - \delta_i. With a common half-width δ\delta it is the constant δ\delta and leaves the optimal weights unchanged. Under the budget 1⊤w=1\mathbf{1}^{\top} w = 1 with short positions allowed, writing wi−=max⁡(−wi,0)w_i^{-} = \max(-w_i, 0),

δ∥w∥1=δ(1+2∑iwi−),\delta \lVert w \rVert_1 = \delta \Bigl(1 + 2 \sum_i w_i^{-}\Bigr),

so the penalty charges gross short exposure. The link to statistical regularization is mathematical. A penalty chosen for statistical reasons describes a particular uncertainty about means only when its weights match a set the investor is prepared to defend.

In plain words Planning for the worst admissible mean and penalizing large positions turn out to be the same calculation. The penalty does not always shrink, though. When the constraints already fix the total size of the positions, an equal box penalty is a constant and changes nothing.

Example In the one-asset example with μ^>δ\widehat{\mu} > \delta, the worst-case weight is the plug-in weight minus δ/(γσ2)\delta/(\gamma\sigma^2), here 2/3−1/6=1/22/3 - 1/6 = 1/2. Shrinkage protects against the errors in the set, but it is not a promise of better average performance. In the constructed estimation model of the first card, with true mean 0.080.08 and μ^\widehat{\mu} normal with standard deviation 0.040.04, numerical integration gives an expected delivered utility of 0.02000.0200 for the plug-in rule and about 0.01920.0192 for the worst-case rule with δ=0.02\delta = 0.02. Here the true edge is large compared with the standard error, and the shrinkage costs a little on average. The worst-case criterion and average performance are different questions.

Check yourself

  1. One risky asset has μ^=0.05\widehat{\mu} = 0.05, σ=0.20\sigma = 0.20 and γ=2.5\gamma = 2.5, with cash at zero excess return and an unrestricted weight. Find the plug-in weight and the worst-case weight for the mean interval of half-width δ=0.01\delta = 0.01, and compare their worst-case objective values. What is the worst-case weight when δ=0.05\delta = 0.05?
Show the answer

Here γσ2=2.5⋅0.04=0.1\gamma\sigma^2 = 2.5 \cdot 0.04 = 0.1, so the plug-in weight is 0.05/0.1=0.50.05/0.1 = 0.5. The estimated edge 0.050.05 exceeds the radius 0.010.01, so the worst-case weight is

w∗=0.05−0.010.1=0.4.w^{*} = \frac{0.05 - 0.01}{0.1} = 0.4 .

The worst-case objective is J(w)=0.05w−0.01∣w∣−0.05w2J(w) = 0.05 w - 0.01 \lvert w \rvert - 0.05 w^2. It gives J(0.4)=0.016−0.008=0.008J(0.4) = 0.016 - 0.008 = 0.008, which matches 0.042/0.20.04^2/0.2, and J(0.5)=0.02−0.0125=0.0075J(0.5) = 0.02 - 0.0125 = 0.0075. When δ=0.05\delta = 0.05, the right derivative at 00 is 0.05−0.05=00.05 - 0.05 = 0 and the left derivative is 0.100.10, so the condition ∣μ^∣≤δ\lvert \widehat{\mu} \rvert \le \delta holds with equality and w∗=0w^{*} = 0. Every w>0w > 0 gives J(w)=−0.05w2<0J(w) = -0.05 w^2 < 0, so the equality case still selects zero exposure.

  1. Two assets have μ^=(0.07,0.03)\widehat{\mu} = (0.07, 0.03) and box half-widths (0.02,0.015)(0.02, 0.015), and the portfolio is w=(0.8,−0.4)w = (0.8, -0.4). Find the worst-case mean vector, the worst-case mean return and the penalty. Why is it wrong to lower both estimated means by their half-widths?
Show the answer

The estimated mean return is 0.07⋅0.8−0.03⋅0.4=0.056−0.012=0.0440.07 \cdot 0.8 - 0.03 \cdot 0.4 = 0.056 - 0.012 = 0.044. The long holding is hurt by a low mean and the short holding by a high one, so the worst case is μ=(0.05,0.045)\mu = (0.05, 0.045), with mean return 0.04−0.018=0.0220.04 - 0.018 = 0.022. The penalty is

0.02⋅0.8+0.015⋅0.4=0.022,\begin{aligned} &0.02 \cdot 0.8 + 0.015 \cdot 0.4 \\[0.4em] &\quad = 0.022, \end{aligned}

and indeed 0.044−0.022=0.0220.044 - 0.022 = 0.022. Lowering both means gives (0.05,0.015)(0.05, 0.015) and the mean return 0.04−0.006=0.0340.04 - 0.006 = 0.034, which is not the worst case. A lower mean for the shorted asset helps the position, so that choice understates the penalty as 0.0100.010 instead of 0.0220.022. The penalty uses ∣wi∣\lvert w_i \rvert, not wiw_i.

  1. Two uncorrelated assets have μ^=(0.08,0.05)\widehat{\mu} = (0.08, 0.05) and Σ=diag⁡(0.04,0.09)\Sigma = \operatorname{diag}(0.04, 0.09), with γ=3\gamma = 3, and the portfolio must be long-only and fully invested. Show that box half-widths of 0.020.02 for both assets leave the optimal weights unchanged, and find the optimum for half-widths (0.02,0.01)(0.02, 0.01).
Show the answer

Write w=(x,1−x)w = (x, 1 - x) with 0≤x≤10 \le x \le 1. The estimated objective is

f(x)=0.08x+0.05(1−x)−0.06 x2−0.135 (1−x)2,\begin{aligned} f(x) &= 0.08 x + 0.05 (1 - x) \\[0.4em] &\quad - 0.06\, x^2 \\[0.4em] &\quad - 0.135\, (1 - x)^2, \end{aligned}

with f′(x)=0.30−0.39xf'(x) = 0.30 - 0.39 x, so the optimum is x=10/13≈0.769x = 10/13 \approx 0.769, inside [0,1][0, 1], with value about 0.030380.03038. With equal half-widths the penalty is 0.02x+0.02(1−x)=0.020.02 x + 0.02 (1 - x) = 0.02 for every feasible xx, so the optimal weights stay (10/13,3/13)(10/13, 3/13) and only the value falls, to about 0.010380.01038. With half-widths (0.02,0.01)(0.02, 0.01) the penalty 0.02x+0.01(1−x)0.02 x + 0.01 (1 - x) is linear, the same as using the means (0.06,0.04)(0.06, 0.04). The derivative becomes 0.29−0.39x0.29 - 0.39 x, so x=29/39≈0.744x = 29/39 \approx 0.744, with value about 0.012820.01282. The penalty shifts the means instead of shrinking the positions, because the constraints fix their total size.

How this lesson connects