Mistake Master
Matrices Modeling Contexts
Everyone Moves. The Total Holds.
You'll learnto predict how a population shifts between two places using a matrix.
Each year a share of the city leaves for the suburbs, and a share of the suburbs comes back. One matrix stores every one of those fractions, its columns reading off where each group started. Multiply, and the population takes a single step; multiply again for the next. Twelve short steps; press Next for each one.
Unit 4 is not assessed on the AP exam — it's here because the ideas are genuinely useful.
Read all 12 steps as text
A town in two places
A town holds 600 people in the city and 400 in the suburbs, and stacking those two counts into a single column gives the state vector that everything else will act on.
Each year, some people move
Every year \(10%\) of the city moves out to the suburbs and \(20%\) of the suburbs moves back in, which on these counts is \(60\) people one way and \(80\) the other.
A column is one from-state, split up
A column of the transition matrix follows one starting group and splits it into every place it can end up: of everyone who begins in the city, \(0.9\) stays and \(0.1\) leaves, and those two numbers are the first column.
Every column must add to exactly 1
Everyone who starts somewhere ends up somewhere, so each column has to sum to 1: here \(0.9 + 0.1 = 1\) and \(0.2 + 0.8 = 1\). A column of \(0.9\) and \(0.2\) would sum to \(1.1\), sending \(110%\) of the city away.
One multiply takes one step
Multiplying takes the town forward one year, and each new count is its own stayers plus the arrivals from the other side: \(0.9 \cdot 600 + 0.2 \cdot 400 = 620\) in the city and \(0.1 \cdot 600 + 0.8 \cdot 400 = 380\) in the suburbs.
The total never changes
The two counts moved and the sum did not: \(600 + 400\) and \(620 + 380\) are both \(1000\), because columns that add to 1 hand on every person they are given.
Apply it again for the next year
Year two comes from multiplying the year-one column, not the original one: \(M \cdot (620, 380) = (634, 366)\). Feeding the starting counts back in a second time would simply repeat year one.
n steps is the nth power of M
Two steps in one multiply is \(M^{2} = [0.83, 0.34; 0.17, 0.66]\), and applying it to the starting column gives \((634, 366)\) directly. Its columns still add to \(1\), because a matrix that conserves people still does so after two years.
The state is a column, M on its left
Written as a row and pushed in from the left, the same numbers give \((580, 440)\), a town of \(1020\) people — \(20\) of whom arrived from nowhere. The total is the tell: if it moved, the state was on the wrong side.
Run it far enough and it settles
Repeating the same step year after year, the counts move by less and less each time, drifting toward a split that eventually stops changing at all.
The steady state stops changing
It settles at \((666.7, 333.3)\), where \(0.1 \cdot 666.7 = 66.7\) people leave the city and \(0.2 \cdot 333.3 = 66.7\) arrive from the suburbs. The two flows are equal, so both counts hold still while people keep moving.
Everyone moves, the total holds
Build the matrix one column per starting group, each adding to 1; run it by multiplying the state column on the left, once per step or as a power for many. The columns adding to 1 are exactly what keeps the total fixed while the shares move, until the two flows cancel and the split settles.
That closes Unit 4: parameters, vectors and matrices, each of them a way of handing a familiar object something extra to carry.