4×4 Matrix{Float64}:
0.5 0.5 0.0 0.0
0.5 0.0 0.5 0.0
0.5 0.0 0.0 0.5
0.0 0.0 0.0 1.0
Class 10
In a sequence of independent coin flips, let \(N\) denote the number of flips until there are 3 consecutive heads.
States:
0: Either we just started or we just flipped a tail
1: We just flipped a head, either as a first flip, or after a tail
2: Second head in a row
3: Either we just flipped the third head in a row, or we had 3 heads in a row in the past.
\[\Large\quad\mathbf{P} = \begin{bmatrix} .5 & .5 & 0 & 0 \\ .5 & 0 & .5 & 0 \\ .5 & 0 & 0 & .5 \\ 0 & 0 & 0 & \color{red}{1} \end{bmatrix}\]
Given a Markov Chain with states 1, 2, 3, 4, and 5, with some transition probabilities
Starting at state 1, what is the probability that the first time you enter a state greater than 2 is on step 4?
You have 5 stations, a message sent from each station will end up at any of the stations with the following probabilities:
\[\mathbf{P} = \begin{bmatrix} .1 & .2 & .5 & 0 & .2 \\ .3 & 0 & .7 & 0 & 0 \\ .6 & .1 & .3 & 0 & 0 \\ 0 & 0 & 0 & .6 & .4 \\ 0 & 0 & 0 & .3 & .7 \end{bmatrix}\]
Definition: State \(j\) is accessible from state \(i\) if \(P^n_{ij} > 0\) for some \(n\).
Definition: States \(i\) and \(j\) communicate (denoted \(i \leftrightarrow j\)) if \(i\) is accessible from \(j\) and \(j\) is accessible from \(i\).
\({}\leftrightarrow{}\) is an equivalence relation on the set of all states.
It splits the set of states into equivalence classes
\[\mathbf{P} = \begin{bmatrix} .1 & .2 & .5 & 0 & .2 \\ .3 & 0 & .7 & 0 & 0 \\ .6 & .1 & .3 & 0 & 0 \\ 0 & 0 & 0 & .6 & .4 \\ 0 & 0 & 0 & .3 & .7 \end{bmatrix}\]