You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/newton_method.md
+47-8Lines changed: 47 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ import jax.numpy as jnp
49
49
plt.rcParams["figure.figsize"] = (10, 5.7)
50
50
```
51
51
52
-
## One-dimensional Fixed Point Computation Using Newton's Method
52
+
## Fixed Point Computation Using Newton's Method
53
53
54
54
(solow)=
55
55
### The Solow Model
@@ -61,6 +61,15 @@ Assuming Cobb-Douglas production technology, the law of motion for capital is
61
61
k_{t+1} = sAk_t^\alpha + (1-\delta) k_t
62
62
```
63
63
64
+
where
65
+
- $k_t$ is capital stock per worker,
66
+
- $A, \alpha>0$ are production parameters, $\alpha<1$
67
+
- $s>0$ is a savings rate, and
68
+
- $\delta \in(0,1)$ is a rate of depreciation
69
+
70
+
In this example, we will try to calculate the fixed point for the law of motion for capital.
71
+
72
+
64
73
Since we will use these parameters in many functions for this example, let's store our parameters in [`namedtuple`](https://docs.python.org/3/library/collections.html#collections.namedtuple) to help us keep our code clean and concise.
65
74
66
75
```{code-cell} python3
@@ -181,7 +190,23 @@ k_star
181
190
182
191
#### Newton's Method
183
192
184
-
To find the fixed point of a scalar function $g$, Newton's method iterates on
193
+
To implement Newton's method, we propose an initial value $x_0$ as fixed point, and then iterate towards the a point where $x_t = g(x_{t-1})$.
Generalising the process above, Newton's method iterates on
185
210
186
211
```{math}
187
212
:label: newtons_method
@@ -258,7 +283,21 @@ We can see that Newton's Method reaches convergence faster than the successive a
258
283
259
284
The above fixed-point calculation can be seen as a root-finding problem since the computation of a fixed point can be seen as approximating $x^*$ iteratively such that $g(x^*) - x^* = 0$.
260
285
261
-
For one-dimensional root-finding problems, Newton's method iterates on:
286
+
Therefore, assuming $f(x) = g(x) - x$, we can rewrite the formula [](motivation) to
0 commit comments