Title: SOAS, MSc Economics Presessional Mathematics, Statistics and Computing 14th September 2nd October 20
1SOAS, MSc EconomicsPre-sessional Mathematics,
Statistics and Computing14th September 2nd
October 2009
- Ourania Dimakou (Room 203, od1_at_soas.ac.uk)
- Satoshi Miyamura (Room 4425, sm97_at_soas.ac.uk)
2Lectures
- Mathematics 14-22 September 2009
- 1000-1300 Room V211
- Statistics 23-30 September 2009
- 1000-1300 Room V211
- Computing 18-25 September 2009
- 1400-1700 Room L62
3Sign up sheet for Computing
- Group 1
- Friday 18th and
- Wednesday 23rd September
- Group 2
- Monday 21st and
- Thursday 24th September
- Group 3
- Tuesday 22nd and
- Friday 25th September.
- Please sign up to one of the three groups on the
sign-up sheet in front of room 203.
4Exercises
- These will be handed out daily. Although they are
not assessed, you are strongly advised to answer
all of the questions.
5Calculators
- An electronic calculator may be helpful for parts
of this course. You may use your own calculator
in examinations provided that the calculator
cannot store text the make and type of
calculator must be stated clearly on your
examination answer book.
6Assessment
- One written examination of 3 hours duration
covering both Preliminary Mathematics and
Preliminary Statistics to be held on Friday 2nd
October 2009.
7Textbooks
- Chiang, A. C. and K. Wainwright (2005)
Fundamental Methods of Mathematical Economics,
Forth Edition. McGraw-Hill. - Thomas, R. L. (1999) Using Mathematics in
Economics, Second Edition. Addison-Wesley. - Jacques, I. (2009) Mathematics for Economics and
Business, 6th Edition, Prentice Hall. - Dowling, E. T. (2000) Introduction to
Mathematical Economics, Third Edition.
McGraw-Hill. - Abadir, K. M. and J. R. Magnus (2005) Matrix
Algebra, Cambridge.
8Course outline
- Linear (Matrix) algebra
- Calculus.
- Exponentials and Logarithmic Functions.
- Optimization.
- Constrained Optimization.
9Induction/Welcome meeting for PG Masters
Economics
- Friday 2nd October
- V211 Vernon Sq for 2-4 pm.
- It will be a chance for students and staff to
meet and for students to get a clearer idea about
the options they will be taking before they
register in the following week. - Refreshments will be provided.
10PRELIMINARY MATHEMATICS
11Readings
- Chiang, A. C. and K. Wainwright (2005)
Fundamental Methods of Mathematical Economics,
Forth Edition. McGraw-Hill. Chapter 4 and 5. - Dowling, E. T. (2000) Introduction to
Mathematical Economics, Third Edition.
McGraw-Hill. Chapters 10-12. - Knowledge of elementary algebra will be assumed,
including - Functions and equations
- Solutions and linear and quadratic equations
- Solution of simple simultaneous equations
- If you need a quick reminder of the above topics,
revision booklets available from the
mathcentre.ac.uk are useful, which is linked from
the course website.
12Why study matrix algebra?
Consider the one commodity market model Three
variables quantity demanded of the commodity
, the quantity supplied of the commodity
, and its price . Four parameters/coefficien
ts
13Why study matrix algebra?
Consider the one commodity market model Matrix
algebra
14Why study matrix algebra?
Consider the one commodity market model Matrix
algebra
(2) leads to a way of testing the existence of a
solution by evaluation of a determinant (3)
provides the means of solving the equation
system, if the solution exists.
15Definitions
- A matrix is a rectangular array of numbers,
parameters, or variables.
16Definitions
- The members of the array is referred to as the
elements of a matrix.
17Definitions
- As shorthand, the array in matrix can also be
written as
18Definitions
- The number of rows and columns in a matrix define
the dimension of the matrix. Since matrix
contains rows and columns, it is said to
be of dimension .
19Definitions
- In a special case where , the matrix is
called a square matrix. - (3 3 square matrix)
20Definitions
- A matrix composed of a single column is a column
vector. - (3 1 column vector)
21Definitions
- A matrix composed of a single row is a row
vector. - (1 3 row vector)
22Matrix operations
- Equality of matrices
- Two matrices and are
said to be equal if and only if they have the
same dimension and have identical elements in the
corresponding locations in the array. In other
words, if and only if for
all values of and .
23Matrix operations
Equality of matrices Two matrices and
are said to be equal if and only if
they have the same dimension and have identical
elements in the corresponding locations in the
array. In other words, if and only if
for all values of and .
24Matrix operations
- Equality of matrices
- Also if , this implies and
25Addition and subtraction
- Matrices are conformable for addition if and only
if they have the same dimension. - Addition of and is
defined as the addition of each pair of
corresponding elements.
26Addition and subtraction
- Example of matrices not conformable for addition
- (2 2) (2 3)
27Addition and subtraction
- Example of matrices conformable for addition
- (2 2) (2 2)
-
28Addition and subtraction
- Example of matrices conformable for addition
- (2 2) (2 2)
-
29Scalar multiplication
- Multiplication of a matrix by a number (scalar)
involves multiplication of every element of the
matrix by the number.
30Matrix multiplication
- Conformability condition the column dimension of
the lead matrix must be equal to the row
dimension of the lag matrix.
A
B
m ? n
p ? q
AB
31Matrix multiplication
- In general, if is of dimension and
is of dimension , the product matrix
will be defined if and only if .
n p
A
B
m ? n
p ? q
AB
32Matrix multiplication
- If defined, moreover, the product matrix will
have the dimension - the same number of
rows as the lead matrix and the same number
of columns as the lag matrix .
n p
A
B
m ? n
p ? q
AB
m ? q
33Matrix multiplication
- Example of conformable matrices
-
3 3
A
B
2 ? 3
3 ? 2
AB
2 ? 2
34Matrix multiplication
- Example of matrices not conformable for
multiplication - The product matrix AC is not defined
3 ? 2
A
C
2 ? 3
2 ? 3
35Matrix multiplication
36Matrix multiplication
37Matrix multiplication
38Matrix multiplication
39Matrix multiplication
40Matrix multiplication
or as a general expression (in this case
)
41Matrix multiplication
- Using the numerical example
42Matrix multiplication
Using the numerical example
43Matrix multiplication
Using the numerical example
44Matrix multiplication
Using the numerical example
45Matrix multiplication
Using the numerical example
46Rules of matrix operations
- 1. Matrix addition is commutative
47Rules of matrix operations
48Rules of matrix operations
- 2. Matrix multiplication is not commutative, but
is associative and distributive. - Not commutative
- except the scalar multiplication
- Hence the terms pre-multiply and post-multiply
are often used. - See Question 6 (a) in Exercise 1 to verify this.
49Rules of matrix operations
- 2. Matrix multiplication is not commutative, but
is associative and distributive. - Associative law
- If conformability condition is met, any adjacent
pair of matrices may be multiplied out first,
provided that the product is duly inserted in the
exact place of the original pair. - Use Question 9 (c) in Exercise 1 to verify this.
50Rules of matrix operations
- 2. Matrix multiplication is not commutative, but
is associative and distributive. - Distributive law
- (pre-multiplication by )
- (post-multiplication by )
51Transpose
- When the rows and columns of a matrix are
interchanged we obtain the transpose of - , which is denoted by or .
52Properties of transpose
- 1. The transpose of the transpose is the
original matrix
53Properties of transpose
- 2. The transpose of a sum is the sum of the
transposes.
54Properties of transpose
For example,
55Properties of transpose
For example,
56Properties of transpose
- 3. The transpose of a product is the product of
the transposes in reverse order.
57Properties of transpose
58Properties of transpose
For example,
59Symmetrical matrix
- Any matrix for which is a symmetric
matrix. Symmetric matrix is a special case of
square matrix.
60Symmetrical matrix
Any matrix for which is a symmetric
matrix. Symmetric matrix is a special case of
square matrix.
61Identity matrix
- A square matrix with 1s in its principal diagonal
and 0s in everywhere else is termed identity
matrix and denoted by the symbol or , in
which the subscript denotes the dimensions of
the matrix . - (both denoted by I)
62Identity matrix
- The identity matrix plays a role similar to that
of the number 1 in scalar algebra. - (1) Multiplication of a matrix by an identity
matrix leaves the original matrix unchanged. -
- (2) Multiplication of an identity matrix by
itself leaves the identity matrix unchanged
63Idempotent matrix
- Any matrix for which is referred
to as an idempotent matrix. The identity matrix
is symmetric and idempotent.
64Null matrix
- A null matrix is a matrix whose elements are all
zero and can be of any dimension it is not
necessarily square.
65Null matrix
- The null matrix plays the role of number 0.
- (1) Addition or subtraction of the null matrix
leaves the original matrix unchanged -
- (2) Multiplication by a null matrix produces a
null matrix. - and
66Diagonal matrix
- A diagonal matrix is one whose only nonzero
entries are along the principal diagonal. -
- Diagonal matrix can only be idempotent only if
each diagonal element is either 1 or 0. Hence
identity and null matrices are special cases of a
diagonal matrix.
67Determinant
- The determinant of a square matrix denoted by
, is a uniquely defined scalar (number)
associated with that matrix. Determinants are
defined only for square matrices.
68Second order determinant
- For a 2 2 matrix, the determinant is obtained
by multiplying the two elements in the principal
diagonal and then subtracting the product of the
two remaining elements.
69Second order determinant
For a 2 2 matrix, the determinant is obtained
by multiplying the two elements in the principal
diagonal and then subtracting the product of the
two remaining elements.
( )
70Second order determinant
For a 2 2 matrix, the determinant is obtained
by multiplying the two elements in the principal
diagonal and then subtracting the product of the
two remaining elements.
(?)
( )
71Second order determinant
72Second order determinant
For example,
73Third order determinant
For a 3 3 matrix
74Diagrammatical presentation of the third order
determinant
- is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
75Diagrammatical presentation of the third order
determinant
is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
(?)
( )
76Diagrammatical presentation of the third order
determinant
is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
()
(?)
77Diagrammatical presentation of the third order
determinant
is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
(?)
( )
78Diagrammatical presentation of the third order
determinant
is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
79Diagrammatical presentation of the third order
determinant (2)
- is expressed as sum of six product terms,
three prefixed by plus signs and thee by minus
signs.
80Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
81Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
82Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
83Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
84Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
85Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
86Diagrammatical presentation of the third order
determinant (2)
Rewrite the matrix as
87Diagrammatical presentation of the third order
determinant (2)
Example,
88Diagrammatical presentation of the third order
determinant (2)
Example,
89Diagrammatical presentation of the third order
determinant (2)
Example,
90Minor
- The minor of denoted as is obtained
by deleting the th row and th column of a
given determinant.
91Minor
The minor of denoted as is obtained
by deleting the th row and th column of a
given determinant.
92Minor
The minor of denoted as is obtained
by deleting the th row and th column of a
given determinant.
93Cofactor
- The cofactor of denoted as is a minor
with a prescribed algebraic sign attached to it.
94Cofactor
The cofactor of denoted as is a minor
with a prescribed algebraic sign attached to it.
If the sum of the two subscripts and in the
minor is even, then the cofactor takes the same
sign as the minor that is,
95Cofactor
The cofactor of denoted as is a minor
with a prescribed algebraic sign attached to it.
If the sum of the two subscripts and in the
minor is odd, then the cofactor takes the
opposite sign as the minor that is,
96Laplace expansion
- Using these concepts, we can express the
third-order determinant as -
- This is known as the Laplace expansion of the
third-order determinant.
97Third order determinant
98Third order determinant
For example,
99n th order determinant
- Laplace expansion method can be applied to
evaluation of n th order determinant. - (expansion by the th row)
- (expansion by the th column)
100Quadratic form
- A polynomial in which each term has a uniform
degree, i.e. where the sum of exponents in each
term is uniform, is called a form. The polynomial
-
- in which each term is of the second degree
constitutes a quadratic form in two variables - and .
101Quadratic form
A polynomial in which each term has a uniform
degree, i.e. where the sum of exponents in each
term is uniform, is called a form. The polynomial
What restrictions must be placed upon , and
when and are allowed to take any
values, in order to ensure a definite sign of
?
102Positive and negative definiteness
- A quadratic form is said to be
- positive definite if
- positive semi-definite if
- negative semi-definite if
- negative definite if
- regardless of the values of the variables in the
quadratic form, not all zero.
103Positive and negative definite matrices
- Expressing the quadratic form in matrices
104Positive and negative definite matrices
- Expressing the quadratic form in matrices
105Positive and negative definite matrices
- Expressing the quadratic form in matrices
106Positive and negative definite matrices
- The quadratic form expressed in matrix
107Positive and negative definite matrices
- A quadratic form is
-
- positive definite iff and
- negative definite iff and
108Positive and negative definite matrices
- A quadratic form is
-
- positive definite iff and
- negative definite iff and
is a sub-determinant of that
consists of the first element on the principal
diagonal, called the first principal minor of
.
109Positive and negative definite matrices
- A quadratic form is
-
- positive definite iff and
- negative definite iff and
Similarly since involves the first
and second elements on the principal diagonal,
it is called the second principal minor of .
110Positive and negative definite matrices
- Example
- Is either
positive or negative definite? - In matrix form
- The principal minor is
- The second principal minor is
- .
111Positive and negative definite matrices
Example Is
either positive or negative definite? In matrix
form The principal minor is The second
principal minor is Therefore is positive
definite.
112Three variable quadratic form
113Three variable quadratic form
- A total of three principal minors can be found
from the discriminant -
- where denotes the th principal minor of
the discriminant .
114Three variable quadratic form
- A quadratic form is
- positive definite iff ,
and - negative definite iff ,
and
115Three variable quadratic form
116Three variable quadratic form
Example
117Three variable quadratic form
Example Therefore is positive
definite.
118n variable quadratic forms
- In general for
- the quadratic form is
- positive definite iff
- negative definite iff
- (all odd-numbered principal minors are negative
and all even- numbered ones are positive).
119Why are we interested in the sign of quadratic
forms?
- At this point we have discussed quadratic forms
as one application of determinants. - Later in the course we will use this to consider
problems such as follows
120Why are we interested in the sign of quadratic
forms?
- At this point we have discussed quadratic forms
as one application of determinants. - Later in the course we will use this to consider
problems such as follows
Let us consider a firm that is a price taker,
produces and sells two goods, goods 1 and goods 2
in perfectly competitive markets, and has a
profit function Can we ensure that at the
optimal level of output for goods 1 and 2 we have
maximum profit?
121Properties of determinants
- (1) The interchange of rows and columns does not
affect the value of a determinant, that is,
122Properties of determinants
(2) The interchange of any two rows (or any two
columns) will alter the sign, but not the
numerical value, of the determinant.
123Properties of determinants
(3) The multiplication of any one row (or one
column) by a scalar k will change the value of
the determinant k- fold.
124Properties of determinants
(4) The addition (subtraction) of a multiple of
any row to (from) another row will leave the
value of the determinant unaltered. The same
holds for column.
125Properties of determinants
(5) If one row (or column) is a multiple of
another row (or column), the value of the
determinant will be zero. As a special case of
this, when two rows (or columns) are identical,
the determinant will vanish.
126Properties of determinants
(6) The expansion of a determinant by alien
cofactors always yields a value of zero. (more
on this later)
127Inverse matrix
- The inverse of a matrix , denoted by ,
is defined only if is a square matrix, in
which case the inverse is the matrix that
satisfies the condition
128Properties of inverse matrix
- (1) Not every square matrix has an inverse. If
the square matrix has an inverse ,
is said to be non- singular if possesses no
inverse, it is called a singular matrix. - (2) and are inverses of each other.
- (3) If is then must also be
- (4) If exists, then it is unique.
129Why is the inverse matrix useful?
- Given a system of linear equations,
-
-
-
- which can be written in matrix notation as
-
- or
130Why is the inverse matrix useful?
- If the inverse matrix exists, the
pre-multiplication of both sides of the equation
by yields -
-
- Since is unique if it exists, must
be a unique vector of solution values.
131Linear independence
- Consider an n n matrix
-
- This matrix can be viewed as an ordered set of
column vectors -
- where , , etc.
132Linear independence
- Definition
- A set of vectors is linearly dependent, if and
only if we can find a set of scalars,
(not all of which are zero) such that - If such a set of scalars cannot be found, the
vectors are linearly independent.
133Linear independence
- Consider
-
- In this case
- If and
- we have
134Non-singular matrix and linear independence
- For the non-singularity of a matrix, its rows (or
columns) must be linearly independent, i.e. none
must be a linear combination of the rest.
The condition for inverse matrix corresponds to
the condition for simultaneous equations to have
a unique solution
135Test of non-singularity
- From property (5) of the determinant, if the rows
(column) of a matrix is dependent
. Hence - If
- ? there is row (column) independence in matrix
- ? is non-singular
- ? exists
- ? a unique solution exists.
136Rank of a matrix
- The rank of a matrix is defined as the
maximum number of linearly independent rows or
columns in the matrix. - An non-singular matrix is of rank .
In general, the rank of an matrix can be
at most or , whichever is smaller. - Alternatively we can define the rank of an
matrix as the maximum number of a non-vanishing
determinant that can be constructed from the rows
and columns of that matrix.
137Rank of a matrix
- If we have
- The maximum possible rank is 2.
- ? (A) 2
138Alien cofactors
139Alien cofactors
Recall that for The cofactor of a wrong
row or column is known as the alien cofactors.
140Matrix inversion by the cofactor method
- Given a non-singular matrix
- A cofactor matrix, denoted by , is
given as a matrix in which every element is
replaced with its cofactor .
141Matrix inversion by the cofactor method
Given a non-singular matrix A cofactor
matrix, denoted by , is given as a
matrix in which every element is replaced
with its cofactor .
142Matrix inversion by the cofactor method
- An adjoint matrix is the transpose of a cofactor
matrix.
143Matrix inversion by the cofactor method
- Since and are conformable for
multiplication, their product is defined
144Matrix inversion by the cofactor method
Since and are conformable for
multiplication, their product is defined
145Matrix inversion by the cofactor method
The principal diagonal components are the
determinant found by the Laplace expansion of
the th column
146Matrix inversion by the cofactor method
The off-diagonal components are the determinant
expanded by th row and alien cofactor of th
row
147Matrix inversion by the cofactor method
The off-diagonal components are the determinant
expanded by th row and alien cofactor of th
row
148Matrix inversion by the cofactor method
- Using the rule of scalar multiplication,
- Dividing both sides of the equation by
149Matrix inversion by the cofactor method
150Matrix inversion by the cofactor method
- To recap the cofactor method
- Step 1. Find and check that
- Step 2. Find the cofactor matrix
- Step 3. Find the adjoint matrix
- Step 4. Obtain the desired inverse
151Matrix inversion by the cofactor method
- Example
- Find the solution of the equation system
- Write in matrix form.
-
- Find the inverse of
152Matrix inversion by the cofactor method
- Step 1.
- ( is non-singular has an
inverse )
153Matrix inversion by the cofactor method
Step 2. Find the cofactor matrix
154Matrix inversion by the cofactor method
Step 3. Find the adjoint matrix
155Matrix inversion by the cofactor method
Step 4. Obtain the inverse
156Matrix inversion by the cofactor method
Check that the inverse is correct
157Matrix inversion by the cofactor method
The solution can be obtained as
158Non-homogenous equation systems
- Given a system of linear equations,
-
-
-
- which can be written in matrix notation as
-
- or
159Non-homogenous equation systems
- In the equation system, if d 0 the equation
system will be Ax O, where O is a zero vector.
This special case is referred to as a
homogenous-equation system. - In contrast if d ? 0 we have a non-homogenous
equation system.
160Non-homogenous equation systems
- Case 1 Equations inconsistent
161Non-homogenous equation systems
162Non-homogenous equation systems
Case 1 Equations inconsistent Writing the
system in matrix form A is singular and
therefore does not have an inverse. ? No solution.
163Non-homogenous equation systems
- Case 2. Equations dependent
164Non-homogenous equation systems
165Non-homogenous equation systems
Case 2. Equations dependent A is singular
and therefore does not have an inverse. ? An
infinite set of solutions.
166Non-homogenous equation systems
- Case 3 Consistent and independent equations
167Non-homogenous equation systems
168Non-homogenous equation systems
Case 3 Consistent and independent
equations A is non-singular and therefore
has an inverse. A unique vector of solutions
can be found.
169Cramers rule
Cramers rule provides a simplified method of
solving a system of linear equations through the
use of determinants.
170Cramers rule
Cramers rule provides a simplified method of
solving a system of linear equations through the
use of determinants.
- where is the th unknown variable in the
system of equations, and is the determinant
of a special matrix formed from the original
coefficient matrix by replacing the th column
with the column vector of constants.
171Derivation of the Cramers rule
- Given a system of equation , the
solution can be written as -
- or
172Derivation of the Cramers rule
173Derivation of the Cramers rule
- We obtain the following solution values
174Recall from yesterday
- If we have
- The Lasplace expansion by the first column
175Recall from yesterday
If we replace the first column of A by the column
vector d The Lasplace expansion by the first
column
176Derivation of the Cramers rule
We obtain the following solution values
177Cramers rule
- Example
- Find the solution of the equation system
-
-
- Write in matrix form.
178Cramers rule
179Cramers rule