Bellman equation Created 2026-09-24 Updated 2026-10-06
A Bellman equation is the recursive optimality relation for the value function of a dynamic programming problem.
Fix the first tape of a group multiplier automaton and use dynamic programming over automaton states and output-padding status, retaining predecessor pointers. The pumping of a group multiplier automaton bounds the search by layers, each of fixed size. This constructs a representative of in time without assuming uniqueness of representatives.
Wealth and admissibility. The dollar holding earns the risky return, while earns the continuous-time bank account return. Removing consumption therefore gives
Here is a dollar amount, not a number of shares; the number of shares is . Both controls must use available information: take predictable and progressively measurable, with
almost surely on every finite interval. Require a well-defined objective and an admissible trading strategy satisfying . At zero portfolio wealth this excludes continued risky gambling or positive consumption. The state-price budget constraint rules out doubling strategies. Throughout the diffusion calculations take , positive discount , positive decay , and finite value; degeneracies are discussed where they affect the conclusions.
Satisfaction and dynamic programming. Write the consumption satisfaction stock as
The product rule gives, almost everywhere in time,
This state is a finite-variation process, so it has no quadratic covariation with portfolio wealth. Applying the Itô formula to the discounted value function over a short interval, then using dynamic programming, gives the interior HJB equation
Assuming , completing the square gives
The last supremum is zero if and infinite otherwise. Thus the gradient constraint for unbounded consumption is , and wherever the inequality is strict. Since there is no direct penalty for a very large consumption rate, an active boundary can involve singular consumption control. In that relaxed interpretation the HJB equation is
With ordinary rate controls, this describes the supremum and its limiting transfer policy; it does not promise that an instantaneous transfer is attained by a finite rate.
Power reduction. An additive constant in the utility function only adds a control-independent constant divided by to the value, so normalize . Put and for . Scaling portfolio wealth, consumption satisfaction and the controls by the same positive number gives the wealth-to-satisfaction reduction
Consequently the reduced HJB equation is
In the strict waiting region the first expression vanishes and consumption is zero. On a transfer region the second vanishes; integrating it gives . This reflects preservation of during an instantaneous wealth-to-satisfaction transfer.
Why a waiting threshold is expected, and its qualification. The gradient constraint for unbounded consumption compares the benefit of increasing consumption satisfaction with the opportunity cost of spending financial portfolio wealth. When consumption satisfaction is already large relative to cash, waiting lets consumption satisfaction decay while financial portfolio wealth earns returns; consuming immediately can be wasteful. Homogeneity makes the comparison depend only on . For fixed , joint concavity of the value function makes concave in financial portfolio wealth . It is nondecreasing because an immediate transfer can reproduce any smaller financial allocation. Consequently its derivative is nonnegative and nonincreasing in : a strict waiting region, if present, starts at zero financial portfolio wealth and ends at a single transfer boundary. Homogeneity makes the corresponding boundary a ratio . In the usual finite-boundary regime this gives for , and transfers push a larger ratio down towards . The condition is a comparison of marginal values, not the ordinary formula : current utility function here depends on consumption satisfaction, not on current consumption.
A positive threshold is not guaranteed by the printed hypotheses alone. A useful sufficient local test illustrates the intended argument. Let . At zero portfolio wealth,
Starting with a small extra portfolio wealth , holding it in the continuous-time bank account until a fixed time , then transferring it into consumption satisfaction, has right derivative in at zero equal to
Therefore, if , the portfolio wealth marginal value is strictly larger than the consumption satisfaction marginal value at zero. With the usual continuity of marginal values, there is a positive interval on which the gradient constraint for unbounded consumption is strict. The fixed-total-resource concavity argument then gives the threshold structure.
For a concrete counterexample to an unconditional positive threshold, take , , , and . There is zero market price of risk. The relaxed value is
Indeed , , and the optimized waiting residual, after division by , is
because and the integrand is decreasing. The Itô formula gives an upper bound by , while transferring all portfolio wealth into consumption satisfaction over intervals tending to zero attains that bound in the limit. Hence the transfer boundary is in this example. The positive-threshold explanation needs a parameter regime supporting a genuine waiting region. For , even the zero-wealth value is finite only if ; otherwise decaying consumption satisfaction gives value .
The joint generator. With again measured in dollars, portfolio wealth obeys
Its noise and the factor noise are driven by the same Brownian motion. Their quadratic covariation is , so the diffusion generator has a cross derivative. Dynamic programming and the Itô formula give
All coefficient functions in this formula are evaluated at . The cross derivative is essential: it gives intertemporal hedging demand. Normalizing CRRA utility as , where , the two optimizations give, at nonzero volatility,
and hence
Here .
Homogeneity and the reduced equation. Scaling initial portfolio wealth and both controls preserves the portfolio wealth constraint and multiplies the objective by the positive number . Thus
This expression is valid for both signs of : is negative when , but its portfolio wealth derivative is positive. Its derivatives are
Substitution yields
The resulting feedback is
The first portfolio term is myopic, and the second is intertemporal hedging demand.
Constant market price of risk. If and volatility is nonzero, the portfolio term becomes , so the magnitude of stock volatility disappears. Applying the power transformation of a complete-market investment equation cancels the squared-gradient terms and gives the further reduction
For its economic solution is . Thus
To see why this solves the investment-consumption problem, optimize directly over Brownian portfolio exposures, writing . The portfolio wealth equation becomes , which no longer contains . With nonzero volatility the same admissible exposure processes are available for every factor state, so the attainable wealth-consumption pairs, and therefore the value, are exactly those of the Merton consumption-investment problem. This also excludes extraneous solutions of the linear equation without imposing artificial factor boundary data.
The printed boundedness assumptions do not ensure nonzero volatility or a finite value. The unsimplified HJB equation remains the correct control equation at a zero of . There the hedge term vanishes; if , the riskless excess return gives arbitrage with unrestricted holdings. Under , a zero-volatility state offers only the bank exposure at that instant. For example , satisfies this relation for any chosen , but its value uses , not a fictitious nonzero risk premium. The constant-value formula using presupposes access to the Brownian exposure, with sufficient integrability for the corresponding holdings. Additive utility constants again only shift by a constant divided by .
Available portfolio wealth and the ruin boundary. Put , the constant interest payment on the fixed loan. The loan principal is already included in available portfolio wealth; it is not a growing portfolio holding. Therefore
In particular the interest outflow is , not . Writing would instead give net portfolio wealth drift , which explains the distinction.
Let denote the ruin time, to avoid confusing it with a fixed terminal horizon. The objective stops at ; consequently the absorbing boundary is , without an obligation to keep financing the loan after ruin. Dynamic programming gives, for ,
For increasing strictly concave value, put and use inverse marginal utility . The optimal controls and the optimized HJB equation are
where . For CRRA utility with , write and . Then
Dualization and the printed constant. Use the convex wealth-variable Legendre dual
At an interior maximizing portfolio wealth, , and . The dual HJB equation is the linear Euler differential equation
A trial power gives
Direct substitution gives
The PDF prints an additional factor before in its definition of . That printed definition is inconsistent with its own identity for . The expression above is the one used here; assume this corrected .
Solution when . Assume positive discount , nonzero , and . Let and be the two roots of :
Since , . Put . For , the general interior solution is
The appropriate large-wealth condition is the Merton consumption-investment problem bound
Indeed any original control consumes in the debt-free comparison model until ruin, and . Dualizing this bound gives . Because , convexity and this upper bound force as .
At the other endpoint portfolio wealth reaches zero. If , the dual ruin boundary with debt service requires
Solving these two equations gives
For , , and for , , so the quantity defining is positive in either case. These formulas determine the entire value. For each , choose the unique satisfying
Then
Both terms in the bracket are positive, even when and . Thus , decreases from infinity to zero as increases, and the portfolio wealth inversion really is unique. The extended dual is continuously differentiable and convex.
There is no additional condition . In fact
Available portfolio wealth is killed at zero; the portfolio can have a nonzero limiting volatility immediately before ruin. Imposing a reflecting-boundary or zero-curvature condition would solve a different problem.
For , the linear forcing resonates with the root . Put . The dual and boundary constants instead are
Extend by zero for . Here
and the controls remain and , with .
Verification and transversality. The candidate is nonnegative, increasing, strictly concave and zero at ruin. Its HJB equation makes the discounted value plus accrued utility a local supermartingale for every admissible control, and a local martingale for the stated feedback. Localization at positive lower and finite upper portfolio wealth levels gives the finite-horizon comparison. The investment value transversality condition follows from the same debt-free bound: applying the Itô formula to and maximizing its risky term gives
The nonnegative consumption and debt-service drifts only decrease this bound. Thus the expected terminal candidate tends to zero. The feedback has at most linear growth, including a finite limit as portfolio wealth decreases to zero; stopping it at ruin gives an admissible policy. Letting localization levels and then the horizon tend to their limits proves that the candidate is the value, rather than just a formal dual solution. If , the absorbing-debt boundary disappears and the ordinary Merton consumption-investment problem formula is recovered.
Zero market price of risk. With and , the dual equation is first order. If , the preceding formulas remain valid with for , and the logarithmic formula with for ; there is no term and . The same boundary and transversality argument verifies this deterministic consumption policy.
The remaining finite-value case has and . Put , and
The correct convex dual and its corresponding value are
The two value branches have the same value and derivative at . Above , hold no stock and consume ; the surplus over grows at rate . If , the lower branch is attained by zero stock holding and constant consumption : portfolio wealth solves until ruin, and direct integration gives .
If and , the lower branch is a supremum attained in a limit of increasingly rapid fair stock lotteries between zero and , followed by the upper-branch policy on success. The success probability tends to and the fixed service cost during the lottery tends to zero. This is possible because unrestricted dollar holdings in the nonzero-volatility stock produce a fair Brownian motion exposure even when its excess drift is zero. The supporting linear branch has optimized waiting residual ; the fast lotteries, rather than a finite feedback optimizer, supply the missing control limit. The piecewise candidate is concave, has nonpositive waiting residual everywhere, and the preceding moment bound still supplies an upper-bound verification. This degenerate case can have a supremum without an ordinary maximizing strategy.
Assume nonnegative wealth and rewards, and initially . Set , and let take the values with equal probability conditional on not being caught. For the retirement threshold with multiplicative capture risk, the dynamic programming equation is the displayed maximum; capture contributes zero. Write .
Inductively, if , all future successful wealth levels also lie above , so . Continuing in town is then worth , and retirement is optimal. If , choose with . Continuing for just one night and then retiring is worth , so immediate retirement cannot be optimal for any . This proves an optimal policy continues exactly when , with retirement chosen at the threshold.
Now suppose and . Since also , town has the larger threshold, so . The functions are nondecreasing in wealth and in , and ; these properties follow by induction from the dynamic programming equation.
Prove by induction on the remaining horizon that town is never optimal when continuation is worthwhile. For , the difference between the town values is . If , monotonicity gives
with strictness because the first bracket is positive under the hypotheses.
For , first suppose . The second town's successful large-reward branch retires, so its value is . Town is worth at least . Their difference is at least
If instead , all states after either first-night reward remain below the threshold. By induction a policy starting in town then chooses town on its second night. Its value is
Interchanging the first two towns gives exactly the same value, because capture probabilities multiply and independent rewards add. After starting in town , however, the induction hypothesis says town is strictly inferior on the second night at every possible surviving wealth level. Replacing that second choice by the optimal one strictly improves the value. This proves town dominates throughout every finite horizon.
If a town has and , its threshold is interpreted as infinity and retirement is not optimal before the horizon ends. A town with offers no gain; the natural threshold is zero. These conventions handle the degenerate capture probabilities rather than dividing by zero.
Treat the white noise as innovations with conditional mean zero and conditional second moment , independent of the chosen past control. This is the convention needed for the dynamic programming calculation. The printed stage cost is , not one-half of both terms.
With terminal value , induction in the Bellman equation gives
If , completing the square yields
Thus for every horizon, in particular . The same completion gives the average-cost Bellman equation solution , up to an additive constant in .
For every policy in , conditional second moments satisfy . Iterating gives
The Bellman inequality implies . Dividing by and using the bound proves that every admissible policy has lower limiting average cost at least , even if its ordinary limit does not exist. The feedback belongs to because . It makes the Bellman inequality an equality, and its bounded terminal second moment proves its average cost tends to . Therefore it is optimal over .
Merely uncorrelated noise with the displayed unconditional moments would not ensure the conditional identities for arbitrary adapted controls. The innovation interpretation specifies the hypothesis used in the calculation.
Fix the first tape of the group multiplier automaton to be . Construct its possible runs by dynamic programming, one column at a time. A record consists of a state and a flag indicating whether the output tape has ended. At column , the first symbol is and the second symbol may be any letter of the alphabet, or ; after the second tape first uses it must continue to use . At later columns the first symbol is , and an additional column must have a genuine letter on the second tape. Never add a column.
Keep one predecessor record and its output symbol for each reachable state-and-flag pair in each layer. Two runs reaching the same record have exactly the same possible future completions, so this merging loses no accepting output. The merged dead state of a finite automaton can be discarded. At each layer , test whether a reached state is accepting; the initial layer is included when . Upon success, follow predecessor records backwards and omit padding symbols to recover .
The automatic structure for a group supplies a representative in of , so an accepted padded convolution of words exists and this search terminates. The output is the required representative:
The search uses only the finite transition table; it does not presuppose a solution to the word problem for a group.
Part (a)(i), applied to and , guarantees an accepted output of length at most . Its padded convolution of words has at most columns. Thus the dynamic programming search in part (b) reaches an accepting layer by this bound.
Each layer has at most twice the fixed number of states of , and each record has at most outgoing choices. These are constants for the fixed automatic structure for a group. Storing a pointer and a symbol takes constant time; copying whole partial output strings at every step would unnecessarily spoil this bound. Reconstruction also takes at most steps. Therefore automatic multiplication has linear time and bounded length increase:
For nonempty inputs this is the requested time complexity. The additive merely includes the constant work on the empty word.
For the intended random walk model, take to be deterministic, or independent of all the independent and identically distributed random variables . If is their common probability distribution, then is independent of . This supplies the Markov property that the backward dynamic programming argument needs. Define the transition operator
and the deterministic optimal stopping value function recursively by
At any state where the conditional law is evaluated, independence gives
Backward induction, starting with , proves the intended representation
Integrability along the actual random walk makes the recursion finite at the states used by that process, up to null sets. If finite real-valued value functions on all of are intended, a convenient sufficient convention is statewise integrability: for every and . Indeed each stopping value is bounded in absolute value by the expectation of the sum of the absolute rewards. This convention makes the displayed recursion finite and measurable everywhere; the source only assumes integrability from the given starting process.
The printed independence of the increments alone does not suffice if can reveal future increments. Here is a bounded finite-state counterexample, also with a convex reward. Let , let be independent fair signs, and set
The two increments are exactly , hence independent and identically distributed. But already knows both signs, so . On the two positive-probability histories with , its values are respectively and . Thus no deterministic can work. Adding independence of from the increments repairs this missing Markov property hypothesis.
For the plug-in Neyman allocation, the estimated Bernoulli distribution variances are and , so
This uses the target ratio directly as the allocation odds; a procedure that actively corrects previous allocation imbalances would need an additional rule.
For the randomized play-the-winner rule RPW, return the drawn ball and add one ball of the same treatment after a success or of the opposite treatment after a failure. Treatment 0 has three successes and two failures, and treatment 1 has one success and three failures. The urn therefore has treatment-0 balls and treatment-1 balls. Hence
For dynamic programming with only the final patient left, there is no future value from learning. Independent uniform prior distributions and Beta-binomial conjugacy give posteriors and . Their posterior predictive probabilities of success are and . The optimal terminal action therefore gives
This is optimal for expected successes with no imposed lower bound on the randomization probabilities.
The dynamic programming principle over a short interval gives
A first-order Taylor expansion of the value function gives
After subtracting , dividing by and taking the limit, the Hamilton-Jacobi-Bellman equation is
Stochastic control 2026-10-07
A stochastic control problem chooses an admissible control input using information available in a filtration to optimize an expected objective for a random dynamical system. Dynamic programming often characterizes its value function through a Hamilton-Jacobi-Bellman equation.