Skip to content

Commit 2971d2e

Browse files
committed
update to conditions
1 parent dbbecc3 commit 2971d2e

34 files changed

+2220
-452
lines changed

docs/equations/hank1.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align}
2+
V_t(e, a) = \max_{c, n, a'} & \left\{\frac{c^{1-\sigma}}{1-\sigma} - \varphi \frac{n^{1+\nu}}{1+\nu} + \beta \mathbb{E}_t\left[V_{t+1}(e', a')|e\right] \right\}
3+
\\
4+
c + a' & = (1 + r_t)a + w_t(e) n
5+
\\
6+
a' & \geq 0
7+
\end{align}

docs/equations/hank1_1.tex

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
\begin{align} \tag{labor}
2+
v_{(t,1)}(e, a_{-}) & = \max_{n} \left\{ - \varphi \frac{n^{1+\nu}}{1+\nu} + v_{(t,2)}(e,m) \right\}
3+
\\
4+
m & = (1 + r_t)a_{-} + w_t(e) n
5+
\end{align}

docs/equations/hank1_2.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align} \tag{consumption}
2+
v_{(t,2)}(e, m) & = \max_{c, a} \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta v_{(t,3)}(e,a) \right\}
3+
\\
4+
a & = m - c
5+
\\
6+
a & \geq 0
7+
\end{align}

docs/equations/hank1_3.tex

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\begin{align} \tag{expectation}
2+
v_{(t,3)}(e, a) = \mathbb{E}_t\left[V_{t+1}(e', a)|e\right]
3+
\end{align}

docs/equations/hank2.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align} \tag{1}
2+
V_t(e, b, a) = \max_{c, b', a'} & \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta \mathbb{E}_t V_{t+1}(e', b', a') \right\}
3+
\\
4+
c + a' + b' & = z_t(e) + (1 + r_t^a)a + (1 + r_t^b) - \Psi(a', a)
5+
\\
6+
a' & \geq \underline{a}, \quad b' \geq \underline{b},
7+
\end{align}

docs/equations/hank2_1.tex

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
\begin{align} \tag{1}
2+
v_{(t,0)}(e, b, a) & = \max_{a'} v_{(t,1)}(e, \ell, a')
3+
\\
4+
m & = z_t(e) + (1 + r_t^a)a + (1 + r_t^b)b
5+
\\
6+
\ell & = m - a' - \Psi(a', a)
7+
\\
8+
a' & \geq \underline{a}
9+
\end{align}

docs/equations/hank2_2.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align} \tag{1}
2+
v_{(t,1)}(e, \ell, a') & = \max_{c} \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta v_{(t,2)}(e,b',a') \right\}
3+
\\
4+
b' & = \ell - c
5+
\\
6+
b' & \geq \underline{b}
7+
\end{align}

docs/equations/hank2_3.tex

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$$
2+
v_{(t,2)}(e, b', a') = \mathbb{E}_t V_{t+1}(e', b', a')
3+
$$

docs/equations/hank3.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align} \tag{1}
2+
V_t(e, b, a) = \max_{c, n, b', a'} & \left\{\frac{c^{1-\sigma}}{1-\sigma} - \varphi \frac{n^{1+\nu}}{1+\nu} + \beta \mathbb{E}_t V_{t+1}(e', b', a') \right\}
3+
\\
4+
c + a' + b' & = z_t(e) + (1 + r_t^a)a + (1 + r_t^b) - \Psi(a', a)
5+
\\
6+
a' & \geq \underline{a}, \quad b' \geq \underline{b},
7+
\end{align}

docs/equations/psi.tex

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$$\Psi(a', a) = \left(\frac{\chi_1}{2}\right) \frac{(a' - (1+r_t^a)a)^2}{(1+r_t^a)a + \chi_0}$$

docs/equations/sim.tex

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\begin{align}
2+
V_t(e, k) = \max_{c, k'} & \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta \mathbb{E}_t\left[V_{t+1}(e', k')|e \right] \right\}
3+
\\
4+
c + k' & = (1 + r_t)k + w_t e
5+
\\
6+
k' & \geq 0
7+
\end{align}

docs/equations/sim_0.tex

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
\begin{align}
2+
V_t(e, k) = \max_{c, k'} & \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta W_t(e, k') \right\}
3+
\\ c + k' &= (1 + r_t)k + w_t e
4+
\\ k' &\geq 0
5+
\end{align}

docs/equations/solving_hank_1.tex

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
$$
2+
v_{(t,0)}(e, a_{-}) = \max_{n} \left\{ - \varphi \frac{n^{1+\nu}}{1+\nu} + v_{(t,1)}(e,(1 + r_t)a_{-} + w_t(e) n ) \right\}
3+
$$
4+
5+
$$
6+
\varphi n^{\nu} = v_{(t,1)}^m(e,m) w_t(e) \tag{euler}
7+
$$
8+
9+
$$
10+
n(e_\times,m_\times) = \left(\frac{ w_t(e_\times)}{\varphi}v_{(t,1)}^m(e_\times,m_\times)\right)^{\frac{1}{\nu}} \tag{egm}
11+
$$
12+
13+
$$
14+
a_{-}(e_\times, m_\times) = \frac{m_\times - w_t(e_\times) n(e_\times,m_\times) }{1+r_t} \tag{budget}
15+
$$
16+
17+
$$
18+
a_{-}(e_\times,m_\times) \Rightarrow m(e_\times, a_{-\cap}) \qquad n(e_\times,m_\times) \Rightarrow n(e_\times, a_{-\cap}) \tag{swap dims}
19+
$$
20+
21+
$$
22+
n(e_\times, a_{-\cap}) \Rightarrow n(e_\times, a_{-\times}) \qquad m(e_\times, a_{-\cap}) \Rightarrow m(e_\times, a_{-\times}) \tag{regrid}
23+
$$
24+
25+
$$
26+
v_{(t,0)}^{a_{-}}(e,a_{-}) = (1 + r_t) \left(\frac{\varphi n^{\nu}}{w_t(e)}\right) \tag{ec}
27+
$$

docs/equations/solving_hank_2.tex

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
$$
2+
v_{(t,1)}(e, m) = \max_{c} \left\{\frac{c^{1-\sigma}}{1-\sigma} + \beta v_{(t,2)}(e,m - c) \right\}
3+
$$
4+
5+
$$
6+
c^{-\sigma} = \beta v_{(t,2)}^a(e,a) \tag{euler}
7+
$$
8+
9+
$$
10+
c(e_\times,a_\times) = \left(\beta v_{(t,2)}^a(e_\times,a_\times)\right)^{-\frac{1}{\sigma}} \tag{egm}
11+
$$
12+
13+
$$
14+
m(e_\times,a_\times) = c(e_\times,a_\times) + a_\times \tag{budget}
15+
$$
16+
17+
$$
18+
m(e_\times,a_\times), c(e_\times, a_\times) \Rightarrow a(e_\times, m_\cap), c(e_\times,m_\cap) \tag{swap dims}
19+
$$
20+
21+
$$
22+
c(e_\times,m_\cap) \Rightarrow c(e_\times, m_\times) \qquad a(e_\times, m_\cap) \Rightarrow a(e_\times, m_\times) \tag{regrid}
23+
$$
24+
25+
$$
26+
v_{(t,1)}^m(e,m) = c^{-\sigma} \tag{ec}
27+
$$
28+
29+
e$\times$ogenous e$\cap$dogenous

docs/paper/1_intro.md

+7-50
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,18 @@ I would like to thank Chris Carroll, Matthew White, and Fedor Iskhakov for their
1414

1515
# Introduction
1616

17-
> An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.
18-
>
19-
> -- [](doi:10.1090/S0002-9904-1954-09848-8)
17+
:::{raw} latex
18+
\begin{quote}
2019

21-
## Background
20+
An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.
2221

23-
% Introduce the topic by providing a brief overview of the issue and why it is important to study it.
22+
-- [](doi:10.1090/S0002-9904-1954-09848-8)
2423

25-
% Identify the research question: Clearly state the research question or problem being addressed in the current study.
26-
% Provide context: Explain why the topic is important to study and what gap in the existing knowledge the current study aims to fill.
27-
% Summarize the existing literature: Briefly describe what is currently known about the topic, including any relevant studies or theories that have been previously published.
28-
% Highlight the limitations of previous research: Identify any limitations or gaps in the existing literature and explain how the current study will address these limitations.
29-
% Provide a rationale for the study: Explain why the current study is needed and why it is a significant contribution to the existing knowledge on the topic.
30-
31-
% Use only the first paragraph to state the question and describe its importance. Don't weave
32-
% around, be overly broad, or use prior literature to motivate it (the question is not important
33-
% because so many papers looked at this issue before!).
24+
\end{quote}
25+
:::
3426

3527
Macroeconomic modeling aims to describe a complex world of agents interacting with each other and making decisions in a dynamic setting. The models are often very complex, require strong underlying assumptions, and use a lot of computational power to solve. One of the most common methods to solve these complex problems is using a grid search method to solve the model. The Endogenous Grid Method (EGM) developed by {cite:t}`Carroll2006` allows dynamic optimization problems to be solved in a more computationally efficient and faster manner than the previous method of convex optimization using grid search. Many problems that before took hours to compute became much easier to solve and allowed macroeconomists and computational economists to focus on estimation and simulation. However, the Endogenous Grid Method is limited to a few specific classes of problems. Recently, the classes of problems to which EGM can be applied have been expanded[^f1], but with every new method comes a new set of limitations. This paper introduces a new approach to EGM in a multivariate setting. The method is called Sequential EGM (or EGM$^n$) and introduces a novel way of breaking down complex problems into a sequence of simpler, smaller, and more tractable problems, along with an exploration of new multidimensional interpolation methods that can be used to solve these problems.
3628

37-
## Literature Review
38-
39-
% Summarize the existing literature on the topic and highlight any gaps or limitations in the current research.
40-
41-
% Then use the second paragraph for a summary of the most relevant literature
42-
% (not a full Section!). Hint: use present tense, to be consistent. "Smith (1986) presents a similar model, ..."
43-
4429
{cite:t}`Carroll2006` first introduced the Endogenous Grid Method as a way to speed up the solution of dynamic stochastic consumption-savings problems. The method consists of starting with an exogenous grid of post-decision states and using the inverse of the first-order condition to find the optimal consumption policy that rationalizes such post-decision states. Given the optimal policy and post-decision states, it is straightforward to calculate the initial pre-decision state that leads to the optimal policy. Although this method is certainly innovative, it only applied to a model with one control variable and one state variable. {cite:t}`Barillas2007` further extend this method by including more than one control variable in the form of a labor-leisure choice, as well as a second state variable for stochastic persistence.
4530

4631
{cite:t}`Hintermaier2010` introduce a model with collateral constraints and non-separable utility and solve using an EGM method that allows for occasionally binding constraints among endogenous variables. {cite:t}`Jorgensen2013` evaluates the performance of the Endogenous Grid Method against other methods for solving dynamic stochastic optimization problems and finds it to be fast and efficient. {cite:t}`Maliar2013` develop the Envelope Condition Method based on a similar idea as the Endogenous Grid Method, avoiding the need for costly numerical optimization and grid search. However, their model is limited to infinite horizon problems as it is a forward solution method.
@@ -51,44 +36,16 @@ For the papers discussed above, continuity and smoothness of the value and first
5136

5237
{cite:t}`Clausen2020` formalize the applicability of the Endogenous Grid Method and its extensions to discrete choice models and discuss the nesting of problems to efficiently find accurate solutions. {cite:t}`Druedahl2021` similarly suggest the nesting of problems to efficiently use the Endogenous Grid Method within problems with multiple control variables. However, while these nested methods reduce the complexity of solving these models, they often still require grid search methods as is the case with {cite:t}`Druedahl2021`.
5338

54-
% Finally, this paper contributes to the literature of solving dynamic optimization problems using machine learning tools. {cite:t}`Scheidegger2019` introduce the use of Gaussian Process Regression to compute global solutions for high-dimensional dynamic stochastic problems. {cite:t}`Maliar2021` use non-linear regression and neural networks to estimate systems of equations that characterize dynamic economic models.
55-
56-
## Research Question
57-
58-
% Clearly state the research question or problem being addressed in the current study.
59-
60-
% Next, while still on page one, the third paragraph must begin: "The purpose of this paper is ...",
61-
% and summarize what you actually do. (Paragraphs 2 and 3 could be reversed.)
39+
Finally, this paper contributes to the literature of solving dynamic optimization problems using machine learning tools. {cite:t}`Scheidegger2019` introduce the use of Gaussian Process Regression to compute global solutions for high-dimensional dynamic stochastic problems. {cite:t}`Maliar2021` use non-linear regression and neural networks to estimate systems of equations that characterize dynamic economic models.
6240

6341
The purpose of this paper is to describe a new method for solving dynamic optimization problems efficiently and accurately while avoiding convex optimization and grid search methods with the use of the Endogenous Grid Method and first-order conditions. The method is called Sequential EGM (or EGM$^n$) and introduces a novel way of breaking down complex problems into a sequence of simpler, smaller, and more tractable problems, along with an exploration of new multidimensional interpolation methods that can be used to solve these problems. This paper also illustrates an example of how Sequential EGM can be used to solve a dynamic optimization problem in a multivariate setting.
6442

65-
## Methodology
66-
67-
% Briefly describe the research methodology used in the study, including any data sources, econometric techniques, or other methods used.
68-
6943
The sequential Endogenous Grid Method consists of 3 major parts: First, the problem to be solved should be broken up into a sequence of smaller problems that themselves don't add any additional state variables or introduce asynchronous dynamics with respect to the uncertainty. If the problem is broken up in such a way that uncertainty can happen in more than one period, then the solution to this sequence of problems might be different from the aggregate problem due to giving the agent additional information about the future by realizing some uncertainty. Second, I evaluate each of the smaller problems to see if they can be solved using the Endogenous Grid Method. This evaluation is of greater scope than the traditional Endogenous Grid Method, as it allows for the resulting exogenous grid to be non-regular. If the subproblem can not be solved with EGM, then convex optimization is used. Third, if the exogenous grid generated by the EGM is non-regular, then I use a multidimensional interpolation method that takes advantage of machine learning tools to generate an interpolating function. Solving each subproblem in this way, the sequential Endogenous Grid Method is capable of solving complex problems that are not solvable with the traditional Endogenous Grid Method and are difficult and time-consuming to solve with convex optimization and grid search methods.
7044

71-
## Contributions
72-
73-
% Discuss how the current study contributes to the existing literature and what new insights it provides.
74-
75-
% That sets you up for the fourth paragraph, which lists "The contributions of
76-
% this work" – relative to that prior literature. Clarify what you do that's different
77-
7845
The Sequential Endogenous Grid Method is capable of solving multivariate dynamic optimization problems in an efficient and fast manner by avoiding grid search. This should allow researchers and practitioners to solve more complex problems that were previously not easily accessible to them, but more accurately capture the dynamics of the macroeconomy. By using advancements in machine learning techniques such as Gaussian Process Regression, the Sequential Endogenous Grid Method is capable of solving problems that were not previously able to be solved using the traditional Endogenous Grid Method. In particular, the Sequential Endogenous Grid Method is different from NEGM in that it allows for using more than one Endogenous Grid Method step to solve a problem, avoiding costly grid search methods to the extent that the problem allows.
7946

8047
Additionally, the Sequential Endogenous Grid Method often sheds light on the problem by breaking it down into a sequence of simpler problems that were not previously apparent. This is because intermediary steps in the solution process generate value and marginal value functions of different pre- and post-decision states that can be used to understand the problem better.
8148

82-
% The fifth paragraph then summarizes your results. Tell the answer, so they know what to expect,
83-
% and how to think about each step along the way, what's driving your results.
84-
85-
## Outline
86-
87-
% Provide a brief overview of the results and conclusions that will be presented in the article.
88-
% In the sixth and final paragraph, as an aid to the reader, plot the course for the rest of the paper.
89-
% "The first Section below presents a theoretical model that can be used to generate specific
90-
% hypotheses. Then [Section %s](#method) presents the econometric model, ..."
91-
9249
[Section %s](#method) presents a basic model that illustrates the sequential Endogenous Grid Method in one dimension. Then [Section %s](#multdim) introduces a more complex method with two state variables to demonstrate the use of machine learning tools to generate an interpolating function. In [Section %s](#multinterp) I present the unstructured interpolation methods using machine learning in more detail. [Section %s](#conditions) discusses the theoretical requirements to use the Sequential Endogenous Grid Method. Finally, [Section %s](#conclusion) concludes with some limitations and future work.
9350

9451
[^f1]: {cite:t}`Barillas2007, Maliar2013, Fella2014, White2015, Iskhakov2017`, among others.

0 commit comments

Comments
 (0)