Skip to content

Commit 461a5e1

Browse files
authored
Fix: Correct section heading capitalizations per QuantEcon style guide (#570)
Applied Title Rule #2 which states: "Capitalize ONLY the first word and proper nouns in all other headings" Changes made (10 violations fixed): 1. "The Model" → "The model" (line 48) 2. "Trade-Off" → "Trade-off" (line 118) 3. "The Value Function" → "The value function" (line 148) 4. "The Bellman Equation" → "The Bellman equation" (line 155) 5. "An Analytical Solution" → "An analytical solution" (line 202) 6. "The Optimal Policy" → "The optimal policy" (line 252) 7. "The Euler Equation" → "The Euler equation" (line 312) 8. "Statement and Implications" → "Statement and implications" (line 326) 9. "Derivation I: A Perturbation Approach" → "Derivation I: a perturbation approach" (line 379) 10. "Derivation II: Using the Bellman Equation" → "Derivation II: using the Bellman equation" (line 447) Note: "Bellman" and "Euler" remain capitalized as they are proper nouns (mathematicians' names)
1 parent 6be28fb commit 461a5e1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lectures/cake_eating_problem.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
4545
import numpy as np
4646
```
4747

48-
## The Model
48+
## The model
4949

5050
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**
117117

118-
### Trade-Off
118+
### Trade-off
119119

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

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

146146
Let's see if this is true.
147147

148-
## The Value Function
148+
## The value function
149149

150150
The first step of our dynamic programming treatment is to obtain the Bellman
151151
equation.
152152

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

155-
### The Bellman Equation
155+
### The Bellman equation
156156

157157
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
199199

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

202-
### An Analytical Solution
202+
### An analytical solution
203203

204204
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
```
251251

252-
## The Optimal Policy
252+
## The optimal policy
253253

254254
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
```
311311

312-
## The Euler Equation
312+
## The Euler equation
313313

314314
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.
325325

326-
### Statement and Implications
326+
### Statement and implications
327327

328328
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.
378378

379-
### Derivation I: A Perturbation Approach
379+
### Derivation I: a perturbation approach
380380

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

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

445445
This is just the Euler equation.
446446

447-
### Derivation II: Using the Bellman Equation
447+
### Derivation II: using the Bellman equation
448448

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

0 commit comments

Comments
 (0)