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=Mxn, and their whole long-term behaviour is read in the eigenvalues of M. Solving (P−I)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.
Self-checking setType 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.
•COLUMN convention: pij reads “from state j to state i”, and every COLUMN sums to 1. In the row convention everything is transposed; the convention must be stated.
•One step: xn+1=Pxn. n steps: xn=Pnx0. The powers of a stochastic matrix remain stochastic.
•Entry (i,j) of P2 automatically adds up every path from j to i in two steps.
•STEADY STATE: solve (P−I)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+d, so (I−A)x=d and x=(I−A)−1d. Column j of A says what one unit of sector j consumes.
•Each entry of (I−A)−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+⋯: 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∣ 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.
a) Write the transition matrix P in the COLUMN convention and check the sum of each column.
b) An initial population is x0=(10). Compute x1=Px0 and x2=Px1.
c) What does the entry p12 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.
Show the solution
Answers
a)P=(0.80.20.30.7)
b)x1=(0.8,0.2), x2=(0.70,0.30)
c)From B to A: 0.3
d)Conservation; otherwise a 10% loss
e)PT, row vector on the left
a)
P=(0.80.20.30.7). First column: 0.8+0.2=1; second column: 0.3+0.7=1. The column convention puts in column j the distribution of what LEAVES state j.
b)
x1=Px0=(0.8×1+0.3×00.2×1+0.7×0)=(0.80.2). 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). The total stays 1 at every step, and that is the check to make.
c)
p12=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, pij reads “from j to i”.
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.30.20.7), whose ROWS sum to 1. The state vector then becomes a ROW vector and we multiply on the right: x1=x0PT. 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 n steps ahead means multiplying n times by P, so computing Pn. This is where the power of a matrix stops being an abstract exercise.
a) Compute P2 for P=(0.80.20.30.7).
b) Check that P2x0 gives back the x2 of the previous exercise.
c) What does the entry in row 1 and column 2 of P2 represent?
d) Compute x3 and x4 starting from x2=(0.700.30).
e) On the graph, two opposite starts converge to the same limit. What can we conclude?
Show the solution
Answers
a)P2=(0.700.300.450.55)
b)P2x0=x2
c)0.45=0.21+0.24
d)x3=(0.65,0.35), x4=(0.625,0.375)
e)The limit does not depend on the start
a)
P2=(0.80.20.30.7)(0.80.20.30.7)=(0.64+0.060.16+0.140.24+0.210.06+0.49)=(0.700.300.450.55). The columns still sum to 1, which is true of every power of a stochastic matrix.
b)
P2x0=(0.700.300.450.55)(10)=(0.700.30), which indeed gives back x2. The associativity of the matrix product guarantees that P(Px0)=(PP)x0: we can move forward step by step or all at once.
c)
The entry in row 1 and column 2 of P2, 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.21; or start from B, move to A, stay in A, that is 0.3×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). Then x4=(0.52+0.1050.13+0.245)=(0.6250.375). 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=x. It is a homogeneous system, exactly the kind of system the linear algebra course teaches you to solve.
a) Write the condition Px=x in the form (P−I)x=0 and give the matrix P−I.
b) Solve the system, with the constraint a+b=1.
c) Check that the vector found is indeed stationary.
d) Why does the system (P−I)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?
Show the solution
Answers
a)P−I=(−0.20.20.3−0.3)
b)(0.6,0.4)
c)Px=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.20.30.7−1)=(−0.20.20.3−0.3). The condition becomes (P−I)x=0, that is, a homogeneous system of two equations in two unknowns.
b)
The two equations are −0.2a+0.3b=0 and 0.2a−0.3b=0: they are proportional, so only one remains. From 0.2a=0.3b we get b=32a. With a+b=1: a+32a=1, so 35a=1 and a=0.6, then b=0.4. The steady-state vector is (0.60.4).
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). The vector is indeed unchanged.
d)
Because the columns of P sum to 1, the sum of the rows of P−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=1 picks, on this line of solutions, the one that represents a distribution; without it, the vector (64) or (600400) would do just as well.
e)
The initial distribution is (0.80.2), but it does not matter at all: since the chain is regular, the population tends to the steady-state distribution (0.60.4), 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.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.
a) Write the technology matrix A and the equation x=Ax+d.
b) Turn it into (I−A)x=d and give the matrix I−A.
c) Compute (I−A)−1.
d) Compute the total output x required.
e) Check the result by putting the internal consumption back together.
Show the solution
Answers
a)A=(0.20.40.30.1)
b)I−A=(0.8−0.4−0.30.9)
c)det=0.6; inverse (1.50.60.51.3)
d)x=(180,146.67)
e)180−80=100, 146.67−86.67=60
a)
A=(0.20.40.30.1), where column j gives what one unit of sector j consumes. The balance equation reads x=Ax+d: total output goes partly to internal exchanges, Ax, and partly to final demand, d.
b)
x−Ax=d, so (I−A)x=d with I−A=(1−0.2−0.4−0.31−0.1)=(0.8−0.4−0.30.9).
c)
Determinant: 0.8×0.9−(−0.3)(−0.4)=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=0.601(0.90.40.30.8)=(1.50.60.51.3).
d)
x=(I−A)−1d=(1.50.60.51.3)(10060)=(150+3066.6+80)=(180146.6). 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=80 units; 180−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.67; 146.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 A.
Exercise 5: Reading the Leontief inverse
The matrix (I−A)−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, here 1.5, represent?
b) What does the entry in row 2 and column 1, here 0.6, represent?
c) Why are all the entries greater than or equal to those of I?
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 is called the MULTIPLIER. Compute the multiplier of sector 1 and interpret it.
Show the solution
Answers
a)Total output for one unit delivered
b)0.6, of which 0.267 is indirect
c)I+A+A2+⋯
d)(210,160)
e)Multiplier 2.16
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: 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+⋯ when the series converges, which is the case as soon as the economy is productive. The term I is the direct delivery, A the first-round consumption, A2 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.60.51.3)(12060)=(180+3080+80)=(210160). 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. 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.
a) Write the Leslie matrix L.
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 L, which satisfies λ3=0.9λ+0.288. Check that λ≈1.080.
e) What would happen if adult fertility fell to 1.0?
Show the solution
Answers
a)L=00.601.500.41.200
b)(180,60,32), then (128.4,108,24)
c)No: 230, 272, 260.4
d)λ≈1.080
e)λ≈0.95; threshold f≈1.19
a)
L=00.601.500.41.200. 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, total 272. Then x2=1.5×60+1.2×320.6×1800.4×60=90+38.410824=128.410824, 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: 1.083=1.259712 and 0.9×1.08+0.288=0.972+0.288=1.260. The difference is −0.000288, so λ is very slightly greater than 1.08. Testing λ=1.081: 1.263214 against 1.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. Testing λ=1: 1 against 0.888, so the left-hand side already wins and the root is LESS than 1. Testing λ=0.95: 0.857 against 0.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, that is 1=0.6f+0.288 for an adult fertility f, so f=0.60.712≈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=Mxn. The long-term behaviour is read entirely in the eigenvalues of M, and this is where the linear algebra course comes full circle.
a) Compute the characteristic polynomial of P=(0.80.20.30.7) 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?
Show the solution
Answers
a)λ=1 and λ=0.5
b)Eigenvalue 1
c)Speed of convergence
d)The rows of P−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. Roots: λ=21.5±2.25−2=21.5±0.5, so λ1=1 and λ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×x: this is exactly the definition of an eigenvector associated with the eigenvalue 1. Computing the steady state through (P−I)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 stays constant, the one associated with λ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∣ is, the faster the chain settles.
d)
Because the columns of P sum to 1, so the columns of P−I sum to 0, so the sum of the ROWS of P−I is the zero vector: the rows are linearly dependent and det(P−I)=0. Now det(P−λI)=0 at λ=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 λ is the asymptotic GROWTH RATE of the population: λ>1 for a growing population, λ=1 at the replacement threshold, λ<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.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 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.”
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: p12 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 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 P sum to 1, so the rows of P−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% then −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.
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 and solve it with a+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?
Show the solution
Answers
a)P=0.70.20.10.10.80.10.10.10.8
b)(340,385,275)
c)(250,416.7,333.3)
d)Vector unchanged
e)A trend, not a plan
a)
P=0.70.20.10.10.80.10.10.10.8. Columns: 0.7+0.2+0.1=1; 0.1+0.8+0.1=1; 0.1+0.1+0.8=1. All three sum to 1.
b)
x1=Px0 with x0=400350250. First component: 0.7×400+0.1×350+0.1×250=280+35+25=340. Second: 0.2×400+0.8×350+0.1×250=80+280+25=385. Third: 0.1×400+0.1×350+0.8×250=40+35+200=275. Total: 340+385+275=1,000, the population is conserved.
c)
The system (P−I)x=0 reads −0.3a+0.1b+0.1c=0, 0.2a−0.2b+0.1c=0 and 0.1a+0.1b−0.2c=0. From the third: c=2a+b. Substituting into the first: −0.3a+0.1b+0.05(a+b)=0, that is −0.25a+0.15b=0 and b=35a. Then c=2a+35a=34a. The constraint gives a+35a+34a=4a=1,000, so a=250, b≈416.7 and c≈333.3.
d)
First component: 0.7×250+0.1×416.6+0.1×333.3=175+41.6+33.3=250. Second: 0.2×250+0.8×416.6+0.1×333.3=50+333.3+33.3=416.6. Third: 0.1×250+0.1×416.6+0.8×333.3=25+41.6+266.6=333.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.300.200.15) for two sectors, agriculture and manufacturing, and announces: “an order of 200 units from agriculture will create 200 units of output”.
a) Compute I−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.
x=(I−A)−1(2000)=(1.4719×2000.5195×200)≈(294.4103.9). 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.9913. Multiplier of manufacturing: 0.3463+1.2987≈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.20.30.7) in the column convention. Knowing today's distribution, can we recover last year's?
a) Compute detP and P−1.
b) Do the columns of P−1 sum to 1? Is P−1 a transition matrix?
c) Today's distribution is (0.700.30). Compute last year's and compare with exercise 1.
d) Today's distribution is (0.90.1). Apply P−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?
Show the solution
Answers
a)detP=0.5; P−1=(1.4−0.4−0.61.6)
b)Negative entries: no
c)(0.8,0.2)
d)(1.2,−0.2): no predecessor
e)Between 0.3 and 0.8
a)
detP=0.56−0.06=0.5, and P−1=0.51(0.7−0.2−0.30.8)=(1.4−0.4−0.61.6).
b)
The columns do sum to 1: 1.4−0.4=1 and −0.6+1.6=1. But P−1 has NEGATIVE entries: they are not probabilities, and P−1 is not a transition matrix.
c)
P−1(0.700.30)=(0.98−0.18−0.28+0.48)=(0.80.2): this is exactly x1 of exercise 1, whose image was x2.
d)
P−1(0.90.1)=(1.26−0.06−0.36+0.16)=(1.2−0.2): a negative share and a share greater than 1. The matrix arithmetic works, but no real distribution leads to (0.90.1) in one year: this state cannot be the result of one step of the chain.
e)
If the initial distribution is (a,1−a) with 0≤a≤1, the share of A after one step is 0.8a+0.3(1−a)=0.3+0.5a, between 0.3 and 0.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 1 offspring and each adult 1.5; half of the young survive and become adults; adults then die. The Leslie matrix is L=(10.51.50), and we start from x0=(1000).
a) Justify each entry of L.
b) Compute x1, x2 and x3.
c) Compute the eigenvalues of L.
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?
Show the solution
Answers
a)Fertility in row 1, survival below the diagonal
b)(100,50), (175,50), (250,87.5)
c)1.5 and −0.5
d)(3,1): 75% young
e)0.667; 0.778; 0.741: oscillates towards 0.75
a)
The first row gives the births: 1 per young insect, 1.5 per adult. The 0.5 at the bottom left is the survival of the young who become adults, and the 0 at the bottom right expresses the death of the adults after the period.
det(L−λI)=λ2−λ−0.75=(λ−1.5)(λ+0.5): eigenvalues 1.5 and −0.5.
d)
For 1.5: the second row gives 0.5x1=1.5x2, so x1=3x2, eigenvector (3,1). In the stable structure, the young make up 43=75% of the population, which is multiplied by 1.5 in each period.
e)
150100≈0.667, 225175≈0.778, 337.5250≈0.741: the share oscillates around 0.75 while getting closer to it, because the component along the eigenvector of −0.5 changes sign at each period and is halved while the total grows by a factor of 1.5: the gap to 0.75 is divided by 3 at each period. Here the total, for its part, is multiplied by 1.5 from the very first period: x0=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.40.30.1), where column j gives the inputs consumed by one unit of sector j.
The price pj of one unit of sector j covers its inputs, a1jp1+a2jp2, and a value added vj per unit, wages and profits. Hence the price equation p=ATp+v.
a) Write AT and the matrix I−AT, and compute its determinant.
b) For v=(0.40.6), compute the prices p.
c) Explain why these prices come out, by comparing v with the column sums of A.
d) Wages rise in sector 1 only: v=(0.50.6). Compute the new prices.
e) By what percentage does the price of sector 2 rise, although its value added has not changed? Explain.
Show the solution
Answers
a)I−AT=(0.8−0.3−0.40.9), det=0.6
b)p=(1,1)
c)v tops each column up to 1
d)p=(1.15,1.05)
e)+5% through the inputs
a)
AT=(0.20.30.40.1) and I−AT=(0.8−0.3−0.40.9), with determinant 0.72−0.12=0.6, the same as that of I−A: a matrix and its transpose have the same determinant.
b)
(I−AT)−1=0.61(0.90.30.40.8), so p=0.61(0.36+0.240.12+0.48)=(11).
c)
The columns of A sum to 0.6 and 0.4: one unit of sector 1 consumes 0.6 unit of inputs, one unit of sector 2 consumes 0.4. With v=(0.4,0.6), each value added tops its column up to exactly 1: if all prices are 1, each unit costs 1. This is the normalization of input-output tables expressed in value.
d)
p=0.61(0.45+0.240.15+0.48)=(1.151.05).
e)
The price of sector 2 goes from 1 to 1.05: +5%. Sector 2 buys 0.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%, more than its value added alone, because it also consumes its own products and those of sector 2.
The thread: quantities propagate through A, 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% move up to second year, 25% repeat the year and 15% drop out. In second year: 70% graduate, 20% repeat the year and 10% drop out. Graduation and dropping out are ABSORBING states: once there, a student never leaves.
Let Q be the matrix of moves between the two years, R the matrix of moves from the years to graduation and dropping out, in the column convention, and N=(I−Q)−1.
a) Write Q and R, and check that each column of the complete matrix sums to 1.
b) What is the probability that a first-year student graduates in exactly two years?
c) Compute N=(I−Q)−1.
d) The entry Nij is the average number of years spent in year i by a student who starts in year j. On average, how many years does a first-year student spend in the program?
e) The matrix RN gives the absorption probabilities. Compute it. Out of 1,000 students who enter first year, how many graduate?
Show the solution
Answers
a)Q=(0.250.600.2), R=(00.150.70.1)
b)0.42
c)N=(1.3101.25)
d)2.3 years
e)0.7 and 0.875; 700 graduates
a)
Q=(0.250.600.2) and R=(00.150.70.1), rows graduation then dropout. Column of first year: 0.25+0.6+0+0.15=1. Column of second year: 0+0.2+0.7+0.1=1.
b)
The student must move up to second year and then graduate: 0.6×0.7=0.42.
c)
I−Q=(0.75−0.600.8), with determinant 0.6, so N=0.61(0.80.600.75)=(1.3101.25).
d)
First column of N: 1.3 years in first year and 1 year in second year, that is 2.3 years on average, repeated years included, before graduating or dropping out.
e)
RN=(0×1.3+0.7×10.15×1.3+0.1×10.7×1.250.1×1.25)=(0.70.30.8750.125). A first-year student graduates with probability 0.7: 700 graduates out of 1,000. Direct check: 0.750.6×0.80.7=0.8×0.875=0.7.
The thread: in an absorbing chain, the fundamental matrix (I−Q)−1 counts the visits, and RN 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% of the city's residents move to the suburbs and 5% of the suburban residents settle in the city; then the population of each zone grows by 2%. Let P=(0.90.10.050.95) and M=1.02P. At the start, the city has 600 thousand residents and the suburbs 400 thousand.
In the figure, populations are in thousands of residents.
a) Write the matrix M.
b) Compute the distribution after one year and check the total.
c) Compute the eigenvalues of P, then those of M.
d) Find the steady-state distribution of P. What share of the population will live in the city in the long run?
e) The city's share satisfies sn=31+(0.6−31)0.85n. Compute the total population and the city's population after 20 years, to the nearest thousand.
Show the solution
Answers
a)M=(0.9180.1020.0510.969)
b)(571.2,448.8), total 1,020
c)P: 1 and 0.85; M: 1.02 and 0.867
d)One third in the city
e)1,486 thousand, of which 511 in the city
a)
M=(0.9180.1020.0510.969): the columns sum to 1.02 and no longer to 1, so the matrix is no longer stochastic.
b)
Mx0=(0.918×600+0.051×4000.102×600+0.969×400)=(571.2448.8). Total 1,020 thousand: 2% more.
c)
P: trace 1.85, determinant 0.855−0.005=0.85, so eigenvalues 1 and 0.85. M=1.02P multiplies each eigenvalue by 1.02: 1.02 and 0.867, with the same eigenvectors.
d)
0.1a=0.05b gives b=2a, and a+b=1 gives a=31. 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,486 thousand. City's share: 0.8520≈0.0388, so s20≈31+0.2667×0.0388≈0.3437, and the city has about 0.3437×1,486≈511 thousand residents. The eigenvalue 1.02 sets the growth, its eigenvector the distribution, and 0.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.
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.