Skip to content

Commit 35aa16d

Browse files
committed
misc
1 parent 4e6859a commit 35aa16d

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

lectures/mccall_model_with_sep_markov.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ This holds because:
509509

510510
These properties ensure the chain is ergodic with a unique stationary distribution $\pi$ over states $(s, w)$.
511511

512-
For an ergodic Markov chain, the ergodic theorem guarantees that time averages = ensemble averages.
512+
For an ergodic Markov chain, the ergodic theorem guarantees that time averages = cross-sectional averages.
513513

514514
In particular, the fraction of time a single agent spends unemployed (across all
515515
wage states) converges to the cross-sectional unemployment rate:
@@ -661,7 +661,12 @@ def plot_cross_sectional_unemployment(model: Model, t_snapshot: int = 200,
661661
plt.show()
662662
```
663663

664-
Now let's compare the time-average unemployment rate (from a single agent's long simulation) with the cross-sectional unemployment rate (from many agents at a single point in time):
664+
Now let's compare the time-average unemployment rate (from a single agent's long simulation) with the cross-sectional unemployment rate (from many agents at a single point in time).
665+
666+
We claimed above that these numbers will be approximately equal in large
667+
samples, due to ergodicity.
668+
669+
Let's see if that's true.
665670

666671
```{code-cell} ipython3
667672
model = create_js_with_sep_model()
@@ -677,28 +682,31 @@ print(f"Cross-sectional unemployment rate (at t=200): "
677682
print(f"Difference: {abs(time_avg_unemp - cross_sectional_unemp):.4f}")
678683
```
679684

685+
Indeed, they are very close.
686+
680687
Now let's visualize the cross-sectional distribution:
681688

682689
```{code-cell} ipython3
683690
plot_cross_sectional_unemployment(model)
684691
```
685692

686-
## Cross-Sectional Analysis with Lower Unemployment Compensation (c=0.5)
693+
## Lower Unemployment Compensation (c=0.5)
687694

688-
Let's examine how the cross-sectional unemployment rate changes with lower unemployment compensation:
695+
What happens to the cross-sectional unemployment rate with lower unemployment compensation?
689696

690697
```{code-cell} ipython3
691698
model_low_c = create_js_with_sep_model(c=0.5)
692699
plot_cross_sectional_unemployment(model_low_c)
693700
```
694701

702+
695703
## Exercises
696704

697705
```{exercise-start}
698706
:label: mmwsm_ex1
699707
```
700708

701-
Create a plot that shows how the steady state cross-sectional unemployment rate
709+
Create a plot that investigates more carefully how the steady state cross-sectional unemployment rate
702710
changes with unemployment compensation.
703711

704712
```{exercise-end}

0 commit comments

Comments
 (0)