Abstract
A Lagrange multiplier, introduced in Lagrange’s Méchanique analitique (1788), is the rise in the best attainable value per unit relaxation of a constraint: on a consumer’s budget it is the marginal utility of wealth, and on a firm’s output target it is marginal cost. The envelope theorem, which Samuelson (1947) credited to Viner’s draftsman Y. K. Wong, says the optimum responds only to a parameter’s direct effect, which yields Roy’s identity, Shephard’s lemma and the tangency of short-run and long-run cost curves away from the short-run minima. Karush (1939) and Kuhn and Tucker (1951) extended the conditions to inequalities, where a multiplier is positive only on a binding constraint. In a minimum-variance portfolio the multipliers on no-short-sale constraints shrink the covariance matrix (Jagannathan and Ma 2003): in the working-paper tables, with 500 stocks and 60 months, where the sample matrix is singular, the constrained portfolio’s out-of-sample volatility was 12.43% against 17.48% for equal weights, while for factor and shrinkage estimators the same constraint raised risk.
In 1931 Jacob Viner of the University of Chicago published “Cost Curves and Supply Curves” in the Zeitschrift für Nationalökonomie. One of its figures drew a firm’s long-run average cost curve beneath a family of U-shaped short-run curves, one for each size of plant, and Viner wanted the long-run curve to run through the bottom of every U. His draftsman, the mathematician Y. K. Wong, would not draw it. “My instructions to the draftsman were to draw the AC curve so as never to be above any portion of any ac curve,” Viner wrote in a footnote. “He is a mathematician, however, not an economist, and he saw some mathematical objection to this procedure which I could not succeed in understanding.”
The figure went to press with short-run curves that, as the footnote conceded, “sink below the long-run AC curve” at certain points. Wong was right. A curve that lies below every short-run curve touches each one where the two have the same slope, and the long-run curve is flat only at its own minimum. Sixteen years later Paul Samuelson’s Foundations of Economic Analysis (1947) gave the objection its general form and credited it to Wong. It is now called the envelope theorem.
The theorem is a statement about the value of a constrained optimum: how the best a decision-maker can do changes when the problem changes. Its central object is the Lagrange multiplier, which measures what a constraint costs at the margin and which economists read as a shadow price, a price that no market posts but that the solution implies. The multiplier turns up wherever choice is constrained, in a consumer’s budget, a firm’s output target and an investor’s portfolio weights, and in the last of these it has a use that its inventors did not anticipate.
The multiplier as a price
Joseph-Louis Lagrange set out the method in his Méchanique analitique (1788), to find the equilibrium of mechanical systems whose parts are tied together. Its economic form is the consumer’s problem. A household divides its wealth between two goods and chooses the bundle it likes best among those it can afford.
\[\max_{x,\,y}\; u(x,y)\quad\text{subject to}\quad p\,x+q\,y=W, \qquad \mathcal{L}=u(x,y)+\lambda\,(W-p\,x-q\,y)\]
- \(u(x,y)\)
- the household’s utility from \(x\) units of one good and \(y\) of the other
- \(p,\; q\)
- the two prices
- \(W\)
- wealth, the amount available to spend
- \(\lambda\)
- the Lagrange multiplier on the budget constraint
- \(\mathcal{L}\)
- the Lagrangian: the objective plus the multiplier times the slack in the constraint
Setting the derivatives of \(\mathcal{L}\) with respect to \(x\) and \(y\) to zero gives \(u_x = \lambda p\) and \(u_y = \lambda q\), so that \(u_x/p = u_y/q = \lambda\). At the best bundle the last dollar spent on each good adds the same utility, and that common value is the multiplier. In a diagram this is the tangency of an indifference curve with the budget line, since the ratio of marginal utilities equals the ratio of prices.
The multiplier has a second meaning, which is the one that matters for economics. Let \(V(W)\) be the highest utility attainable with wealth \(W\), the indirect utility. Then \(dV/dW = \lambda\). The multiplier is the marginal utility of wealth: what one more dollar of budget is worth, in utility, when it is spent as well as possible. With the utility \(u = a\ln x + (1-a)\ln y\) the household spends the share \(a\) of its wealth on the first good, \(x^{*} = aW/p\), and the multiplier is \(\lambda = 1/W\). A dollar is worth less to a richer household, the same diminishing marginal utility that the expected utility lesson uses to explain risk aversion, here derived from the budget rather than assumed of wealth directly.
(A multiplier converts utility into money. Measuring welfare by an area under a demand curve, as the consumer and producer surplus lesson does, gives an exact dollar measure only when \(\lambda\) does not change with the price being studied, which is the case of quasilinear utility.)What the optimum responds to
The result \(dV/dW = \lambda\) is one instance of a general rule. When a parameter of a constrained problem changes, the decision-maker reoptimizes, and the reoptimization has no first-order effect on the value, because at an optimum small changes in the choice are worth nothing. Only the direct effect of the parameter counts.
\[V(\theta)=\max_{\mathbf{x}}\big\{f(\mathbf{x},\theta)\;:\;g(\mathbf{x},\theta)=0\big\}, \qquad \frac{dV}{d\theta}=\frac{\partial\mathcal{L}}{\partial\theta}\bigg|_{\mathbf{x}^{*},\,\lambda^{*}}\]
- \(\theta\)
- a parameter of the problem: a price, an amount of wealth, a target
- \(V(\theta)\)
- the value function, the best attainable value of the objective at \(\theta\)
- \(\mathbf{x}^{*},\; \lambda^{*}\)
- the optimal choice and multiplier at \(\theta\)
- \(\mathcal{L}\)
- the Lagrangian \(f(\mathbf{x},\theta)+\lambda\,g(\mathbf{x},\theta)\)
Applied to the consumer’s problem with \(\theta = W\), the derivative of \(\mathcal{L}\) is \(\lambda\). With \(\theta = p\) it is \(-\lambda x^{*}\), and dividing one by the other gives Roy’s identity, published by René Roy in 1947, which recovers demand from indirect utility as \(x^{*} = -(\partial V/\partial p)/(\partial V/\partial W)\). The firm’s problem gives the producer’s counterparts. A firm producing \(q\) units at least cost, choosing labor \(L\) and capital \(K\) at prices \(w\) and \(r\), has the Lagrangian \(wL + rK + \lambda\,[q - F(K,L)]\). The envelope theorem then says that the multiplier is marginal cost, \(\partial C/\partial q = \lambda\), and that the derivative of minimum cost with respect to a factor price is the amount of that factor used, \(\partial C/\partial w = L^{*}\), a result Ronald Shephard proved in Cost and Production Functions (1953).
Viner’s cost curves are the envelope theorem with the plant as the choice. Long-run cost is short-run cost minimized over plant size, \(C(q) = \min_K c(q,K)\). It can never exceed the short-run cost of any particular plant, and it equals the cost of the best plant for each output, so each short-run curve touches the long-run curve at one output and lies above it everywhere else. At the point of contact the two have the same slope, since the theorem gives \(C'(q) = \partial c(q,K^{*})/\partial q\). The same holds for average costs. Where the long-run average cost curve is falling, a plant built for that output is operated below the output at which its own average cost is lowest, and where it is rising, above it.
The dashed curve through the bottoms is what Viner asked for, and it lies above the envelope everywhere except at the envelope’s lowest point. Viner’s footnote kept the figure and flagged the error; Samuelson, returning to the episode in the Foundations, concluded that “Dr. Wong was right then in insisting upon tangency.”
Inequalities and complementary slackness
Most economic constraints are inequalities. A household need not spend all its wealth, a ration sets a ceiling rather than a quantity, and a portfolio weight may be required to be at least zero. Lagrange’s method assumes every constraint holds with equality, and extending it requires knowing which constraints bind at the solution, which is usually what one is trying to find.
William Karush solved the problem in his master’s thesis at the University of Chicago, “Minima of Functions of Several Variables with Inequalities as Side Conditions,” submitted in December 1939 under Lawrence Graves and never published. Fritz John reached related conditions in a paper of 1948. Harold Kuhn and Albert Tucker, at Princeton, announced the theorem at a RAND seminar in May 1950 and presented “Nonlinear Programming” at the Second Berkeley Symposium on Mathematical Statistics and Probability that summer; the proceedings appeared in 1951. Their paper made the conditions standard in economics and operations research. Kuhn learned of Karush’s thesis only in the 1970s, through a citation in Akira Takayama’s Mathematical Economics (1974), and he printed part of it as an appendix to a 1976 historical survey, after which the conditions came to carry all three names.
\[\max_{\mathbf{x}}\, f(\mathbf{x})\;\;\text{s.t.}\;\; g_j(\mathbf{x})\le b_j: \qquad \nabla f(\mathbf{x}^{*})=\sum_{j}\mu_j\,\nabla g_j(\mathbf{x}^{*}), \qquad \mu_j\ge 0, \qquad \mu_j\,\big[b_j-g_j(\mathbf{x}^{*})\big]=0\]
- \(g_j(\mathbf{x}) \le b_j\)
- the \(j\)th constraint, with \(b_j\) the limit it sets
- \(\mu_j\)
- the multiplier on constraint \(j\): the rise in the best attainable value per unit increase in \(b_j\)
The first condition is Lagrange’s, with every constraint included. The second says that a constraint can only hold the decision-maker back, so its multiplier cannot be negative. The third, complementary slackness, says that a constraint which does not bind has a multiplier of zero: relaxing a limit that the solution does not reach is worth nothing. A multiplier is positive only when its constraint binds. The envelope theorem carries over, \(dV/db_j = \mu_j\), so each multiplier is still the marginal value of its constraint.
Rationing makes the interpretation concrete. Suppose the household above may buy no more than \(\bar{x}\) units of the first good. If it would buy fewer anyway, the ration is slack and its multiplier is zero. If it binds, the household buys \(\bar{x}\), spends the rest on the second good, and the multiplier \(\mu\) on the ration is the utility that one more unit of allowance would bring. Divided by the marginal utility of wealth, \(\mu/\lambda\) is a number of dollars, the most the household would pay for one more ration coupon. It equals the household’s marginal willingness to pay for the good less its price, \(u_x/\lambda - p\), and ration coupons that can be traded acquire a market price that plays the same role.
Figure: A budget, a ration and their shadow prices. A household with log utility divides its wealth between two goods; the second good’s price is $1. The left panel shows its choice: the budget line, indifference curves and, when a ration is imposed, the ceiling on the first good. The right panel shows the best attainable utility as wealth varies, whose slope at the current wealth is the multiplier on the budget.
The figure shows two things the formulas imply but do not display. A binding ration lowers the marginal utility of wealth, since an extra dollar can go only to the good the household wants less of at the margin. And the dollar value of a coupon rises as the ration tightens or as wealth grows, which is why rationed goods attract a secondary market in the right to buy them.
Shadow prices in a portfolio
Portfolio choice is a constrained problem with a quadratic objective. The global minimum-variance portfolio minimizes half the variance subject to a budget. Its solution and its multiplier have closed forms.
\[\min_{\mathbf{w}}\;\tfrac12\,\mathbf{w}^{\top}\Sigma\,\mathbf{w}\;\;\text{s.t.}\;\;\mathbf{1}^{\top}\mathbf{w}=1,\;\;\mathbf{w}\ge 0: \qquad \Sigma\mathbf{w}-\boldsymbol{\lambda}=\lambda_0\mathbf{1},\quad \lambda_i\ge 0,\quad \lambda_i w_i=0\]
- \(\mathbf{w}\)
- the vector of portfolio weights
- \(\Sigma\)
- the covariance matrix of the assets’ returns
- \(\lambda_0\)
- the multiplier on the budget constraint
- \(\boldsymbol{\lambda}\)
- the multipliers on the no-short-sale constraints \(w_i \ge 0\)
Without the inequality constraints the weights are \(\Sigma^{-1}\mathbf{1}/(\mathbf{1}^{\top}\Sigma^{-1}\mathbf{1})\) and the budget’s multiplier is \(\lambda_0 = 1/(\mathbf{1}^{\top}\Sigma^{-1}\mathbf{1})\), which is the minimum variance itself. The ith condition reads \((\Sigma\mathbf{w})_i = \lambda_0\): every asset held has the same covariance with the portfolio, the portfolio analogue of the consumer’s equal marginal utility per dollar. If a target expected return \(\boldsymbol{\mu}^{\top}\mathbf{w} = m\) is added, its multiplier is, by the envelope theorem, the rate at which half the minimum variance rises with the target, so the slope of the efficient frontier in mean–variance space, twice that multiplier, is a shadow price, the variance an investor must accept per unit of additional expected return.
The no-short-sale constraints work like the ration. An asset the unconstrained solution would hold in positive amount is unaffected, and its multiplier is zero. An asset it would sell short is held at zero instead, and its multiplier \(\lambda_i = (\Sigma\mathbf{w})_i - \lambda_0\) measures how much its covariance with the portfolio exceeds the common value. It is the marginal cost, in half-variance, of being forced to hold a little of it. Two assets show the arithmetic. Asset 1 has a volatility of 20%, asset 2 of 10%, and their correlation is 0.6.
- The unconstrained minimum-variance weight in asset 1 \[w_1=\frac{\sigma_2^2-\rho\sigma_1\sigma_2}{\sigma_1^2+\sigma_2^2-2\rho\sigma_1\sigma_2}=\frac{0.0100-0.0120}{0.0260}=-7.7\%, \quad \sigma_p=9.92\%\]
- With the constraint w₁ ≥ 0, the investor holds asset 2 alone \[\mathbf{w}=(0,\,1), \quad \lambda_0=(\Sigma\mathbf{w})_2=\sigma_2^2=0.0100, \quad \sigma_p=10.00\%\]
- The multiplier on the constraint \[\lambda_1=(\Sigma\mathbf{w})_1-\lambda_0=\rho\sigma_1\sigma_2-\sigma_2^2=0.0120-0.0100=0.0020\]
- Its meaning: forcing a small weight ε into asset 1 \[\frac{d}{d\varepsilon}\,\tfrac12\sigma_p^2(\varepsilon,\,1-\varepsilon)\Big|_{\varepsilon=0}=\sigma_{12}-\sigma_2^2=0.0020\]
The constraint costs eight hundredths of a point of volatility here, and the multiplier records that the cost is incurred because asset 1’s covariance with asset 2, 0.0120, exceeds asset 2’s own variance. An optimizer shorts an asset when it covaries strongly with the rest of the portfolio, and the multiplier measures by how much.
Figure: When a no-short constraint binds. Three illustrative assets. Asset A is the most volatile and the A–B correlation is varied across the horizontal axis; both have correlation 0.3 with asset C. The left panel shows the minimum-variance weights with and without the constraint that no weight be negative. The right panel shows the multiplier on A’s constraint, which leaves zero exactly where the unconstrained weight turns negative.
Multipliers on portfolio constraints also enter equilibrium prices. In the model of Andrea Frazzini and Lasse Pedersen (2014), investors who cannot borrow tilt toward high-beta assets, and the multiplier on their leverage constraint appears in the security market line, making it flatter than the CAPM’s, as the low-risk anomaly lesson describes.
Why the wrong constraint helps
Practitioners have long imposed constraints on optimized portfolios, and the optimized portfolios have often done better for it. Richard Green and Burton Hollifield (1992) had shown why this was puzzling. When one factor dominates the covariance matrix, as the market does for stocks, the true minimum-variance portfolio takes large offsetting long and short positions. A no-short-sale constraint then excludes the true optimum, and in a world without estimation error it could only raise risk.
Ravi Jagannathan and Tongshu Ma (2003) resolved the puzzle by reading the KKT conditions backwards. Define the matrix
\[\tilde{\Sigma}=\Sigma-\big(\boldsymbol{\lambda}\mathbf{1}^{\top}+\mathbf{1}\boldsymbol{\lambda}^{\top}\big), \qquad \tilde{\Sigma}\,\mathbf{w}=\Sigma\mathbf{w}-\boldsymbol{\lambda}\,(\mathbf{1}^{\top}\mathbf{w})-\mathbf{1}\,(\boldsymbol{\lambda}^{\top}\mathbf{w})=\lambda_0\mathbf{1}\]
- \(\tilde{\Sigma}\)
- the covariance matrix the constrained portfolio implicitly uses
- \(\boldsymbol{\lambda}\)
- the multipliers on the no-short-sale constraints at the constrained optimum
The second equation uses the budget, \(\mathbf{1}^{\top}\mathbf{w} = 1\), and complementary slackness, \(\boldsymbol{\lambda}^{\top}\mathbf{w} = 0\). It says that the constrained portfolio satisfies the unconstrained first-order condition for the matrix \(\tilde{\Sigma}\), so it is the unconstrained minimum-variance portfolio of \(\tilde{\Sigma}\). Imposing the constraint is the same as replacing the covariance matrix. The replacement lowers the variance of each asset with a positive multiplier by \(2\lambda_i\) and its covariances with the others by \(\lambda_i\), and it changes nothing for assets whose constraints are slack. In the two-asset example the covariance falls from 0.0120 to 0.0100 and the variance of asset 1 from 0.0400 to 0.0360, and with those numbers the unconstrained solution is to hold none of it. Upper limits on weights do the reverse, raising the covariances of assets held at the limit by their multipliers.
When \(\Sigma\) is estimated, this is shrinkage. The assets an optimizer most wants to short are those whose estimated covariances with the others are highest, and in a sample many of the highest estimates are high by chance. The constraint pulls exactly those estimates down, by an amount the data choose. Jagannathan and Ma also showed that for normally distributed returns, imposing the constraints when the covariance matrix is estimated by maximum likelihood, in the sense of the maximum likelihood lesson, leads to the same portfolio as imposing them when the portfolio is optimized.
In the working-paper version of the study, their tests used 500 stocks drawn at random each April from NYSE and AMEX common stocks that passed price and size screens, with covariances estimated from the previous 60 months and portfolios held for a year, for out-of-sample returns from May 1968 to April 1999. With 500 stocks and 60 months the sample covariance matrix is singular and the unconstrained problem has no unique solution, yet with the no-short-sale constraint the same matrix gave a portfolio with an annualized standard deviation of 12.43%, holding about 24 stocks on average. The equally weighted portfolio of the 500 stocks had 17.48% and the value-weighted 15.60%. The constraint also brought the sample matrix level with more elaborate estimators, whose constrained portfolios, built from a one-factor model, a shrinkage estimator and daily returns, had standard deviations of 12.62%, 12.29% and 12.34%. For those estimators, however, the constraint raised risk, since without it they gave 11.69%, 10.76% and 10.64%; the constraint helps only when it removes estimation error that nothing else has removed. Capping each weight at 2% in addition changed little.
| Covariance estimate | No constraint | No short sales | No short sales, 2% cap |
|---|---|---|---|
| Monthly sample covariance | not unique | 12.43% | 12.85% |
| One-factor model | 11.69% | 12.62% | 12.50% |
| Fama–French three-factor model | 11.35% | 12.38% | 12.53% |
| Shrinkage toward the one-factor model | 10.76% | 12.29% | 12.43% |
| Daily sample covariance | 10.64% | 12.34% | 12.28% |
Figure: Imposing the wrong constraint. A simulated market in which returns follow a one-factor model, so that the true minimum-variance portfolio sells several high-beta assets short. An investor estimates the covariance matrix from a window of monthly returns and forms the minimum-variance portfolio with and without the no-short-sale constraint. The left panel shows each portfolio’s true volatility, averaged over 400 simulated samples, as the window lengthens. The right panel shows the weights from one sample.
Victor DeMiguel, Lorenzo Garlappi, Francisco Nogales and Raman Uppal (2009) placed the result in a larger family. A no-short-sale constraint with a budget of one is a limit on the sum of the absolute weights, and limits on other norms of the weight vector nest Jagannathan and Ma’s portfolio, several covariance shrinkage estimators and the equally weighted portfolio as special cases. The tangency portfolio lesson takes up what this means for portfolios that also use estimated expected returns, and Black–Litterman and risk parity offer other ways of disciplining the same inputs; the equal-risk-contribution portfolio is itself the solution of a minimum-variance problem with a constraint on the sum of log weights.
What the multipliers do not settle
A multiplier is a derivative. It prices a small relaxation of a constraint at the current solution and says nothing directly about a large one, because the multiplier itself changes as the constraint moves, as the coupon’s value does in the ration figure. Evaluating a large change, removing a ration or lifting a ban on short sales, requires solving the problem again.
The conditions are also less general than their use suggests. The KKT conditions are necessary for an optimum only under a regularity condition on the constraints, the constraint qualification that Kuhn and Tucker stated explicitly, and they are sufficient only when the objective is concave and the feasible set convex. Minimum variance with linear constraints satisfies both. Many constraints used in practice do not, among them limits on the number of assets held or minimum position sizes, and for these a point satisfying the conditions need not be the optimum and its multipliers need not price anything.
Some multipliers are not observable at all. The marginal utility of wealth depends on how utility is scaled, and doubling the utility function doubles it without changing any choice. Only ratios of multipliers, such as the dollar value of a ration coupon, carry information about behavior. Jagannathan and Ma’s result has a different limit. It is an empirical finding about the size of estimation error in samples of a particular size. Their own tables show the constraint raising the risk of portfolios built from covariance estimates that were already shrunk, and in their tests on 25 portfolios sorted by size and book-to-market, whose covariances are estimated far more precisely than those of individual stocks, constrained minimum-variance portfolios did worse than unconstrained ones. The constraint shrinks by an amount set by the sample rather than by any estimate of the error, and whether it shrinks too much or too little in a given application is not something the KKT conditions can say.
Sources
- Lagrange, J.-L. (1788). Méchanique analitique. Chez la Veuve Desaint, Paris.
- Viner, J. (1931). Cost Curves and Supply Curves. Zeitschrift für Nationalökonomie 3, 23–46.
- Karush, W. (1939). Minima of Functions of Several Variables with Inequalities as Side Conditions. Master’s thesis, Department of Mathematics, University of Chicago.
- Samuelson, P. A. (1947). Foundations of Economic Analysis. Harvard University Press.
- Roy, R. (1947). La distribution du revenu entre les divers biens. Econometrica 15(3), 205–225.
- John, F. (1948). Extremum Problems with Inequalities as Subsidiary Conditions. In Studies and Essays Presented to R. Courant on His 60th Birthday, Interscience, New York, 187–204.
- Kuhn, H. W., and A. W. Tucker (1951). Nonlinear Programming. In J. Neyman (ed.), Proceedings of the Second Berkeley Symposium on Mathematical Statistics and Probability, University of California Press, 481–492.
- Shephard, R. W. (1953). Cost and Production Functions. Princeton University Press.
- Takayama, A. (1974). Mathematical Economics. Dryden Press, Hinsdale, Illinois.
- Kuhn, H. W. (1976). Nonlinear Programming: A Historical View. In R. W. Cottle and C. E. Lemke (eds.), Nonlinear Programming, SIAM–AMS Proceedings 9, American Mathematical Society, 1–26.
- Green, R. C., and B. Hollifield (1992). When Will Mean-Variance Efficient Portfolios Be Well Diversified?. Journal of Finance 47(5), 1785–1809.
- Kjeldsen, T. H. (2000). A Contextualized Historical Analysis of the Kuhn–Tucker Theorem in Nonlinear Programming: The Impact of World War II. Historia Mathematica 27(4), 331–361.
- Jagannathan, R., and T. Ma (2002). Risk Reduction in Large Portfolios: Why Imposing the Wrong Constraints Helps. NBER Working Paper 8922.
- Jagannathan, R., and T. Ma (2003). Risk Reduction in Large Portfolios: Why Imposing the Wrong Constraints Helps. Journal of Finance 58(4), 1651–1683.
- Bussotti, P. (2003). On the Genesis of the Lagrange Multipliers. Journal of Optimization Theory and Applications 117(3), 453–459.
- DeMiguel, V., L. Garlappi, F. J. Nogales, and R. Uppal (2009). A Generalized Approach to Portfolio Optimization: Improving Performance by Constraining Portfolio Norms. Management Science 55(5), 798–812.
- Frazzini, A., and L. H. Pedersen (2014). Betting Against Beta. Journal of Financial Economics 111(1), 1–25.