Skip to content

Commit

Permalink
Update markov_chains_I.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingni0117 authored Dec 14, 2023
1 parent f46622b commit f0d3fd6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lectures/markov_chains_I.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Looking at the data, we see that democracies tend to have longer-lasting growth
regimes compared to autocracies (as indicated by the lower probability of
transitioning from growth to growth in autocracies).

We can also find a higher probability from collapse to growth in democratic regimes
We can also find a higher probability from collapse to growth in democratic regimes.


### Defining Markov chains
Expand Down Expand Up @@ -411,7 +411,6 @@ def mc_sample_path(P, ψ_0=None, ts_length=1_000):
X = np.empty(ts_length, dtype=int)
# Convert each row of P into a cdf
n = len(P)
P_dist = np.cumsum(P, axis=1) # Convert rows into cdfs
# draw initial state, defaulting to 0
Expand Down Expand Up @@ -683,7 +682,7 @@ P = np.array([[0.4, 0.6],
ψ @ P
```

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



Expand Down Expand Up @@ -772,11 +771,11 @@ For example, we have the following result
(strict_stationary)=
```{prf:theorem}
Theorem: If there exists an integer $m$ such that all entries of $P^m$ are
strictly positive, with unique stationary distribution $\psi^*$, and
strictly positive, with unique stationary distribution $\psi^*$, then
$$
\psi_0 P^t \to \psi^*
\quad \text{as } t \to \infty
\quad \text{ as } t \to \infty
$$
```

Expand Down

0 comments on commit f0d3fd6

Please sign in to comment.