Skip to content

Commit d08c096

Browse files
jstacclaude
andcommitted
Fix exercise labels in ifp_egm.md
- Change ifp_ex1, ifp_ex2, ifp_ex3 to ifp_egm_ex1, ifp_egm_ex2, ifp_egm_ex3 - Prevents label conflicts with ifp_opi.md exercises - Fix exercise-start/exercise-end syntax for ifp_ex3 to use {exercise} 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a7caa6b commit d08c096

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

lectures/ifp_egm.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ This looks pretty good.
745745
## Exercises
746746

747747
```{exercise}
748-
:label: ifp_ex1
748+
:label: ifp_egm_ex1
749749
750750
Let's consider how the interest rate affects consumption.
751751
@@ -757,7 +757,7 @@ Your figure should show that, for this model, higher interest rates
757757
suppress consumption (because they encourage more savings).
758758
```
759759

760-
```{solution-start} ifp_ex1
760+
```{solution-start} ifp_egm_ex1
761761
:class: dropdown
762762
```
763763

@@ -785,7 +785,7 @@ plt.show()
785785

786786

787787
```{exercise}
788-
:label: ifp_ex2
788+
:label: ifp_egm_ex2
789789
790790
Let's approximate the stationary distribution by simulation.
791791
@@ -795,7 +795,7 @@ cross-sectional distribution of assets.
795795
Set `num_households=50_000, T=500`.
796796
```
797797

798-
```{solution-start} ifp_ex2
798+
```{solution-start} ifp_egm_ex2
799799
:class: dropdown
800800
```
801801

@@ -886,9 +886,8 @@ more realistic features to the model.
886886

887887

888888

889-
```{exercise-start}
890-
:label: ifp_ex3
891-
```
889+
```{exercise}
890+
:label: ifp_egm_ex3
892891
893892
Following on from exercises 1 and 2, let's look at how savings and aggregate
894893
asset holdings vary with the interest rate
@@ -915,11 +914,9 @@ Use
915914
M = 12
916915
r_vals = np.linspace(0, 0.015, M)
917916
```
918-
919-
```{exercise-end}
920917
```
921918
922-
```{solution-start} ifp_ex3
919+
```{solution-start} ifp_egm_ex3
923920
:class: dropdown
924921
```
925922

0 commit comments

Comments
 (0)