In short
A transition matrix describes how quantities move between states in each time step, such as customers switching between two shops. If is the transition matrix and the state vector after steps, then and . The inverse matrix runs time backwards: . Many such models settle towards a steady state with . This unit is not tested on the AP Exam.
What you need to know
- Build a transition matrix from percentages in a context.
- Predict future states by repeated multiplication.
- Use the inverse matrix to find an earlier state.
- Find and interpret a steady state.
Building a transition matrix
A town has two coffee shops, A and B, with 1,000 regular customers between them. Each week, 80% of A's customers stay with A and 20% switch to B; 70% of B's customers stay and 30% switch to A. Each column of the transition matrix describes where one shop's customers go, so each column adds up to 1:
The top row collects everyone who ends up at A: 80% of A's customers plus 30% of B's. The bottom row collects everyone at B. Writing the matrix this way means the next week's numbers are just a matrix-times-vector product.
Predicting the future
After two weeks A has 575 customers and B has 425. Notice the total stays 1,000, because every customer goes somewhere. For many steps, use powers: , which a graphing calculator computes quickly. The model assumes the percentages stay the same every week, which is the kind of assumption you should state when you use it.
| Week | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Shop A | 500 | 550 | 575 | 587.5 | 593.75 |
| Shop B | 500 | 450 | 425 | 412.5 | 406.25 |
Going back in time and the long run
If this week the shops have 550 and 450, what were last week's numbers? Use the inverse. , so
The table suggests the numbers approach 600 and 400. A steady state is a state that the matrix leaves unchanged: . With , the first row says , so and . With , the steady state is 600 at A and 400 at B. Check: . In the long run A keeps 60% of the customers, whatever the starting split.
Key terms
- Transition matrix
- A matrix whose entries are the proportions moving between states in one step; each column sums to 1 in the column convention.
- State vector
- The amounts in each state at a given time.
- Markov chain
- A model in which the next state depends only on the current state through a fixed transition matrix.
- Steady state
- A state vector s with Ts = s, which the model approaches in the long run.
Common mistakes
Putting the 'stay' and 'switch' percentages for one shop in a row when using column vectors.
Each column is one starting state; it must add to 1.
Using T instead of T⁻¹ to go back a step.
Earlier states come from T⁻¹.
Treating the steady state as the state after a fixed number of steps.
It is the state the model approaches, solving Ts = s.
How this topic is tested
- Check that each column of a transition matrix sums to 1.
- Check that the total population is conserved after each step.
- Unit 4 is not on the AP Exam; Markov chains return in statistics and computer science.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · MP 1 · Procedural and Symbolic Fluency
Using , what is the next state after ?
Question 2 · MP 2 · Multiple Representations
Each year 90% of city dwellers stay in the city and 10% move to the suburbs, while 95% of suburb dwellers stay and 5% move to the city. Which is the transition matrix (states: city, suburbs; column convention)?
Question 3 · MP 3 · Communication and Reasoning
For the city–suburb model, what is the steady-state share living in the city?
Question 4 · MP 3 · Communication and Reasoning
Why do the entries in each column of a transition matrix add to 1?
Question 5 · MP 1 · Procedural and Symbolic Fluency
A two-state model has . This year's state is . What was last year's state?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Class-test practice (Unit 4 is not on the AP Exam) · 4 points
Each day, 60% of the bikes at station X stay there and 40% are ridden to station Y; 30% of the bikes at Y are ridden to X and 70% stay. On Monday morning X has 100 bikes and Y has 200.
- (a) Write the transition matrix and find the numbers of bikes on Tuesday morning.
- (b) Find the steady state and explain what it means for the bike company.
Scoring guide: one point for each of the following
Part (a)
Part (b)
- with : about 128.57 at X and 171.43 at Y
- In the long run about 3/7 of the bikes are at X and 4/7 at Y each morning, so the company can plan docks for those numbers.
Connected topics
Frequently asked questions
Are matrix models on the AP Precalculus Exam?
No. Unit 4 is taught but not assessed on the AP Exam.
What is a Markov chain?
A model in which the next state depends only on the current one, through fixed transition probabilities. The coffee-shop model is a two-state Markov chain.
Does every transition model reach a steady state?
Not always, but models like the ones in this lesson, where every state can be reached from every other, settle towards one.