Skip to content

Commit 1377f9b

Browse files
committed
improve based on comments
1 parent ae592bd commit 1377f9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lectures/markov_chains.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,9 +1103,9 @@ for x0 in x0s:
11031103
11041104
for i in range(n_state):
11051105
axes[i].axhline(ψ_star[i], linestyle='dashed', lw=2, color = 'black',
1106-
label = fr'$\psi^*({i})$')
1106+
label = fr'$\psi^*(i)$')
11071107
axes[i].set_xlabel('t')
1108-
axes[i].set_ylabel(fr'$\psi({i})$')
1108+
axes[i].set_ylabel(fr'$\psi(i)$')
11091109
axes[i].legend()
11101110
11111111
plt.show()
@@ -1144,7 +1144,7 @@ for x0 in x0s:
11441144
for i in range(n_state):
11451145
axes[i].axhline(ψ_star[i], linestyle='dashed', lw=2, color = 'black', label = fr'$\psi^* ({i})$')
11461146
axes[i].set_xlabel('t')
1147-
axes[i].set_ylabel(fr'$\psi({i})$')
1147+
axes[i].set_ylabel(fr'$\psi(i)$')
11481148
axes[i].legend()
11491149
11501150
plt.show()
@@ -1318,7 +1318,7 @@ codes_B = ( '1','2','3','4','5','6','7','8')
13181318
np.linalg.matrix_power(P_B, 10)
13191319
```
13201320

1321-
We find rows of transition matrix converge to the stationary distribution
1321+
We find that rows of the transition matrix converge to the stationary distribution
13221322

13231323
```{code-cell} ipython3
13241324
mc = qe.MarkovChain(P_B)
@@ -1349,7 +1349,7 @@ ax.legend()
13491349
plt.show()
13501350
```
13511351

1352-
Note that the average time spent at each state quickly converges to the stationary distribution.
1352+
Note that the fraction of time spent at each state quickly converges to the probability assigned to that state by the stationary distribution.
13531353

13541354
```{solution-end}
13551355
```

0 commit comments

Comments
 (0)