Skip to content

Commit 26d07fe

Browse files
jlperlajbrightuniverseDawievLill
authored
New lectures and TOC reorg (#197)
* Reorganization of lectures with new intro ones added * Added names * Fix to links * wealth dynamics compiling * Added wealth dynamics references * Fixed document references * Fixes issue #146 * Added in benchmarking * Fixed the `p` argument * Figures complete * Some cleanup and additional results * Minor edits Co-authored-by: James Yu <[email protected]> Co-authored-by: Dawie van Lill <[email protected]>
1 parent 67362af commit 26d07fe

31 files changed

+1121
-42
lines changed

lectures/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "quantecon-notebooks-julia"
2-
authors = ["arnavs <me@arnavsood.com>"]
2+
authors = ["quantecon <jesseperla@gmail.com>"]
33
version = "0.8.0"
44

55
[deps]

lectures/_static/quant-econ.bib

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,15 @@ @article{benhabib2015
468468
publisher={Elsevier}
469469
}
470470
471+
@article{benhabib2018skewed,
472+
title = {Skewed wealth distributions: Theory and empirics},
473+
author = {Benhabib, Jess and Bisin, Alberto},
474+
journal = {Journal of Economic Literature},
475+
volume = {56},
476+
number = {4},
477+
pages = {1261--91},
478+
year = {2018}
479+
}
471480
@book{puterman2005,
472481
title={Markov decision processes: discrete stochastic dynamic programming},
473482
author={Puterman, Martin L},
@@ -525,6 +534,16 @@ @article{Aiyagari1994
525534
year = {1994}
526535
}
527536
537+
@article{Gabaix2009,
538+
author = {Gabaix, Xavier},
539+
title = {Power Laws in Economics and Finance},
540+
journal = {Annual Review of Economics},
541+
volume = {1},
542+
number = {1},
543+
pages = {255-294},
544+
year = {2009},
545+
doi = {10.1146/annurev.economics.050708.142940},
546+
}
528547
@article{amss2002,
529548
author={S. Rao Aiyagari and Albert Marcet and Thomas J. Sargent and Juha Seppala},
530549
title={{Optimal Taxation without State-Contingent Debt}},

lectures/_toc.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,22 @@ parts:
3030
- file: tools_and_techniques/linear_algebra
3131
- file: tools_and_techniques/orth_proj
3232
- file: tools_and_techniques/lln_clt
33-
- file: tools_and_techniques/ar1_processes
34-
- file: tools_and_techniques/linear_models
35-
- file: tools_and_techniques/finite_markov
3633
- file: tools_and_techniques/stationary_densities
37-
- file: tools_and_techniques/kalman
3834
- file: tools_and_techniques/numerical_linear_algebra
3935
- file: tools_and_techniques/iterative_methods_sparsity
36+
- caption: Introduction to Dynamics
37+
numbered: true
38+
chapters:
39+
- file: introduction_dynamics/scalar_dynam
40+
- file: introduction_dynamics/ar1_processes
41+
- file: introduction_dynamics/finite_markov
42+
- file: introduction_dynamics/linear_models
43+
- file: introduction_dynamics/wealth_dynamics
44+
- file: introduction_dynamics/kalman
45+
- file: introduction_dynamics/short_path
4046
- caption: Dynamic Programming
4147
numbered: true
4248
chapters:
43-
- file: dynamic_programming/short_path
4449
- file: dynamic_programming/mccall_model
4550
- file: dynamic_programming/mccall_model_with_separation
4651
- file: dynamic_programming/wald_friedman

lectures/about_lectures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,6 @@ skills, and the many others who have contributed suggestions, bug fixes or
195195
improvements. They include but are not limited to Anmol Bhandari, Long Bui,
196196
Jeong-Hun Choi, David Evans, Xiaojun Guan, Shunsuke Hori, Chenghan Hou, Doc-Jin Jang, Adam Jozefiak,
197197
Qingyin Ma, Akira Matsushita, Tomohito Okabe, Daisuke Oyama, David Pugh, Alex
198-
Olssen, Nathan Palmer, Pooya Rashidi Ravari, Arnav Sood, Bill Tubbs, Natasha Watkins, Pablo Winant, Kaan Yolsever and Yixiao
198+
Olssen, Nathan Palmer, Pooya Rashidi Ravari, Arnav Sood, Bill Tubbs, Dawie van Lill, Natasha Watkins, Pablo Winant, Kaan Yolsever, James Yu, and Yixiao
199199
Zhou.
200200

lectures/dynamic_programming/discrete_dp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This lecture covers
5656

5757
We use dynamic programming many applied lectures, such as
5858

59-
* The {doc}`shortest path lecture <../dynamic_programming/short_path>`
59+
* The {doc}`shortest path lecture <../introduction_dynamics/short_path>`
6060
* The {doc}`McCall search model lecture <../dynamic_programming/mccall_model>`
6161
* The {doc}`optimal growth lecture <../dynamic_programming/optgrowth>`
6262

@@ -579,7 +579,7 @@ Another interesting object is `results.mc`, which is the controlled chain define
579579

580580
In other words, it gives the dynamics of the state when the agent follows the optimal policy.
581581

582-
Since this object is an instance of MarkovChain from [QuantEcon.jl](http://quantecon.org/quantecon-jl) (see {doc}`this lecture <../tools_and_techniques/finite_markov>` for more discussion), we
582+
Since this object is an instance of MarkovChain from [QuantEcon.jl](http://quantecon.org/quantecon-jl) (see {doc}`this lecture <../introduction_dynamics/finite_markov>` for more discussion), we
583583
can easily simulate it, compute its stationary distribution and so on
584584

585585
```{code-cell} julia

lectures/dynamic_programming/lqcontrol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Moreover, while the linear-quadratic structure is restrictive, it is in fact far
3939

4040
These themes appear repeatedly below.
4141

42-
Mathematically, LQ control problems are closely related to {doc}`the Kalman filter <../tools_and_techniques/kalman>`.
42+
Mathematically, LQ control problems are closely related to {doc}`the Kalman filter <../introduction_dynamics/kalman>`.
4343

4444
* Recursive formulations of linear-quadratic control problems and Kalman filtering problems both involve matrix **Riccati equations**.
4545
* Classical formulations of linear control and linear filtering problems make use of similar matrix decompositions (see for example {doc}`this lecture <../time_series_models/lu_tricks>` and {doc}`this lecture <../time_series_models/classical_filtering>`).
@@ -48,7 +48,7 @@ In reading what follows, it will be useful to have some familiarity with
4848

4949
* matrix manipulations
5050
* vectors of random variables
51-
* dynamic programming and the Bellman equation (see for example {doc}`this lecture <../dynamic_programming/short_path>` and {doc}`this lecture <../dynamic_programming/optgrowth>`)
51+
* dynamic programming and the Bellman equation (see for example {doc}`this lecture <../introduction_dynamics/short_path>` and {doc}`this lecture <../dynamic_programming/optgrowth>`)
5252

5353
For additional reading on LQ control, see, for example,
5454

@@ -350,7 +350,7 @@ What's special about the LQ case is that -- as we shall soon see --- the optima
350350
### Solution
351351

352352
To solve the finite horizon LQ problem we can use a dynamic programming
353-
strategy based on backwards induction that is conceptually similar to the approach adopted in {doc}`this lecture <../dynamic_programming/short_path>`.
353+
strategy based on backwards induction that is conceptually similar to the approach adopted in {doc}`this lecture <../introduction_dynamics/short_path>`.
354354

355355
For reasons that will soon become clear, we first introduce the notation $J_T(x) = x' R_f x$.
356356

lectures/dynamic_programming/mccall_model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ To understand why, first recall that `v_iv` is a function argument -- either def
403403
404404
As usual, we are better off using a package, which may give a better algorithm and is likely to less error prone.
405405

406-
In this case, we can use the `fixedpoint` algorithm discussed in {doc}`our Julia by Example lecture <../getting_started_julia/julia_by_example>` to find the fixed point of the $T$ operator.
406+
In this case, we can use the `fixedpoint` algorithm discussed in {doc}`our Julia by Example lecture <../getting_started_julia/julia_by_example>` to find the fixed point of the $T$ operator. Note that below we set the parameter `m=1` for Anderson iteration rather than leaving as the default value - which fails to converge in this case. This is still almost 10x faster than the `m=0` case, which corresponds to naive fixed-point iteration.
407407

408408
```{code-cell} julia
409409
function compute_reservation_wage(params; v_iv = collect(w ./(1-β)), iterations = 500,
@@ -412,7 +412,7 @@ function compute_reservation_wage(params; v_iv = collect(w ./(1-β)), iterations
412412
T(v) = max.(w/(1 - β), c + β * E*v) # (5) fixing the parameter values
413413
414414
v_star = fixedpoint(T, v_iv, iterations = iterations, ftol = ftol,
415-
m = 0).zero # (5)
415+
m = 1).zero # (5)
416416
return (1 - β) * (c + β * E*v_star) # (3)
417417
end
418418
```

lectures/dynamic_programming/optgrowth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The model is a version of the standard one sector infinite horizon growth model
3838
The technique we use to solve the model is dynamic programming.
3939

4040
Our treatment of dynamic programming follows on from earlier
41-
treatments in our lectures on {doc}`shortest paths <../dynamic_programming/short_path>` and
41+
treatments in our lectures on {doc}`shortest paths <../introduction_dynamics/short_path>` and
4242
{doc}`job search <../dynamic_programming/mccall_model>`.
4343

4444
We'll discuss some of the technical details of dynamic programming as we

lectures/dynamic_programming/perm_income.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The consumer also faces initial conditions $b_0$ and $y_0$, which can be fixed o
138138

139139
For the remainder of this lecture, we follow Friedman and Hall in assuming that $(1 + r)^{-1} = \beta$.
140140

141-
Regarding the endowment process, we assume it has the {doc}`state-space representation <../tools_and_techniques/linear_models>`.
141+
Regarding the endowment process, we assume it has the {doc}`state-space representation <../introduction_dynamics/linear_models>`.
142142

143143
```{math}
144144
:label: sprob15ab
@@ -388,7 +388,7 @@ Then we can express equation {eq}`pi_ssr` as
388388
\end{aligned}
389389
```
390390

391-
We can use the following formulas from {doc}`linear state space models <../tools_and_techniques/linear_models>` to compute population mean $\mu_t = \mathbb{E} x_t$ and covariance $\Sigma_t := \mathbb{E} [ (x_t - \mu_t) (x_t - \mu_t)']$
391+
We can use the following formulas from {doc}`linear state space models <../introduction_dynamics/linear_models>` to compute population mean $\mu_t = \mathbb{E} x_t$ and covariance $\Sigma_t := \mathbb{E} [ (x_t - \mu_t) (x_t - \mu_t)']$
392392

393393
```{math}
394394
:label: lss_mut_perm_income
@@ -663,7 +663,7 @@ Equation {eq}`sprob77` asserts that the *cointegrating residual* on the left s
663663
### Cross-Sectional Implications
664664

665665
Consider again {eq}`sprob16abcd`, this time in light of our discussion of
666-
distribution dynamics in the {doc}`lecture on linear systems <../tools_and_techniques/linear_models>`.
666+
distribution dynamics in the {doc}`lecture on linear systems <../introduction_dynamics/linear_models>`.
667667

668668
The dynamics of $c_t$ are given by
669669

@@ -932,7 +932,7 @@ In the same discussion in {cite}`Ljungqvist2012` it is shown that $K \in [0,1]$
932932

933933
In other words, $K$ increases as the ratio of the standard deviation of the permanent shock to that of the transitory shock increases.
934934

935-
Please see {doc}`first look at the Kalman filter <../tools_and_techniques/kalman>`.
935+
Please see {doc}`first look at the Kalman filter <../introduction_dynamics/kalman>`.
936936

937937
Applying formulas {eq}`sprob16abcd` implies
938938

lectures/dynamic_programming/perm_income_cons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ It is just a matter of appropriately relabeling the variables in Hall's model.
5151
In this lecture, we'll
5252

5353
* show how the solution to the LQ permanent income model can be obtained using LQ control methods
54-
* represent the model as a linear state space system as in {doc}`this lecture <../tools_and_techniques/linear_models>`
54+
* represent the model as a linear state space system as in {doc}`this lecture <../introduction_dynamics/linear_models>`
5555
* apply [QuantEcon](http://quantecon.org/quantecon-jl)'s [LSS](https://github.com/QuantEcon/QuantEcon.jl/blob/master/src/lss.jl) type to characterize statistical features of the consumer's optimal consumption and borrowing plans
5656

5757
We'll then use these characterizations to construct a simple model of cross-section wealth and
@@ -159,7 +159,7 @@ y_{t+1} = \alpha + \rho_1 y_t + \rho_2 y_{t-1} + \sigma w_{t+1}
159159
$$
160160

161161
We can map this into the linear state space framework in {eq}`sprob15ab2`, as
162-
discussed in our lecture on {doc}`linear models <../tools_and_techniques/linear_models>`.
162+
discussed in our lecture on {doc}`linear models <../introduction_dynamics/linear_models>`.
163163

164164
To do so we take
165165

0 commit comments

Comments
 (0)