IB

View all Questions

Question

Mathematics

How does a transition matrix model switching between two states?

Answer

Mathematics

Expert Answer

A transition matrix records the probability of moving from each current state to each next state. In the IB convention, the state shares are written as a column vector, so each column of the matrix belongs to one starting state and must add to 1.

Build a two-state model

Suppose 90% of subscribers to service A stay with A each month, while 30% of B subscribers switch to A. With the states ordered A, then B,

T=(0.90.30.10.7)T=\begin{pmatrix}0.9&0.3\\0.1&0.7\end{pmatrix}

The first column lists where A's subscribers go: 0.9 stay with A and 0.1 move to B. So the bottom-left entry is the probability of moving from A to B. A common slip is to read across a row instead. The two outcomes from A are 0.9 and 0.1, not 0.9 and 0.3.

Two states with probabilities A to A 0.9, A to B 0.1, B to A 0.3 and B to B 0.7.

The arrows leaving each state fill one column of the transition matrix.

Some textbooks use a row vector instead, so each row sums to 1 and the matrix is the transpose of this one. Check which convention a question uses before multiplying.

Project the shares forwards

If the current shares are 60% A and 40% B, then

s0=(0.60.4),s1=Ts0=(0.9(0.6)+0.3(0.4)0.1(0.6)+0.7(0.4))=(0.660.34)\mathbf s_0=\begin{pmatrix}0.6\\0.4\end{pmatrix},\qquad \mathbf s_1=T\mathbf s_0=\begin{pmatrix}0.9(0.6)+0.3(0.4)\\0.1(0.6)+0.7(0.4)\end{pmatrix}=\begin{pmatrix}0.66\\0.34\end{pmatrix}

The entries still add to 1, which is a quick check. After nn months, use sn=Tns0\mathbf s_n=T^n\mathbf s_0, with TnT^n found on the GDC. The matrix is raised to the power nn. It is not multiplied by nn.

Find the stationary distribution

A stationary distribution s\mathbf s satisfies Ts=sT\mathbf s=\mathbf s, so the shares don't change from one month to the next. Write A's share as pp and B's share as 1−p1-p. The top row gives

p=0.9p+0.3(1−p)⟹0.4p=0.3⟹s=(0.750.25)p=0.9p+0.3(1-p)\quad\Longrightarrow\quad0.4p=0.3\quad\Longrightarrow\quad\mathbf s=\begin{pmatrix}0.75\\0.25\end{pmatrix}

Equivalently, s\mathbf s is the eigenvector of TT for eigenvalue 1, scaled so that its entries sum to 1.

Customers keep switching at this distribution, but the flows balance. Each month A loses 0.1×0.75=0.0750.1\times0.75=0.075 of the market and gains 0.3×0.25=0.0750.3\times0.25=0.075.

The shares really do approach this distribution. From the top row, pn+1=0.6pn+0.3p_{n+1}=0.6p_n+0.3, so the gap between pnp_n and 0.75 is multiplied by 0.6 each month:

pn=0.75−0.15(0.6)np_n=0.75-0.15(0.6)^n

This gives 0.66 after one month and 0.696 after two, and after a year the gap is below 0.001. The factor 0.6 is the other eigenvalue of TT. Not every transition matrix settles down like this. With (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, everyone switches every month, so the shares alternate forever.

One household versus the whole market

The columns of TnT^n answer a different question: the probability that a single household is with each provider after nn months, given where it started. Here,

T2=(0.840.480.160.52)T^2=\begin{pmatrix}0.84&0.48\\0.16&0.52\end{pmatrix}

So a household that starts with A has probability 0.84 of being with A two months later, while one that starts with B has probability 0.48. As nn grows, both columns approach (0.750.25)\begin{pmatrix}0.75\\0.25\end{pmatrix}. In the long run, a household's chance of being with A no longer depends on where it started, and it matches A's predicted market share.

Limits of the model

The predictions assume that the switching probabilities stay fixed and that nobody joins or leaves the market. A price change or a new competitor would change TT, so long-run shares are model predictions, not guarantees.

Explore switching between NetFast and WebSpeed in AI HL Mock Exam, Set 1, Paper 2. Can you tell apart a household's probability of using a provider after several years and that provider's predicted long-run market share?

Answered by Revision Village IB Expert

Interested in diving deeper into this concept?

Explore More IB Mathematics Resources

Over 80% of IB students globally are experiencing the power of Revision Village