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.

Slides:



Advertisements
Similar presentations
Chapter Matrices Matrix Arithmetic
Advertisements

Applied Informatics Štefan BEREŽNÝ
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.
Mathematics. Matrices and Determinants-1 Session.
3_3 An Useful Overview of Matrix Algebra
MF-852 Financial Econometrics
Maths for Computer Graphics
Chapter 2 Basic Linear Algebra
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear 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.
1 Neural Nets Applications Vectors and Matrices. 2/27 Outline 1. Definition of Vectors 2. Operations on Vectors 3. Linear Dependence of Vectors 4. Definition.
Economics 2301 Matrices Lecture 13.
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
Matrices and Determinants
Chapter 5 Determinants.
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
3.8 Matrices.
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
Compiled By Raj G. Tiwari
ECON 1150 Matrix Operations Special Matrices
 Row and Reduced Row Echelon  Elementary Matrices.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrix Inversion.
Matrices. Given below is a record of all the types of books kept in a class library. TypeFictionGeneral Malay2547 Chinese4072 English8085.
A rectangular array of numbers (we will concentrate on real numbers). A nxm matrix has ‘n’ rows and ‘m’ columns What is a matrix? First column First row.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
8.1 Matrices & Systems of Equations
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
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.
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 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.
A Review of Some Fundamental Mathematical and Statistical Concepts UnB Mestrado em Ciências Contábeis Prof. Otávio Medeiros, MSc, PhD.
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.
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.
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.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
2.5 – Determinants and Multiplicative Inverses of Matrices.
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,
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
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, Vectors, Determinants.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
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.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
Matrices and Vector Concepts
MATRICES.
Linear Algebra Lecture 2.
Matrix Operations SpringSemester 2017.
Matrix Algebra.
Matrices Introduction.
Matrix Algebra.
Matrix Operations SpringSemester 2017.
Matrices and Determinants
Presentation transcript:

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 e Interregional de Pós-Graduação em Ciências Contábeis UnB-UFPB-UFRN Financial Econometrics I

UnB - Financial Econometrics I Otavio Medeiros 2 Matrices A Matrix is a collection or array of numbers Size of a matrix is given by number of rows and columns R x C If a matrix has only one row, it is a row vector If a matrix has only one column, it is a column vector If R = C the matrix is a square matrix

UnB - Financial Econometrics I Otavio Medeiros 3 Definitions Matrix is a rectangular array of real numbers with R rows and C columns. are matrix elements.

UnB - Financial Econometrics I Otavio Medeiros 4 Definitions Dimension of a matrix: R x C. Matrix 1 x 1 is a scalar. Matrix R x 1 is a column vector. Matrix 1 x C is a row vector. If R = C, the matrix is square. Sum of elements of leading diagonal = trace. Diagonal matrix : square matrix with all elements off the leading diagonal equal to zero. Identity matrix: diagonal matrix with all elements in the leading diagonal equal to one. Zero matrix: all elements are zero.

UnB - Financial Econometrics I Otavio Medeiros 5 Definitions Rank of a matrix: is given by the maximum number of linearly independent rows or columns contained in the matrix, e.g.:

UnB - Financial Econometrics I Otavio Medeiros 6 Matrix Operations Equality: A = B if and only if A and B have the same size and a ij = b ij  i, j. Addition of matrices: A+B= C if and only if A and B have the same size and a ij + b ij = c ij  i, j.

UnB - Financial Econometrics I Otavio Medeiros 7 Matrix operations Multiplication of a scalar by a matrix: k.A = k.[a ij ], i.e. every element of the matrix is multiplied by the scalar.

UnB - Financial Econometrics I Otavio Medeiros 8 Matrix operations Multiplication of matrices: if A is m x n and B is n x p, then the product of the 2 matrices is A.B = C, where C is a m x p matrix with elements: Example: Note: A.B  B.A

UnB - Financial Econometrics I Otavio Medeiros 9 Transpose of a matrix matrix transpose: if A is m x n, then the transpose of A is n x m, i.e.:

UnB - Financial Econometrics I Otavio Medeiros 10 Properties of transpose matrices (A+B)+C=A+(B+C) (A.B).C=A(B.C)

UnB - Financial Econometrics I Otavio Medeiros 11 Propriedades: PROJEÇÕES

UnB - Financial Econometrics I Otavio Medeiros 12 Square matrices : Identity matrix I: Note: A.I = I.A = A, where A has the same size as I.

UnB - Financial Econometrics I Otavio Medeiros 13 Square matrices : Diagonal matrix:

UnB - Financial Econometrics I Otavio Medeiros 14 Square matrices: Scalar matrix = diagonal matrix, when     n. Zero matrix: A + 0 = A; A x  0 = 0.

UnB - Financial Econometrics I Otavio Medeiros 15 Trace of a matrix: If A is m x n and B is n x m, then AB and BA are square matrices and tr(AB) = tr (BA)

UnB - Financial Econometrics I Otavio Medeiros 16 Determinants matrix 2 x 2:

UnB - Financial Econometrics I Otavio Medeiros 17 Determinants matrix 3 x 3:

UnB - Financial Econometrics I Otavio Medeiros 18 Determinants Matrix 3 x 3:

UnB - Financial Econometrics I Otavio Medeiros 19 Inverse matrix The inverse of a square matrix A, named A -1, is the matrix which pre or post multiplied by A gives the identity matrix. B = A -1 if and only if BA = AB = I Matrix A has an inverse if and only if det A  0 (i.e. A is non singular). (A.B) -1 = B -1.A -1 (A -1 )’=(A’) -1  if A é symmetrical and non singular, then A -1 is symmetrical. If det A  0 and A is a square matrix of size n, then A has rank n.

UnB - Financial Econometrics I Otavio Medeiros 20 Steps for finding an inverse matrix Calculation of the determinant: Kramer’s rule or cofactor matrix. Minor of the element a ij is the determinant of the submatrix obtained after exclusion of the i-th row and j-th column. Cofactor is the minor multiplied by (-1) i+j,

UnB - Financial Econometrics I Otavio Medeiros 21 Steps for finding an inverse matrix Laplace expansion: take any row or column and get the determinant by multiplying the products of each element of row or columns by its respective cofactor. Cofactor matrix: matrix where each element is substituted by its cofactor.

UnB - Financial Econometrics I Otavio Medeiros 22

UnB - Financial Econometrics I Otavio Medeiros 23 Example 2 x 2 matrix :

UnB - Financial Econometrics I Otavio Medeiros 24 Example 3 x 3 matrix :

UnB - Financial Econometrics I Otavio Medeiros 25 Matrix differentiation:

UnB - Financial Econometrics I Otavio Medeiros 26 Matrix differentiation:

UnB - Financial Econometrics I Otavio Medeiros 27 Matrix differentiation:

UnB - Financial Econometrics I Otavio Medeiros 28 Since  = 0.5 e  = 0.5, the regression equation is y t = x t Solution: Linear regression, example 1: Perform a linear regression, given that the data for the dependent variable are 1, 2, 1, 2, 2 and for the independent variable are 1, 2, 2, 3, 3.

UnB - Financial Econometrics I Otavio Medeiros 29

UnB - Financial Econometrics I Otavio Medeiros 30 Linear regression, example 2: a firm manufacturing bikes is preparing a project and wishes to find out what is the relationship between bike sales and national income (GDP). In the last 5 years, bike sales increased by 5%, 9%, 5%, 6% and 10%, whereas GDP increased by 2,5%, 4%, 3%, 2,5%, 4%. What is the relationship between bike sales and GDP?

UnB - Financial Econometrics I Otavio Medeiros 31 The past relationship between bike sales growth and GDP growth is given by: y t = x t Example 2: Solution 1

UnB - Financial Econometrics I Otavio Medeiros 32 Hint: to avoid working with decimals, we can multiply y and x by 100. To find the correct final result, divide  by 100.  doesn’t change. Example 2: Solution 2

UnB - Financial Econometrics I Otavio Medeiros 33 Graph (Excel):

UnB - Financial Econometrics I Otavio Medeiros 34 Goodness of fit: A measure of the goodness of fit of a regression is the coefficient of determination R 2, which is defined as:

UnB - Financial Econometrics I Otavio Medeiros 35 Goodness of fit: When all the residuals are equal to nil, R 2 = 1, meaning that the regression is perfect, with all data points located on the line. When thenR 2 = 0, meaning that there is no regression. Hence, the range for R 2 will be: 0 < R 2 < 1 Values of R 2 close to 1 indicate a good regression, while low values of R 2 indicate a bad or inexisting regression.

UnB - Financial Econometrics I Otavio Medeiros 36 Calculation of R 2 – Example 1:

UnB - Financial Econometrics I Otavio Medeiros 37 Calculation of R 2 – Example 2: