Tutorials › Econometrics (Graduate) › Two-Step Conditional Choice Probability Estimation

Dynamic Discrete Choice · Tutorial 755 of 952

Two-Step Conditional Choice Probability Estimation

Estimate conditional choice probabilities and state transitions first, then use the implied value equations to recover structural payoffs.

Advanced 12 min read

What You'll Learn

  • State the assumptions that make a two-step conditional choice probability estimator applicable.
  • Estimate choice probabilities and state transitions from panel data.
  • Recover value functions from conditional choice probabilities and reference-action payoffs.
  • Invert choice-probability odds to obtain choice-specific payoff differences.
  • Recover structural payoff parameters from the inverted differences.
  • Diagnose support, normalization, and transition-direction errors.

Why Use a Two-Step Estimator?

In a dynamic discrete choice model, an agent compares current payoffs with the discounted value of future states. A nested fixed-point estimator repeatedly solves the model’s value equations while searching over structural parameters. The conditional choice probability (CCP) approach offers an alternative: estimate choice probabilities and state transitions first, then use them to construct value functions and recover payoff parameters. This avoids repeatedly solving the dynamic program inside the parameter search.

The method is not assumption-free. It relies on a correctly specified state that captures the relevant information for future choices, a transition law that can be estimated, and choice shocks with a known distribution. In the standard version here, shocks are independently and identically distributed Type I extreme value across actions and periods, with scale normalized to one. The discount factor \(\beta\) is known and satisfies \(0\leq\beta<1\). As in Hotz–Miller inversion, the resulting CCP odds identify differences in choice-specific values; the two-step estimator uses those differences together with value equations to recover structural payoffs.

Definition: A two-step CCP estimator first estimates the conditional choice probabilities \(p(a\mid x)\) and state transition probabilities \(P(x'\mid x,a)\) from observed data. In the second step, it uses these estimates, the dynamic value equations, and a specified payoff structure to recover the structural payoff parameters.

Model and Two-Step Logic

Let \(x\) denote the observed state, \(a\) an action from a finite choice set, and \(u(a,x;\theta)\) the deterministic flow payoff, indexed by structural parameter vector \(\theta\). After choosing \(a\), the next state \(x'\) follows \(P(x'\mid x,a)\). The agent also receives an unobserved choice shock \(\varepsilon_a\). Define the choice-specific value before that shock as

$$ v(a,x)=u(a,x;\theta)+\beta\sum_{x'}P(x'\mid x,a)V(x'). $$

Here \(V(x)\) is the expected value before the current period’s choice shocks are realized. Under the normalized Type I extreme-value assumption, the CCP is

$$ p(a\mid x)=\frac{\exp(v(a,x))}{\sum_j\exp(v(j,x))}, \qquad V(x)=\log\!\left(\sum_j\exp(v(j,x))\right)+\gamma, $$

where \(\gamma\) is the Euler–Mascheroni constant. Choose a reference action \(a_0\). Taking the log ratio of two CCPs gives

$$ \log\!\left(\frac{p(a\mid x)}{p(a_0\mid x)}\right) = u(a,x;\theta)-u(a_0,x;\theta) +\beta\sum_{x'}\bigl[P(x'\mid x,a)-P(x'\mid x,a_0)\bigr]V(x'). $$

Thus, once the value function and transition probabilities are available, the CCP log odds reveal the difference in deterministic flow payoffs. For a known or normalized reference payoff, the value function can itself be recovered from the reference-action equation. Since \(V(x)=v(a_0,x)-\log p(a_0\mid x)+\gamma\), it satisfies

$$ V(x)=u(a_0,x;\theta)+\beta\sum_{x'}P(x'\mid x,a_0)V(x') -\log p(a_0\mid x)+\gamma. $$

Step 1: Estimate Choice Probabilities and Transitions

With a finite state space and adequate observations in each state, estimate \(p(a\mid x)\) by the within-state action frequency. Estimate \(P(x'\mid x,a)\) by the frequency of next state \(x'\) among observations with current state \(x\) and action \(a\). For continuous or high-dimensional states, these conditional probabilities generally require a parametric or flexible statistical model rather than raw cell frequencies.

The data and model must support these estimates. The state must contain the payoff-relevant information that makes it appropriate to condition choices and transitions on \(x\); the observed transition must follow the specified Markov law conditional on current state and action; and there must be observations supporting the relevant actions and next states. In particular, the inversion requires positive CCPs for the actions being compared. A zero estimated probability makes the log odds undefined, while a probability near zero can make the inversion unstable.

Worked Example: Estimating First-Step Probabilities

Suppose a hypothetical panel contains 200 occasions with current state \(A\). Action 1 is chosen on 120 occasions and reference action 0 on 80. Among the 120 action-1 occasions, the next state is \(B\) on 54 occasions; among the 80 action-0 occasions, it is \(B\) on 24 occasions. Assume the two-state Markov specification is appropriate and the records are observed under the same process.

The empirical CCPs at \(A\) are

$$ \hat p(1\mid A)=\frac{120}{200}=0.6000, \qquad \hat p(0\mid A)=\frac{80}{200}=0.4000. $$

The estimated transition probabilities to \(B\) are

$$ \hat P(B\mid A,1)=\frac{54}{120}=0.4500, \qquad \hat P(B\mid A,0)=\frac{24}{80}=0.3000. $$

Because there are only two states, the corresponding probabilities of remaining in \(A\) are \(0.5500\) under action 1 and \(0.7000\) under action 0. These estimates form the first-step inputs; they are not yet estimates of payoff parameters.

Step 2: Solve Values and Recover Payoffs

If the reference payoff \(u(a_0,x;\theta)\) is known, the reference-action equations form a linear system in the state values. In vector notation, with \(P_0\) the transition matrix for the reference action and \(c(x)=u(a_0,x;\theta)-\log p(a_0\mid x)+\gamma\), the system is

$$ V=c+\beta P_0V, \qquad V=(I-\beta P_0)^{-1}c. $$

The inverse exists when \(0\leq\beta<1\) and \(P_0\) is a stochastic matrix. Its rows sum to one, so its spectral radius is at most one; consequently the series \(\sum_{k=0}^{\infty}\beta^kP_0^k\) converges and equals \((I-\beta P_0)^{-1}\). If the reference payoff contains unknown parameters, the value system depends on those parameters and must be solved accordingly; it cannot simply be treated as known.

After solving the value system, recover each flow-payoff difference by rearranging the CCP log-odds equation:

$$ u(a,x;\theta)-u(a_0,x;\theta) = \log\!\left(\frac{p(a\mid x)}{p(a_0\mid x)}\right) -\beta\sum_{x'}\bigl[P(x'\mid x,a)-P(x'\mid x,a_0)\bigr]V(x'). $$

The right side is an inverted payoff difference. To obtain structural parameters, specify how the payoff difference depends on \(\theta\), then match the inverted differences to that structure across states and actions. Exactly identified models can yield a system of equations; with more state-action comparisons than parameters, a common approach is to choose parameters that minimize a weighted discrepancy between the structural payoff differences and their inverted counterparts.

Worked Example: Solving Values and Inverting a Payoff Difference

Consider a hypothetical two-state model with states \(L\) and \(H\), discount factor \(\beta=0.8\), and actions 0 and 1. The CCP for reference action 0 is \(0.3000\) in each state. The known reference payoffs are selected so that the value equations have the following constants, where \(c(x)=u(0,x)-\log p(0\mid x)+\gamma\):

$$ \begin{aligned} V_L&=0.6032604+0.8(0.9V_L+0.1V_H),\\ V_H&=1.2039878+0.8(0.3V_L+0.7V_H). \end{aligned} $$

These equations use reference-action transition rows \((0.9,0.1)\) at \(L\) and \((0.3,0.7)\) at \(H\), with columns ordered \(L,H\). Solving the system gives \(V_L=3.4784\) and \(V_H=4.633645\). Substitution checks the first equation: \(0.6032604+0.8(0.9(3.4784)+0.1(4.633645))=3.4784\), up to the displayed rounding. The second equation checks in the same way.

At state \(H\), suppose the CCP for action 1 is \(0.7000\), so the log odds relative to action 0 are \(\log(0.7/0.3)=0.8473\). Let the action-1 transition row be \((0.1,0.9)\), while the reference-action row is \((0.3,0.7)\). The continuation-value difference for action 1 relative to action 0 is

$$ (0.10-0.30)(3.4784)+(0.90-0.70)(4.633645) =-0.69568+0.926729 =0.231049. $$

Therefore the inverted flow-payoff difference is

$$ u(1,H)-u(0,H) =0.8472979-0.8(0.231049) =0.6624587 \approx 0.6625. $$

If instead the rounded values \(V_L=3.478\) and \(V_H=4.634\) are used, the displayed continuation-value calculation is \(-0.6956+0.9268=0.2312\), giving \(0.8473-0.8(0.2312)=0.6623\). The small difference is rounding; it is important not to mix a rounded continuation value with a result claimed to use unrounded values.

Worked Example: Recovering Parameters From Payoff Differences

Suppose a hypothetical model specifies the payoff difference as \(u(1,x)-u(0,x)=\theta_0+\theta_1z(x)\), where \(z(x)\) is an observed state characteristic. The first state has \(z=0\) and the inverted payoff difference \(0.6625\), as above. At a second state, \(z=1\), suppose the estimated CCPs are both \(0.5000\), and the estimated transition-value difference for action 1 relative to action 0 is \(-0.2500\). The log odds at the second state are \(\log(0.5/0.5)=0\), so

$$ u(1,x)-u(0,x)=0-0.8(-0.2500)=0.2000. $$

At \(z=0\), the payoff equation gives \(\theta_0=0.6625\). At \(z=1\), it gives \(\theta_0+\theta_1=0.2000\), and hence

$$ \theta_1=0.2000-0.6625=-0.4625. $$

Thus the fitted structural payoff difference is approximately \(0.6625-0.4625z\), in the units of the model’s flow payoff. This recovery uses state variation: with observations only at \(z=0\), \(\theta_1\) would not be identified by these equations.

What the Two Steps Require

The procedure is compact, but each step has substantive requirements. In the first step, estimated CCPs and transitions must represent the same underlying dynamic process. Sparse state-action cells can yield noisy probabilities; lack of action support means the counterfactual transition for that action cannot be learned from those data without additional modeling restrictions. In the second step, the payoff specification and its normalizations must distinguish the parameters of interest. CCPs identify relative choice-specific values, not an unrestricted common level of utility across all actions.

The approach matters because it separates flexible estimation of behavior and state evolution from structural payoff recovery. It can be computationally attractive when the state space is manageable and the first-step probabilities can be estimated reliably. Its two-step form also means that the recovered values and payoffs depend on estimated inputs. Treating those inputs as exact can understate uncertainty; inference with estimated choice probabilities requires accounting for first-step estimation error.

Common Mistakes

  • Reversing the transition difference. The inversion subtracts \(\beta(P_a-P_{a_0})V\) from the log odds. Switching the order changes the sign of the continuation adjustment.
  • Calling log odds a flow-payoff difference. Log odds equal a difference in choice-specific values. The discounted difference in expected future values must be removed to obtain the current flow-payoff difference.
  • Using zero CCPs in a logarithm. If an estimated probability is zero, the log-odds inversion is undefined. This signals a support or estimation problem, not evidence of an infinite payoff that can be taken literally.
  • Ignoring payoff normalization. Choice probabilities alone do not identify a common utility level. State the reference action and the payoff restrictions used to recover structural parameters.
Key takeaway: Estimate CCPs and transitions first; solve the reference-action value equations next; then subtract the appropriate continuation-value difference from CCP log odds. Structural parameters are recovered by matching those inverted payoff differences to the specified payoff function.

Check Your Understanding

Answer each question using the definitions and equations above.

  1. Why must the CCPs for both actions in a log-odds comparison be positive?
  2. In the value equation, what determines whether the transition term is \(P_a-P_{a_0}\) or \(P_{a_0}-P_a\)?
  3. If the log odds are \(0.4\) and the discounted continuation-value difference \( \beta(P_a-P_{a_0})V\) is \(0.1\), what is the inverted flow-payoff difference?
  4. Why does the reference-action value system have a unique solution when \(\beta<1\) and \(P_0\) is stochastic?
  5. What kind of state variation could help distinguish an intercept from a state-dependent payoff coefficient?
Clinical Biostats