Linear Algebra and Vector Geometry 201-SN4-RE • CEGEP, Montreal

Corrected exercises: matrix models (201-SN4-RE)

These fifteen corrected exercises show what matrices are for once the arithmetic is under control, in 201-SN4-RE (formerly 201-NYC), Linear Algebra and Vector Geometry at CEGEP: Markov chains, the Leontief input-output model and Leslie population matrices, the three matrix models met in the social sciences, also covered in 201-105, the linear algebra course of the Social Science program.

The thread of the set fits in one sentence: the three models share the same skeleton, xn+1=Mxnx_{n+1}=Mx_{n}, and their whole long-term behaviour is read in the eigenvalues of MM. Solving (P−I)x=0\left(P-I\right)x=0 to find a steady state is looking for an eigenvector without saying so.

Three traps are named explicitly: the column convention confused with the row convention, final demand confused with total output, and the growth of the first periods taken for the long-term growth rate.

15 corrected exercises • 150 points • 225 minutes

This chapter is part of 201-SN4-RE, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • COLUMN convention: pijp_{ij} reads “from state jj to state ii”, and every COLUMN sums to 1. In the row convention everything is transposed; the convention must be stated.
  • • One step: xn+1=Pxnx_{n+1}=Px_{n}. nn steps: xn=Pnx0x_{n}=P^{n}x_{0}. The powers of a stochastic matrix remain stochastic.
  • • Entry (i,j)\left(i,j\right) of P2P^{2} automatically adds up every path from jj to ii in two steps.
  • • STEADY STATE: solve (P−I)x=0\left(P-I\right)x=0, then normalize by the required sum. The system is rank deficient, so it has infinitely many solutions.
  • • A REGULAR chain converges to a unique steady state, whatever the initial distribution.
  • • LEONTIEF: x=Ax+dx=Ax+d, so (I−A)x=d\left(I-A\right)x=d and x=(I−A)−1dx=\left(I-A\right)^{-1}d. Column jj of AA says what one unit of sector jj consumes.
  • • Each entry of (I−A)−1\left(I-A\right)^{-1} is the total output of one sector required by one unit of final demand for another. The sum of a column is the MULTIPLIER.
  • • (I−A)−1=I+A+A2+⋯\left(I-A\right)^{-1}=I+A+A^{2}+\cdots: direct effect plus the indirect effects of every round.
  • • Inverse of a 2 by 2 matrix: swap the diagonal entries, change the sign of the other two, divide by the determinant.
  • • LESLIE: first row of fertility rates, subdiagonal of survival rates, everything else zero. The first periods oscillate: this is the population wave.
  • • The DOMINANT eigenvalue gives the long-term growth rate, its eigenvector the stable structure. Every stochastic matrix has 1 as an eigenvalue.
  • • The SECOND eigenvalue governs the speed of convergence: the gap to the limit is multiplied by ∣λ2∣\left|\lambda_{2}\right| at every step.

Part A: the basics (/50)

Exercise 1: The transition matrix

A Markov chain describes a system that changes state in steps, with constant probabilities. All the information fits in one matrix, and it is the matrix product that moves time forward.

Two states. Every year, 20% of A move to B and 30% of B move to A.

state Astate B20%30%
  • a) Write the transition matrix PP in the COLUMN convention and check the sum of each column.
  • b) An initial population is x0=(10)x_{0}=\begin{pmatrix}1\\0\end{pmatrix}. Compute x1=Px0x_{1}=Px_{0} and x2=Px1x_{2}=Px_{1}.
  • c) What does the entry p12p_{12} of the matrix mean?
  • d) Why do the columns sum to 1, and what would happen if one of them summed to 0.9?
  • e) Write the matrix in the ROW convention and say what changes in the product.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) P=(0.80.30.20.7)P=\begin{pmatrix}0.8&0.3\\0.2&0.7\end{pmatrix}
  • b) x1=(0.8,0.2)x_1=(0.8, 0.2), x2=(0.70,0.30)x_2=(0.70, 0.30)
  • c) From B to A: 0.30.3
  • d) Conservation; otherwise a 10% loss
  • e) PTP^T, row vector on the left
a)

P=(0.80.30.20.7)P=\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix}. First column: 0.8+0.2=10.8+0.2=1; second column: 0.3+0.7=10.3+0.7=1. The column convention puts in column jj the distribution of what LEAVES state jj.

b)

x1=Px0=(0.8×1+0.3×00.2×1+0.7×0)=(0.80.2)x_{1}=Px_{0}=\begin{pmatrix}0.8\times 1+0.3\times 0\\0.2\times 1+0.7\times 0\end{pmatrix}=\begin{pmatrix}0.8\\0.2\end{pmatrix}. Then x2=Px1=(0.8×0.8+0.3×0.20.2×0.8+0.7×0.2)=(0.64+0.060.16+0.14)=(0.700.30)x_{2}=Px_{1}=\begin{pmatrix}0.8\times 0.8+0.3\times 0.2\\0.2\times 0.8+0.7\times 0.2\end{pmatrix}=\begin{pmatrix}0.64+0.06\\0.16+0.14\end{pmatrix}=\begin{pmatrix}0.70\\0.30\end{pmatrix}. The total stays 1 at every step, and that is the check to make.

c)

p12=0.3p_{12}=0.3 is the entry in row 1 and column 2: it is the probability of moving FROM state 2 TO state 1, in other words the share of B that joins A. The order of the indices is the most frequent source of error in the chapter: in the column convention, pijp_{ij} reads “from jj to ii”.

d)

Because everything that leaves a state has to arrive somewhere: the total population is conserved. If a column summed to 0.9, 10% of that state would disappear at every step, and the total would decrease geometrically. Such a matrix is no longer stochastic and no longer describes a distribution, but it remains perfectly usable to model a population that loses members, through migration or mortality.

e)

In the ROW convention we write the transpose, PT=(0.80.20.30.7)P^{T}=\begin{pmatrix}0.8 & 0.2\\0.3 & 0.7\end{pmatrix}, whose ROWS sum to 1. The state vector then becomes a ROW vector and we multiply on the right: x1=x0PTx_{1}=x_{0}P^{T}. The two conventions are equivalent, but mixing them produces results that are wrong and plausible, which is the worst case. Choose a convention at the start of the problem and write it down in black and white.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: Evolution over several steps

Moving nn steps ahead means multiplying nn times by PP, so computing PnP^{n}. This is where the power of a matrix stops being an abstract exercise.

123456780.20.40.60.81start: 100% in Astart: 0% in Astep nshare of A
  • a) Compute P2P^{2} for P=(0.80.30.20.7)P=\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix}.
  • b) Check that P2x0P^{2}x_{0} gives back the x2x_{2} of the previous exercise.
  • c) What does the entry in row 1 and column 2 of P2P^{2} represent?
  • d) Compute x3x_{3} and x4x_{4} starting from x2=(0.700.30)x_{2}=\begin{pmatrix}0.70\\0.30\end{pmatrix}.
  • e) On the graph, two opposite starts converge to the same limit. What can we conclude?

Type your answers, the page tells you right or wrong 0/6

a)
c)
d)
e)
Show the solution

Answers

  • a) P2=(0.700.450.300.55)P^2=\begin{pmatrix}0.70&0.45\\0.30&0.55\end{pmatrix}
  • b) P2x0=x2P^2x_0=x_2
  • c) 0.45=0.21+0.240.45=0.21+0.24
  • d) x3=(0.65,0.35)x_3=(0.65, 0.35), x4=(0.625,0.375)x_4=(0.625, 0.375)
  • e) The limit does not depend on the start
a)

P2=(0.80.30.20.7)(0.80.30.20.7)=(0.64+0.060.24+0.210.16+0.140.06+0.49)=(0.700.450.300.55)P^{2}=\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix}\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix}=\begin{pmatrix}0.64+0.06 & 0.24+0.21\\0.16+0.14 & 0.06+0.49\end{pmatrix}=\begin{pmatrix}0.70 & 0.45\\0.30 & 0.55\end{pmatrix}. The columns still sum to 1, which is true of every power of a stochastic matrix.

b)

P2x0=(0.700.450.300.55)(10)=(0.700.30)P^{2}x_{0}=\begin{pmatrix}0.70 & 0.45\\0.30 & 0.55\end{pmatrix}\begin{pmatrix}1\\0\end{pmatrix}=\begin{pmatrix}0.70\\0.30\end{pmatrix}, which indeed gives back x2x_{2}. The associativity of the matrix product guarantees that P(Px0)=(PP)x0P\left(Px_{0}\right)=\left(PP\right)x_{0}: we can move forward step by step or all at once.

c)

The entry in row 1 and column 2 of P2P^{2}, here 0.45, is the probability of being in A TWO steps after starting from B. It splits into two paths: start from B, stay in B, move to A, that is 0.7×0.3=0.210.7\times 0.3=0.21; or start from B, move to A, stay in A, that is 0.3×0.8=0.240.3\times 0.8=0.24. Total: 0.45. The matrix product therefore adds up every possible path automatically, which is exactly what makes it useful.

d)

x3=(0.8×0.70+0.3×0.300.2×0.70+0.7×0.30)=(0.56+0.090.14+0.21)=(0.650.35)x_{3}=\begin{pmatrix}0.8\times 0.70+0.3\times 0.30\\0.2\times 0.70+0.7\times 0.30\end{pmatrix}=\begin{pmatrix}0.56+0.09\\0.14+0.21\end{pmatrix}=\begin{pmatrix}0.65\\0.35\end{pmatrix}. Then x4=(0.52+0.1050.13+0.245)=(0.6250.375)x_{4}=\begin{pmatrix}0.52+0.105\\0.13+0.245\end{pmatrix}=\begin{pmatrix}0.625\\0.375\end{pmatrix}. The values approach 0.60 and 0.40, and the gap to the limit is halved at every step: 0.20, then 0.10, then 0.05, then 0.025.

e)

That the limit does NOT depend on the initial state. A chain whose entries are all strictly positive is called regular, and a regular chain has a unique steady-state vector to which every initial distribution converges. This is a major result: it means that the structure of the transitions, and it alone, determines the long-term distribution. The starting composition only affects how fast the limit is approached, not where it ends.

Exercise 3: The steady state

Rather than iterating forever, we look directly for the vector that no longer moves: the one that satisfies Px=xPx=x. It is a homogeneous system, exactly the kind of system the linear algebra course teaches you to solve.

  • a) Write the condition Px=xPx=x in the form (P−I)x=0\left(P-I\right)x=0 and give the matrix P−IP-I.
  • b) Solve the system, with the constraint a+b=1a+b=1.
  • c) Check that the vector found is indeed stationary.
  • d) Why does the system (P−I)x=0\left(P-I\right)x=0 always have infinitely many solutions, and why is the sum constraint needed?
  • e) A population of 5,000 people is split 4,000 in A and 1,000 in B. Towards which distribution does it tend?

Type your answers, the page tells you right or wrong 0/6

a)
b)
d)
e)
Show the solution

Answers

  • a) P−I=(−0.20.30.2−0.3)P-I=\begin{pmatrix}-0.2&0.3\\0.2&-0.3\end{pmatrix}
  • b) (0.6,0.4)(0.6, 0.4)
  • c) Px=xP x=x
  • d) Dependent rows; the sum 1 picks one solution
  • e) 3,000 in A, 2,000 in B
a)

P−I=(0.8−10.30.20.7−1)=(−0.20.30.2−0.3)P-I=\begin{pmatrix}0.8-1 & 0.3\\0.2 & 0.7-1\end{pmatrix}=\begin{pmatrix}-0.2 & 0.3\\0.2 & -0.3\end{pmatrix}. The condition becomes (P−I)x=0\left(P-I\right)x=0, that is, a homogeneous system of two equations in two unknowns.

b)

The two equations are −0.2a+0.3b=0-0.2a+0.3b=0 and 0.2a−0.3b=00.2a-0.3b=0: they are proportional, so only one remains. From 0.2a=0.3b0.2a=0.3b we get b=23ab=\dfrac{2}{3}a. With a+b=1a+b=1: a+23a=1a+\dfrac{2}{3}a=1, so 53a=1\dfrac{5}{3}a=1 and a=0.6a=0.6, then b=0.4b=0.4. The steady-state vector is (0.60.4)\begin{pmatrix}0.6\\0.4\end{pmatrix}.

c)

P(0.60.4)=(0.8×0.6+0.3×0.40.2×0.6+0.7×0.4)=(0.48+0.120.12+0.28)=(0.600.40)P\begin{pmatrix}0.6\\0.4\end{pmatrix}=\begin{pmatrix}0.8\times 0.6+0.3\times 0.4\\0.2\times 0.6+0.7\times 0.4\end{pmatrix}=\begin{pmatrix}0.48+0.12\\0.12+0.28\end{pmatrix}=\begin{pmatrix}0.60\\0.40\end{pmatrix}. The vector is indeed unchanged.

d)

Because the columns of PP sum to 1, the sum of the rows of P−IP-I is zero: the rows are linearly DEPENDENT, so the determinant is zero and the homogeneous system has infinitely many solutions, all proportional to one another. This is exactly the situation of a rank-deficient homogeneous system. The constraint a+b=1a+b=1 picks, on this line of solutions, the one that represents a distribution; without it, the vector (64)\begin{pmatrix}6\\4\end{pmatrix} or (600400)\begin{pmatrix}600\\400\end{pmatrix} would do just as well.

e)

The initial distribution is (0.80.2)\begin{pmatrix}0.8\\0.2\end{pmatrix}, but it does not matter at all: since the chain is regular, the population tends to the steady-state distribution (0.60.4)\begin{pmatrix}0.6\\0.4\end{pmatrix}, that is 3,000 people in A and 2,000 in B. Say “tends to”: equality is never reached exactly, the gap being halved at every step. After six steps, only 0.2×0.56≈0.0030.2\times 0.5^{6}\approx 0.003 of gap is left, about fifteen people.

Exercise 4: The Leontief model

The second great matrix model of the social sciences: an economy in which each sector consumes the output of the others. How much must be produced to meet a given demand, knowing that producing consumes?

Two sectors. Producing one unit of sector 1 consumes 0.2 unit of sector 1 and 0.4 of sector 2. Producing one unit of sector 2 consumes 0.3 of sector 1 and 0.1 of sector 2. Final demand: 100 and 60.

In the figure, each arrow goes from the sector that supplies to the one that consumes, for one unit produced by the latter.

sector 1sector 20.40.30.20.1demand 100demand 60
  • a) Write the technology matrix AA and the equation x=Ax+dx=Ax+d.
  • b) Turn it into (I−A)x=d\left(I-A\right)x=d and give the matrix I−AI-A.
  • c) Compute (I−A)−1\left(I-A\right)^{-1}.
  • d) Compute the total output xx required.
  • e) Check the result by putting the internal consumption back together.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) A=(0.20.30.40.1)A=\begin{pmatrix}0.2&0.3\\0.4&0.1\end{pmatrix}
  • b) I−A=(0.8−0.3−0.40.9)I-A=\begin{pmatrix}0.8&-0.3\\-0.4&0.9\end{pmatrix}
  • c) det⁡=0.6\det=0.6; inverse (1.50.50.6‾1.3‾)\begin{pmatrix}1.5&0.5\\0.\overline{6}&1.\overline{3}\end{pmatrix}
  • d) x=(180,146.67)x=(180, 146.67)
  • e) 180−80=100180-80=100, 146.67−86.67=60146.67-86.67=60
a)

A=(0.20.30.40.1)A=\begin{pmatrix}0.2 & 0.3\\0.4 & 0.1\end{pmatrix}, where column jj gives what one unit of sector jj consumes. The balance equation reads x=Ax+dx=Ax+d: total output goes partly to internal exchanges, AxAx, and partly to final demand, dd.

b)

x−Ax=dx-Ax=d, so (I−A)x=d\left(I-A\right)x=d with I−A=(1−0.2−0.3−0.41−0.1)=(0.8−0.3−0.40.9)I-A=\begin{pmatrix}1-0.2 & -0.3\\-0.4 & 1-0.1\end{pmatrix}=\begin{pmatrix}0.8 & -0.3\\-0.4 & 0.9\end{pmatrix}.

c)

Determinant: 0.8×0.9−(−0.3)(−0.4)=0.72−0.12=0.600.8\times 0.9-\left(-0.3\right)\left(-0.4\right)=0.72-0.12=0.60. Inverse of a 2 by 2 matrix: swap the diagonal entries, change the sign of the other two, and divide by the determinant. So (I−A)−1=10.60(0.90.30.40.8)=(1.50.50.6‾1.3‾)\left(I-A\right)^{-1}=\dfrac{1}{0.60}\begin{pmatrix}0.9 & 0.3\\0.4 & 0.8\end{pmatrix}=\begin{pmatrix}1.5 & 0.5\\0.\overline{6} & 1.\overline{3}\end{pmatrix}.

d)

x=(I−A)−1d=(1.50.50.6‾1.3‾)(10060)=(150+3066.6‾+80)=(180146.6‾)x=\left(I-A\right)^{-1}d=\begin{pmatrix}1.5 & 0.5\\0.\overline{6} & 1.\overline{3}\end{pmatrix}\begin{pmatrix}100\\60\end{pmatrix}=\begin{pmatrix}150+30\\66.\overline{6}+80\end{pmatrix}=\begin{pmatrix}180\\146.\overline{6}\end{pmatrix}. So 180 units must be produced in sector 1 and about 146.67 in sector 2 to deliver 100 and 60.

e)

Output of sector 1 used up inside the economy: 0.2×180+0.3×146.67=36+44=800.2\times 180+0.3\times 146.67=36+44=80 units; 180−80=100180-80=100 are left, the final demand. Output of sector 2 used up inside: 0.4×180+0.1×146.67=72+14.67=86.670.4\times 180+0.1\times 146.67=72+14.67=86.67; 146.67−86.67=60146.67-86.67=60 are left, the final demand. The balance is exact. This check is essential: it catches both inversion errors and mix-ups between the rows and the columns of AA.

Exercise 5: Reading the Leontief inverse

The matrix (I−A)−1\left(I-A\right)^{-1} is not a step in a calculation: each of its entries has a direct economic meaning, and it is the matrix that statistical agencies publish.

  • a) What does the entry in row 1 and column 1 of (I−A)−1\left(I-A\right)^{-1}, here 1.5, represent?
  • b) What does the entry in row 2 and column 1, here 0.6‾0.\overline{6}, represent?
  • c) Why are all the entries greater than or equal to those of II?
  • d) Demand for sector 1 rises from 100 to 120. Compute the new output without redoing everything.
  • e) The sum of a column of (I−A)−1\left(I-A\right)^{-1} is called the MULTIPLIER. Compute the multiplier of sector 1 and interpret it.

Type your answers, the page tells you right or wrong 0/5

a)
b)
d)
e)
Show the solution

Answers

  • a) Total output for one unit delivered
  • b) 0.6‾0.\overline{6}, of which 0.2670.267 is indirect
  • c) I+A+A2+⋯I+A+A^2+\cdots
  • d) (210,160)(210, 160)
  • e) Multiplier 2.16‾2.1\overline{6}
a)

It is the TOTAL output of sector 1 needed to deliver one unit of final demand for sector 1. It is 1.5 and not 1: one and a half units must be produced to deliver one, because part of the output is used up along the way, by sector 1 itself and indirectly by sector 2, which supplies it.

b)

It is the output of sector 2 needed to deliver one unit of final demand for SECTOR 1. It is 0.6‾0.\overline{6}: each unit delivered by sector 1 mobilizes two thirds of a unit of output from sector 2, whereas the technology table announced only 0.4 directly. The difference, 0.267, is the INDIRECT effect: sector 2 must also feed the extra output of sector 1 that it triggered itself.

c)

Because output is always at least what is delivered: one unit delivered costs one unit produced, plus everything consumed to produce it. Formally, (I−A)−1=I+A+A2+A3+⋯\left(I-A\right)^{-1}=I+A+A^{2}+A^{3}+\cdots when the series converges, which is the case as soon as the economy is productive. The term II is the direct delivery, AA the first-round consumption, A2A^{2} the second-round one, and so on: every entry added is positive.

d)

Since the solution is linear, it is enough to multiply the inverse by the new demand vector: x=(1.50.50.6‾1.3‾)(12060)=(180+3080+80)=(210160)x=\begin{pmatrix}1.5 & 0.5\\0.\overline{6} & 1.\overline{3}\end{pmatrix}\begin{pmatrix}120\\60\end{pmatrix}=\begin{pmatrix}180+30\\80+80\end{pmatrix}=\begin{pmatrix}210\\160\end{pmatrix}. This is the whole point of computing the inverse once: any demand scenario is then handled by a single product. The extra 20 units of demand required 30 units of output in sector 1 and 13.33 in sector 2.

e)

Multiplier of sector 1: 1.5+0.6‾=2.16‾1.5+0.\overline{6}=2.1\overline{6}. It means that one unit of final demand addressed to sector 1 triggers 2.17 units of output in total across the economy. This is exactly the reasoning of economic impact studies: a project that orders one million dollars from a sector with a multiplier of 2.17 generates 2.17 million dollars of output. Be aware that such studies often overstate the effect, because they assume idle capacity and constant technical coefficients.

Part B: problems and reasoning (/50)

Exercise 6: The age-class population matrix

Third matrix model: demography. The population is split into age classes, survival and fertility rates are written down, and the matrix ages the population by one period.

Three classes. Fertility: 0 for the young, 1.5 for adults, 1.2 for seniors. Survival: 0.6 of the young become adults, 0.4 of adults become seniors. Initial population: 100, 80 and 50.

In the figure, the orange arrows carry the fertility rates, the blue ones the survival rates, and each circle the initial size of its class.

100young80adults50seniors0.60.41.51.2
  • a) Write the Leslie matrix LL.
  • b) Compute the population after one period, then after two.
  • c) Does the total population grow steadily? Comment.
  • d) The long-term growth rate is the largest eigenvalue of LL, which satisfies λ3=0.9λ+0.288\lambda^{3}=0.9\lambda+0.288. Check that λ≈1.080\lambda\approx 1.080.
  • e) What would happen if adult fertility fell to 1.0?

Type your answers, the page tells you right or wrong 0/7

b)
c)
d)
e)
Show the solution

Answers

  • a) L=(01.51.20.60000.40)L=\begin{pmatrix}0&1.5&1.2\\0.6&0&0\\0&0.4&0\end{pmatrix}
  • b) (180,60,32)(180, 60, 32), then (128.4,108,24)(128.4, 108, 24)
  • c) No: 230, 272, 260.4
  • d) λ≈1.080\lambda\approx 1.080
  • e) λ≈0.95\lambda\approx 0.95; threshold f≈1.19f\approx 1.19
a)

L=(01.51.20.60000.40)L=\begin{pmatrix}0 & 1.5 & 1.2\\0.6 & 0 & 0\\0 & 0.4 & 0\end{pmatrix}. The first ROW carries the fertility rates, the SUBDIAGONAL carries the survival rates. Every other entry is zero: nobody gets younger and nobody skips a class.

b)

x1=Lx0=(1.5×80+1.2×500.6×1000.4×80)=(120+606032)=(1806032)x_{1}=Lx_{0}=\begin{pmatrix}1.5\times 80+1.2\times 50\\0.6\times 100\\0.4\times 80\end{pmatrix}=\begin{pmatrix}120+60\\60\\32\end{pmatrix}=\begin{pmatrix}180\\60\\32\end{pmatrix}, total 272. Then x2=(1.5×60+1.2×320.6×1800.4×60)=(90+38.410824)=(128.410824)x_{2}=\begin{pmatrix}1.5\times 60+1.2\times 32\\0.6\times 180\\0.4\times 60\end{pmatrix}=\begin{pmatrix}90+38.4\\108\\24\end{pmatrix}=\begin{pmatrix}128.4\\108\\24\end{pmatrix}, total 260.4.

c)

No, not steadily: the total population goes from 230 to 272, then falls back to 260.4. These oscillations are TRANSIENT and come from the unbalanced initial age structure: the first period produces a wave of young individuals that takes two periods to work its way through. After several periods, the structure settles and growth becomes geometric, at the rate given by the dominant eigenvalue. Demographers know this phenomenon well as the POPULATION WAVE, and it explains, for example, the echoes of the baby boom.

d)

Test λ=1.08\lambda=1.08: 1.083=1.2597121.08^{3}=1.259712 and 0.9×1.08+0.288=0.972+0.288=1.2600.9\times 1.08+0.288=0.972+0.288=1.260. The difference is −0.000288-0.000288, so λ\lambda is very slightly greater than 1.08. Testing λ=1.081\lambda=1.081: 1.2632141.263214 against 1.26091.2609, the difference changes sign. The dominant eigenvalue is therefore about 1.0801: in the long run, the population grows by about 8.0% per period, whatever its initial structure.

e)

The equation becomes λ3=0.6λ+0.288\lambda^{3}=0.6\lambda+0.288. Testing λ=1\lambda=1: 11 against 0.8880.888, so the left-hand side already wins and the root is LESS than 1. Testing λ=0.95\lambda=0.95: 0.8570.857 against 0.8580.858, nearly equal. The eigenvalue is therefore about 0.95: the population would DECLINE by about 5% per period. The replacement threshold is obtained by setting λ=1\lambda=1, that is 1=0.6f+0.2881=0.6f+0.288 for an adult fertility ff, so f=0.7120.6≈1.19f=\dfrac{0.712}{0.6}\approx 1.19: below 1.19 offspring per adult per period, the population decreases.

Exercise 7: Eigenvalues and long-term behaviour

The three previous models share the same skeleton: xn+1=Mxnx_{n+1}=Mx_{n}. The long-term behaviour is read entirely in the eigenvalues of MM, and this is where the linear algebra course comes full circle.

  • a) Compute the characteristic polynomial of P=(0.80.30.20.7)P=\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix} and its eigenvalues.
  • b) Show that the steady-state vector is an eigenvector, and for which eigenvalue.
  • c) What does the second eigenvalue govern?
  • d) Why does every stochastic matrix have 1 as an eigenvalue?
  • e) What does the dominant eigenvalue say in the case of the Leslie matrix?

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
e)
Show the solution

Answers

  • a) λ=1\lambda=1 and λ=0.5\lambda=0.5
  • b) Eigenvalue 1
  • c) Speed of convergence
  • d) The rows of P−IP-I add up to zero
  • e) Growth rate and stable structure
a)

det⁡(P−λI)=(0.8−λ)(0.7−λ)−0.3×0.2=λ2−1.5λ+0.56−0.06=λ2−1.5λ+0.5\det\left(P-\lambda I\right)=\left(0.8-\lambda\right)\left(0.7-\lambda\right)-0.3\times 0.2=\lambda^{2}-1.5\lambda+0.56-0.06=\lambda^{2}-1.5\lambda+0.5. Roots: λ=1.5±2.25−22=1.5±0.52\lambda=\dfrac{1.5\pm \sqrt{2.25-2}}{2}=\dfrac{1.5\pm 0.5}{2}, so λ1=1\lambda_{1}=1 and λ2=0.5\lambda_{2}=0.5. Check: the trace, 1.5, is the sum of the eigenvalues, and the determinant, 0.5, their product.

b)

The steady-state vector satisfies Px=x=1×xPx=x=1\times x: this is exactly the definition of an eigenvector associated with the eigenvalue 1. Computing the steady state through (P−I)x=0\left(P-I\right)x=0 was therefore, without saying so, a search for an eigenspace.

c)

The second eigenvalue governs the SPEED of convergence. Every initial condition decomposes along the two eigenvectors; the component associated with λ1=1\lambda_{1}=1 stays constant, the one associated with λ2=0.5\lambda_{2}=0.5 is multiplied by 0.5 at every step and fades away. This is exactly what we observed: the gap to the limit was halved at every step, from 0.20 to 0.10 then 0.05. The smaller ∣λ2∣\left|\lambda_{2}\right| is, the faster the chain settles.

d)

Because the columns of PP sum to 1, so the columns of P−IP-I sum to 0, so the sum of the ROWS of P−IP-I is the zero vector: the rows are linearly dependent and det⁡(P−I)=0\det\left(P-I\right)=0. Now det⁡(P−λI)=0\det\left(P-\lambda I\right)=0 at λ=1\lambda=1 means precisely that 1 is an eigenvalue. The argument holds for every stochastic matrix, of any size.

e)

For a Leslie matrix, the dominant eigenvalue λ\lambda is the asymptotic GROWTH RATE of the population: λ>1\lambda>1 for a growing population, λ=1\lambda=1 at the replacement threshold, λ<1\lambda<1 for a declining population. Its eigenvector gives the stable AGE STRUCTURE to which the population converges, whatever its initial composition. These two results, rate and structure, are the core of mathematical demography, and they are obtained exactly as in the chapter on diagonalization.

Exercise 8: Five statements to correct

Each of the following five statements is FALSE. Say why and give the correct statement.

  • 1) “The entry p12=0.3p_{12}=0.3 means that 30% of state 1 moves to state 2.”
  • 2) “The long-term distribution depends on the initial distribution.”
  • 3) “To meet a final demand of 100 units, producing 100 is enough.”
  • 4) “The system (P−I)x=0\left(P-I\right)x=0 has only the zero solution, since it is homogeneous.”
  • 5) “The total population grows by 18% in the first period, so it will grow by 18% in every period.”

Type your answers, the page tells you right or wrong 0/5

1)
2)
3)
4)
5)
Show the solution

Answers

  • 1) From state 2 to state 1
  • 2) The matrix alone decides
  • 3) Produce 180 and 146.67
  • 4) Infinitely many solutions
  • 5) Stable growth of 8%
1)

FALSE in the COLUMN convention, which is the one used in this chapter. The left index is the row, so the DESTINATION, and the right index is the column, so the ORIGIN: p12p_{12} reads “from state 2 to state 1”. Correct statement: 30% of state 2 moves to state 1. In the row convention the reading would be reversed, which is why the convention must be stated at the start of the problem.

2)

FALSE for a REGULAR chain, that is, one with a power whose entries are all strictly positive. Such a chain has a unique steady state, reached whatever the initial distribution, which only affects the speed of convergence. Correct statement: the long-term distribution depends only on the transition matrix. It can depend on the start if the chain has several closed classes, a case excluded here.

3)

FALSE. Producing consumes: enough must be produced to deliver AND to feed production itself. The matrix (I−A)−1\left(I-A\right)^{-1} measures exactly this extra amount, and its diagonal entry was 1.5 here. Correct statement: to deliver 100 units of sector 1 and 60 of sector 2, 180 and 146.67 units must be produced.

4)

FALSE. A homogeneous system ALWAYS has the zero solution, but it has others as soon as the determinant is zero. Here the columns of PP sum to 1, so the rows of P−IP-I add up to zero and the determinant is zero: there are infinitely many solutions, all proportional. Correct statement: the system has a line of solutions, and the constraint that the sum equals 1 picks out a single one.

5)

FALSE. The growth of the first periods is TRANSIENT: it depends on the initial age structure, and it oscillates, here +18.3%+18.3\% then −4.3%-4.3\%. The stable growth rate is given by the dominant eigenvalue, about 1.080, that is 8.0% per period. Correct statement: the population converges to geometric growth of 8% per period, after a phase of oscillations caused by its initial age structure.

Exercise 9: Problem: mobility between three programs

Every year, a CEGEP tracks how its students move between three programs. Of those in program 1, 70% stay, 20% move to 2 and 10% to 3. Of those in 2, 80% stay, 10% move to 1 and 10% to 3. Of those in 3, 80% stay, 10% move to 1 and 10% to 2. Current distribution: 400, 350 and 250.

The figure shows the yearly moves between programs and the current enrolments.

123program 1: 400program 2: 350program 3: 25020%10%10%10%10%10%
  • a) Write the transition matrix in the column convention and check the columns.
  • b) Compute the distribution after one year.
  • c) Write the system (P−I)x=0\left(P-I\right)x=0 and solve it with a+b+c=1,000a+b+c=1{,}000.
  • d) Check that the solution is indeed stationary.
  • e) The CEGEP wants to know how many places to plan for in the long run in each program. What should it be told, and with what reservations?

Type your answers, the page tells you right or wrong 0/7

b)
c)
e)
Show the solution

Answers

  • a) P=(0.70.10.10.20.80.10.10.10.8)P=\begin{pmatrix}0.7&0.1&0.1\\0.2&0.8&0.1\\0.1&0.1&0.8\end{pmatrix}
  • b) (340,385,275)(340, 385, 275)
  • c) (250,416.7,333.3)(250, 416.7, 333.3)
  • d) Vector unchanged
  • e) A trend, not a plan
a)

P=(0.70.10.10.20.80.10.10.10.8)P=\begin{pmatrix}0.7 & 0.1 & 0.1\\0.2 & 0.8 & 0.1\\0.1 & 0.1 & 0.8\end{pmatrix}. Columns: 0.7+0.2+0.1=10.7+0.2+0.1=1; 0.1+0.8+0.1=10.1+0.8+0.1=1; 0.1+0.1+0.8=10.1+0.1+0.8=1. All three sum to 1.

b)

x1=Px0x_{1}=Px_{0} with x0=(400350250)x_{0}=\begin{pmatrix}400\\350\\250\end{pmatrix}. First component: 0.7×400+0.1×350+0.1×250=280+35+25=3400.7\times 400+0.1\times 350+0.1\times 250=280+35+25=340. Second: 0.2×400+0.8×350+0.1×250=80+280+25=3850.2\times 400+0.8\times 350+0.1\times 250=80+280+25=385. Third: 0.1×400+0.1×350+0.8×250=40+35+200=2750.1\times 400+0.1\times 350+0.8\times 250=40+35+200=275. Total: 340+385+275=1,000340+385+275=1{,}000, the population is conserved.

c)

The system (P−I)x=0\left(P-I\right)x=0 reads −0.3a+0.1b+0.1c=0-0.3a+0.1b+0.1c=0, 0.2a−0.2b+0.1c=00.2a-0.2b+0.1c=0 and 0.1a+0.1b−0.2c=00.1a+0.1b-0.2c=0. From the third: c=a+b2c=\dfrac{a+b}{2}. Substituting into the first: −0.3a+0.1b+0.05(a+b)=0-0.3a+0.1b+0.05\left(a+b\right)=0, that is −0.25a+0.15b=0-0.25a+0.15b=0 and b=53ab=\dfrac{5}{3}a. Then c=a+53a2=43ac=\dfrac{a+\frac{5}{3}a}{2}=\dfrac{4}{3}a. The constraint gives a+53a+43a=4a=1,000a+\dfrac{5}{3}a+\dfrac{4}{3}a=4a=1{,}000, so a=250a=250, b≈416.7b\approx 416.7 and c≈333.3c\approx 333.3.

d)

First component: 0.7×250+0.1×416.6‾+0.1×333.3‾=175+41.6‾+33.3‾=2500.7\times 250+0.1\times 416.\overline{6}+0.1\times 333.\overline{3}=175+41.\overline{6}+33.\overline{3}=250. Second: 0.2×250+0.8×416.6‾+0.1×333.3‾=50+333.3‾+33.3‾=416.6‾0.2\times 250+0.8\times 416.\overline{6}+0.1\times 333.\overline{3}=50+333.\overline{3}+33.\overline{3}=416.\overline{6}. Third: 0.1×250+0.1×416.6‾+0.8×333.3‾=25+41.6‾+266.6‾=333.3‾0.1\times 250+0.1\times 416.\overline{6}+0.8\times 333.\overline{3}=25+41.\overline{6}+266.\overline{6}=333.\overline{3}. The vector is unchanged, and the third equation of the system serves as an independent check.

e)

In the long run, about 250 places should be planned in program 1, 417 in program 2 and 333 in program 3, a marked redistribution compared with the current 400, 350 and 250: program 1 would lose 150 students and program 3 would gain 83. Three reservations are in order. The matrix assumes CONSTANT transition rates, which no decade guarantees. The model ignores students entering and leaving the CEGEP: it redistributes a closed population of 1,000 students, whereas recruitment and graduation change everything. Finally, convergence is slow: after three or four years the gap to the limit is still sizeable, and the CEGEP would have time to observe and adjust. The calculation therefore shows a TREND, not a facilities plan.

Exercise 10: Problem: reading an input-output table

An agency publishes, for a region, the table of technical coefficients A=(0.250.200.300.15)A=\begin{pmatrix}0.25 & 0.20\\0.30 & 0.15\end{pmatrix} for two sectors, agriculture and manufacturing, and announces: “an order of 200 units from agriculture will create 200 units of output”.

  • a) Compute I−AI-A, its determinant and its inverse.
  • b) Compute the output required for a final demand of 200 and 0.
  • c) What is wrong with the agency's announcement?
  • d) Compute the two multipliers and say which of the two sectors has the stronger knock-on effect.
  • e) Write the correct sentence of the press release.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) det⁡=0.5775\det=0.5775
  • b) (294.4,103.9)(294.4, 103.9)
  • c) Final demand confused with output
  • d) 1.991.99 against 1.6451.645: agriculture
  • e) Output distinguished, assumptions stated
a)

I−A=(0.75−0.20−0.300.85)I-A=\begin{pmatrix}0.75 & -0.20\\-0.30 & 0.85\end{pmatrix}. Determinant: 0.75×0.85−(−0.20)(−0.30)=0.6375−0.06=0.57750.75\times 0.85-\left(-0.20\right)\left(-0.30\right)=0.6375-0.06=0.5775. Inverse: 10.5775(0.850.200.300.75)≈(1.47190.34630.51951.2987)\dfrac{1}{0.5775}\begin{pmatrix}0.85 & 0.20\\0.30 & 0.75\end{pmatrix}\approx \begin{pmatrix}1.4719 & 0.3463\\0.5195 & 1.2987\end{pmatrix}.

b)

x=(I−A)−1(2000)=(1.4719×2000.5195×200)≈(294.4103.9)x=\left(I-A\right)^{-1}\begin{pmatrix}200\\0\end{pmatrix}=\begin{pmatrix}1.4719\times 200\\0.5195\times 200\end{pmatrix}\approx \begin{pmatrix}294.4\\103.9\end{pmatrix}. So about 294.4 units of agriculture and 103.9 of manufacturing must be produced, 398.3 units in total.

c)

The agency confuses FINAL DEMAND with OUTPUT. An order of 200 units delivered requires 294.4 units produced in the sector that receives the order, because part of the output is used up by the process itself, and it also drives 103.9 units in the other sector. Announcing 200 units of output understates the total effect by a factor of about 2, and this time the error goes towards an underestimate, which is rarer than the opposite in impact studies.

d)

Multiplier of agriculture: 1.4719+0.5195≈1.99131.4719+0.5195\approx 1.9913. Multiplier of manufacturing: 0.3463+1.2987≈1.64500.3463+1.2987\approx 1.6450. AGRICULTURE is therefore the sector with the stronger knock-on effect: each unit of final demand addressed to it triggers nearly two units of output in the region, against 1.65 for manufacturing. The reason can be read in the matrix: agriculture consumes more, 0.25 and 0.30 against 0.20 and 0.15, so it draws more heavily on the productive system.

e)

“An order of 200 units of final demand addressed to agriculture would drive about 294 units of agricultural output and 104 units of manufacturing output, nearly 398 units in total. The multiplier of agriculture is estimated at 1.99, against 1.65 for manufacturing. These estimates assume constant technical coefficients and available production capacity; they therefore hold only for moderate changes in demand and an unchanged production structure.” Three corrections: output is distinguished from final demand, the effect on the other sector is quantified, and the assumptions of the model are stated.

Part C: the classics (/50)

Exercise 11: Running a Markov chain backwards in time

Take again the transition matrix P=(0.80.30.20.7)P=\begin{pmatrix}0.8 & 0.3\\0.2 & 0.7\end{pmatrix} in the column convention. Knowing today's distribution, can we recover last year's?

  • a) Compute det⁡P\det P and P−1P^{-1}.
  • b) Do the columns of P−1P^{-1} sum to 11? Is P−1P^{-1} a transition matrix?
  • c) Today's distribution is (0.700.30)\begin{pmatrix}0.70\\0.30\end{pmatrix}. Compute last year's and compare with exercise 1.
  • d) Today's distribution is (0.90.1)\begin{pmatrix}0.9\\0.1\end{pmatrix}. Apply P−1P^{-1} to this vector. What do you conclude?
  • e) After one step of this chain, between which values can the share of state A lie?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) det⁡P=0.5\det P=0.5; P−1=(1.4−0.6−0.41.6)P^{-1}=\begin{pmatrix}1.4&-0.6\\-0.4&1.6\end{pmatrix}
  • b) Negative entries: no
  • c) (0.8,0.2)(0.8, 0.2)
  • d) (1.2,−0.2)(1.2, -0.2): no predecessor
  • e) Between 0.30.3 and 0.80.8
a)

det⁡P=0.56−0.06=0.5\det P=0.56-0.06=0.5, and P−1=10.5(0.7−0.3−0.20.8)=(1.4−0.6−0.41.6)P^{-1}=\frac{1}{0.5}\begin{pmatrix}0.7 & -0.3\\-0.2 & 0.8\end{pmatrix}=\begin{pmatrix}1.4 & -0.6\\-0.4 & 1.6\end{pmatrix}.

b)

The columns do sum to 11: 1.4−0.4=11.4-0.4=1 and −0.6+1.6=1-0.6+1.6=1. But P−1P^{-1} has NEGATIVE entries: they are not probabilities, and P−1P^{-1} is not a transition matrix.

c)

P−1(0.700.30)=(0.98−0.18−0.28+0.48)=(0.80.2)P^{-1}\begin{pmatrix}0.70\\0.30\end{pmatrix}=\begin{pmatrix}0.98-0.18\\-0.28+0.48\end{pmatrix}=\begin{pmatrix}0.8\\0.2\end{pmatrix}: this is exactly x1x_{1} of exercise 1, whose image was x2x_{2}.

d)

P−1(0.90.1)=(1.26−0.06−0.36+0.16)=(1.2−0.2)P^{-1}\begin{pmatrix}0.9\\0.1\end{pmatrix}=\begin{pmatrix}1.26-0.06\\-0.36+0.16\end{pmatrix}=\begin{pmatrix}1.2\\-0.2\end{pmatrix}: a negative share and a share greater than 11. The matrix arithmetic works, but no real distribution leads to (0.90.1)\begin{pmatrix}0.9\\0.1\end{pmatrix} in one year: this state cannot be the result of one step of the chain.

e)

If the initial distribution is (a,1−a)(a, 1-a) with 0≤a≤10\leq a\leq 1, the share of A after one step is 0.8a+0.3(1−a)=0.3+0.5a0.8a+0.3(1-a)=0.3+0.5a, between 0.30.3 and 0.80.8. No distribution outside this interval has a predecessor, hence the result of d). A Markov chain “forgets”: it brings distributions closer together, and we cannot always go back.

The thread: an invertible transition matrix allows the backward calculation, but only reachable distributions have a consistent past.

Exercise 12: Leslie with two classes: growth rate and stable structure

An insect population is divided into young and adults. In each period, each young insect produces on average 11 offspring and each adult 1.51.5; half of the young survive and become adults; adults then die. The Leslie matrix is L=(11.50.50)L=\begin{pmatrix}1 & 1.5\\0.5 & 0\end{pmatrix}, and we start from x0=(1000)x_{0}=\begin{pmatrix}100\\0\end{pmatrix}.

YAyoungadults0.51.51
  • a) Justify each entry of LL.
  • b) Compute x1x_{1}, x2x_{2} and x3x_{3}.
  • c) Compute the eigenvalues of LL.
  • d) Find an eigenvector associated with the largest eigenvalue, and the share of the young in the stable structure.
  • e) Compute the share of the young in each period of b), to three decimal places. How does it evolve?

Type your answers, the page tells you right or wrong 0/6

b)
c)
d)
e)
Show the solution

Answers

  • a) Fertility in row 1, survival below the diagonal
  • b) (100,50)(100, 50), (175,50)(175, 50), (250,87.5)(250, 87.5)
  • c) 1.51.5 and −0.5-0.5
  • d) (3,1)(3, 1): 75% young
  • e) 0.6670.667; 0.7780.778; 0.7410.741: oscillates towards 0.750.75
a)

The first row gives the births: 11 per young insect, 1.51.5 per adult. The 0.50.5 at the bottom left is the survival of the young who become adults, and the 00 at the bottom right expresses the death of the adults after the period.

b)

x1=(10050)x_{1}=\begin{pmatrix}100\\50\end{pmatrix}, x2=(100+7550)=(17550)x_{2}=\begin{pmatrix}100+75\\50\end{pmatrix}=\begin{pmatrix}175\\50\end{pmatrix}, x3=(175+7587.5)=(25087.5)x_{3}=\begin{pmatrix}175+75\\87.5\end{pmatrix}=\begin{pmatrix}250\\87.5\end{pmatrix}. Totals: 100100, 150150, 225225, 337.5337.5.

c)

det⁡(L−λI)=λ2−λ−0.75=(λ−1.5)(λ+0.5)\det(L-\lambda I)=\lambda^{2}-\lambda-0.75=(\lambda-1.5)(\lambda+0.5): eigenvalues 1.51.5 and −0.5-0.5.

d)

For 1.51.5: the second row gives 0.5x1=1.5x20.5x_{1}=1.5x_{2}, so x1=3x2x_{1}=3x_{2}, eigenvector (3,1)(3, 1). In the stable structure, the young make up 34=75%\frac{3}{4}=75\% of the population, which is multiplied by 1.51.5 in each period.

e)

100150≈0.667\frac{100}{150}\approx 0.667, 175225≈0.778\frac{175}{225}\approx 0.778, 250337.5≈0.741\frac{250}{337.5}\approx 0.741: the share oscillates around 0.750.75 while getting closer to it, because the component along the eigenvector of −0.5-0.5 changes sign at each period and is halved while the total grows by a factor of 1.51.5: the gap to 0.750.75 is divided by 33 at each period. Here the total, for its part, is multiplied by 1.51.5 from the very first period: x0=25(3,1)+25(1,−1)x_{0}=25(3, 1)+25(1, -1), and the second eigenvector has components that add up to zero.

The thread: the dominant eigenvalue gives the growth rate, its eigenvector the age structure; the second eigenvalue controls the oscillations.

Exercise 13: The Leontief price model

Take again the two-sector economy of exercise 4, with technology matrix A=(0.20.30.40.1)A=\begin{pmatrix}0.2 & 0.3\\0.4 & 0.1\end{pmatrix}, where column jj gives the inputs consumed by one unit of sector jj.

The price pjp_{j} of one unit of sector jj covers its inputs, a1jp1+a2jp2a_{1j}p_{1}+a_{2j}p_{2}, and a value added vjv_{j} per unit, wages and profits. Hence the price equation p=ATp+vp=A^{T}p+v.

  • a) Write ATA^{T} and the matrix I−ATI-A^{T}, and compute its determinant.
  • b) For v=(0.40.6)v=\begin{pmatrix}0.4\\0.6\end{pmatrix}, compute the prices pp.
  • c) Explain why these prices come out, by comparing vv with the column sums of AA.
  • d) Wages rise in sector 1 only: v=(0.50.6)v=\begin{pmatrix}0.5\\0.6\end{pmatrix}. Compute the new prices.
  • e) By what percentage does the price of sector 2 rise, although its value added has not changed? Explain.

Type your answers, the page tells you right or wrong 0/7

a)
b)
d)
e)
Show the solution

Answers

  • a) I−AT=(0.8−0.4−0.30.9)I-A^T=\begin{pmatrix}0.8&-0.4\\-0.3&0.9\end{pmatrix}, det⁡=0.6\det=0.6
  • b) p=(1,1)p=(1, 1)
  • c) vv tops each column up to 1
  • d) p=(1.15,1.05)p=(1.15, 1.05)
  • e) +5+5% through the inputs
a)

AT=(0.20.40.30.1)A^{T}=\begin{pmatrix}0.2 & 0.4\\0.3 & 0.1\end{pmatrix} and I−AT=(0.8−0.4−0.30.9)I-A^{T}=\begin{pmatrix}0.8 & -0.4\\-0.3 & 0.9\end{pmatrix}, with determinant 0.72−0.12=0.60.72-0.12=0.6, the same as that of I−AI-A: a matrix and its transpose have the same determinant.

b)

(I−AT)−1=10.6(0.90.40.30.8)(I-A^{T})^{-1}=\frac{1}{0.6}\begin{pmatrix}0.9 & 0.4\\0.3 & 0.8\end{pmatrix}, so p=10.6(0.36+0.240.12+0.48)=(11)p=\frac{1}{0.6}\begin{pmatrix}0.36+0.24\\0.12+0.48\end{pmatrix}=\begin{pmatrix}1\\1\end{pmatrix}.

c)

The columns of AA sum to 0.60.6 and 0.40.4: one unit of sector 1 consumes 0.60.6 unit of inputs, one unit of sector 2 consumes 0.40.4. With v=(0.4,0.6)v=(0.4, 0.6), each value added tops its column up to exactly 11: if all prices are 11, each unit costs 11. This is the normalization of input-output tables expressed in value.

d)

p=10.6(0.45+0.240.15+0.48)=(1.151.05)p=\frac{1}{0.6}\begin{pmatrix}0.45+0.24\\0.15+0.48\end{pmatrix}=\begin{pmatrix}1.15\\1.05\end{pmatrix}.

e)

The price of sector 2 goes from 11 to 1.051.05: +5%+5\%. Sector 2 buys 0.30.3 unit of sector 1 per unit produced, and that sector has become more expensive: the increase is PASSED ON through intermediate consumption. Sector 1 itself rises by 15%15\%, more than its value added alone, because it also consumes its own products and those of sector 2.

The thread: quantities propagate through AA, prices through its transpose; a local cost increase spreads to the whole economy.

Exercise 14: Problem: the students' path, an absorbing chain

A two-year program tracks its students. Each year, in first year: 60%60\% move up to second year, 25%25\% repeat the year and 15%15\% drop out. In second year: 70%70\% graduate, 20%20\% repeat the year and 10%10\% drop out. Graduation and dropping out are ABSORBING states: once there, a student never leaves.

Let QQ be the matrix of moves between the two years, RR the matrix of moves from the years to graduation and dropping out, in the column convention, and N=(I−Q)−1N=(I-Q)^{-1}.

Year 1Year 2diplomadropout60%70%15%10%25%20%
  • a) Write QQ and RR, and check that each column of the complete matrix sums to 11.
  • b) What is the probability that a first-year student graduates in exactly two years?
  • c) Compute N=(I−Q)−1N=(I-Q)^{-1}.
  • d) The entry NijN_{ij} is the average number of years spent in year ii by a student who starts in year jj. On average, how many years does a first-year student spend in the program?
  • e) The matrix RNRN gives the absorption probabilities. Compute it. Out of 1,0001{,}000 students who enter first year, how many graduate?

Type your answers, the page tells you right or wrong 0/8

b)
c)
d)
e)
Show the solution

Answers

  • a) Q=(0.2500.60.2)Q=\begin{pmatrix}0.25&0\\0.6&0.2\end{pmatrix}, R=(00.70.150.1)R=\begin{pmatrix}0&0.7\\0.15&0.1\end{pmatrix}
  • b) 0.420.42
  • c) N=(1.3‾011.25)N=\begin{pmatrix}1.\overline3&0\\1&1.25\end{pmatrix}
  • d) 2.3‾2.\overline3 years
  • e) 0.70.7 and 0.8750.875; 700 graduates
a)

Q=(0.2500.60.2)Q=\begin{pmatrix}0.25 & 0\\0.6 & 0.2\end{pmatrix} and R=(00.70.150.1)R=\begin{pmatrix}0 & 0.7\\0.15 & 0.1\end{pmatrix}, rows graduation then dropout. Column of first year: 0.25+0.6+0+0.15=10.25+0.6+0+0.15=1. Column of second year: 0+0.2+0.7+0.1=10+0.2+0.7+0.1=1.

b)

The student must move up to second year and then graduate: 0.6×0.7=0.420.6\times 0.7=0.42.

c)

I−Q=(0.750−0.60.8)I-Q=\begin{pmatrix}0.75 & 0\\-0.6 & 0.8\end{pmatrix}, with determinant 0.60.6, so N=10.6(0.800.60.75)=(1.3‾011.25)N=\frac{1}{0.6}\begin{pmatrix}0.8 & 0\\0.6 & 0.75\end{pmatrix}=\begin{pmatrix}1.\overline{3} & 0\\1 & 1.25\end{pmatrix}.

d)

First column of NN: 1.3‾1.\overline{3} years in first year and 11 year in second year, that is 2.3‾2.\overline{3} years on average, repeated years included, before graduating or dropping out.

e)

RN=(0×1.3‾+0.7×10.7×1.250.15×1.3‾+0.1×10.1×1.25)=(0.70.8750.30.125)RN=\begin{pmatrix}0\times 1.\overline{3}+0.7\times 1 & 0.7\times 1.25\\0.15\times 1.\overline{3}+0.1\times 1 & 0.1\times 1.25\end{pmatrix}=\begin{pmatrix}0.7 & 0.875\\0.3 & 0.125\end{pmatrix}. A first-year student graduates with probability 0.70.7: 700700 graduates out of 1,0001{,}000. Direct check: 0.60.75×0.70.8=0.8×0.875=0.7\frac{0.6}{0.75}\times\frac{0.7}{0.8}=0.8\times 0.875=0.7.

The thread: in an absorbing chain, the fundamental matrix (I−Q)−1(I-Q)^{-1} counts the visits, and RNRN gives where the chain ends up.

Exercise 15: Problem: a population that migrates and grows

A region has a city and its suburbs. Every year, 10%10\% of the city's residents move to the suburbs and 5%5\% of the suburban residents settle in the city; then the population of each zone grows by 2%2\%. Let P=(0.90.050.10.95)P=\begin{pmatrix}0.9 & 0.05\\0.1 & 0.95\end{pmatrix} and M=1.02 PM=1.02\,P. At the start, the city has 600600 thousand residents and the suburbs 400400 thousand.

In the figure, populations are in thousands of residents.

city: 600suburbs: 40010%5%then each zone grows by 2%
  • a) Write the matrix MM.
  • b) Compute the distribution after one year and check the total.
  • c) Compute the eigenvalues of PP, then those of MM.
  • d) Find the steady-state distribution of PP. What share of the population will live in the city in the long run?
  • e) The city's share satisfies sn=13+(0.6−13)0.85ns_{n}=\frac{1}{3}+\left(0.6-\frac{1}{3}\right)0.85^{n}. Compute the total population and the city's population after 2020 years, to the nearest thousand.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) M=(0.9180.0510.1020.969)M=\begin{pmatrix}0.918&0.051\\0.102&0.969\end{pmatrix}
  • b) (571.2,448.8)(571.2, 448.8), total 1,020
  • c) PP: 1 and 0.850.85; MM: 1.021.02 and 0.8670.867
  • d) One third in the city
  • e) 1,486 thousand, of which 511 in the city
a)

M=(0.9180.0510.1020.969)M=\begin{pmatrix}0.918 & 0.051\\0.102 & 0.969\end{pmatrix}: the columns sum to 1.021.02 and no longer to 11, so the matrix is no longer stochastic.

b)

Mx0=(0.918×600+0.051×4000.102×600+0.969×400)=(571.2448.8)Mx_{0}=\begin{pmatrix}0.918\times 600+0.051\times 400\\0.102\times 600+0.969\times 400\end{pmatrix}=\begin{pmatrix}571.2\\448.8\end{pmatrix}. Total 1,0201{,}020 thousand: 2%2\% more.

c)

PP: trace 1.851.85, determinant 0.855−0.005=0.850.855-0.005=0.85, so eigenvalues 11 and 0.850.85. M=1.02PM=1.02P multiplies each eigenvalue by 1.021.02: 1.021.02 and 0.8670.867, with the same eigenvectors.

d)

0.1a=0.05b0.1a=0.05b gives b=2ab=2a, and a+b=1a+b=1 gives a=13a=\frac{1}{3}. In the long run, one third of the population lives in the city and two thirds in the suburbs, whatever the growth.

e)

Total: 1,000×1.0220≈1,4861{,}000\times 1.02^{20}\approx 1{,}486 thousand. City's share: 0.8520≈0.03880.85^{20}\approx 0.0388, so s20≈13+0.2667×0.0388≈0.3437s_{20}\approx\frac{1}{3}+0.2667\times 0.0388\approx 0.3437, and the city has about 0.3437×1,486≈5110.3437\times 1{,}486\approx 511 thousand residents. The eigenvalue 1.021.02 sets the growth, its eigenvector the distribution, and 0.850.85 the speed at which the city loses its initial surplus.

The thread: multiplying a transition matrix by a growth factor multiplies its eigenvalues without changing its eigenvectors.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Eigenvalues and diagonalization, 201-SN4-RE Next chapter Complex numbers and De Moivre's theorem, 201-SN4-RE

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn4-matrix-models. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a linear algebra tutor in Montreal?

Get in touch for a first session. Matrix models are the part of the course where linear algebra stops being abstract, and that is often where it finally clicks.

Site by Studio Squalli