Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Transition matrices

Transition diagrams and transition matrices

20 practice questions 0 video lessons Theory + worked examples

Model how people, animals or cars move between states with transition matrices in Year 12 VCE General Mathematics. Each week some Melbourne commuters swap the train for the car, and some drivers switch back. A transition diagram shows these moves as arrows with proportions, and a transition matrix stores the same numbers in a grid that technology can work with.

You will turn diagrams, written descriptions and tables of survey counts into transition matrices with this period as the columns and next period as the rows, check that every column adds to 1, and find missing elements. You will also read what each element means and count how many members move, ready to predict future states with matrix recurrence next.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A transition diagram and its transition matrix show how a group moves between states from one period to the next. This Year 12 General Mathematics guide for students in Victoria shows how to write the matrix with columns as from and rows as to, read its elements, find missing values and build a matrix from survey counts.

A transition diagram shows how the members of a group move between a set of states from one time period to the next. Each state is a circle. An arrow from one state to another carries the proportion (or percentage) that makes that move, and a loop shows the proportion that stays where it is.

The same information goes into a square transition matrix \(T\). Here the columns are the states this period (where members come from) and the rows are the states next period (where they go to). The element \(t_{ij}\), in row \(i\) and column \(j\), is the proportion of state \(j\) that moves to state \(i\).

Everyone in a state this period ends up in exactly one state next period, so the elements in every column add to \(1\) (or \(100\%\)), and no element is negative. The arrows leaving a state, including its loop, fill that state's column. A state with a loop of \(1\) and no arrows out keeps everyone who reaches it: its column is all \(0\) except a \(1\) on the leading diagonal (for example, animals that have left a reserve for good).

Key idea. Columns are from, rows are to. Read the column of the state you start in, then the row of the state you end in. Each column adds to \(1\).
Match or homeG to G 0.8, G to H 0.2, H to G 0.45, H to H 0.55. G H 0.8 0.2 0.45 0.55
\[\begin{array}{rcccl} & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}\text{this} & \text{week}\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}G & H\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.8\\ 0.2\end{array}\right. & \left.\begin{array}{c}0.45\\ 0.55\end{array}\right] & \begin{array}{c}G\\ H\end{array} & \text{next week}\end{array}\]
Football club members go to the match (\(G\)) or watch at home (\(H\)). The arrows leaving \(G\) (\(0.8\) and \(0.2\)) make column \(G\); the arrows leaving \(H\) (\(0.45\) and \(0.55\)) make column \(H\).
Weekend outingsC: 50% stay, 30% to B, 20% to H. B: 20% to C, 60% stay, 20% to H. H: 10% to C, 20% to B, 70% stay. C B H 50% 30% 20% 20% 60% 20% 10% 20% 70%
\[\begin{array}{rccccl} & & \llap{\text{this}\ }\rlap{\text{weekend}} & & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right.}C & B & H\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.5\\ 0.3\\ 0.2\end{array}\right. & \begin{array}{c}0.2\\ 0.6\\ 0.2\end{array} & \left.\begin{array}{c}0.1\\ 0.2\\ 0.7\end{array}\right] & \begin{array}{c}C\\ B\\ H\end{array} & \text{next weekend}\end{array}\]
Three states with percentages: cinema (\(C\)), bowling (\(B\)) and home (\(H\)). Write each percentage as a decimal. Each column adds to \(1\), for example \(0.5 + 0.3 + 0.2 = 1\).

The element in row \(i\), column \(j\) of a transition matrix:

\[t_{ij} = \text{proportion of state } j \text{ (this period) that is in state } i \text{ next period}\]
tij=proportion moving from state j to state i

Every column adds to \(1\), so a missing element is \(1\) minus the rest of its column:

\[t_{1j} + t_{2j} + \dots + t_{nj} = 1\]
t1j+⋯+tnj=1

The expected number making one move:

\[\text{number moving from } j \text{ to } i = t_{ij} \times \text{number in state } j\]
number moving=tij×number in state j

From a table of counts (this period across the top), divide each count by its column total:

\[t_{ij} = \dfrac{\text{count moving from } j \text{ to } i}{\text{column total for } j}\]
tij=count from j to icolumn total for j

How to write a transition matrix

  1. Fix the order of the states and use it for both the columns (this period) and the rows (next period). Label the matrix with the state letters.
  2. Fill one column at a time. For each state, take the arrows leaving it (including its loop) and put each proportion in the row of the state it goes to. Change percentages to decimals.
  3. Fill any gaps using the column total: a missing element is \(1\) minus the other elements of its column. A state with no arrow to another state has a \(0\) there.
  4. Check that every column adds to \(1\) and that no element is negative.

How to read a transition matrix

  1. Find the column of the state the members are in now.
  2. Go down to the row of the state they move to. That element is the proportion.
  3. Multiply by the number in the starting state to find how many make that move.
Example 1 β€” From words to a matrix
Each weekend, Melbourne families visit either the beach (\(B\)) or a park (\(P\)). Of the families at the beach this weekend, \(60\%\) go to the beach again next weekend and the rest go to a park. Of the families at a park, \(25\%\) go to the beach next weekend and the rest go to a park again. (i) Write the transition matrix \(T\) (this weekend as the columns, order \(B\), \(P\)). (ii) This weekend \(300\) families are at a park. How many of them are expected at the beach next weekend?
Solution

Each state this weekend gives one column. “The rest” is \(1\) minus the given proportion.

\(B \to B\)\(=\)\(0.6\)
\(B \to P\)\(=\)\(1 - 0.6\)
\(\)\(=\)\(0.4\)
\(P \to B\)\(=\)\(0.25\)
\(P \to P\)\(=\)\(1 - 0.25\)
\(\)\(=\)\(0.75\)
\[\begin{array}{rcccl} & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}\text{this} & \text{weekend}\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}B & P\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.6\\ 0.4\end{array}\right. & \left.\begin{array}{c}0.25\\ 0.75\end{array}\right] & \begin{array}{c}B\\ P\end{array} & \text{next weekend}\end{array}\]
\(\text{park to beach}\)\(=\)\(0.25 \times 300\)
\(\)\(=\)\(75\)
T=[0.6, 0.25; 0.4, 0.75]

(i) \(T = \begin{bmatrix}0.6 & 0.25\\ 0.4 & 0.75\end{bmatrix}\). Check: \(0.6 + 0.4 = 1\) and \(0.25 + 0.75 = 1\). (ii) Park to beach is row \(B\), column \(P\): \(75\) families.

Example 2 β€” From a diagram to a matrix
A car-share scheme parks its cars at three depots: Carlton (\(C\)), Docklands (\(D\)) and St Kilda (\(S\)). The diagram shows the proportions of cars that move between depots each day. (i) Write the transition matrix (today as the columns, order \(C\), \(D\), \(S\)). (ii) State \(t_{31}\) and say what it means. (iii) What proportion of the cars at Docklands today are at a different depot tomorrow?
Car-share depotsC: 0.7 stay, 0.1 to D, 0.2 to S. D: 0.15 to C, 0.75 stay, 0.1 to S. S: 0.2 to C, 0.1 to D, 0.7 stay. C D S 0.7 0.1 0.2 0.15 0.75 0.1 0.2 0.1 0.7
Solution

The arrows leaving each depot fill its column; the loop goes on the leading diagonal.

\(\text{column } C\)\(:\)\(0.7,\ 0.1,\ 0.2\)
\(\text{column } D\)\(:\)\(0.15,\ 0.75,\ 0.1\)
\(\text{column } S\)\(:\)\(0.2,\ 0.1,\ 0.7\)
\[\begin{array}{rccccl} & & \llap{\text{today}\ }\rlap{\text{}} & & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right.}C & D & S\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.7\\ 0.1\\ 0.2\end{array}\right. & \begin{array}{c}0.15\\ 0.75\\ 0.1\end{array} & \left.\begin{array}{c}0.2\\ 0.1\\ 0.7\end{array}\right] & \begin{array}{c}C\\ D\\ S\end{array} & \text{tomorrow}\end{array}\]
\(\text{check column } C\)\(=\)\(0.7 + 0.1 + 0.2\)
\(\)\(=\)\(1\)
\(t_{31}\)\(=\)\(0.2\)
\(\text{leave } D\)\(=\)\(1 - 0.75\)
\(\)\(=\)\(0.25\)
t31=0.2

(ii) \(t_{31} = 0.2\): row \(3\) is St Kilda tomorrow and column \(1\) is Carlton today, so \(20\%\) of the cars at Carlton today are at St Kilda tomorrow. (iii) \(0.25\) (check: \(0.15 + 0.1 = 0.25\)).

Example 3 β€” Missing elements
Members of a Bendigo gym choose one class each week: boxing (\(X\)), pilates (\(P\)) or circuit (\(C\)). The transition matrix is
\[\begin{array}{rccccl} & & \llap{\text{this}\ }\rlap{\text{week}} & & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right.}X & P & C\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.55\\ b\\ 0.15\end{array}\right. & \begin{array}{c}a\\ 0.7\\ 0.2\end{array} & \left.\begin{array}{c}0.1\\ 0.3\\ c\end{array}\right] & \begin{array}{c}X\\ P\\ C\end{array} & \text{next week}\end{array}\]
(i) Find \(a\), \(b\) and \(c\). (ii) This week \(200\) members do circuit. How many of them are expected to do pilates next week?
Solution

Every column adds to \(1\). Use the column that contains each unknown.

\(\text{column } P\text{: } a + 0.7 + 0.2\)\(=\)\(1\)
\(a\)\(=\)\(1 - 0.9\)
\(\)\(=\)\(0.1\)
\(\text{column } X\text{: } 0.55 + b + 0.15\)\(=\)\(1\)
\(b\)\(=\)\(1 - 0.7\)
\(\)\(=\)\(0.3\)
\(\text{column } C\text{: } 0.1 + 0.3 + c\)\(=\)\(1\)
\(c\)\(=\)\(1 - 0.4\)
\(\)\(=\)\(0.6\)
\(\text{circuit to pilates}\)\(=\)\(0.3 \times 200\)
\(\)\(=\)\(60\)
a=0.1,b=0.3,c=0.6

(i) \(a = 0.1\), \(b = 0.3\), \(c = 0.6\). (ii) Circuit to pilates is row \(P\), column \(C\): \(60\) members.

Example 4 β€” From a table of counts
A survey of \(400\) Shepparton households recorded whether they bought their groceries online (\(O\)) or in store (\(S\)) this month and next month.
Online this monthIn store this month
Online next month10540
In store next month45210
Total150250
(i) Write the transition matrix (this month as the columns, order \(O\), \(S\)). (ii) What percentage of this month's in-store shoppers switch to online next month? (iii) How many households shop online next month?
Solution

Divide each count by its column total, the number in that state this month.

\(O \to O\)\(=\)\(\dfrac{105}{150}\)
\(\)\(=\)\(0.7\)
\(O \to S\)\(=\)\(\dfrac{45}{150}\)
\(\)\(=\)\(0.3\)
\(S \to O\)\(=\)\(\dfrac{40}{250}\)
\(\)\(=\)\(0.16\)
\(S \to S\)\(=\)\(\dfrac{210}{250}\)
\(\)\(=\)\(0.84\)
\[\begin{array}{rcccl} & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}\text{this} & \text{month}\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ & \phantom{\left[\vphantom{\begin{array}{c}0\\ 0\end{array}}\right.}O & S\phantom{\left.\vphantom{\begin{array}{c}0\\ 0\end{array}}\right]} & & \\ T = & \left[\begin{array}{c}0.7\\ 0.3\end{array}\right. & \left.\begin{array}{c}0.16\\ 0.84\end{array}\right] & \begin{array}{c}O\\ S\end{array} & \text{next month}\end{array}\]
\(\text{online next month}\)\(=\)\(105 + 40\)
\(\)\(=\)\(145\)
T=[0.7, 0.16; 0.3, 0.84]

(i) \(T = \begin{bmatrix}0.7 & 0.16\\ 0.3 & 0.84\end{bmatrix}\). (ii) \(0.16 = 16\%\) of in-store shoppers switch to online. (iii) Add the online row of counts: \(145\) households.

Common pitfalls

Columns, not rows, add to 1. In this course the columns are this period (from) and the rows are next period (to). Watch out for a matrix whose rows add to \(1\): it has been written the other way round, and it must be transposed before you use it.
Reading \(t_{ij}\) backwards. \(t_{21}\) is the move from state \(1\) to state \(2\) (column \(1\), row \(2\)). Watch out for reading the row as the starting state.
Dividing by the wrong total. When building \(T\) from counts, divide by the column total (the number in that state this period), not by the grand total or the row total.

Frequently asked questions

What is a transition matrix?

It is a square matrix that records the proportions of a group moving between states from one period to the next. Here the columns are the states this period, the rows are the states next period, and each column adds to 1.

Why does each column of a transition matrix add to 1?

A column lists where everyone in one state this period goes next period. Every member ends up in exactly one state, so the proportions in that column account for all of them and add to 1, or 100 percent.

How do you turn a transition diagram into a transition matrix?

Take one state at a time. The arrows leaving it, including its loop, give the elements of its column: each proportion goes in the row of the state the arrow points to. Then check that every column adds to 1.

What does the element in row 2, column 1 mean?

It is the proportion of the members in state 1 this period who are in state 2 next period. The column is where they start and the row is where they finish.

How do you find a missing value in a transition matrix?

Use the column that contains it. Add the known elements of that column and subtract the total from 1.