MAST10008 Accelerated Mathematics 1 - Lab 5
MAST10008 Accelerated Mathematics 1 - Lab 5
1. Introduction
The techniques of linear algebra are core techniques used in modelling economic systems. Today we look at a
simple economic model based on the work of Nobel Laureate Wassily Leontief.
Before starting the exercises, start MATLAB and load this week’s m-files:
• Open the Lab Materials folder: Start menu → Computer → Lab-materials (L:) → MAST10008
• Drag the folder 10008lab5 into MATLAB’s Current Folder window
• Right-click on 10008lab5 in the Current Folder window and choose Add to Path → Selected folder and
subfolders.
Consider an economy (e.g., for a country or region) consisting of k industries I1 , . . . Ik . Each industry Ii produces
one type of product, Ti . To produce its product, each industry consumes some of the products produced by the
other industries, including itself (for instance, a farm needs to keep aside some of the grain it produces to plant
next year).
We will assume that the economy is closed - no products are exported or imported - and that the total amount
of each product produced annually is fixed. Let
ei,j = the proportion of the total annual production of Tj which is used for producing product Ti .
For example, if e2,3 = 0.4 then 40% of the total amount of product T3 produced annually is used in the
production of product T2 . The optimal situation is that each industry produces enough of its product to supply
all the industries’ needs, and no extra (which would go to waste). In this case, we have
k
X
ei,j = e1,j + e2,j + . . . + ek,j = 1.
i=1
Let
pi = the total value (in $) of the annual production of product Ti .
Then the cost to industry Ii of its annual production of Ti will be
total cost = ei,1 p1 + ei,2 p2 + . . . ei,k pk
If the industry is to recoup its costs then the total price it charges for its annual production, pi , must equal the
production costs:
pi = ei,1 p1 + ei,2 p2 + . . . ei,k pk .
Can we find prices pi for each industry to charge so that this is satisfied?
We start with a simple case for you to do by hand.
1
2
In this case, we managed to find a solution. Can we always find such a solution, in the general case? This
theorem guarantees that we can.
e1,1 e1,2 . . . e1,k
Theorem 1. Let E = ... be a k × k matrix such that
A matrix that satisfies conditions (1) and (2) of the theorem is called a exchange matrix or input-output
matrix.
What does condition (1) say about the matrix E? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 5 2
Exercise 2. Enter the vector v = [1 5 2] and the matrix A = 0 2 −1.
3 0 −1
(c) Try the commands max(v), min(v), max(A) and min(A). What do they do?
......................................................................................................
If you have time: Consider the following sequence of exchange matrices {E2 , E3 , E4 , . . . , En } where
0 12 13
1
0 2
E2 = E3 = 1 0 13
1 12
0 12 13
1 1 1 1
1 1 1
0 2 3 4 5
0 2 3 4 1 1 1 1
1 1 1 0 3 4 5
0 3 4 E
1 1 1
E4 =
0 1
0 1 5 0
= 2 0
1
4 5
1
2 4 0 0 0
1 1 3 5
0 0 3 4 1 1
0 0 0 4 5
and so on.
(a) Use MATLAB to show that E22 > 02 , E33 > 03 ,E44 > 04 and E55 > 05 (where > 0n means that each
element is positive). Make the conjecture that although Enn > 0n is true, Enk > 0n is not true for
k = 1, 2, . . . , n − 1.
(b) Use MATLAB to determine the vectors pn such that En pn = pn (for n = 2, 3, 4, 5, 6) and then see if
you can discover a pattern that would allow you to compute pn+1 easily from pn . Test your discovery
by first constructing p8 from
2520
3360
1890
672
p7 =
175
36
7
and then check to see whether E8 p8 = p8 .