An investor with a three-year horizon may change the fraction of wealth held in a stock at every moment, in response to everything observed so far. Which rule for that fraction maximizes the expected utility of final wealth, and how does the answer differ from a weight chosen once, as in mean-variance optimization? Stochastic control treats the rule itself as the unknown and describes the best achievable continuation by a value function of time and wealth. This lesson derives the Hamilton-Jacobi-Bellman equation for that value function, solves it for power utility in a market with constant opportunities to obtain the Merton allocation together with its value, and proves optimality by a verification argument within a stated class of admissible controls.
Key terms
Stochastic control
Definition Fix a horizon and a probability space with the physical measure , a Brownian motion under and the filtration generated by and completed with the null sets. A cash account earns a constant continuously compounded rate , and a stock that pays no dividends follows
with constants and . An investor keeps the fraction of current wealth in the stock and the rest in the cash account, trades without costs, may borrow or sell short at the rate , and neither consumes nor adds money. The self-financing condition then gives the controlled wealth equation
A control on is a real-valued process that is progressively measurable with respect to , so that each uses only the information available at time , and that satisfies almost surely. For such a control and a starting wealth the wealth equation has the unique solution
which is strictly positive. Because the control is a fraction of current wealth, the positive-wealth constraint holds automatically, while a strategy stated in currency amounts would need it as an explicit condition. The admissible controls form a class that is part of the problem. It contains only controls for which the expected utility below is well defined, it may impose constraints such as a cap on , and the verification card fixes the class used for power utility. The stochastic control problem is to maximize the expected utility of terminal wealth, and its value function is
where is an increasing utility function on , is the expectation under for wealth started at , and . The expectation uses , because the problem is about preferences over actual outcomes, not about the price of a claim.
In plain words The unknown is a rule rather than a number. At every moment the rule looks at everything observed so far and sets the stock fraction, and the value function records the best expected utility that can still be reached from each time and wealth. Buying some shares once and holding them, with the rest in cash, is one admissible rule among many, and dynamic control searches over all of them.
Example In a constructed market with , and , the constant fraction started from at time gives the geometric Brownian motion
since and . After three years the expected wealth is and the median wealth is . Holding the fraction fixed is itself a trading rule. Because lies between and , a rise of the stock relative to the cash account would push the stock’s share of wealth above if the investor did not trade, so keeping the fraction means selling after rises and buying after falls.
Bellman principle
Definition The Bellman principle, also called the dynamic programming principle, states that for and
with the supremum over admissible controls on . The problem from splits into a choice over the first interval followed by the best continuation from the state that is reached, and an optimal control remains optimal, with probability one, for the remaining problem from the state it reaches. The split works because the objective is an expectation of a function of terminal wealth and because the pair summarizes everything about the past that matters for the future, here since the coefficients are constant. Under standard conditions for controlled diffusions the principle is a theorem, but its proof needs measurability arguments beyond this lesson. Here it serves to derive the Hamilton-Jacobi-Bellman (HJB) equation, and for the explicit solution of the Merton card the verification argument confirms it directly. A criterion that is not of this form, such as a mean-variance criterion containing , does not satisfy the principle as stated, and its best strategy chosen at time need not remain best at later dates.
In plain words Whatever happens first, the investor then faces the same kind of problem with less time left and a different wealth, and will handle that problem as well as possible. So the best first step is the one that leads to the best expected continuation value, and the optimal rule chosen at the start is still the rule one would choose at any later date.
Example Take the constructed market with and and the value function of the Merton card below, for which with . If the investor holds only cash in the first year and acts optimally afterward, wealth at year 1 is and the expected continuation value is . With the fraction in the first year, , and the expected continuation value is
which is . The fractions and in the first year give about each. Among constant first-year fractions the best is , and its continuation value reproduces the value of the whole problem.
Hamilton-Jacobi-Bellman equation
Definition Suppose is continuous on and has continuous partial derivatives , and on . For a fraction the controlled generator is
By Itô’s formula, the drift of under a constant fraction is evaluated at , where the second-order term comes from the quadratic variation . If the stochastic integral in Itô’s formula has mean zero, the Bellman principle over , divided by with , leads formally to the Hamilton-Jacobi-Bellman equation
for and . The derivation is heuristic. It assumes the smoothness of and the Bellman principle, and it exchanges a limit with an expectation. When the value function is not smooth, the equation is interpreted in the weaker viscosity sense, which lies beyond this lesson. When , , and , the expression is a strictly concave quadratic in . Setting its derivative to zero gives the unique maximizer
and substituting it turns the HJB equation into the nonlinear PDE
If , or if while , the supremum is and no maximizer exists. If the fraction is restricted to an interval , the supremum is taken over that interval, and strict concavity puts the maximizer at , the point of the interval nearest to .
In plain words Along any admissible path the value of the remaining problem has drift at most zero, and along an optimal path its drift is exactly zero. The equation balances the passage of time in , the expected growth of wealth priced by the marginal value , and the variance of wealth penalized by the curvature . Expected growth rises linearly in the risky fraction while variance rises quadratically, so negative curvature produces an interior best fraction.
Example For the constructed values , , , and , the value function of the Merton card has at the derivatives , and . There
a concave quadratic with maximizer and maximum about , which cancels as the equation requires. If the fraction were capped at , the maximum over the allowed interval would sit at the endpoint , with value about .
CRRA utility
Definition For a relative risk aversion , the CRRA (constant relative risk aversion) or power utility on is
Its derivatives are and , so is strictly increasing and strictly concave, and the coefficient of relative risk aversion is
at every wealth. For the utility is homogeneous of degree , with for , and for log utility . For the utility is negative, and larger wealth still gives a larger, less negative value. The log case is the limit of the shifted utility as , and the shift is needed because the constant that separates it from diverges. Adding a constant to a utility or multiplying it by a positive constant changes no decision.
In plain words Risk aversion measured relative to wealth is the same at every wealth level, so a gamble that scales with wealth is judged the same way by a rich investor and a poor one. This is why the best fraction of wealth in the stock will turn out not to depend on wealth. A larger means a stronger dislike of proportional risk.
Example With the utility is , so and . A gamble that leaves wealth or with probability one half each has expected utility . Its certainty equivalent, the sure wealth with the same utility, is
far below the mean wealth . Doubling both outcomes doubles the certainty equivalent to about , as homogeneity requires. For log utility the certainty equivalent of the original gamble is , and for it is , so it falls as grows.
Merton allocation
Definition In the market of the stochastic control card, with and CRRA utility with and , look for a solution of the HJB equation with and . Then and , and
The factor is positive, so the supremum over is attained where is largest, at the Merton allocation
which agrees with the general formula of the HJB card, since . The largest value of is
The HJB equation becomes . Dividing by and multiplying by the nonzero number , which is negative when , gives with . Hence and
For the same steps with give , the fraction that maximizes the expected log growth rate and the continuous-time counterpart of the fraction in Expected utility and Kelly growth, and with . In every case the certainty equivalent of , the sure terminal wealth with that utility, is , so is the certainty-equivalent growth rate. The verification card proves that is optimal within a stated class of admissible controls. The fraction is constant because , and are constant and relative risk aversion is constant. The fraction exceeds when , and the investor then borrows. It is negative, a short position, when , and it is when . With random investment opportunities the value function depends on further state variables and the optimal fraction acquires hedging terms, and consumption or transaction costs change the problem. These extensions are beyond this lesson.
In plain words Keep a fixed proportion of wealth in the stock, equal to the excess return divided by risk aversion times variance, and trade continuously to hold it there. The formula has the same form as the one-period weight that maximizes excess return minus times variance, but here it is the best rule among all rules that react to information, and the value function also says what that rule is worth.
Example For the constructed values , , , , and , the excess return is and , so . Then and , so
The value is negative because power utility with is negative, not because wealth is lost. Its certainty equivalent is , compared with from the cash account alone. The investor holds 37.5 percent of wealth in the stock and 62.5 percent in cash at all times. With log utility the same market gives , a leveraged position that borrows half of wealth.
Verification argument
Definition Let be a function on with continuous partial derivatives , and that satisfies the HJB equation on with . For an admissible control and , Itô’s formula gives
where
The HJB equation makes the integrand of the integral at most zero for every value of . First, if , for example because is a square-integrable martingale, then . Second, if a control attains the supremum in the HJB equation at for almost every , its integral vanishes, and if also for it, then . On a class of admissible controls for which the first step applies and that contains , this proves and the optimality of . For a general control is only a local martingale. One then stops it at times increasing to , obtains , and needs uniform integrability of the stopped values to pass to the limit, so these integrability conditions are part of the optimality statement. For the Merton candidate the integrand of is , and the lesson takes as admissible the controls with
for which is a square-integrable martingale. This class contains every bounded progressively measurable fraction, because such fractions give wealth with finite moments of every order. Within it the Merton fraction is optimal and the candidate is the value function. For the candidate is nonnegative, so is a local martingale bounded below by , hence a supermartingale, and the upper bound extends to every control with .
In plain words A smooth solution of the HJB equation is only a candidate. The verification argument compares it with every admissible strategy, shows that none does better on average, and shows that the candidate’s own control reaches the candidate value. The integrability conditions are what allow the expectation of the stochastic integral to be set to zero, so they belong to the result.
Example For a constant fraction and , the logarithm is normal with mean and variance , and the normal moment generating function gives
with the function of the Merton card. The expected utility increases with for every , so constant fractions are ranked by , their certainty-equivalent growth rate. For the constructed values with , and the expected utility is .
| Fraction | Expected utility | |
|---|---|---|
The fraction reproduces exactly, which confirms the value as well as the control. Full investment has and certainty equivalent , the initial wealth, although its expected wealth is . With a cap the same ansatz solves the constrained HJB equation with in place of , and the verification argument applies to the capped admissible controls. The capped optimum is therefore the constant , with value . This is below , as it must be, since the cap removes strategies. The less negative number is the larger one.
Check yourself
- In a constructed market with , and , an investor has CRRA utility with and horizon . Find the Merton fraction, the values and , and the certainty equivalent of . Does the fraction change when initial wealth doubles?
Show the answer
The Merton fraction is . The certainty-equivalent growth rate is
With the utility is , so . This gives and , half the size, because is homogeneous of degree in wealth. The certainty equivalent of is , above the value of the cash account alone. The fraction stays at every wealth and every date, since the formula does not contain or .
- A classmate wants a risk-seeking investor and takes in the power utility, so that . With , , and , the formula gives . Is this fraction optimal?
Show the answer
No. The formula is the stationary point of the Hamiltonian, and it is a maximizer only when , which the Merton card obtains from . With the same ansatz gives with , and with
a convex quadratic. So minimizes the Hamiltonian. Among constant fractions the expected utility is , which equals about at , the smallest value, at and at , and it grows without bound as grows. The supremum is , so there is no optimal control and the value function is infinite. The hypothesis that fails is , which makes the utility concave and the curvature negative.
- Under log utility with , , and , the investor may neither borrow nor sell short, so must lie in . Find the optimal fraction, the value and its certainty equivalent, and compare them with the unconstrained problem.
Show the answer
With the derivatives are and , so the Hamiltonian does not depend on and equals
This concave quadratic has its unconstrained maximum at , outside , so over the allowed interval the maximum is at the nearest point , where . Solving with gives , so with certainty equivalent . Verification is direct here. For every control with values in the stochastic integral in has mean zero, so is the expected integral of over three years, at most , with equality for . Without the constraint the fraction is , the value is and the certainty equivalent is . The constraint lowers the value, as it must when the set of strategies shrinks, and the constrained optimum holds all wealth in the stock, so it needs no rebalancing.