by Fedor Iskhakov, ANU
Description: Model background and formulation. Mileage process. Optimal replacement choice with and without EV taste shocks.
📖 John Rust (1987, Econometrica) “Optimal Replacement of GMC Bus Engines: An Empirical Model of Harold Zurcher”
Ingredients:
Still very powerful method for both solving and estimating dynamic discrete choice models
📖 Iskhakov, Lee, Rust, Schjerning and Seo (2016, Econometrica) “Comment on “Constrained Optimization Approaches to Estimation of Structural Models””
Solution is given by:
Each bus comes in for repair once a month and Zurcher chooses between ordinary maintenance $ (d_{t}=0) $ and overhaul/engine replacement $ (d_{t}=1) $.
Harold observes many different attributes of the buses which come into the shop, but we focus on the main one for now.
Instantaneous payoffs are given by the cost function that depends on the choice
$$ u(x_{t},d_t,\theta_1)=\left \{ \begin{array}{ll} -RC-c(0,\theta_1) & \text{if }d_{t}=\text{replace}=1 \\ -c(x_{t},\theta_1) & \text{if }d_{t}=\text{keep}=0 \end{array} \right. $$Mileage transition probability: for $ j = 0,...,J $
$$ p(x'|\hat{x}_k, d,\theta_2)= \begin{cases} Pr\{x'=\hat{x}_{k+j}|\theta_2\}= \theta_{2j} \text{ if } d=0 \\ Pr\{x'=\hat{x}_{1+j}|\theta_2\}= \theta_{2j} \text{ if } d=1 \end{cases} $$If not replacing ($ d=0) $
$$ \Pi(d=0)_{n x n} = \begin{pmatrix} \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ 0 & \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & 0 \\ 0 & 0 &\theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & 0 \\ \cdot & \cdot & \cdot & \cdot & \cdot & \cdot & \cdot & \cdot \\ 0 & \cdot & \cdot & 0 & \theta_{20} & \theta_{21} & \theta_{22} & 0 \\ 0 & \cdot & \cdot & \cdot & 0 & \theta_{20} & \theta_{21} & \theta_{22} \\ 0 & \cdot & \cdot & \cdot & \cdot & 0 & \theta_{20} & 1-\theta_{20} \\ 0 & \cdot & \cdot & \cdot & \cdot & \cdot & 0 & 1 \end{pmatrix} $$If replacing ($ d=1) $
$$ \Pi(d=1)_{n x n} = \begin{pmatrix} \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \cdot & \cdot & \cdot & \cdot & \cdot & \cdot & \cdot & \cdot \\ \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \theta_{20} & \theta_{21} & \theta_{22} & 0 & \cdot & \cdot & \cdot & 0 \\ \end{pmatrix} $$To minimize the discounted expected value of the costs, Zurcher should find such policy function $ f(x_t):X\rightarrow \{\text{keep},\text{replace}\} $ such that $ d_t=f(x_t) $ maximizes
$$ \mathbb{E}\sum_{t=0}^{\infty} \beta^t u(x_t,d_t) \longrightarrow \max $$The function $ V(x_t) $ denotes the maximum attainable value at period t
$$ V(x_t) = max_{\Pi} \mathbb{E} \sum_{j=t}^{\infty} \beta^{j-t} u(x_t,d_t) $$where $ \Pi $ is a space of policy functions $ f(x_t):X\rightarrow \{\text{keep},\text{replace}\} $, and $ d_t = f(x_t) $
Using Bellman Principle of Optimality, we can show that the value function $ V(x_t) $ constitutes the solution of the following functional equation
$$ V(x) = \max_{d\in \{\text{keep},\text{replace}\}} \big\{ u(x,d) + \beta \mathbb{E}\big[ V(x')\big|x,d\big] \big\} $$where expectation is taken over the next period values of state $ x' $ given the motion rule of the problem
can be written as a fixed point equation of the Bellman operator in the functional space
$$ T(V)(x) \equiv \max_{d \in \{\text{keep},\text{replace}\}} \big\{ u(x,d) + \beta \mathbb{E}\big[ V(x') \big|x,d\big] \big\} $$The Bellman equations is then $ V(x) = T(V)(x) $, with the solution given by the fixed point $ T(V) = V $
In the finite horizon models there is last period $ T $
In the infinite horizon models there is no last period, so $ T=\infty $
Let $ (S,\rho) $ be a complete metric space with a contraction mapping $ T: S \rightarrow S $.
Then
We will soon see that Bellman operator in a contraction mapping!
Algorithm:
Need to include error terms into the model, denote $ \epsilon $
$ \varepsilon $ is a new (vector) state variable
$$ V(x,\varepsilon) = \max_{d\in \{0,1\}} \big\{ u(x,\varepsilon_d,d) + \beta \mathbb{E}\big[ V(x',\varepsilon')\big|x,\varepsilon,d\big] \big\} $$$$ V(x,\varepsilon) = \max_{d\in \{0,1\}} \big\{ u(x,\varepsilon_d,d) + \beta \int_{X} \int_{\Omega} V(x',\varepsilon') p(x',\varepsilon'|x,\varepsilon,d) dx'd\varepsilon' \big\} $$where $ \varepsilon_d $ is the component of vector $ \varepsilon \in \mathbb{R}^2 $ which corresponds to $ d $
(AS) Additive separability in preferences
$$ u(x,\varepsilon_d,d) = u(x,d) + \varepsilon_d, $$(CI) Conditional independence
$$ p(x',\varepsilon'|x,\varepsilon,d) = q(\varepsilon'|x')\cdot \pi(x'|x,d) $$(EV) Extreme value Type I (EV1) distribution of $ \varepsilon $
Let $ \mathbb{E}\big[ V(x',\varepsilon')\big|x,d\big] = EV(x,d) $, then
$$ \begin{eqnarray} EV(x,d) &=& \int_{X} \log \big( \exp[v(x',0)] + \exp[v(x',1)] \big) \pi(x'|x,d) dx' \\ v(x,d) &=& u(x,d) + \beta EV(x,d) \end{eqnarray} $$Solution to the Bellman functional equation $ EV(x,d) $ is also a fixed point of $ T^* $ operator, $ T^*(EV)(x,d)=EV(x,d) $
Once the fixed point is found, the optimal choice probability $ P(d|x) $ is given by the Logit structure (assumption EV):
$$ P(d|x) = \frac{\exp[v(x,d)]}{\sum_{d'\in \{0,1\}} \exp[v(x,d')]} $$The choice probability serve as the bases for forming the likelihood function. Will continue with this when talking about structural estimation!