I make these notes available with the intent of making it easier to plan and/or take notes from class.
Student facing resources for each topic are all available at vknight.org/gt/.
Ask students to identify states of a student on an undergraduate degree
Lead students to identify a transition matrix, for example:
\[P = \begin{pmatrix} 0.15 & 0.6 & 0 & 0 & 0 & 0 & 0.25 & 0 \\ 0 & 0.15 & 0.3 & 0 & 0.2 & 0.1 & 0.25 & 0 \\ 0 & 0 & 0.1 & 0.15 & 0 & 0 & 0.05 & 0.7 \\ 0 & 0 & 0 & 0.1 & 0 & 0 & 0 & 0.9 \\ 0 & 0 & 0.9 & 0 & 0 & 0 & 0.1 & 0 \\ 0 & 0 & 0.9 & 0 & 0 & 0.05 & 0.05 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \end{pmatrix}\]Now discuss where the identify sub matrix is and what that corresponds to.
Give general form of an absorbing Markov chain:
\[P = \begin{pmatrix} Q & R\\ 0 & 1\\ \end{pmatrix}\]Then discuss fundamental matrix:
\[N = (1 - Q) ^ {-1}\]Where the entries of $N_{ij}$ gives average number of times in step $j$ giving starting in step $i$ before absorption.
Then discuss absorption probability matrix:
\[B = NR\]$B_{ij}$ is the probability of eventually being absorbed in to absorbing state $j$ when being in state $i$.
Use the following code to make the calculations here:
import numpy as np
P = np.array(
(
(.15, .6, 0, 0, 0, 0, .25, 0),
(0, .15, .3, 0, .2, .1, .25, 0),
(0, 0, 0.1, 0.15, 0, 0, .05, 0.7),
(0, 0, 0, .1, 0, 0, 0, .9),
(0, 0, .9, 0, 0, 0, .1, 0),
(0, 0, .9, 0, 0, 0.05, .05, 0),
(0, 0, 0, 0, 0, 0, 1, 0),
(0, 0, 0, 0, 0, 0, 0, 1),
)
)
assert all(P.sum(axis=1) == 1)
Q = P[:-2,:-2]
R = P[:-2,-2:]
I = P[-2:,-2:]
N = np.linalg.inv(np.eye(len(Q)) - Q)
B = N @ R
Discuss the Absorbing Markov chain appendix: specifically highlighting the Guassian elimination algorithm for computing the matrix inverse.
Source code: @drvinceknight Powered by: Jekyll Github pages Bootsrap css