Home › IB Maths AI HL › Exam practice › Markov Chains and Transition Matrices

IB Maths AI HL · Unit 4

Markov Chains and Transition Matrices: AI HL exam practice with markscheme

Covers markov chains and transition matrices. Work through the 10 questions on paper as if it were the exam, then open each solution and mark your work against the markscheme.

10 questions · 37 marks · about 44 minutes · 5 Paper 1 style, 5 Paper 2 style

Download the PDF 5 pages, worked solutions after the questions

Question 1

4 marks · Paper 1 style · calculator allowed

A system is modelled by the transition matrix T=(0.70.20.30.8).
The initial state of the system is given by the column vector s0=(10050).
Calculate the exact state vector after one transition, s1.

[4]

Show solution

The state after one transition is s1=Ts0. [M1]
s1=(0.70.20.30.8)(10050). [M1]
Row 1: (0.7×100)+(0.2×50)=70+10=80. [A1]
Row 2: (0.3×100)+(0.8×50)=30+40=70. [A1]
s1=(8070).

Answer: (80,70)

Question 2

2 marks · Paper 1 style · calculator allowed

T=(0.60.20.40.8) and s0=(10).

Find s1 and s2. [2]

Show solution

(0.60.4) A1

(0.440.56) A1

Answer: (0.60.4), (0.440.56)

Question 3

2 marks · Paper 1 style · calculator allowed

The steady state of (1−aba1−b) satisfies as1=bs2.

Find the steady state when a=0.2 and b=0.3. [2]

Show solution

0.2s1=0.3(1−s1) M1

(0.60.4) A1

Answer: (0.60.4)

Question 4

2 marks · Paper 2 style · calculator allowed

A gym member attends (A) or skips (K) each week. T=(0.80.350.20.65), columns for this week.

A member attends this week. Find the probability they attend in 2 weeks' time. [2]

Show solution

0.8(0.8)+0.2(0.35) M1

0.71 A1

Answer: 71100

Question 5

3 marks · Paper 2 style · calculator allowed

A student is either on time (O) or late (L). If on time, the probability of being on time the next day is 0.9; if late, it is 0.5.

Write the transition matrix and find the long-run proportion of late days. [3]

Show solution

(0.90.50.10.5) A1

0.1o=0.5(1−o) M1

late 16 A1

Answer: 16

Question 6

3 marks · Paper 2 style · calculator allowed

A transition matrix has eigenvalues 1 and 0.4, with eigenvector (32) for λ=1.

Write down the steady-state probabilities and explain why the chain approaches them. [3]

Show solution

(0.60.4) A2

0.4n→0 R1

Answer: (0.60.4)

Question 7

4 marks · Paper 2 style · calculator allowed

Customers buy brand X or brand Y. Of X buyers, 70% buy X again next month; of Y buyers, 40% switch to X. Initially 50% buy each.

Find the proportion buying X after 2 months and in the long run. [4]

Show solution

T=(0.70.40.30.6) A1

T2(0.50.5): 0.565 A1

0.3x=0.4(1−x) M1

47 A1

Answer: 0.565; 47

Question 8

5 marks · Paper 1 style · calculator allowed

A car rental company operates in two cities, City X and City Y. - A car rented in City X has a 70% chance of being returned to City X, and a 30% chance of being returned to City Y. - A car rented in City Y has a 90% chance of being returned to City Y, and a 10% chance of being returned to City X.
Currently, there are 400 cars in City X and 200 cars in City Y.
Using your GDC, find the number of cars expected to be in City X after 5 rental cycles (transitions). Round your answer to the nearest whole car.

[5]

Show solution

Transition matrix (columns = from X, Y): T=(0.70.10.30.9). [A1]
Initial state s0=(400200). [A1]
We need s5=T5s0. [M1]
Using GDC: (0.70.10.30.9)5(400200)=(169.44430.56). [M1]
Number of cars in City X ≈169 cars. [A1]

Answer: 169

Question 9

4 marks · Paper 2 style · calculator allowed

A town's population moves between the centre (C) and the suburbs (S). Each year 15% of C moves to S and 5% of S moves to C. Now 40000 live in C and 60000 in S.

Find the population of C after 5 years and in the long run. [4]

Show solution

T=(0.850.050.150.95) A1

T5s0 M1

29900 A1

long run 25000 A1

Answer: 29900; 25000

Question 10

8 marks · Paper 1 style · calculator allowed

A transition matrix has an unknown probability k: T=(0.4k0.61−k) The long-term steady state probability of being in state 1 is exactly 0.25.
Find the exact value of k.

[8]

Show solution

Let steady state be s=(0.250.75) (since components must sum to 1). [M1][A1]
Ts=s⟹(0.4k0.61−k)(0.250.75)=(0.250.75). [M1]
Read the first row equation:
(0.4×0.25)+(k×0.75)=0.25. [M1][A1]
0.10+0.75k=0.25. [A1]
0.75k=0.15. [M1]
k=0.15/0.75=1/5=0.2. [A1]

Answer: 0.2

How the marks work: M marks are for a correct method, A marks for an accurate answer that follows it, R marks for a reason, and AG means the answer is given in the question. A mark in brackets, like (M1), can be implied by later correct work.

Notes, worked examples and more questions on this topic: AI HL Markov Chains and Transition Matrices. Previous topic: Markov Chains. Next topic: Probability. Every AI HL topic.

Revise first with the AI HL revision notes, then finish on real papers: IB Maths AI HL past papers.