@@ -294,7 +294,7 @@ Looking at the data, we see that democracies tend to have longer-lasting growth
294
294
regimes compared to autocracies (as indicated by the lower probability of
295
295
transitioning from growth to growth in autocracies).
296
296
297
- We can also find a higher probability from collapse to growth in democratic regimes
297
+ We can also find a higher probability from collapse to growth in democratic regimes.
298
298
299
299
300
300
### Defining Markov chains
@@ -411,7 +411,6 @@ def mc_sample_path(P, ψ_0=None, ts_length=1_000):
411
411
X = np.empty(ts_length, dtype=int)
412
412
413
413
# Convert each row of P into a cdf
414
- n = len(P)
415
414
P_dist = np.cumsum(P, axis=1) # Convert rows into cdfs
416
415
417
416
# draw initial state, defaulting to 0
@@ -683,7 +682,7 @@ P = np.array([[0.4, 0.6],
683
682
ψ @ P
684
683
```
685
684
686
- Notice that ` ψ @ P ` is the same as ` ψ `
685
+ Notice that ` ψ @ P ` is the same as ` ψ ` .
687
686
688
687
689
688
@@ -772,11 +771,11 @@ For example, we have the following result
772
771
(strict_stationary)=
773
772
``` {prf:theorem}
774
773
Theorem: If there exists an integer $m$ such that all entries of $P^m$ are
775
- strictly positive, with unique stationary distribution $\psi^*$, and
774
+ strictly positive, with unique stationary distribution $\psi^*$, then
776
775
777
776
$$
778
777
\psi_0 P^t \to \psi^*
779
- \quad \text{as } t \to \infty
778
+ \quad \text{ as } t \to \infty
780
779
$$
781
780
```
782
781
0 commit comments