Dynamic discrete choice explained

Dynamic discrete choice (DDC) models, also known as discrete choice models of dynamic programming, model an agent's choices over discrete options that have future implications. Rather than assuming observed choices are the result of static utility maximization, observed choices in DDC models are assumed to result from an agent's maximization of the present value of utility, generalizing the utility theory upon which discrete choice models are based.

The goal of DDC methods is to estimate the structural parameters of the agent's decision process. Once these parameters are known, the researcher can then use the estimates to simulate how the agent would behave in a counterfactual state of the world. (For example, how a prospective college student's enrollment decision would change in response to a tuition increase.)

Mathematical representation

Agent

n

's maximization problem can be written mathematically as follows:

V\left(xn0

\right)=max
\left\{dnt\right\
T}
t=1

E

T
\left(\sum
t\prime=t
J
\sum
i=1

\betat'-t\left(dnt=i\right)Unit\left(xnt,\varepsilonnit\right)\right),

where

xnt

are state variables, with

xn0

the agent's initial condition

dnt

represents

n

's decision from among

J

discrete alternatives

\beta\in\left(0,1\right)

is the discount factor

Unit

is the flow utility

n

receives from choosing alternative

i

in period

t

, and depends on both the state

xnt

and unobserved factors

\varepsilonnit

T

is the time horizon

E\left(\right)

is taken over both the

xnt

's and

\varepsilonnit

's in

Unit

. That is, the agent is uncertain about future transitions in the states, and is also uncertain about future realizations of unobserved factors.

Simplifying assumptions and notation

It is standard to impose the following simplifying assumptions and notation of the dynamic decision problem:

1. Flow utility is additively separable and linear in parameters

The flow utility can be written as an additive sum, consisting of deterministic and stochastic elements. The deterministic component can be written as a linear function of the structural parameters.

\begin{alignat}{5} Unit\left(xnt,\varepsilonnit\right)&&=&&unit&&+&&\varepsilonnit\\ &&=&&Xnt\alphai&&+&&\varepsilonnit\end{alignat}

2. The optimization problem can be written as a Bellman equation

Define by

Vnt(xnt)

the ex ante value function for individual

n

in period

t

just before

\varepsilonnt

is revealed:

Vnt(xnt)=Emaxi\left\{unit(xnt)+\varepsilonnit+\beta

\int
xt+1

Vnt+1(xnt+1)dF\left(xt+1\midxt\right)\right\}

where the expectation operator

E

is over the

\varepsilon

's, and where

dF\left(xt+1\midxt\right)

represents the probability distribution over

xt+1

conditional on

xt

. The expectation over state transitions is accomplished by taking the integral over this probability distribution.

It is possible to decompose

Vnt(xnt)

into deterministic and stochastic components:

Vnt(xnt)=Emaxi\left\{vnit(xnt)+\varepsilonnit\right\}

where

vnit

is the value to choosing alternative

i

at time

t

and is written as

vnit(xnt)=unit\left(xnt\right)+\beta

\int
xt+1

Emaxj\left\{vnjt+1(xnt+1)+\varepsilonnjt+1\right\}dF(xt+1\midxt)

where now the expectation

E

is taken over the

\varepsilonnjt+1

.
3. The optimization problem follows a Markov decision process

The states

xt

follow a Markov chain. That is, attainment of state

xt

depends only on the state

xt-1

and not

xt-2

or any prior state.

Conditional value functions and choice probabilities

The value function in the previous section is called the conditional value function, because it is the value function conditional on choosing alternative

i

in period

t

. Writing the conditional value function in this way is useful in constructing formulas for the choice probabilities.

To write down the choice probabilities, the researcher must make an assumption about the distribution of the

\varepsilonnit

's. As in static discrete choice models, this distribution can be assumed to be iid Type I extreme value, generalized extreme value, multinomial probit, or mixed logit.

For the case where

\varepsilonnit

is multinomial logit (i.e. drawn iid from the Type I extreme value distribution), the formulas for the choice probabilities would be:

Pnit=

\exp(vnit)
J
\sum\exp(vnjt)
j=1

Estimation

Estimation of dynamic discrete choice models is particularly challenging, due to the fact that the researcher must solve the backwards recursion problem for each guess of the structural parameters.

The most common methods used to estimate the structural parameters are maximum likelihood estimation and method of simulated moments.

Aside from estimation methods, there are also solution methods. Different solution methods can be employed due to complexity of the problem. These can be divided into full-solution methods and non-solution methods.

Full-solution methods

The foremost example of a full-solution method is the nested fixed point (NFXP) algorithm developed by John Rust in 1987.The NFXP algorithm is described in great detail in its documentation manual.[1]

A recent work by Che-Lin Su and Kenneth Judd in 2012[2] implements another approach (dismissed as intractable by Rust in 1987), which uses constrained optimization of the likelihood function, a special case of mathematical programming with equilibrium constraints (MPEC).Specifically, the likelihood function is maximized subject to the constraints imposed by the model, and expressed in terms of the additional variables that describe the model's structure. This approach requires powerful optimization software such as Artelys Knitro because of the high dimensionality of the optimization problem.Once it is solved, both the structural parameters that maximize the likelihood, and the solution of the model are found.

In the later article[3] Rust and coauthors show that the speed advantage of MPEC compared to NFXP is not significant. Yet, because the computations required by MPEC do not rely on the structure of the model, its implementation is much less labor intensive.

Despite numerous contenders, the NFXP maximum likelihood estimator remains the leading estimation methodfor Markov decision models.[3]

Non-solution methods

An alternative to full-solution methods is non-solution methods. In this case, the researcher can estimate the structural parameters without having to fully solve the backwards recursion problem for each parameter guess. Non-solution methods are typically faster while requiring more assumptions, but the additional assumptions are in many cases realistic.

The leading non-solution method is conditional choice probabilities, developed by V. Joseph Hotz and Robert A. Miller.[4]

Examples

Bus engine replacement model

The bus engine replacement model developed in the seminal paper is one of the first dynamic stochastic models of discrete choice estimated using real data, and continues to serve as classical example of the problems of this type.[2]

The model is a simple regenerative optimal stopping stochastic dynamic problem faced by the decision maker, Harold Zurcher, superintendent of maintenance at the Madison Metropolitan Bus Company in Madison, Wisconsin. For every bus in operation in each time period Harold Zurcher has to decide whether to replace the engine and bear the associated replacement cost, or to continue operating the bus at an ever raising cost of operation, which includes insurance and the cost of lost ridership in the case of a breakdown.

Let

xt

denote the odometer reading (mileage) at period

t

,

c(xt,\theta)

cost of operating the bus which depends on the vector of parameters

\theta

,

RC

cost of replacing the engine, and

\beta

the discount factor. Then the per-period utility is given by

U(xt,\xit,d,\theta)=\begin{cases} -c(xt,\theta)+\xit,keep,&\\ -RC-c(0,\theta)+\xit,replace,& \end{cases} = u(xt,d,\theta)+ \begin{cases} \xit,keep,&rm{if}  d=keep,\\ \xit,replace,&rm{if}  d=replace, \end{cases}

where

d

denotes the decision (keep or replace) and

\xit,keep

and

\xit,replace

represent the component of the utility observed by Harold Zurcher, but not John Rust. It is assumed that

\xit,keep

and

\xit,replace

are independent and identically distributed with the Type I extreme value distribution, and that

\xit,\bullet

are independent of

\xit-1,\bullet

conditional on

xt

.

Then the optimal decisions satisfy the Bellman equation

V(x,\xi,\theta)=maxd=keep,replace\left\{u(x,d,\theta)+\xid+\iintV(x',\xi',\theta)q(d\xi'\midx',\theta)p(dx'\midx,d,\theta)\right\}

where

p(dx'\midx,d,\theta)

and

q(d\xi'\midx',\theta)

are respectively transition densities for the observed and unobserved states variables. Time indices in the Bellman equation are dropped because the model is formulated in the infinite horizon settings, the unknown optimal policy is stationary, i.e. independent of time.

Given the distributional assumption on

q(d\xi'\midx',\theta)

, the probability of particular choice

d

is given by

P(d\midx,\theta)=

\exp\{u(x,d,\theta)+\betaEV(x,d,\theta)\
}

where

EV(x,d,\theta)

is a unique solution to the functional equation

EV(x,d,\theta)=\int\left[log\left(\sumd=keep,replace\exp\{u(x,d',\theta)+\betaEV(x',d',\theta)\}\right)\right]p(x'\midx,d,\theta).

It can be shown that the latter functional equation defines a contraction mapping if the state space

xt

is bounded, so there will be a unique solution

EV(x,d,\theta)

for any

\theta

, and further the implicit function theorem holds, so

EV(x,d,\theta)

is also a smooth function of

\theta

for each

(x,d)

.

Estimation with nested fixed point algorithm

The contraction mapping above can be solved numerically for the fixed point

EV(x,d,\theta)

that yields choice probabilities

P(d\midx,\theta)

for any given value of

\theta

. The log-likelihood function can then be formulated as

L(\theta)=

N
\sum
i=1
Ti
\sum
t=1

log(P(dit\midxit,\theta))+log(p(xit\midxit-1,dit-1,\theta)),

where

xi,t

and

di,t

represent data on state variables (odometer readings) anddecision (keep or replace) for

i=1,...,N

individual buses, each in

t=1,...,Ti

periods.

The joint algorithm for solving the fixed point problem given a particular value of parameter

\theta

and maximizing the log-likelihood

L(\theta)

with respect to

\theta

was named by John Rust nested fixed point algorithm (NFXP).

Rust's implementation of the nested fixed point algorithm is highly optimized for this problem, using Newton–Kantorovich iterations to calculate

P(d\midx,\theta)

and quasi-Newton methods, such as the Berndt–Hall–Hall–Hausman algorithm, for likelihood maximization.[3]

Estimation with MPEC

In the nested fixed point algorithm,

P(d\midx,\theta)

is recalculated for each guess of the parameters . The MPEC method instead solves the constrained optimization problem:[2]

\begin{align} max&    L(\theta)&\\ subjectto&    EV(x,d,\theta)=\int\left[log\left(\sumd=keep,replace\exp\{u(x,d',\theta)+\betaEV(x',d',\theta)\}\right)\right]p(x'\midx,d,\theta) \end{align}

This method is faster to compute than non-optimized implementations of the nested fixed point algorithm, and takes about as long as highly optimized implementations.[3]

Estimation with non-solution methods

The conditional choice probabilities method of Hotz and Miller can be applied in this setting. Hotz, Miller, Sanders, and Smith proposed a computationally simpler version of the method, and tested it on a study of the bus engine replacement problem. The method works by estimating conditional choice probabilities using simulation, then backing out the implied differences in value functions.[5]

See also

Further reading

Notes and References

  1. Rust. John. Nested fixed point algorithm documentation manual. Unpublished. 2008.
  2. Su. Che-Lin. Judd. Kenneth L.. Kenneth Judd. Constrained Optimization Approaches to Estimation of Structural Models. Econometrica. 80. 5. 2213–2230. 2012. 1468-0262. 10.3982/ECTA7925. 10419/59626. free.
  3. Iskhakov. Fedor. Lee. Jinhyuk. Rust. John. Schjerning. Bertel. Seo. Kyoungwon. Comment on "constrained optimization approaches to estimation of structural models". Econometrica. 84. 1. 365–370. 2016. 0012-9682. 10.3982/ECTA12605 .
  4. Hotz. V. Joseph. Miller. Robert A.. Conditional Choice Probabilities and the Estimation of Dynamic Models. Review of Economic Studies. 60. 3. 497–529. 1993. 10.2307/2298122. 2298122.
  5. Hotz . V. J. . Miller . R. A. . Sanders . S. . Smith . J. . 55199895 . A Simulation Estimator for Dynamic Models of Discrete Choice . The Review of Economic Studies . Oxford University Press (OUP) . 61 . 2 . 1994-04-01 . 0034-6527 . 10.2307/2297981 . 265–289. 2297981 .