You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/markov_chains_I.md
+23-28Lines changed: 23 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -812,48 +812,43 @@ P = np.array([[0.971, 0.029, 0.000],
812
812
P @ P
813
813
```
814
814
815
-
Let's pick some initial distributions $\psi_1, \psi_2, \psi_3$ and trace out the sequence of distributions $\psi_iP^t$ for $t = 0, 1, 2, \ldots$ and $i=1, 2, 3$.
815
+
Let's pick an initial distribution $\psi_0$ and trace out the sequence of distributions $\psi_0 P^t$ for $t = 0, 1, 2, \ldots$
816
816
817
+
First, we write a function to iterate the sequence of distributions for `ts_length` period
817
818
818
819
```{code-cell} ipython3
819
-
ψ_1 = (0.0, 0.0, 1.0)
820
-
ψ_2 = (1.0, 0.0, 0.0)
821
-
ψ_3 = (0.0, 1.0, 0.0) # Three initial conditions
822
-
colors = ['blue','red', 'green'] # Different colors for each initial point
0 commit comments