Home › IB Maths AI HL › Exam practice › Markov Chains

IB Maths AI HL · Unit 4

Markov Chains: AI HL exam practice with markscheme

Covers markov chains. 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 · 35 marks · about 42 minutes · 3 Paper 1 style, 7 Paper 2 style

Download the PDF 5 pages, worked solutions after the questions

Question 1

3 marks · Paper 1 style · calculator allowed

A Markov chain has the transition matrix T=(0.70.20.30.8). The initial state vector is S0=(0.40.6).

Calculate the state vector after one transition, S1.

[3]

Show solution

S1=TS0=(0.70.20.30.8)(0.40.6). M1
Row 1: 0.7(0.4)+0.2(0.6)=0.28+0.12=0.40. A1
Row 2: 0.3(0.4)+0.8(0.6)=0.12+0.48=0.60.
S1=(0.40.6). A1

Answer: (0.4,0.6)

Question 2

2 marks · Paper 1 style · calculator allowed

In a Markov chain the probability of moving from state A to state B is 0.35.

Write down the probability of staying in A and explain why each column of a transition matrix sums to 1. [2]

Show solution

0.65 A1

from any state the system must move to some state R1

Answer: 0.65

Question 3

3 marks · Paper 2 style · calculator allowed

The weather is sunny (S) or rainy (R). After a sunny day the next is sunny with probability 0.75; after a rainy day the next is rainy with probability 0.6. Today is sunny.

Find the probability that it is sunny in 3 days' time. [3]

Show solution

T=(0.750.40.250.6) A1

T3(10) M1

0.632 A1

Answer: 0.632

Question 4

3 marks · Paper 2 style · calculator allowed

With the same weather model T=(0.750.40.250.6):

Find the long-run proportion of sunny days. [3]

Show solution

0.25s=0.4(1−s) M1A1

813 A1

Answer: 813

Question 5

3 marks · Paper 2 style · calculator allowed

A car hire firm has offices in towns A and B. Each week 80% of cars at A stay at A, and 70% of cars at B stay at B. There are 60 cars at A and 40 at B.

Find the number of cars at each office after 2 weeks. [3]

Show solution

T=(0.80.30.20.7) A1

T2(6040) M1

A: 60, B: 40 A1

Answer: 60 at A, 40 at B

Question 6

3 marks · Paper 1 style · calculator allowed

A transition matrix is (0.90.30.10.7).

Find the steady-state vector. [3]

Show solution

0.1a=0.3b, a+b=1 M1A1

(0.750.25) A1

Answer: (0.750.25)

Question 7

4 marks · Paper 2 style · calculator allowed

A Markov chain has two states, A and B. The transition matrix is T=(0.70.40.30.6). The initial state matrix is S0=(0.50.5).

Find the state matrix after two transitions, S2.

[4]

Show solution

S2=T2S0 M1
T2=(0.70.40.30.6)(0.70.40.30.6)=(0.610.520.390.48) A1
S2=(0.610.520.390.48)(0.50.5) M1
=(0.5650.435) A1

Answer: (0.565,0.435)

Question 8

3 marks · Paper 2 style · calculator allowed

A mouse moves between rooms 1, 2 and 3 with transition matrix (columns are the current room) (0.50.20.30.30.60.20.20.20.5).

Find the long-run proportion of time spent in each room. [3]

Show solution

solve Ts=s, entries sum to 1 M1

room 1: 0.327, room 2: 0.388 A1

room 3: 0.286 A1

Answer: 0.327, 0.388, 0.286

Question 9

5 marks · Paper 2 style · calculator allowed

Find the steady state probability vector for the transition matrix T=(0.70.40.30.6).

[5]

Show solution

Let the steady state vector be (xy).
T(xy)=(xy) and x+y=1 M1
0.7x+0.4y=x⟹0.4y=0.3x⟹y=34x A1
Substitute into sum: x+0.75x=1⟹1.75x=1 M1
x=11.75=47 A1
y=1−47=37. Steady state vector is (4/73/7) A1

Answer: (4/7,3/7)

Question 10

6 marks · Paper 2 style · calculator allowed

A Markov chain models the choice of gym made each month by members of two gyms, A and B. The transition matrix is T=(0.9a0.1b), where columns represent the current state and rows represent the next state.

  1. Find the values of a and b, given that 15% of members who use gym B this month will use gym A next month.
  2. Calculate the steady state probability vector for this Markov chain.

[6]

Show solution
  1. From the prompt, a=0.15. A1
    Columns must sum to 1, so b=1−0.15=0.85. A1
  2. Let steady state be (xy). T(xy)=(xy) and x+y=1. M1
    0.9x+0.15y=x⟹0.15y=0.1x⟹x=1.5y. M1
    Substitute into sum: 1.5y+y=1⟹2.5y=1⟹y=0.4. A1
    x=0.6. Steady state vector is (0.60.4). A1

Answer: (a) 0.15; (b) 0.85; (Steady state vector) (0.6,0.4)

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. Previous topic: Linear Combinations of Random Variables & The Central Limit Theorem. Next topic: Markov Chains and Transition Matrices. Every AI HL topic.

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