Skip to content

Commit 088d92b

Browse files
committed
fix syntax for example
1 parent 112e3c5 commit 088d92b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lectures/markov_chains_I.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -636,17 +636,15 @@ The probability of being in recession (either mild or severe) in 6 months' time
636636
$$
637637
(\psi_t P^6)(1) + (\psi_t P^6)(2)
638638
$$
639-
```{index} single: Markov Chains; Cross-Sectional Distributions
639+
640640
```
641641

642642
```{index} single: Markov Chains; Cross-Sectional Distributions
643643
```
644644

645-
```{prf:example} Cross-Sectional Distributions
645+
````{prf:example} Cross-Sectional Distributions
646646
:label: cross-sectional-distributions
647647
648-
### Example 2: Cross-Sectional Distributions
649-
650648
The distributions we have been studying can be viewed either
651649
652650
1. as probabilities or
@@ -674,16 +672,15 @@ So for a very large (tending to infinite) population, $\psi_t P^{10}$ also repre
674672
675673
This is exactly the cross-sectional distribution.
676674
677-
```{note}
675+
```{note}
678676
A cross-sectional frequency measures how a particular variable (e.g., employment status) is distributed across a population at a specific time, providing information on the proportions of individuals in each possible state of that variable.
679677
```
680678
681-
679+
````
682680

683681
(stationary)=
684682
## Stationary distributions
685683

686-
687684
As seen in {eq}`fin_mc_fr`, we can shift a distribution forward one
688685
unit of time via postmultiplication by $P$.
689686

@@ -698,8 +695,6 @@ P = np.array([[0.4, 0.6],
698695

699696
Notice that `ψ @ P` is the same as `ψ`.
700697

701-
702-
703698
Such distributions are called **stationary** or **invariant**.
704699

705700
(mc_stat_dd)=
@@ -753,7 +748,7 @@ corresponds to unemployment (state 0).
753748
Using $\psi^* = \psi^* P$ and a bit of algebra yields
754749

755750
$$
756-
p = \frac{\beta}{\alpha + \beta}
751+
p = \frac{\beta}{\alpha + \beta}
757752
$$
758753

759754
This is, in some sense, a steady state probability of unemployment.

0 commit comments

Comments
 (0)