MF-852 Financial Econometrics

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Mathematics. Matrices and Determinants-1 Session.
3_3 An Useful Overview of Matrix Algebra
Chapter 2 Basic Linear Algebra
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
Matrices and Systems of Equations
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.
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Pam Perlich Urban Planning 5/6020
Matrices MSU CSE 260.
Matrices and Determinants
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
3.8 Matrices.
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
1 Operations with Matrice 2 Properties of Matrix Operations
1.3 Matrices and Matrix Operations.
UnB - Financial Econometrics I Otavio Medeiros 1 The Matrix Otavio R. de Medeiros UnB Programa de Pós-Graduação em Administração Programa Multiinstitucional.
Compiled By Raj G. Tiwari
Chapter 2 Solving Linear Systems Matrix Definitions –Matrix--- Rectangular array/ block of numbers. –The size/order/dimension of a matrix: (The numbers.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
ECON 1150 Matrix Operations Special Matrices
 Row and Reduced Row Echelon  Elementary Matrices.
Matrix Algebra. Quick Review Quick Review Solutions.
Chap. 2 Matrices 2.1 Operations with Matrices
Presentation by: H. Sarper
1.3 Matrices and Matrix Operations. Definition A matrix is a rectangular array of numbers. The numbers in the array are called the entries in the matrix.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
8.1 Matrices & Systems of Equations
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Unit 6 : Matrices.
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.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Chapter 5 More Work with Matrices
Matrices and Determinants
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.
2.5 – Determinants and Multiplicative Inverses of Matrices.
Matrices Presentation by : Miss Matkar Pallavi. P.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
Matrix Algebra Basics Chapter 3 Section 5. Algebra.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
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.
Linear Algebra by Dr. Shorouk Ossama.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
3.8 Matrices L Al-zaid Math1101.
Properties and Applications of Matrices
Linear Algebra Lecture 2.
L6 matrix operations.
Matrix Algebra.
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
Matrices and Matrix Operations
Matrices.
Matrix Algebra.
Presentation transcript:

MF-852 Financial Econometrics Lecture 1 Overview of Matrix Algebra and Excel Roy J. Epstein Fall 2003

Contact Info BC email: epsteira@mail.bc.edu

Matrices—Some Definitions A matrix is a rectangular array of real numbers. Denote a matrix with an upper case italic letter, e.g.,

Matrices—Some Definitions A has m rows and n columns. The dimension of A is “m x n” (m by n). A vector is a matrix with a single row or a single column (denoted with a lower case letter without a subscript), e.g,

Matrices—Some Definitions If n = m then A is a square matrix. If A is square and aij = aji then A is symmetric, e.g., is a symmetric matrix.

Scalar Multiplication Let k be a scalar (i.e., a given real number). kA is a new matrix where each element equals kaij.

Matrix Addition A + B is a new matrix where each element is the sum of the corresponding elements of A and B.

Matrix Addition Addition is only defined if the matrices have the same dimensions. makes no sense.

Matrix Subtraction A – B = A + (–1)B. So subtraction also requires the matrices to have the same dimensions.

Matrix Transpose The transpose of a matrix is a new matrix where the rows and columns are switched. The transpose of A is denoted A .

Matrix Rules for Addition A + B = B + A (A + B) + C = A + (B + C) (A + B)  = A + B 

Summation Operator We often need to add up the elements of a vector or matrix. We use a convenient notation for this. Suppose a = (a1, a2, …, an). Define

“Dot” (or “Inner”) Product The “dot” product “multiplies” two vectors (we ignore other vector multiplication concepts). The dot product of a and b is defined as ab = ∑aibi (a and b must have the same number of elements). Suppose then ab = 1 x 0 + 4 x 2 + 2(-3) = 2.

Matrix Multiplication Matrix multiplication AB is defined in terms of dot products. The result is a new matrix C. Each cij is a dot product. The dot product involves the ith row of A and the jth column of B.

Matrix Multiplication Example:

Matrix Multiplication # columns in A = # rows in B or matrix multiplication is not defined. Questions: Does AB = BA? Do A and B have to be square in order to multiply them? Is AA square?

Matrix Rules for Multiplication A(BC ) = (AB)C A(B+C) = AB + AC (B+C)A = BA + CA (AB) = B A (ABC) = C BA

The Identity Matrix An identity matrix has 1’s on the diagonal and 0 everywhere else. aii = 1, aij=0 i  j is a 3 x 3 identity matrix.

The Identity Matrix and Multiplication For scalars, 1 is the multiplicative identity: 1() = ()1 = . For matrices, AI = IA = A.

Matrix Inverse For   0, –1 is the multiplicative inverse: –1() = ()–1 = 1. For matrices, A –1 is the inverse of A: A –1A = A A –1 = I. Excel (and other programs) will calculate A –1.

Inverse Matrix Example

Singular Matrix For  = 0, –1 does not exist. Sometimes A –1 does not exist. In this case A is called singular or non-invertible. Excel sometimes calculates an inverse of a singular matrix when there is a lot of roundoff error—be aware!

Singular and Non-Singular Matrices

Block Diagonal Matrix Suppose A has sub-matrices along its main diagonal and is zero elsewhere. Then A is block diagonal, e.g.,

Matrices and a System of Linear Equations Suppose we have a system of 2 linear equations in 2 unknowns, e.g., Matrices lead to a simple solution.

Matrix Representation The equation coefficients are a matrix A: The unknowns are a vector x: The constants are a vector c.

Matrix Solution The equation system can be written Multiply both sides by A –1 Solution is (since A –1A =I)

Matrix Solution Check: So x1 = 0 and x2 = 0.5.

Excel and Matrices SUMPRODUCT MMULT TRANSPOSE MINVERSE Dot product Matrix and vector multiplication TRANSPOSE Matrix and vector transpose MINVERSE Matrix inverse

Excel and Matrices Highlight a range of cells that has the proper dimension for the result of the matrix function. Enter the matrix formula, e.g., =MINVERSE(b3:d5) Press CTRL+SHIFT+ENTER.