Skip to content

Commit f695b08

Browse files
committed
Update markov_chains_I.md
1 parent 34b0d72 commit f695b08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lectures/markov_chains_I.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,8 @@ def iterate_ψ(ψ_0, P, ts_length):
829829
Now we plot the sequence
830830

831831
```{code-cell} ipython3
832+
:tags: hide-input
833+
832834
ψ_1 = (0.0, 0.0, 1.0)
833835
ψ_2 = (1.0, 0.0, 0.0)
834836
ψ_3 = (0.0, 1.0, 0.0) # Three initial conditions
@@ -878,7 +880,7 @@ HTML(anim.to_jshtml())
878880
Here
879881

880882
* $P$ is the stochastic matrix for recession and growth {ref}`considered above <mc_eg2>`.
881-
* The red, blue and green dots are initial marginal probability distribution $\psi_1, \psi_2, \psi_3$, represented as a vector in $\mathbb R^3$.
883+
* The red, blue and green dots are initial marginal probability distributions $\psi_1, \psi_2, \psi_3$, each of which is represented as a vector in $\mathbb R^3$.
882884
* The transparent dots are the marginal distributions $\psi_i P^t$ for $t = 1, 2, \ldots$, for $i=1,2,3.$.
883885
* The yellow dot is $\psi^*$.
884886

@@ -917,6 +919,8 @@ We can see similar phenomena in higher dimensions.
917919
The next figure illustrates this for a periodic Markov chain with three states.
918920

919921
```{code-cell} ipython3
922+
:tags: hide-input
923+
920924
ψ_1 = (0.0, 0.0, 1.0)
921925
ψ_2 = (0.5, 0.5, 0.0)
922926
ψ_3 = (0.25, 0.25, 0.5)

0 commit comments

Comments
 (0)