Tutorials › Econometrics (Graduate) › Nested Fixed-Point Estimation

Dynamic Discrete Choice · Tutorial 751 of 952

Nested Fixed-Point Estimation

Learn how the Bellman fixed point, dynamic choice probabilities, and likelihood are nested inside maximum likelihood estimation.

Advanced 10 min read

What You'll Learn

  • Specify the dynamic choice model and its Bellman equation before constructing the likelihood
  • Derive conditional choice probabilities from choice-specific values under Type I extreme-value shocks
  • Explain why the Bellman equation must be solved again at each trial parameter vector
  • Construct the sample log likelihood from observed choices and model probabilities
  • Distinguish choice likelihood contributions from transition likelihood contributions
  • Recognize how inner-solver error can affect the outer likelihood comparison

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.

Definition: In nested fixed-point maximum likelihood, the inner problem solves the model’s Bellman fixed point at a candidate parameter vector \(\theta\). The outer problem chooses \(\theta\) to maximize the likelihood formed from the choice probabilities implied by that fixed point.

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.

$$ V(s;\theta)=\gamma+\log\left(\sum_j \exp\left[v_j(s;\theta)\right]\right), \qquad v_j(s;\theta)=u_j(s;\theta)+\beta\sum_{s'}P(s'\mid s,j)V(s';\theta), $$

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.

Key relationship: At a fixed \(\theta\), solve the Bellman equation for \(V(\cdot;\theta)\), use that solution to compute every \(v_j(s;\theta)\), and then use those values to calculate \(p_j(s;\theta)\). These probabilities are the inputs to the choice likelihood.

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

$$ \ell(\theta)=\sum_{i=1}^{N}\sum_{t=1}^{T_i} \log p_{a_{it}}(s_{it};\theta). $$

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.

1
Propose a parameter vector.
Fix a trial value \(\theta\), along with the model’s specified discount factor and transition probabilities.
2
Solve the inner problem.
Iterate the Bellman operator until the value function is sufficiently close to its fixed point.
3
Form probabilities and likelihood.
Calculate choice-specific values, obtain conditional choice probabilities, and sum the log probabilities of observed choices.
4
Compare parameter vectors.
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

$$ \begin{aligned} V(s_1)&=\gamma+\log\left(\exp(\theta+0.5V(s_1))+\exp(0.5V(s_2))\right),\\ V(s_2)&=\gamma+\log\left(\exp(0.5V(s_1))+\exp(0.5V(s_2))\right). \end{aligned} $$

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

$$ p_A(s_1;\theta)=\frac{1+2\sqrt{2}}{2+2\sqrt{2}}\approx0.7929, \qquad p_A(s_2;\theta)=\frac{\sqrt{2}}{1+\sqrt{2}}\approx0.5858. $$

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

$$ L(\theta)=p_A(s_1;\theta)\,[1-p_A(s_2;\theta)] \approx 0.792893\times0.414214 \approx0.3284. $$

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.

Key takeaway: Nested fixed-point estimation links three calculations in order: solve the Bellman equation at \(\theta\), convert its choice-specific values into probabilities, and use those probabilities to evaluate the sample log likelihood. The outer parameter search depends on repeating this sequence as \(\theta\) changes.

Check Your Understanding

Answer each question by tracing the relationship between parameters, values, probabilities, and the likelihood.

  1. Why must the value function generally be recomputed when the trial parameter vector changes?
  2. In the Type I extreme-value model, what information enters a choice probability through the choice-specific value?
  3. What does the contraction inequality imply about the Bellman solution when \(0\leq\beta<1\)?
  4. When would transition probabilities contribute terms to a likelihood in addition to observed-choice probabilities?
  5. Why can an insufficiently converged inner solution affect the outer maximum-likelihood comparison?
Clinical Biostats