Title: Ch. 4 Linear Models
1Ch. 4 Linear Models Matrix Algebra
- Matrix algebra can be used
- a. To express the system of equations in a
compact manner. - b. To find out whether solution to a system
of equations exist. - c. To obtain the solution if it exists.
24.1 Matrices and VectorsMatrices as
ArraysVectors as Special Matrices
- Matrix is a rectangle array of parameter,
coefficients, etc. - A general form matrix Ax d,
3Step 1 Write in matrix format
A x d
A parameter matrix x variable column
vector d constant column vector A general form
matrix Ax d, solve for x
4Solving for X x A-1 d , where A-1 is the
inverse (matrix) of A
5Inverse A-1of Matrix of A
- Inverse of A is A-1
- AA-1 A-1A I
- We are interested in A-1 because xA-1d
6Derivation of matrix inverse formula
- A-1 adjoint A / A,
- where
- A ai1ci1 . aincin (Determinant)
- And, adjoint A
- transposed cofactor matrix of A
7- Determinant, Cofactor, and Minor
8How to get Determinant of A?
By Laplace Expansion of cofactors, and minors in
case the first row is used.
9- Pattern of the signs for cofactor minors
10Adjoint of A the transposed cofactor matrix
11- Calculating Adjoint is hard!
- Is there any easier way to solve for x or
specifically one of x, that is, xi ?
12Cramer's Rule for each of x, say, x1 The
easy way
- The numerator represents a determinant of A in
which the ith column is replaced by the vector of
constants, i.e., no need to invert A!
13Solving for x1 using Cramers rule
- Find the determinant A
- Find the determinant A1 where di is the
constant vector substituted for the 1st col. - X1 A1/A
- Repeat for X2 by substituting the constant vector
for the 2nd col. And solving for A2 and so on
as necessary
14Solving for x1 / d1
15What about Comparative Statics?