KS Maths
Topic 4.19 · AI Higher Level

Transition matrices and steady states

Three different starts. One ending.

Why a steady state question never gives you the starting distribution, and how to find the answer without one.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

state
Write the answer with no working needed.State the gradient of the line.
matrix
A rectangle of numbers in rows and columns.A matrix with 2 rows and 2 columns.
half
One of two equal parts. Divide by 2.Half of 10 is 5.
probability
How likely it is that something happens, from 0 to 1.The probability of heads is one half.
add
Put numbers together to find the total.Add 3 and 4 to get 7.
write down
Give the answer with little or no working.Write down the median.
multiply
Add the same number many times. Find a product.3 multiplied by 4 is 12.
vector
A quantity with both size and direction. It is often drawn as an arrow.A move of 3 right and 2 up is a vector.
tree diagram
A diagram with branches that shows all outcomes and their probabilities.A tree diagram for two coin tosses.
converge
Get closer and closer to one value.The terms converge to zero.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Multiply the matrix with rows (0.5, 0.3) and (0.5, 0.7) by the column vector (0.4, 0.6). Give the two entries of the answer.
    Answer

    First entry: 0.5 Ă— 0.4 + 0.3 Ă— 0.6 = 0.38. Second entry: 0.5 Ă— 0.4 + 0.7 Ă— 0.6 = 0.62. Each entry is a row times the column, and the two entries add to 1, as a distribution should.

  2. Solve a + b = 1 together with b = 3a.
    Answer

    Substitute: a + 3a = 1, so 4a = 1, a = 0.25 and b = 0.75. Using the two equations together is the move the steady state needs.

  3. Today a person is on the bus with probability 0.7. If on the bus today, the probability of the bus tomorrow is 0.9; if not, it is 0.4. Find the probability of the bus tomorrow.
    Answer

    0.7 Ă— 0.9 + 0.3 Ă— 0.4 = 0.63 + 0.12 = 0.75. Two branches that end on the bus, added. This is what one step of a transition matrix does.

  4. Does each column of the matrix with rows (0.6, 0.3) and (0.4, 0.9) sum to 1? What does that tell you?
    Answer

    The first column gives 0.6 + 0.4 = 1, but the second gives 0.3 + 0.9 = 1.2. A transition matrix must have columns summing to 1 (everyone has to go somewhere), so this one is not valid.

Words used in this lesson
state
one of the situations the system can be in. For example: a student is either “on the bus” or “not on the bus”.
transition
a move from one state to another. For example: from bus to walking is a transition.
transition matrix
a table of the probabilities of every transition. For example: its columns each add up to 1.
probability vector
a list of probabilities for the states, adding to 1. For example: (0.6, 0.4) is a probability vector.
long run
after a very large number of steps. For example: the long-run share of drivers.
steady state
the distribution that does not change from one step to the next. For example: Ts = s describes it.
converge
get closer and closer to one value. For example: the three lines converge to the same level.
absorbing state
a state that, once entered, is never left. For example: a machine that stays broken once broken.
proportion
a share of the whole, as a fraction or decimal. For example: 0.25 of the commuters.
in context
using the words of the situation in your answer. For example: “most commuters use the BTS” rather than just “0.7”.

Predict first. The half and half district starts with 50% of people on the BTS. Using only the percentages in the opening paragraph (80% of BTS users stay, 30% of drivers switch to the BTS), decide whether its BTS share will go up or down in the first week, and by roughly how much. Do this before you press play.

Then check

Now press play and read the half and half figure at week 1. Was your direction right? Check your reasoning by multiplying the matrix by the starting column, and say which of the two groups of people changed the total.

Higher Level

Bangkok commuters switch between the BTS and driving each week. Of BTS users, 80% stay with the BTS; of drivers, 30% switch to the BTS. Three districts start completely differently: all BTS, all driving, and half and half. Press play and watch the three lines.

proportion using the BTSweeks4812160.250.50.751steady state 0.6
100.0%from all BTS
0.0%from all driving
50.0%from half and half

All three districts have the same matrix. Only their starting week differs.

The matrix

Write the state as a column, BTS on top. Each column of T holds the destinations for one starting state, so every column sums to 1.

from BTSfrom driving
to BTS0.80.3
to driving0.20.7

The same chain as a transition diagram. Each arrow is one entry of T, and the arrows leaving a state add to 1. Questions often give the diagram and expect you to write T from it.

BTS driving 0.2 0.3 0.8 0.7

sn+1 = T sn, and so sn = Tn s0. To get the state in week 10, raise the matrix to the tenth power on your calculator and multiply, rather than stepping ten times by hand.

Check which way round your matrix is. Written as columns-from, the state is a column and T goes on the left. Written as rows-from, the state is a row and it goes on the left instead: sn+1 = sn T. Both conventions are in use. The test that settles it in two seconds is which direction sums to 1.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI HL Mock Exam Pack, $25BuyPlan $99