Skip to content

Commit 0eccdd3

Browse files
committed
Fix exercise admonition syntax and labels in mccall_risk
- Convert first exercise from backtick to MyST curly brace syntax - Add labels to both exercises (mcr_ex0, mcr_ex1) - Add exercise references to solution-start directives - Add dropdown class to solutions for consistency - Ensure all exercise/solution pairs are properly matched
1 parent a844f03 commit 0eccdd3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lectures/mccall_risk.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ than its expected value.
261261
The next exercise asks you to study the impact of a mean-preserving spread on
262262
the risk-adjusted expectation.
263263

264-
```exercise
264+
```{exercise}
265+
:label: mcr_ex0
266+
265267
Keep $Y \sim \text{Beta}(2, 2)$ and fix $\theta = -2$.
266268
267269
Using Monte Carlo again, calculate
@@ -280,7 +282,8 @@ risk averse)?
280282
Use a plot to illustrate your results.
281283
```
282284

283-
```{solution-start}
285+
```{solution-start} mcr_ex0
286+
:class: dropdown
284287
```
285288

286289
Here's our solution.
@@ -637,7 +640,7 @@ Therefore, they are willing to accept lower wages to escape unemployment.
637640
+++
638641

639642
```{exercise}
640-
:label: jsr_ex1
643+
:label: mcr_ex1
641644
642645
Use simulation to investigate how the long-run unemployment rate varies with $\theta$.
643646
@@ -649,7 +652,7 @@ You can use code for simulation from {doc}`mccall_fitted_vfi`, suitably modified
649652

650653
+++
651654

652-
```{solution-start} jsr_ex1
655+
```{solution-start} mcr_ex1
653656
:class: dropdown
654657
```
655658

0 commit comments

Comments
 (0)