In simple terms
A friendly intro before the formal notes — no formulas yet.
Predicting the Future, One Step at a Time
A Markov chain tracks a system that moves between a few fixed states at each time step, where the only thing that matters for the next step is the current state. A single matrix stores all the switching probabilities, and multiplying by it walks the system forward in time. Push it far enough and many systems settle into an unchanging steady state.
Suppose you only ever use one of two streaming services, StreamOne or FlixTwo, and each month your choice depends only on last month. If you were on StreamOne, there is an 80% chance you stay and a 20% chance you switch; if you were on FlixTwo, a 30% chance you jump to StreamOne and a 70% chance you stay. Those four numbers are the transition matrix. Knowing today's market split, the matrix predicts next month, the month after, and, if you keep pushing, the long-run split that stops changing no matter how many more months pass.
- 1
Name the states of the system (weather types, brands, locations) and fix their order once, for good.
- 2
Build the transition matrix so each COLUMN lists the probabilities of where you go FROM one state; every column must sum to 1.
- 3
Write the initial state vector as a column showing the starting split across the states.
- 4
Step forward with on the GDC; for the long run, raise to a high power or solve to read off the steady state.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
States, transitions and the Markov property
A Markov chain has two ingredients. First, a finite list of STATES, the distinct conditions the system can occupy, such as 'sunny' and 'rainy', or the brands a customer might buy. Second, TRANSITIONS between those states over discrete time steps: a day, a month, a generation. The defining rule, the Markov property, is that the probability of the next state depends only on the current state. The chain has no memory: a run of ten sunny days changes nothing about tomorrow if today is sunny. That single simplification is what makes the whole model fit into one matrix.
Building the transition matrix $T$
The transition matrix stores every one-step probability. It is square, with one row and one column per state. In this course the convention is that each COLUMN is the current ('from') state and each ROW is the next ('to') state, so the entry in row , column is the probability of moving to state given you are now in state . Read a column top to bottom and you are reading a full probability distribution: all the places the system might go next, starting from that column's state.
For states ordered , the transition matrix is , where and each column satisfies .
Square: one row and one column per state, in a fixed order you choose once.
Columns are 'from', rows are 'to': the entry in row , column is .
Every column sums to 1: each column is a probability distribution, because from any state the system must transition somewhere (possibly staying put).
The state vector and stepping forward in time
The distribution of the system at time is stored in the state vector , a column whose entries are the proportions (or counts) in each state, listed in the same order as the matrix. To advance one step you multiply on the left by : . Advancing again gives , and repeating the pattern produces the closed form for any number of steps. On Paper 2 you never chain the multiplications by hand; you raise to the power directly.
State after steps: . \n The matrix sits on the LEFT and the state vector on the RIGHT; the product is again a column vector.
On Paper 2 you always have your GDC, so learn to enter a matrix, raise it to a power, and multiply it by a vector fluently. Store and in named variables, then evaluate in one line. Doing the arithmetic on the calculator both saves time and removes the multiplication slips that cost accuracy marks.
The long-run steady state
Push a regular Markov chain far enough and the state vector stops changing: it reaches a STEADY STATE (or equilibrium) , where applying once more returns the same vector. That is the defining equation : the flow into each state exactly balances the flow out. Written as , it says is an eigenvector of for eigenvalue , and every transition matrix has as an eigenvalue. Two routes find it: solve as linear equations with the entries constrained to sum to , or raise to a high power and read off a column, since for a regular chain the columns of all converge to .
Steady state: solve with . \n Equivalently, is the eigenvector of for eigenvalue , normalised so its entries sum to 1; or read a column of for large .
Common mistakes examiners penalise
Rows that sum to 1 instead of columns — in this course columns are the 'from' state and each COLUMN must sum to . Writing so the rows sum to transposes the matrix and every later answer is wrong.
Multiplying in the wrong order — the step is , matrix on the left and column vector on the right. Writing with a column vector is undefined, and swapping to a row vector silently changes the convention.
Using instead of — you raise the matrix to the power , you do not multiply the matrix by . .
Solving without the constraint — the equation alone has infinitely many solutions (any multiple of ). You must add (or the population total) to pin down the unique steady state.
Confusing eigenvalue with eigenvalue — the steady state is the eigenvector for eigenvalue (since ), not the null space.
Assuming every chain converges — the high-power method needs a regular chain. Absorbing or cyclic chains need not settle to a single interior steady state, so check the context before quoting one.
Rounding populations too early or leaving fractions of people — carry the GDC's full figures, and round headcounts to whole numbers only at the final step.
Model answer — marked the way our engine marks it
On Paper 2 the marks are analytic: each is tied to a specific line of working, a method mark (M) or an accuracy mark (A), and an accuracy mark depends on the method mark it follows. Follow-through (FT) means an earlier wrong value need not cost you the marks that depend on it, provided the later step is done correctly on your own figure. For matrix work the engine expects to see the set-up , the matrix power computed (GDC allowed), and the answer read in context. Study how each mark below is earned by a specific line.
Where this leads
Markov chains tie the probability you met earlier to the matrices and eigenvectors of the HL algebra strand: the steady state IS an eigenvector, so the eigenvalue-eigenvector machinery you use elsewhere pays off directly here. The same modelling instinct, list the states, capture the one-step rule, then iterate, underlies coupled systems of differential equations later in the course, where matrices again drive a system forward in time and the long-run behaviour is read from eigenvalues. Master the two moves of this topic, stepping forward with and settling down with , and a wide family of dynamic models becomes a single, familiar calculation.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A survey tracks customer loyalty between two coffee shops, Bean Scene (B) and Daily Grind (D). Each month, 80% of Bean Scene's customers return and 20% switch to Daily Grind; of Daily Grind's customers, 30% switch to Bean Scene and the rest stay. Initially Bean Scene holds 60% of the market and Daily Grind 40%. \n (a) Write down the transition matrix . \n (b) Find the market share after 2 months. [6]
- 1
Fix the state order as B then D, and set columns as 'from', rows as 'to'.\n\n**(a) Transition matrix.** From B: stay , switch to D , giving the first column . From D: switch to B , stay , giving the second column .\n\nEach column sums to , as required. [A2: fully correct matrix; A1 for one error]\n\n**(b) After 2 months.** The initial state vector is , and . [M1: correct set-up]\nOn the GDC, , so\n [M1: compute ]\nAfter 2 months Bean Scene holds and Daily Grind . [A1]\n\nThe share happens to return to the start here; that is a coincidence of these numbers, not yet the steady state.
A city has three internet providers: ConnectFast (C), StreamEasy (S) and PingKing (P). Monthly, ConnectFast keeps 85% of its customers, losing 10% to StreamEasy and 5% to PingKing; StreamEasy keeps 75%, losing 15% to ConnectFast and 10% to PingKing; PingKing keeps 80%, losing 10% to ConnectFast and 10% to StreamEasy. Initially C has 20 000 customers, S has 50 000 and P has 30 000. \n (a) Write down the transition matrix . \n (b) Find the number of customers with each provider after 6 months. \n (c) Find the long-term number of customers with each provider, assuming the total stays constant. [8]
- 1
Order the states C, S, P, with columns 'from' and rows 'to'.\n\n**(a) Transition matrix.\n\nEach column sums to . [A2: fully correct; A1 for one error]\n\n(b) After 6 months.** The total is , and . Compute on the GDC. [M1]\n\nAfter 6 months, approximately with ConnectFast, with StreamEasy and with PingKing (rounded to whole customers). [A2: A1 for one slip]\n\n**(c) Long term.** Raise to a high power, e.g. , whose columns become identical. [M1]\n\nso the steady-state proportions are . Multiplying by the constant total : [M1]\nConnectFast , StreamEasy , PingKing . [A1]\n\nIn the long run ConnectFast dominates the market, even though it started with the fewest customers.
A predator population is modelled as a Markov chain over two states, 'high' (H) and 'low' (L), from year to year with transition matrix (states in order H, L). Find the long-run proportion of years in which the population is high, giving your answer as a fraction. [5]
- 1
Let the steady state be with . It satisfies . [M1: set up ]\n\nThe top row gives\n [M1: form a usable equation]\nSo . Substituting into : [M1: use ]\n [A1]\n\nSo , and the population is high in the long run for of years (about ). [A1]\n\nCheck on the GDC: has both columns equal to , confirming the algebra.
The weather is modelled by a Markov chain with transition matrix (states: sunny, rainy). If today is sunny (), find the probability it is sunny in 2 days. [4]
- 1
Model answer — full working.\n\nThe states are ordered sunny then rainy, and each column of sums to . Starting sunny, , and the state after 2 days is\n\n\nCompute on the GDC:\n\n\nThen\n\n\nThe first entry is the probability of sunny, so .\n\n---\nHow our marking engine awards the 4 marks:\n\n- M1 — set-up. Awarded for using (matrix raised to the power, on the left of the initial vector). This is the method mark; it stands even if a later arithmetic value slips.\n- M1 — compute . A method mark for correctly squaring the matrix (GDC allowed), . The engine checks the power was formed, not that it was done by hand.\n- A1 — state vector. Awarded for , the product read off correctly. This accuracy mark depends on the M1s above, and FT applies: a candidate with a slightly different but correctly-multiplied still earns it on their own figures.\n- A1 — final probability. Awarded for identifying the sunny probability as the first entry, . Because simply selects the first column of , a candidate who quotes directly from that column also earns full marks; ISW means later restatements do not lose it.\n\n**'Accept equivalent forms and correct rounding.'** The engine accepts written as or , and accepts the answer whether reached via or by reading the first column of .\n\nBottom line: of the 4 marks, two are method marks that survive an arithmetic slip, and the accuracy marks are shielded by follow-through. A student who writes only '' with no matrix set-up risks losing the two method marks; a student who shows , the squared matrix and the product keeps the method regardless of a slip in the final number.
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
Markov chain
A model of a system that moves between a fixed set of states at discrete time steps, where the probability of the next state depends ONLY on the current state, not on the earlier history. This 'memoryless' property is what lets a single matrix describe the whole process.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Square: one row and one column per state, in a fixed order you choose once.
- ✓
Columns are 'from', rows are 'to': the entry in row , column is .
- ✓
Every column sums to 1: each column is a probability distribution, because from any state the system must transition somewhere (possibly staying put).
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 Markov-chain question marked: set up $T$, compute $\mathbf{s}_n = T^n\mathbf{s}_0$ and find the steady state with full working
Get a Paper 2 Markov-chain question marked: set up , compute and find the steady state with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a Paper 2 Markov-chain question marked: set up $T$, compute $\mathbf{s}_n = T^n\mathbf{s}_0$ and find the steady state with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.