Markov Chains: Transition Matrices and State Vectors | Applications and Interpretation IB Maths notes

Free preview: Markov Chains: Transition Matrices and State Vectors

States, Transitions and the Transition Matrix

Applications and interpretation: HL only (AHL 4.19)

Let's start with the weather in a small town. Each day is either sunny (S) or rainy (R). Tomorrow's weather depends only on today's:

  • If today is sunny, tomorrow is sunny with probability 0.8 and rainy with probability 0.2.
  • If today is rainy, tomorrow is sunny with probability 0.4 and rainy with probability 0.6.

Today is sunny. What is the chance it is sunny in 5 days' time? With a tree diagram you would need 32 branches. There is a much faster way, and it uses matrices.

The words

  • A Markov chain is a process that moves between states in steps, where the probability of the next state depends only on the current state, not on the history.
  • The probabilities of moving between states are transition probabilities. They stay the same at every step.
  • Here the states are S and R, and each step is one day.

Transition diagram: states S and R; S to S 0.8, S to R 0.2, R to S 0.4, R to R 0.6

What the picture shows

  • Each circle is a state. Each arrow is a transition, labelled with its probability.
  • The loops show staying in the same state: 0.8 for sunny to sunny, 0.6 for rainy to rainy.
  • The arrows leaving S add up to 0.8 + 0.2 = 1, and those leaving R to 0.4 + 0.6 = 1. Something must happen tomorrow.

The transition matrix

Put the probabilities in a matrix: each column is the state you come from, each row the state you go to.

from Sfrom Rto S0.80.4to R0.20.6T=(0.80.40.20.6)

Recipe: building T

  1. Fix an order for the states (here S, R) and use it for both rows and columns.
  2. Fill one column at a time: column j holds the probabilities of going from state j to each state.
  3. Check every column adds up to 1. It catches most set-up mistakes.
  • Some books put "from" in rows instead. Columns are the convention used here and with 𝐬n=Tn𝐬0, so stick to it.
  • If a question gives you a matrix whose rows add up to 1, it is using the other convention: then the state is a row vector and you multiply on the right, 𝐬n=𝐬0Tn. Both give the same probabilities.

👀 Watch me do it: a commuter goes by car (C) or bus (B). After a car day, the next day is car with probability 0.9. After a bus day, the next day is bus with probability 0.6. Write T

What I writeWhy I do it
Order: C, BStep 1.
From C: to C 0.9, to B 1−0.9=0.1Step 2, column 1. The missing probability is 1 minus the given one.
From B: to C 1−0.6=0.4, to B 0.6Column 2.
T=(0.90.40.10.6)Rows are "to C" and "to B".
Columns: 0.9 + 0.1 = 1, 0.4 + 0.6 = 1 ✓Step 3. Notice the rows do not add to 1, and they don't need to.

📝 Here's the trap

  • Putting "from" in the rows by accident. Wrong: (0.90.10.40.6) used with T𝐬0. Its columns add to 1.3 and 0.7, which is the warning sign.

✏️ YOUR TURN 1

Try this first:

A shop's customers pay by card (C) or cash (K). After paying by card, 85% pay by card next time. After paying cash, 40% switch to card next time. Write down T (order C, K) and check it.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Markov chains (AHL 4.19, with AHL 1.15)

  1. Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹
  2. Markov Chains: Transition Matrices and State Vectors
  3. Steady States and Long-Term Behaviour of Markov Chains

What's inside for this topic

3 teacher notes, 57 practice questions, 28 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹ Next note: Steady States and Long-Term Behaviour of Markov Chains

All Applications and Interpretation IB Maths topics · IB Maths