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.

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.
Recipe: building T
- Fix an order for the states (here S, R) and use it for both rows and columns.
- Fill one column at a time: column j holds the probabilities of going from state j to each state.
- 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 , 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, . 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 write | Why I do it |
|---|---|
| Order: C, B | Step 1. |
| From C: to C 0.9, to B | Step 2, column 1. The missing probability is 1 minus the given one. |
| From B: to C , to B 0.6 | Column 2. |
| 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: used with . 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.
All notes in HL: Markov chains (AHL 4.19, with AHL 1.15)
- Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹
- Markov Chains: Transition Matrices and State Vectors
- 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.
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