Why Estimation Is Nested
In a static choice model, a parameter vector can often be mapped directly to choice probabilities and then to a likelihood. Dynamic choice models add a step: current choices depend on the expected value of future opportunities. That value is itself defined by a Bellman equation whose solution depends on the model parameters. Consequently, evaluating the likelihood at a candidate parameter vector requires solving the dynamic program first.
This repeated calculation is the defining feature of nested fixed-point estimation. The inner problem computes the value function and implied choice probabilities at a fixed parameter vector. The outer problem compares the resulting likelihood across parameter vectors. If the parameter vector changes, the Bellman equation generally changes, so its solution and the choice probabilities must be updated as well.
From Primitives to Choice Probabilities
Consider a finite-horizon-free, infinite-horizon model with discount factor \(\beta\), where \(0\leq\beta<1\). At each date, an individual observes a state \(s\) and chooses an action \(j\) from a finite set. The deterministic flow payoff is \(u_j(s;\theta)\), and the action-specific shock is \(\varepsilon_j\). After choosing \(j\), the next state follows the transition probabilities \(P(s'\mid s,j)\). For clarity, suppose transitions are known and do not depend on \(\theta\); the likelihood can also include transition terms when transition parameters are estimated.
Assume the choice shocks are independent Type I extreme-value draws with scale one, independently over actions and dates. Let \(V(s;\theta)\) denote the expected value at state \(s\), before the current choice shocks are realized. The choice-specific value, excluding the current shock, is \(v_j(s;\theta)=u_j(s;\theta)+\beta\sum_{s'}P(s'\mid s,j)V(s';\theta)\). The Bellman equation integrates the maximum over current shocks.
Here \(\gamma\) is Euler’s constant, arising from the mean of the normalized Type I extreme-value distribution. It is common across actions at a given state; it affects the level of the value function but not the relative choice probabilities. Integrating the same shocks gives the conditional choice probability \(p_j(s;\theta)=\exp(v_j(s;\theta))/\sum_k\exp(v_k(s;\theta))\). Thus a probability cannot generally be calculated from current flow payoffs alone: the choice-specific values include the discounted value of future states.
Why the Inner Solution Is Well Defined
The Bellman operator maps a candidate value function \(W\) into a new value function by substituting \(W\) for \(V\) in the choice-specific values and then applying the log-sum expression. For any two candidate functions \(W\) and \(\widetilde W\), each action’s continuation value differs by at most \(\beta\lVert W-\widetilde W\rVert_\infty\), where \(\lVert\cdot\rVert_\infty\) is the largest absolute difference across states. The log-sum-exp function changes by no more than the largest absolute change in its inputs. Therefore the Bellman operator \(T_\theta\) satisfies \(\lVert T_\theta W-T_\theta\widetilde W\rVert_\infty\leq\beta\lVert W-\widetilde W\rVert_\infty\).
Because \(\beta<1\), this is a contraction. On a finite state space, the contraction mapping result implies a unique fixed point \(V(\cdot;\theta)\). Iterating \(V^{(m+1)}=T_\theta V^{(m)}\) converges to it from any finite starting vector. This justifies the inner solution and gives a practical way to compute it. It does not remove the need to solve again when \(\theta\) changes.
Constructing the Nested Likelihood
Suppose the data contain \(N\) individuals observed over periods \(t=1,\ldots,T_i\), with state \(s_{it}\) and chosen action \(a_{it}\). Conditional on the observed states, and under the shock assumptions above, the choice likelihood is the product of the probabilities assigned to the actions actually observed. Its log form is
For every trial value of \(\theta\), the analyst solves the Bellman equation and recomputes the probabilities before evaluating this expression. Maximum likelihood selects a parameter vector that maximizes \(\ell(\theta)\). If the model also specifies estimated transition probabilities and the state transitions are included in the joint likelihood, their log probabilities are added. If transitions are known or the objective is the conditional choice likelihood, no such transition terms are added.
Fix a trial value \(\theta\), along with the model’s specified discount factor and transition probabilities.
Iterate the Bellman operator until the value function is sufficiently close to its fixed point.
Calculate choice-specific values, obtain conditional choice probabilities, and sum the log probabilities of observed choices.
The outer maximum-likelihood problem seeks a parameter vector with a larger log likelihood, with the inner solution recalculated at each candidate.
Worked Example: Solving a Two-State Bellman Equation
Consider a hypothetical model with states \(s_1,s_2\), actions \(A,B\), and discount factor \(\beta=0.5\). Action \(A\) always leads to \(s_1\); action \(B\) always leads to \(s_2\). The flow payoff from \(A\) is \(\theta\) in \(s_1\) and zero in \(s_2\); the flow payoff from \(B\) is zero in either state. Shocks have the normalized Type I extreme-value distribution described above.
For illustration, choose \(\theta=\log(2+1/\sqrt{2})\), approximately \(0.9959\). Write \(d=V(s_1)-V(s_2)\). The Bellman equations are
Factoring out \(\exp(0.5V(s_2))\) in each equation gives \(d=\log(1+\exp(\theta+0.5d))-\log(1+\exp(0.5d))\). For \(d=\log 2\), \(\exp(0.5d)=\sqrt{2}\) and \(\exp(\theta+0.5d)=1+2\sqrt{2}\). The right side is therefore \(\log(2+2\sqrt{2})-\log(1+\sqrt{2})=\log 2\), confirming this difference solves the equation.
The second Bellman equation then yields \(V(s_2)=\gamma+0.5V(s_2)+\log(1+\sqrt{2})\), so \(V(s_2)=2[\gamma+\log(1+\sqrt{2})]\approx2.9172\). Thus \(V(s_1)=V(s_2)+\log 2\approx3.6103\). The choice probabilities are
The probability of choosing \(B\) in \(s_2\) is \(1-0.5858\approx0.4142\). The example shows the inner calculation explicitly: the values depend on the parameter and on the transition consequences of each action, and those values determine the probabilities used in the outer likelihood.
Worked Example: Evaluating a Choice Likelihood
Suppose, hypothetically, that two independent individuals are observed once in the two-state model above: one chooses \(A\) in \(s_1\), and the other chooses \(B\) in \(s_2\). Conditional on their observed states, the choice likelihood at the stated parameter is
Equivalently, the log likelihood is \(\ell(\theta)=\log(0.792893)+\log(0.414214)\approx-1.113\). This is a conditional choice likelihood: it does not include a probability for arriving in either observed state. Such a term would be needed only if the specified likelihood also modeled the state process.
Worked Example: Comparing Candidate Parameters in a One-State Special Case
A simple special case makes the outer comparison transparent. There is one state, both actions return to it, action \(A\) has flow payoff \(\theta\), and action \(B\) has flow payoff zero. The Bellman equation is \(V=\gamma+\beta V+\log(1+\exp(\theta))\), so its solution is \(V=[\gamma+\log(1+\exp(\theta))]/(1-\beta)\). The common continuation value cancels from the choice probabilities, giving \(p_A=1/(1+\exp(-\theta))\).
In hypothetical data, suppose five choices are observed: three \(A\) choices and two \(B\) choices. At \(\theta=0.4\), \(p_A\approx0.5987\), and \(\ell(0.4)=3\log(0.5987)+2\log(1-0.5987)\approx-3.365\). At \(\theta=0.8\), \(p_A\approx0.6900\), and \(\ell(0.8)=3\log(0.6900)+2\log(1-0.6900)\approx-3.456\). The \(\theta=0.4\) candidate has the larger log likelihood for these observations. In a general dynamic model, the candidate comparison also requires solving the Bellman equation afresh at each value of \(\theta\); this special case is simpler because continuation values do not affect relative action values.
Numerical Accuracy and Interpretation
The outer objective is only as reliable as the inner calculation. If the value iteration is stopped too early, the resulting choice probabilities may be inaccurate, and their log probabilities may shift the likelihood comparison. This is especially consequential when observed choices receive very small predicted probabilities: taking a logarithm makes such contributions strongly negative. A practical implementation should use a stated convergence tolerance, check that the Bellman residual is small, and ensure that reported likelihood values are stable to a tighter inner tolerance.
Warm-starting the inner solver at a new parameter vector with the previous value function can save computation, but it does not change the target: the iteration must still converge to the fixed point for the current parameter vector. Nor should a previously computed probability table be reused after changing parameters unless it is known to remain valid under the model.
Common Mistake
- Wrong reasoning: “I computed the value function and probabilities once, so I can hold them fixed while changing \(\theta\) in the likelihood.”
- Correction: The value function is defined by a Bellman equation containing \(\theta\). Changing \(\theta\) generally changes flow payoffs, values, and choice probabilities. Re-solve the Bellman equation at each candidate parameter vector before evaluating its likelihood.
A second error is to treat the likelihood as a measure of whether the model is true. It is instead the probability, under the specified model, of the observed choices (or joint observations if other terms are included), evaluated at a parameter vector. Maximum likelihood selects the vector that makes the observed data most likely within that model specification; it does not by itself establish a causal interpretation or validate the specification.
Check Your Understanding
Answer each question by tracing the relationship between parameters, values, probabilities, and the likelihood.
- Why must the value function generally be recomputed when the trial parameter vector changes?
- In the Type I extreme-value model, what information enters a choice probability through the choice-specific value?
- What does the contraction inequality imply about the Bellman solution when \(0\leq\beta<1\)?
- When would transition probabilities contribute terms to a likelihood in addition to observed-choice probabilities?
- Why can an insufficiently converged inner solution affect the outer maximum-likelihood comparison?