Unit 4 · Topic 4.14 · about 30 minutes · 7 parts · 14 scored checks, 3 of them multiple choice

AP Precalculus 4.14: Matrices Modeling Contexts

Not assessed on the AP Exam. Unit 4 is part of the course, but nothing in it is on the exam.

A bike share drawn as two circles, Riverside and Downtown. An arrow from Riverside to Downtown is labeled 20% move, and an arrow from Downtown to Riverside is labeled 30% move. A loop on Riverside is labeled 80% stay, and a loop on Downtown is labeled 70% stay. Beside them is the matrix T with rows 0.8, 0.3 and 0.2, 0.7. Column 1, marked from R, is where Riverside's bikes go, and column 2, marked from D, is where Downtown's go; row 1 is ending at Riverside and row 2 is ending at Downtown. Each column adds to 1.Tap to open the picture full size

Part 1 Think first Where do the bikes end up?

Guess before you learn. A wrong guess still makes the answer stick.

Predict first

A bike share has 100 bikes and two stations, Riverside and Downtown. Every night, 20% of the bikes at Riverside are ridden to Downtown and the rest stay put, and 30% of the bikes at Downtown are ridden to Riverside and the rest stay put. Tonight all 100 bikes start at Riverside. What happens to the two counts over many nights?

In short. A matrix built from the percent rates at which members move between two states, multiplied by a state vector, predicts the states at later steps, and its inverse predicts earlier ones.

  • Each column of the matrix T shows where one state's members go in one step, in the same order as the state vector, so each column adds to 1.
  • T times the state vector gives the next step, Tn times it gives the state n steps later, and T−1 times it gives the step before.
  • Repeated multiplication can predict the steady state, a distribution between the states that does not change from one step to the next.

Part 2 Learn it Modeling moves between two states

2a. Percents into a matrix

This kind of model follows a fixed group sorted into two states, here the two stations. At each step, a set percent of each state moves to the other. The counts go in a state vector, a column with one component per state. Tonight's bikes are x0=[1000], Riverside first, then Downtown.

The matrix T that models the transitions has one column for each state the bikes leave and one row for each state they end in, both in the order of the state vector. Riverside's bikes fill column 1: 80% stay (row 1) and 20% go to Downtown (row 2). Downtown's fill column 2: 30% go to Riverside (row 1) and 70% stay (row 2).

T=[0.80.30.20.7]

The diagram shows the same four percents as arrows. A context often gives only the percent that switches. The percent that stays is 100% minus it, so write both. Each column of T adds to 1, because every bike that starts at a station ends the night somewhere. A column that does not add to 1 loses bikes or makes new ones, so check before you multiply.

Quick check · Multiple choice

A cafeteria tracks 600 students who either buy lunch or bring lunch. Each week, 15% of the students who buy switch to bringing, and 40% of the students who bring switch to buying; everyone else keeps the same habit. The state vector lists buyers first, then bringers, and each column of T shows where one group goes. Which matrix is T?

2b. One step ahead, then n steps

Multiply T by a state vector and you get the state vector one step later. Say tonight there are 50 bikes at each station:

Tx0=[0.80.30.20.7][5050]
Tx0=[0.8(50)+0.3(50)0.2(50)+0.7(50)]=[5545]

Read row 1 as a sentence: Riverside tomorrow gets 80% of its own bikes plus 30% of Downtown's. The total is still 100.

To go another night, multiply again, starting from x1=[5545]:

x2=Tx1=[0.8(55)+0.3(45)0.2(55)+0.7(45)]=[57.542.5]

A model can give half a bike; read 57.5 as about 57 or 58. After n steps the state vector is xn=Tnx0, with T multiplied in n times, and a calculator finds T10 as fast as T2. Do not add the first night's change n times. Here the change shrinks each night, from 5 bikes to 2.5, so adding 5 twice would overshoot.

Quick check · Calculate

A rental company keeps 2,000 cars at two offices, Lakeside and Hilltop. Each day, 10% of the cars at Lakeside are returned at Hilltop, and 20% of the cars at Hilltop are returned at Lakeside; the rest come back to the office they left from. On Monday morning there are 1,500 cars at Lakeside and 500 at Hilltop. How many cars does the model put at Lakeside on Wednesday morning, two days later?

2c. The split that stops changing

Keep multiplying and watch the state vector. Start the bike share with all 100 bikes at Riverside and multiply by T once per night.

Bikes at each station, starting from 100 at Riverside (rounded to two places)
NightRiversideDowntown
0100.000.00
180.0020.00
270.0030.00
365.0035.00
462.5037.50
561.2538.75
1060.0439.96

The counts close in on 60 and 40. That split is the steady state, a distribution between the states that does not change from one step to the next. One multiplication shows it:

T[6040]=[0.8(60)+0.3(40)0.2(60)+0.7(40)]=[6040]

So there are two jobs. For a model like this one, you can predict the steady state by multiplying many times (on a calculator, try T50x0) until the vector stops moving. To test a split someone hands you, multiply by T once: it is the steady state only if the same split comes back. For this bike share, starting with all 100 at Downtown instead reaches the same 60 and 40.

Quick check · Decide and justify

A gym has 800 members, each on a monthly plan or an annual plan. Each year, 30% of monthly members switch to annual and 10% of annual members switch to monthly. With monthly first, T=[0.70.10.30.9]. Is 300 monthly and 500 annual members the steady state?

Which reason supports your answer?

2d. Running the model backward

If x1=Tx0, multiply both sides on the left by T−1 and you get x0=T−1x1. The inverse takes the model one step into the past.

For the bike share, det⁡(T)=0.8(0.7)−0.3(0.2)=0.5, which is not 0, so

T−1=10.5[0.7−0.3−0.20.8]=[1.4−0.6−0.41.6]

Suppose tomorrow's counts are 55 and 45. Then

T−1[5545]=[1.4(55)−0.6(45)−0.4(55)+1.6(45)]=[5050]

which is tonight's 50 and 50, as it should be. Going back n steps multiplies by T−1 n times. Two nights before [57.542.5] is T−1T−1[57.542.5], which is 50 and 50 again.

Multiplying today's vector by T runs the model forward, whatever date is on the counts. The direction of the step picks the matrix: T to go later, T−1 to go earlier.

Quick check · Spot the error

Two internet providers, Fastlink and Clearwave, share 9,000 households. Each year 10% of Fastlink's households switch to Clearwave and 20% of Clearwave's switch to Fastlink. With Fastlink first, T=[0.90.20.10.8]. This year Fastlink has 5,300 households and Clearwave has 3,700. A student finds last year's counts. Tap the first line that goes wrong.

Part 3 Watch it done Last month's subscribers

Watch each step, then do the last one yourself.

A streaming service has 9,000 subscribers on two plans. Each month, 5% of Basic subscribers upgrade to Premium and 20% of Premium subscribers drop to Basic; everyone else stays on the same plan. This month there are 6,300 Basic and 2,700 Premium subscribers. How many were on each plan last month?

  1. Step 1 · Build the model

    List Basic first. Column 1 is where Basic subscribers go: 0.95 stay and 0.05 upgrade. Column 2 is where Premium subscribers go: 0.20 drop to Basic and 0.80 stay. So T=[0.950.200.050.80], and this month's vector is x=[63002700].

  2. Step 2 · Pick the direction

    Last month's vector, call it p, satisfies Tp=x. Multiply both sides on the left by T−1: p=T−1x.

  3. Why this step?

    Why not multiply this month's vector by T?

    T takes a month to the month after it, so T[63002700]=[65252475] is next month's prediction. To step back a month you need the matrix that undoes T.

  4. Step 3 · Find the inverse

    det⁡(T)=0.95(0.80)−0.20(0.05)=0.76−0.01=0.75, which is not 0. Swap 0.95 and 0.80, change the signs of 0.20 and 0.05, and divide by 0.75: T−1=10.75[0.80−0.20−0.050.95].

  5. Your step · Calculate

    Finish it. With T−1=10.75[0.80−0.20−0.050.95] and this month's vector [63002700] (Basic, then Premium), how many Basic subscribers were there last month?

Row 2 gives Premium: 10.75(−0.05(6300)+0.95(2700))=22500.75=3000. Last month had 6,000 Basic and 3,000 Premium, still 9,000 in all. Run it forward to check: T[60003000]=[0.95(6000)+0.20(3000)0.05(6000)+0.80(3000)]=[63002700], this month's numbers.

Part 4 Try it Driving or transit, year by year

A city planner models 80 thousand commuters who either drive or take transit. Each year, 5% of drivers switch to transit and 15% of transit riders switch to driving; the rest keep the same habit. In year 0, 50 thousand drive and 30 thousand take transit. The planner ran the model on a computer, and part of its output is in the table. Work on paper; a calculator is fine for the arithmetic.

Model output, in thousands of commuters
YearDriveTransit
050.0030.00
152.0028.00
354.8825.12
556.7223.28
1058.9321.07
2059.8820.12
4060.0020.00

Try it · Calculate

Each year, 5% of a city's drivers switch to transit and 15% of its transit riders switch to driving. In year 3, the model has 54.88 thousand commuters driving and 25.12 thousand taking transit. To one decimal place, how many thousand commuters does the model say take transit in year 4?

Try it · Fill the statement

Each year, 5% of a city's drivers switch to transit and 15% of its transit riders switch to driving, among 80 thousand commuters. The model's output for years 10, 20 and 40 is 58.93, 59.88 and 60.00 thousand drivers, with 21.07, 20.12 and 20.00 thousand transit riders. Tap a blank, then tap an answer.

The model settles at a steady state of thousand drivers and thousand transit riders. At that split, thousand people switch from driving to transit each year, and just as many switch the other way.

Part 5 Explain it Model it in writing

Nothing you type leaves this page. Check your answer against the model and each point on the list.

Unit 4 is not on the AP Exam, so this is written practice for the course.

Written practice

A town has 7,000 households that shop at one of two grocery stores, Marlow's and FreshCo. Each year, 25% of Marlow's households switch to FreshCo and 10% of FreshCo's households switch to Marlow's; the rest stay. This year 3,040 households shop at Marlow's and 3,960 at FreshCo.

(i) Construct a matrix T that models the yearly transitions, with Marlow's first, and use it to determine the numbers for next year.

(ii) Determine the numbers for last year. Explain which matrix you multiplied by and why.

(iii) A manager claims that 2,000 households at Marlow's and 5,000 at FreshCo is the steady state. Justify whether the claim is correct.

Model answer

(i) Column 1 is Marlow's households, 0.75 staying and 0.25 leaving; column 2 is FreshCo's, 0.10 leaving for Marlow's and 0.90 staying. So T=[0.750.100.250.90]. Next year is T[30403960]=[0.75(3040)+0.10(3960)0.25(3040)+0.90(3960)]=[26764324]: 2,676 at Marlow's and 4,324 at FreshCo. (ii) T moves the model forward a year, so going back a year uses T−1. det⁡(T)=0.75(0.90)−0.10(0.25)=0.65, so T−1=10.65[0.90−0.10−0.250.75] and T−1[30403960]=10.65[23402210]=[36003400]: 3,600 at Marlow's and 3,400 at FreshCo. (iii) The claim is correct. T[20005000]=[0.75(2000)+0.10(5000)0.25(2000)+0.90(5000)]=[20005000], so this split does not change from one year to the next.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself Two coffee shops

The three case questions use the same table of weekly habits. Answer them from it.

Two coffee shops, Maple and Harbor, share 400 regular customers, and each regular buys coffee at one of them each week. The table gives the percent of each shop's regulars who come back the next week and the percent who switch. This week, 252 regulars go to Maple and 148 go to Harbor. The state vector lists Maple first, and each column of the matrix T that models the transitions shows where one shop's regulars go.

Weekly habits of the regulars at Maple and Harbor
Shop this weekSame shop next weekOther shop next week
Maple90%10%
Harbor70%30%

Case question 1 · Multiple choice

The owners run the model for many weeks. Which split of the 400 regulars does it settle on?

Case question 2 · Multiple choice

With T=[0.90.30.10.7], which expression gives the state vector two weeks after this week?

Case question 3 · Calculate

According to the model, how many regulars went to Maple last week?

The rest stand on their own and do not use the case.

Check yourself · Match

A county tracks people who live in the city or in the suburbs. With the city first in the state vector, each column of T=[0.920.050.080.95] shows where one group lives a year later. Tap a component, then what it means.

Check yourself · Sort it

A matrix T models one step of a two-state situation, and you know one state vector. Tap a task, then the matrix you multiply the known vector by, once or more.

T

T−1

Part 7 Keep it Bring back earlier ideas

Pulling an older idea back up is what makes it last.

From 4.13 Matrices as Functions · Calculate

Let L(v→)=Av→ with A=[2−113] and M(v→)=Bv→ with B=[1302]. The transformation that applies L first and then M is linear. What is the component in row 1, column 2 of its matrix?

From 2.1 Change in Arithmetic and Geometric Sequences · Spot the error

A geometric sequence has g2=48 and common ratio r=0.5. A student finds g6. Tap the first line with a mistake.

In three lines

  • Each column of the matrix T that models the transitions shows where one state's members go in one step, as decimals, in the order of the state vector.
  • Tx gives the state vector one step later, Tnx gives it n steps later, and T−1x gives it one step earlier.
  • The steady state is a split that multiplying by T gives back unchanged; for models like these, repeated multiplication can predict it.

Vocabulary

State
One of the categories a group is sorted into, such as one of two stations a bike can be parked at, with every member in exactly one state at each step.
Transitions between states
The moves members make from one state to another over one discrete interval, given in a context as percent changes.
State vector
A column vector whose components are the amounts in each state at one step, listed in the same order as the rows and columns of the matrix that models the transitions.
Steady state
A distribution between states that does not change from one step to the next, so the matrix that models the transitions times it gives it back.
Course alignment, for teachers

AP Precalculus topic 4.14, Unit 4: Functions Involving Parameters, Vectors, and Matrices.

  • Skill 1.C: Construct new functions, using transformations, compositions, inverses, or regressions, that may be useful in modeling contexts, criteria, or data, with and without technology.
  • Skill 3.B: Apply numerical results in a given mathematical or applied context.
  • Skill 3.C: Support conclusions or choices with a logical rationale or appropriate data.

This lesson maps all 4 essential knowledge statements of the topic to the part that teaches each one: 4 are checked by a scored question. The map is in the lesson file.