Skip to content

Commit 09c8a0e

Browse files
jstacclaude
andcommitted
Fix exercise syntax in ifp_egm.md
- Change {exercise-start}/{exercise-end} to {exercise} - Keep {solution-start}/{solution-end} syntax for solutions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 94e17a9 commit 09c8a0e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lectures/ifp_egm.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -744,20 +744,17 @@ This looks pretty good.
744744

745745
## Exercises
746746

747-
```{exercise-start}
747+
```{exercise}
748748
:label: ifp_ex1
749-
```
750749
751750
Let's consider how the interest rate affects consumption.
752751
753752
* Step `r` through `np.linspace(0, 0.016, 4)`.
754753
* Other than `r`, hold all parameters at their default values.
755754
* Plot consumption against assets for income shock fixed at the smallest value.
756755
757-
Your figure should show that, for this model, higher interest rates
756+
Your figure should show that, for this model, higher interest rates
758757
suppress consumption (because they encourage more savings).
759-
760-
```{exercise-end}
761758
```
762759

763760
```{solution-start} ifp_ex1
@@ -787,18 +784,15 @@ plt.show()
787784
```
788785

789786

790-
```{exercise-start}
787+
```{exercise}
791788
:label: ifp_ex2
792-
```
793789
794790
Let's approximate the stationary distribution by simulation.
795791
796792
Run a large number of households forward for $T$ periods and then histogram the
797793
cross-sectional distribution of assets.
798794
799795
Set `num_households=50_000, T=500`.
800-
801-
```{exercise-end}
802796
```
803797

804798
```{solution-start} ifp_ex2

0 commit comments

Comments
 (0)