GitHub

@@ -45,7 +45,7 @@ plt.rcParams["figure.figsize"] = (11, 5) #set default figure size

4545

import numpy as np

4646

```

474748-

## The Model

48+

## The model

49495050

We consider an infinite time horizon $t=0, 1, 2, 3..$

5151

@@ -115,7 +115,7 @@ In this problem, the following terminology is standard:

115115

* $c_t$ is called the **control variable** or the **action**

116116

* $\beta$ and $\gamma$ are **parameters**

117117118-

### Trade-Off

118+

### Trade-off

119119120120

The key trade-off in the cake-eating problem is this:

121121

@@ -145,14 +145,14 @@ parameters*.

145145146146

Let's see if this is true.

147147148-

## The Value Function

148+

## The value function

149149150150

The first step of our dynamic programming treatment is to obtain the Bellman

151151

equation.

152152153153

The next step is to use it to calculate the solution.

154154155-

### The Bellman Equation

155+

### The Bellman equation

156156157157

To this end, we let $v(x)$ be maximum lifetime utility attainable from

158158

the current time when $x$ units of cake are left.

@@ -199,7 +199,7 @@ If $c$ is chosen optimally using this trade off strategy, then we obtain maximal

199199200200

Hence, $v(x)$ equals the right hand side of {eq}`bellman-cep`, as claimed.

201201202-

### An Analytical Solution

202+

### An analytical solution

203203204204

It has been shown that, with $u$ as the CRRA utility function in

205205

{eq}`crra_utility`, the function

@@ -249,7 +249,7 @@ ax.legend(fontsize=12)

249249

plt.show()

250250

```

251251252-

## The Optimal Policy

252+

## The optimal policy

253253254254

Now that we have the value function, it is straightforward to calculate the

255255

optimal action at each state.

@@ -309,7 +309,7 @@ ax.legend()

309309

plt.show()

310310

```

311311312-

## The Euler Equation

312+

## The Euler equation

313313314314

In the discussion above we have provided a complete solution to the cake

315315

eating problem in the case of CRRA utility.

@@ -323,7 +323,7 @@ Euler equation.

323323

This is because, for more difficult problems, this equation

324324

provides key insights that are hard to obtain by other methods.

325325326-

### Statement and Implications

326+

### Statement and implications

327327328328

The Euler equation for the present problem can be stated as

329329

@@ -376,7 +376,7 @@ see proposition 2.2 of {cite}`ma2020income`.

376376

The following arguments focus on necessity, explaining why an optimal path or

377377

policy should satisfy the Euler equation.

378378379-

### Derivation I: A Perturbation Approach

379+

### Derivation I: a perturbation approach

380380381381

Let's write $c$ as a shorthand for consumption path $\{c_t\}_{t=0}^\infty$.

382382

@@ -444,7 +444,7 @@ $$

444444445445

This is just the Euler equation.

446446447-

### Derivation II: Using the Bellman Equation

447+

### Derivation II: using the Bellman equation

448448449449

Another way to derive the Euler equation is to use the Bellman equation {eq}`bellman-cep`.

450450

Read the original on github.com ↗