Ch. 5 Linear Models & Matrix Algebra

Slides:



Advertisements
Similar presentations
Ch. 5b Linear Models & Matrix Algebra
Advertisements

BAI CM20144 Applications I: Mathematics for Applications Mark Wood
Elementary Linear Algebra Anton & Rorres, 9th Edition
Chapter 3 Determinants and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Chap. 3 Determinants 3.1 The Determinants of a Matrix
Chapter 2 Basic Linear Algebra
4.I. Definition 4.II. Geometry of Determinants 4.III. Other Formulas Topics: Cramer’s Rule Speed of Calculating Determinants Projective Geometry Chapter.
Matrices and Systems of Equations
Chapter 2 Matrices Definition of a matrix.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
Matrices and Determinants
Chapter 5 Determinants.
Applications of matrices and determinants
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Compiled By Raj G. Tiwari
Mathematics.
Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7.
Systems and Matrices (Chapter5)
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
ECON 1150 Matrix Operations Special Matrices
 Row and Reduced Row Echelon  Elementary Matrices.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Review for Chapter 4 Important Terms, Symbols, Concepts 4.1. Systems of Linear Equations in Two Variables.
Needs Work Need to add –HW Quizzes Chapter 13 Matrices and Determinants.
Matrix Inversion.
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
ENM 503 Block 2 Lesson 7 – Matrix Methods
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Matrix. REVIEW LAST LECTURE Keyword Parametric form Augmented Matrix Elementary Operation Gaussian Elimination Row Echelon form Reduced Row Echelon form.
8.1 Matrices & Systems of Equations
1 Ch. 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.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Mathematics.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Chiang & Wainwright Mathematical Economics
Introduction and Definitions
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Matrices, Vectors, Determinants.
Lecture XXVI.  The material for this lecture is found in James R. Schott Matrix Analysis for Statistics (New York: John Wiley & Sons, Inc. 1997).  A.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Slide INTRODUCTION TO DETERMINANTS Determinants 3.1.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
MAT 322: LINEAR ALGEBRA.
7.7 Determinants. Cramer’s Rule
Linear independence and matrix rank
Chapter 2 Determinants by Cofactor Expansion
DETERMINANT MATRIX YULVI ZAIKA.
Chapter 2 Determinants Basil Hamed
Everything you would want to know about the matrix and then some…
Review of Matrix Algebra
Chapter 2 Determinants.
Chapter 2 Determinants.
Presentation transcript:

Ch. 5 Linear Models & Matrix Algebra 5.1 Conditions for Nonsingularity of a Matrix 5.2 Test of Nonsingularity by Use of Determinant 5.3 Basic Properties of Determinants 5.4 Finding the Inverse Matrix 5.5 Cramer's Rule 5.6 Application to Market and National-Income Models 5.7 Leontief Input-Output Models 5.8 Limitations of Static Analysis

x + y = 8 x + y = 9 (inconsistent & dependent) 5.1 Conditions for Nonsingularity of a Matrix 3.4 Solution of a General-equilibrium System (p. 44) x + y = 8 x + y = 9 (inconsistent & dependent) 2x + y = 12 4x + 2y= 24 (dependent) 2x + 3y = 58 y = 18 x + y = 20 (over identified & dependent)

Sometimes one equation is a multiple of the other. (redundant) 5.1 Conditions for Non-singularity of a Matrix 3.4 Solution of a General-equilibrium System (p. 44) y x x + y = 9 x + y = 8 Sometimes equations are not consistent, and they produce two parallel lines. (contradict) Sometimes one equation is a multiple of the other. (redundant) y 12 For both the equations Slope is -1

B) Rows (cols.) linearly independent (rank=n, sufficient) 5.1 Conditions for Non-singularity of a Matrix Necessary versus sufficient conditions Conditions for non-singularity Rank of a matrix A) Square matrix , i.e., n. equations = n. unknowns. Then we may have unique solution. (nxn , necessary) B) Rows (cols.) linearly independent (rank=n, sufficient) A & B (nxn, rank=n) (necessary & sufficient), then nonsingular

5.1 Elementary Row Operations (p. 86) Interchange any two rows in a matrix Multiply or divide any row by a scalar k (k  0) Addition of k times any row to another row These operations will: transform a matrix into a reduced echelon matrix (or identity matrix if possible) not alter the rank of the matrix place all non-zero rows before the zero rows in which non-zero rows reveal the rank

5.1 Conditions for Nonsingularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 86)

5.1 Conditions for Non-singularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 96)

5.1 Conditions for Nonsingularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 96)

5.1 Conditions for Non-singularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 96)

5.2 Test of Non-singularity by Use of Determinant Determinants and non-singularity Evaluating a third-order determinant Evaluating an nth order determent by Laplace expansion Determinant |A| is a uniquely defined scalar associated w/ a square matrix A (Chiang & Wainwright, p. 88) |A| defined as the sum of all possible products t(-1)t a1j a2k…ang, where the series of second subscripts is a permutation of (1,.., n) including the natural order (1, …, n), and t is the number of transpositions required to change a permutation back into the original order (Roberts & Schultz, p. 93-94) t equals P(n,r)=n!/(n-r)!, i.e., the permutation of n objects taken r at a time

5.2 Test of Non-singularity by Use of Determinant P(n,r) = n!/(n-r)! P(2,2) = 2!/(2-2)! = 2 There are only two ways of arranging subscripts (i,k) of product (-1)ta1ja2k either (1,2) or (2,1) The first permutation is even & positive (-1)2 and second is odd and negative (-1)1 0!=(1) = 1 1!=(1) = 1 2!=(2)(1) = 2 3!=(3)(2)(1) = 6 4!=(4)(3)(2)(1) = 24 5!=(5)(4)(3)(2)(1) = 120 6!=(6)(4)(3)(2)(1) = 720 … … 10! =3,628,800

5.2 Test of Non-singularity by Use of Determinant and permutations: 2x2 and 3x3

5.2 Test of Non-singularity by Use of Determinant : 4 x 4 permutations = 24 Abcd Bacd Cabd Dabc Abdc Badc Cadb Dacb Acbd Bcad Cbad Dbac Acdb Bcda Cbda Dbca Adbc Bdac Cdab Dcab Adcb Bdca Cdba Dcba

5.2 Evaluating a third-order determinant Evaluating an 3 order determent by Laplace expansion Laplace Expansion by cofactors; if /A/ = 0, then /A/ is singular, i.e., under identified

5.2 Determinants Pattern of the signs for cofactor minors

5.1 Conditions for Nonsingularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 96)

5.1 Conditions for Non-singularity of a Matrix Conditions for non-singularity, Rank of a matrix (p. 96)

5.2 Evaluating a determinant Laplace expansion of a 3rd order determinant by cofactors. If /A/ = 0, then singular

5.2 Test of Non-singularity by Use of Determinant P(3,3) = 3!/(3-3)! = 6 |A| = 1(5)9 + 2(6)7 + 3(8)4 -3(5)7 – 6(8)1 – 9(4)2 Expansion by cofactors |A|= (1)c11 + (2)c12 + (3)c13 C11 = 5(9) – 6(8) C12 = -4(9) + 6(7) C13 = 4(8) – 7(5) Expansion across any row or column will give the same # for the determinant

5.3 Basic Properties of Determinants Properties I to III (related to elementary row operations) The interchange of any two rows will alter the sign but not its numerical value The multiplication of any one row by a scalar k will change its value k-fold The addition of a multiple of any row to another row will leave it unaltered.

5.3 Basic Properties of Determinants Properties IV to VI The interchange of rows and columns does not affect its value If one row is a multiple of another row, the determinant is zero The expansion of a determinant by alien cofactors produces a result of zero

5.3 Basic Properties of Determinants Properties I to V If /A/  0 Then A is nonsingular A-1 exists A unique solution to X=A-1d exists /A/ = /A'/ Changing rows or col. does not change # but changes the sign of /A/ k(row) = k/A/ ka ± row or col.b =/A/ If row or col a=kb, then /A/ =0

5.4 Finding the Inverse aka “the hard way” Steps in computing the Inverse Matrix and solving for x 1.  Find the determinant |A| using expansion by cofactors. If |A| =0, the inverse does not exist. 2.  Use cofactors from step 1 and complete the cofactor matrix. 3.   Transpose the cofactor matrix => adjA  4. Divide adj.A by |A| => A-1 5. Post multiply matrix A-1 by column vector of constants d to solve for the vector of variables x

A= C= C’=

5.4 Finding the Inverse Matrix Expansion of a determinant by alien cofactors, Property VI, Matrix inversion Expansion by alien cofactors yields /A/=0 This property of determinants is important when defining the inverse (A-1)

5.4 A Inverse (A-1) Inverse of A is A-1 if and only if A is square (nxn) and rank = n AA-1 = A-1A = I We are interested in A-1 because x=A-1d

5.4 matrix A: matrix of parameters from the equation Ax=d

C: Matrix of cofactors of A

C' or adjoint A: Transpose matrix of the cofactors of A

AC'

Matrix AC'

Inverse of A

Solving for X using Matrix Inversion

5.4 A Inverse, solving for P

Cramer’s rule

Cramer's rule

Cramer's rule

Deriving Cramer’s Rule

5.4 Finding the Inverse aka “the hard way” Steps in computing the Inverse Matrix and solving for x 1.  Find the determinant |A| using expansion by cofactors. If |A| =0, the inverse does not exist. 2.  Use cofactors from step 1 and complete the cofactor matrix. 3.   Transpose the cofactor matrix => adjA  4. Divide adj.A by |A| => A-1 5. Post multiply matrix A-1 by column vector of constants d to solve for the vector of variables x

Derivation of matrix inverse formula |A| = ai1ci1 + …. + aincin (scalar) Adj. A = transposed cofactor matrix of A A(adj.A)=|A|I (expansion by alien cofactors = 0 for off diagonal elements) A(adj.A)/|A| = I A-1 = (adj.A)/|A| QED Roberts & Schultz, p. 97-8)

5.4 Finding the Inverse aka “the hard way” Steps in computing the Inverse Matrix and solving for x 1.  Find the determinant |A| using expansion by cofactors. If |A| =0, the inverse does not exist. 2.  Use cofactors from step 1 and complete the cofactor matrix. 3.   Transpose the cofactor matrix => adjA  4. Divide adj.A by |A| => A-1 5. Post multiply matrix A-1 by column vector of constants d to solve for the vector of variables x

5.4 A Inverse A(adjA) = |A|I A(adjA)/|A| = I ( |A| is a scalar) A-1A(adjA)/|A|= A- 1I adjA/|A|= A-1

Finding the Determinant Y = C+I0+G C = a + b(Y-T0) G = gY 1Y – 1C–1G = I0 -bY+1C+ 0G = a-bT0 -gY+0C+ 1G = 0

Derivation of matrix inverse formula |A| = ai1ci1 + …. + aincin (scalar) Adj. A = transposed cofactor matrix of A A(adj.A)=|A|I (expansion by alien cofactors = 0 for off diagonal elements) A(adj.A)/|A| = I A-1 = (adj.A)/|A| QED Roberts & Schultz, p. 97-8)

5.4 Finding the Inverse aka “the hard way” Steps in computing the Inverse Matrix and solving for x 1.  Find the determinant |A| using expansion by cofactors. If |A| =0, the inverse does not exist. 2.  Use cofactors from step 1 and complete the cofactor matrix. 3.   Transpose the cofactor matrix => adjA  4. Divide adj.A by |A| => A-1 5. Post multiply matrix A-1 by column vector of constants d to solve for the vector of variables x

5.4 A Inverse A(adjA) = |A|I A(adjA)/|A| = I ( |A| is a scalar) A-1A(adjA)/|A|= A- 1I adjA/|A|= A-1

5.4 Inverse, an example

Finding the Determinant Y = C+I0+G C = a + b(Y-T0) G = gY 1Y – 1C–1G = I0 -bY+1C+ 0G = a-bT0 -gY+0C+ 1G = 0

The macro model Y=C+I0+G 1Y - 1C – 1G = I0 C=a+b*(Y-T0) -bY + 1C + 0G = a-bT0 G=g*Y -gY + 0C +1G = 0 =

Macro model Section 3.5, Exercise 3.5-2 (a-d), p. 47 Section 5.6, Exercise 5.6-2 (a-b), p. 111 Given the following model (a) Identify the endogenous variables (b) Give the economic meaning of the parameter g (c) Find the equilibrium national income (substitution) (d) What restriction on the parameters is needed for a solution to exist? Find Y, C, G by (a) matrix inversion (b) Cramer’s rule

The macro model Y=C+I0+G 1Y - 1C – 1G = I0 C=a+b*(Y-T0) -bY + 1C + 0G = a-bT0 G=g*Y -gY + 0C +1G = 0 =

A= C= C’=

3.4 Solution of General Eq. System (1)(1)-(1)(1) = 0 (inconsistent & dependent) (2)(2)-(1)(4) = 0 (dependent) (2)(1)-(1)(3) = -1 (independent as rewritten)

5. 7 Leontief Input-Output Models. Structure of an input-output model 5.7 Leontief Input-Output Models Structure of an input-output model The open model, A numerical example Finding the inverse by approximation, The closed model (I -A)x = d ; x = (I -A)-1 d

Sector 1 (a1jx1) Sector 2 (a2jx2) Final demand (di) Total output (xi) Miller and Blair 2-3, Table 2-3, p 15 Economic Flows ($ millions) To Sector 1 (a1jx1) Sector 2 (a2jx2) Final demand (di) Total output (xi) Sector 1 150 500 350 1000 Sector 2 200 100 1700 2000 Factor Payment (Wi) 650 1400 1100 3150 Total outlays (Xi) 6150 Sector 1 (aij) Sector 2 (aij) 0.15 0.25 0.20 0.05 0.65 0.70 1.00

Leontief Input-output Analysis

5.8 Limitations of Static Analysis Static analysis solves for the endogenous variables for one equilibrium Comparative statics show the shifts between equilibriums Dynamics analysis looks at the attainability and stability of the equilibrium

3.4 Solution of General Eq. System (1)(1)-(1)(1) = 0 (inconsistent & dependent) (2)(2)-(1)(4) = 0 (dependent) (2)(1)-(1)(3) = -1 (independent as rewritten)

Why use matrix method at all? Compact notation 5.6 Application to Market and National-Income Models Market model National-income model Matrix algebra vs. elimination of variables Why use matrix method at all? Compact notation Test existence of a unique solution Handy solution expressions subject to manipulation