Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Compared to NRLS the two-step estimator of Class 12 trades efficiency for speed. Aguirregabiria & Mira (2002) provides the middle ground: the estimation algorithm that allows the researcher to decide how much of the model to solve, and how much to rely on the data. The main idea: use the Bellman equation as a fixed point in the space of choice probabilities, and iterate on it only as many times as the data requires.

From value space to probability spaceΒΆ

Like all CCP-based methods, pseudo-likelihood estimation starts with the consistent estimation of the CCPs and transition probabilities from the data. Let’s focus on the specification of the statistical criterion for the second stage. Return to the representation of the integrated value function through the correction terms,

VΟƒ(x)=βˆ‘d∈D(x)P(d∣x)(v(x,d)+e(x,d))V^\sigma(x) = \sum_{d \in D(x)} P(d|x) \big( v(x,d) + e(x,d) \big)

Using the definition of the choice-specific value functions

v(x,d)=u(x,d)+β∫XVΟƒ(xβ€²)Ο€(xβ€²βˆ£x,d)dxβ€²v(x,d) = u(x,d) + \beta \int_X V^\sigma(x') \pi(x'|x,d) dx'

we have

VΟƒ(x)=βˆ‘d∈D(x)P(d∣x)(u(x,d)+β∫XVΟƒ(xβ€²)Ο€(xβ€²βˆ£x,d)dxβ€²+e(x,d))=V^\sigma(x) = \sum_{d \in D(x)} P(d|x) \left( u(x,d) + \beta \int_{X} V^\sigma(x') \pi(x'|x,d) dx' + e(x,d) \right)=
=βˆ‘d∈D(x)P(d∣x)[u(x,d)+e(x,d)]+Ξ²βˆ‘d∈D(x)P(d∣x)∫XVΟƒ(xβ€²)Ο€(xβ€²βˆ£x,d)dxβ€²= \sum_{d \in D(x)} P(d|x) \left[ u(x,d) + e(x,d) \right] + \beta \sum_{d \in D(x)} P(d|x) \int_{X} V^\sigma(x') \pi(x'|x,d) dx'

which is linear in VΟƒV^\sigma once the CCPs are held fixed. Again assuming a discrete state space and stacking VΟƒ(x)V^\sigma(x), P(d∣x)P(d|x), u(x,d)u(x,d) and e(x,d)e(x,d) across the state space to form column vectors, we can write the last equation for every point of the state space in matrix form,

VΟƒ=βˆ‘d∈D(x)P(d)βˆ—[u(d)+e(d)]+Ξ²βˆ‘d∈D(x)P(d)βˆ—Ξ (d)VΟƒV^\sigma = \sum_{d \in D(x)} P(d) \ast \left[ u(d) + e(d) \right] + \beta \sum_{d \in D(x)} P(d) \ast \Pi(d) V^\sigma

where βˆ—\ast is the element-wise (Hadamard) product of vectors. Let

Ξ =βˆ‘d∈D(x)P(d)βˆ—Ξ (d)\Pi = \sum_{d \in D(x)} P(d) \ast \Pi(d)

be the ∣Xβˆ£Γ—βˆ£X∣|X|\times|X| unconditional transition matrix, the same Markov chain whose stationary distribution was computed in homework zeta_zurcher, and denote by II again the identity matrix of the same size. Then the linear system solves as

VΟƒ=[Iβˆ’Ξ²Ξ ]βˆ’1βˆ‘d∈D(x)P(d)βˆ—[u(d)+e(d)]V^\sigma = [I - \beta \Pi]^{-1} \sum_{d \in D(x)} P(d) \ast \left[ u(d) + e(d) \right]

This is the policy evaluation step of policy iterations, where the policy is given by the CCPs. Recall that the correction term e(d)e(d) is a function of the CCPs only, and therefore we can introduce an operator

Ο†:[0,1]∣Xβˆ£Γ—βˆ£Dβˆ£βˆ‹P↦VΟƒβˆˆR∣X∣\varphi : [0,1]^{|X|\times|D|} \ni P \mapsto V^\sigma \in \mathbb{R}^{|X|}

that maps the CCPs into the integrated value functions. Finally, denote by

Ξ›:R∣Xβˆ£βˆ‹Vσ↦{P(d∣x)}∈R∣Xβˆ£Γ—βˆ£D∣\Lambda: \mathbb{R}^{|X|} \ni V^\sigma \mapsto \{P(d|x)\} \in \mathbb{R}^{|X|\times|D|}

the mapping from the integrated value functions to the CCPs given by the choice probability formulas of Class 12, which in the simple EV1 case take the form of the multinomial logit

Ξ›(VΟƒ)={exp⁑[u(x,d)+Ξ²Ξ (d)VΟƒ]βˆ‘dβ€²βˆˆD(x)exp⁑[u(x,dβ€²)+Ξ²Ξ (dβ€²)VΟƒ]}d∈D(x),x∈X\Lambda(V^\sigma) = \left\{\frac{\exp[u(x,d) + \beta \Pi(d) V^\sigma]}{\sum_{d'\in D(x)} \exp[u(x,d') + \beta \Pi(d') V^\sigma]} \right\}_{d \in D(x), x \in X}

We have encountered Policy Iteration (or Howard ) just before talking about the Newton–Kantorovich iterations in Class 9. Compare the definition of Ξ¨\Psi operator and the operations required to evaluate it to the definition of the Howard policy iteration to convince yourself that Ξ¨\Psi is the Howard operator in the CCP space (and so the maximum is replaced by the logit formula).

Note that Ξ¨\Psi depends on the structural parameters of the model ΞΈ\theta through u(x,d)u(x,d) and Ξ²\beta, so we write Ξ¨(P,ΞΈ)\Psi(P,\theta) when the dependence matters.

The original fixed point problem in value space is thereby reformulated as a fixed point problem in probability space. One application of Ξ¨\Psi is one policy evaluation, a linear solve, followed by one policy improvement, a logit formula, so successive approximations Pk+1=Ξ¨(Pk,ΞΈ)P_{k+1} = \Psi(P_k,\theta) converge as fast as policy iterations do.

Pseudo-maximum likelihood estimationΒΆ

The operator Ξ¨\Psi turns any first-stage CCP estimate into a set of model-implied choice probabilities, and those can be put into a likelihood.

The pseudo-likelihood function is the log-likelihood of the observed choices evaluated at Ξ¨(P^,ΞΈ)\Psi(\hat{P},\theta) rather than at the solution of the model,

β„“n(ΞΈ)=log⁑Ln(ΞΈ)=βˆ‘i=1βˆ‘tlog⁑Ψ(P^,ΞΈ)(di,t∣xi,t)\ell_n(\theta) = \log \mathcal{L}_n(\theta) = \sum_{i=1}\sum_{t} \log \Psi(\hat{P},\theta)(d_{i,t}|x_{i,t})

and the pseudo-maximum likelihood estimator is its maximizer,

ΞΈ^PML=arg⁑max⁑θℓn(ΞΈ)\hat{\theta}_{PML} = \arg\max_{\theta} \ell_n(\theta)

The pseudo-likelihood is the likelihood of a model that has been solved for one policy iteration only, starting from the data. The resulting algorithm is a two-step estimator in the sense of Class 12, with a particular choice of criterion:

Input: panel data (x_it, d_it)
Algorithm:
  1. First stage: estimate PΜ‚(d|x) and Ξ Μ‚(d) for all x and d
  2. Specify the pseudo-likelihood β„“_n(ΞΈ) = Ξ£ log Ξ¨(PΜ‚,ΞΈ)(d_it|x_it)
     using the estimated CCPs and transition probabilities
  3. Maximize β„“_n(ΞΈ) over ΞΈ
Output: ΞΈΜ‚_PML

Every evaluation of β„“n(ΞΈ)\ell_n(\theta) costs one application of Ξ¨\Psi, which is one linear solve, instead of a full solution of the model. Because P^\hat{P} is held fixed inside the maximization, the gradient of β„“n(ΞΈ)\ell_n(\theta) is the gradient of a static logit with the value function differences Ξ²Ξ (d)Ο†(P^)\beta\Pi(d)\varphi(\hat P) treated as a fixed regressor, and BHHH from Class 10 applies unchanged.

Where it breaks: in finite samples, exactly where the two-step estimator breaks. The criterion is a likelihood only in name, since the probabilities are computed at P^\hat{P} and not at the model’s own fixed point, and the first-stage noise passes through Ο†\varphi into every term.

Asymptotically nothing is lost, though, against the conventional wisdom of the time: Aguirregabiria & Mira (2002) show that ΞΈ^PML\hat{\theta}_{PML} has the same limiting distribution as the MLE. The price is paid in finite samples, where its error is several times that of the MLE.

Swapping the nested fixed pointΒΆ

Aguirregabiria and Mira take this idea a step further and develop the nested pseudo-likelihood (NPL) estimator, which is nothing else but the iteration of the pseudo-maximum likelihood estimator, with the CCPs updated by Ξ¨\Psi at the current parameter estimate after every maximization:

P^0β†’β„“n(ΞΈ)β†’ΞΈ^1β†’P^1=Ξ¨(P^0,ΞΈ^1)β†’β„“n(ΞΈ)β†’ΞΈ^2β†’P^2=Ξ¨(P^1,ΞΈ^2)→…\hat{P}_0 \rightarrow \ell_n(\theta) \rightarrow \hat{\theta}_1 \rightarrow \hat{P}_1 = \Psi(\hat{P}_0,\hat{\theta}_1) \rightarrow \ell_n(\theta) \rightarrow \hat{\theta}_2 \rightarrow \hat{P}_2 = \Psi(\hat{P}_1,\hat{\theta}_2) \rightarrow \dots

The name says what happened to NFXP. There, the outer loop climbs the likelihood and the inner loop solves the model to convergence at every step. Here the loops are swapped: the outer loop takes one policy iteration step on the CCPs, and the inner loop maximizes a pseudo-likelihood in which the CCPs are fixed.

Input: panel data (x_it, d_it), first-stage estimates PΜ‚_0 and Ξ Μ‚(d)
Algorithm:
  for K = 1, 2, ...
    1. ΞΈΜ‚_K = argmax_ΞΈ Ξ£ log Ξ¨(PΜ‚_{K-1},ΞΈ)(d_it|x_it)   # pseudo-likelihood step
    2. PΜ‚_K = Ξ¨(PΜ‚_{K-1}, ΞΈΜ‚_K)                            # policy iteration step
    3. stop when β€–PΜ‚_K - PΜ‚_{K-1}β€– < tol
Output: ΞΈΜ‚_K for the chosen K, and the NPL fixed point (ΞΈΜ‚, PΜ‚) in the limit

This is an intuitive definition of the NPL operator, the fixed point of which provides the NPL estimator.

The pair (ΞΈ^,P^)(\hat{\theta},\hat{P}) at convergence satisfies two conditions: P^=Ξ¨(P^,ΞΈ^)\hat{P} = \Psi(\hat{P},\hat{\theta}), so P^=PΞΈ^\hat{P} = P_{\hat\theta} is the solution of the model at ΞΈ^\hat{\theta}, and the first order conditions of the pseudo-likelihood at P^\hat P, which at this fixed point coincide with the likelihood equations of NFXP (shown below).

The sequence of estimatorsΒΆ

Stopping the iteration after KK steps gives a whole class of estimators, which Aguirregabiria & Mira (2002) call the KK-stage policy iteration estimators. They bridge the gap between the two-step CCP estimator and NFXP:

The last point is the computational case for NPL. With EV1 shocks and utility linear in the parameters, u(x,d)=h(x,d)β€²ΞΈu(x,d) = h(x,d)'\theta, the pseudo-likelihood is a static logit with fixed regressors: globally concave in ΞΈ\theta, so Newton or BHHH converges from any starting value.

Why the first stage washes outΒΆ

All the econometric results of Aguirregabiria & Mira (2002) rest on one property of the policy iteration operator.

The intuition is an envelope argument. Treat the CCPs as the controls of a reformulated problem, with Ο†(P)\varphi(P) the value of following them. At the optimal PP the value is maximized, so a small change in the CCPs changes values, and hence Ξ¨\Psi, only to second order. The second bullet answers the question put above about the cost of Ξ¨\Psi: one application of Ξ¨\Psi is one Newton–Kantorovich step.

What does the zero Jacobian buy? Differentiate the fixed point PΞΈ=Ξ¨(PΞΈ,ΞΈ)P_\theta = \Psi(P_\theta,\theta) with respect to ΞΈ\theta by the implicit function theorem, which applies because the matrix in brackets is the identity at PΞΈP_\theta:

βˆ‚PΞΈβˆ‚ΞΈβ€²=[Iβˆ’βˆ‚Ξ¨(PΞΈ,ΞΈ)βˆ‚Pβ€²]βˆ’1βˆ‚Ξ¨(PΞΈ,ΞΈ)βˆ‚ΞΈβ€²=βˆ‚Ξ¨(PΞΈ,ΞΈ)βˆ‚ΞΈβ€²\frac{\partial P_\theta}{\partial \theta'} = \left[ I - \frac{\partial \Psi(P_\theta,\theta)}{\partial P'} \right]^{-1} \frac{\partial \Psi(P_\theta,\theta)}{\partial \theta'} = \frac{\partial \Psi(P_\theta,\theta)}{\partial \theta'}

so the pseudo-score evaluated at P=PΞΈP = P_\theta equals the score of the likelihood, βˆ‚log⁑Ψ(PΞΈ,ΞΈ)(d∣x)/βˆ‚ΞΈ=βˆ‚log⁑PΞΈ(d∣x)/βˆ‚ΞΈ\partial \log \Psi(P_\theta,\theta)(d|x)/\partial\theta = \partial \log P_\theta(d|x)/\partial\theta. Two results follow:

Asymptotics of the KK-stage estimatorsΒΆ

The paper follows the partial likelihood strategy of NFXP: the transition probabilities pp are estimated first from the observed transitions, Ξ²\beta is known, and ΞΈ\theta is estimated given p^\hat p.

The first stage drops out because of the zero Jacobian. In a Taylor expansion of the first order conditions of ΞΈ^K\hat\theta_K, the first-stage error enters as

[1nβˆ‘iβˆ‚2log⁑Ψ(P^Kβˆ’1,ΞΈ^K)(di∣xi)βˆ‚ΞΈβ€‰βˆ‚Pβ€²]n (P^Kβˆ’1βˆ’Pβˆ—)\left[\frac{1}{n}\sum_{i} \frac{\partial^2 \log \Psi(\hat P_{K-1},\hat\theta_K)(d_i|x_i)}{\partial\theta\,\partial P'}\right] \sqrt{n}\,(\hat P_{K-1} - P^*)

and the bracket converges to zero by the zero Jacobian and the information matrix equality, while n(P^Kβˆ’1βˆ’Pβˆ—)\sqrt{n}(\hat P_{K-1} - P^*) stays bounded in probability. Therefore:

The representation matters because Hotz and Miller also proposed a cheaper one for models with a terminating action, which equals Ο†(P)\varphi(P) only at the fixed point and has no zero Jacobian. CCP estimators built on it are not asymptotically equivalent to the MLE. The one-period finite dependence of Class 13 is of the same kind: it uses the CCPs one period ahead instead of the full Ο†(P^)\varphi(\hat P), which is consistent with the standard error of cc found there, 5.4 against 0.3 for NFXP.

Finite sample evidenceΒΆ

Asymptotic equivalence says nothing about finite samples, which is where one-stage estimators earned their bad reputation. The Monte Carlo of the paper uses Rust’s bus model at the ML estimates, ΞΈ0=10.47\theta_0 = 10.47, ΞΈ1=0.58\theta_1 = 0.58, Ξ²=0.9999\beta = 0.9999, on a 201-point grid: 1000 samples of 1000 observations each, with a kernel first stage.

1-PI2-PI3-PIMLE
ΞΈ0\theta_0 mean absolute error, vs MLE+4.7%+1.6%+0.3%2.08
ΞΈ1\theta_1 mean absolute error, vs MLE+18.7%+1.5%+0.2%0.17
ΞΈ1\theta_1 standard deviation, vs MLE+11.0%+1.3%+0.2%0.16
ΞΈ0\theta_0 estimated s.e. / Monte Carlo s.d.0.801.011.031.02
ΞΈ1\theta_1 estimated s.e. / Monte Carlo s.d.0.671.041.081.07

The MLE column gives the levels; the other entries in the first three rows are differences relative to the MLE. The table says:

On speed, policy iterations take almost all of the estimation time once the grid exceeds 200 points, and their number does not depend on the grid size.

Where it breaks: the NPL iterations are successive approximations on (ΞΈ,P)↦(ΞΈ^(P),Ξ¨(P,ΞΈ^(P)))(\theta,P) \mapsto (\hat\theta(P), \Psi(P,\hat\theta(P))), and nothing guarantees that this map is a contraction.

  • NPL at convergence solves the same fixed point as NFXP. Where does the computational saving come from, then?

  • Why does the asymptotic distribution not depend on KK, while the finite sample distribution does?

NFXP versus KK-stage NPL: what actually differsΒΆ

Same first-order asymptotics under correct specification (Proposition 4). The differences:

NFXP is the MLE; KK-stage NPL approximates it.

In the end the model is solved anywayΒΆ

Estimation is not the goal. A structural model is estimated to run counterfactuals, such as the demand for engine replacement as a function of its price in Rust’s paper, and a counterfactual needs the solution of the model under the counterfactual scenario.

Why can the CCP shortcut not be used there too?

What the CCP and NPL methods save, then, is the repeated solution of the model inside the estimation loop, hundreds of fixed points in NFXP’s outer iterations, not the solution itself. The machinery of this class is reused for it: by Proposition 1 iterating Ξ¨\Psi from P^\hat P converges to the counterfactual fixed point at the speed of Newton–Kantorovich.

The counterfactual also needs everything the CCP estimators sidestep. Ξ²\beta has to be known, and the normalization of the flow utilities, harmless for estimation, is not harmless for every counterfactual: see the identification discussion of Class 12 and Kalouptsidi et al. (2021).

NFXP, two-step CCP and NPL on Zurcher’s dataΒΆ

The three estimators on the bus data of Rust (groups 1–4, 175 mileage bins), with the transition probabilities fixed at their frequency estimates. Both CCP-based estimators start from the same first stage, a logit in Chebyshev polynomials of degree 3, and NPL is shown at every step KK until the CCPs stop changing.

Source
                                RC (s.e.)         c (s.e.)    loglik    max dP
NFXP                        9.769 (1.226)    1.343 (0.315)   -300.57
Two-step CCP, degree 3     17.471 (0.499)    1.324 (5.423)   -296.77
NPL, K = 1                  9.627 (0.904)    1.245 (0.238)   -301.03   4.6e-01
NPL, K = 2                  9.749 (0.927)    1.321 (0.263)   -300.80   2.2e-01
NPL, K = 3                  9.786 (0.918)    1.342 (0.255)   -300.67   8.2e-02
NPL, K = 4                  9.791 (0.899)    1.349 (0.244)   -300.59   2.2e-02
NPL, K = 5                  9.775 (0.884)    1.345 (0.235)   -300.57   2.7e-03
NPL, K = 6                  9.769 (0.880)    1.343 (0.233)   -300.57   1.6e-04
NPL, K = 7                  9.769 (0.880)    1.343 (0.233)   -300.57   1.1e-05
NPL, K = 8                  9.769 (0.880)    1.343 (0.233)   -300.57   7.5e-07
NPL, K = 9                  9.769 (0.880)    1.343 (0.233)   -300.57   5.2e-08
NPL, K = 10                 9.769 (0.880)    1.343 (0.233)   -300.57   3.6e-09

The last column is the largest change in the CCPs between consecutive NPL steps.

ReferencesΒΆ
  1. Aguirregabiria, V., & Mira, P. (2002). Swapping the Nested Fixed Point Algorithm: A Class of Estimators for Discrete Markov Decision Models. Econometrica, 70(4), 1519–1543. 10.1111/1468-0262.00340
  2. Aguirregabiria, V., & Mira, P. (2007). Sequential Estimation of Dynamic Discrete Games. Econometrica, 75(1), 1–53. 10.1111/j.1468-0262.2007.00731.x
  3. Pesendorfer, M., & Schmidt-Dengler, P. (2010). Sequential Estimation of Dynamic Discrete Games: A Comment. Econometrica, 78(2), 833–842. 10.3982/ECTA7633
  4. Kasahara, H., & Shimotsu, K. (2008). Pseudo-likelihood estimation and bootstrap inference for structural discrete Markov decision models. Journal of Econometrics, 146(1), 92–106. 10.1016/j.jeconom.2008.07.004
  5. Kalouptsidi, M., Scott, P. T., & Souza-Rodrigues, E. (2021). Identification of counterfactuals in dynamic discrete choice models. Quantitative Economics, 12(2), 351–403. 10.3982/QE1253
  6. Aguirregabiria, V., & Marcoux, M. (2021). Imposing equilibrium restrictions in the estimation of dynamic discrete games. Quantitative Economics, 12(4), 1223–1271. 10.3982/QE1735
  7. Aguirregabiria, V., & Mira, P. (2010). Dynamic discrete choice structural models: A survey. Journal of Econometrics, 156(1), 38–67. 10.1016/j.jeconom.2009.09.007