REGRESSION (CONTINUED) Matrices & Matrix Algebra; Multivariate Regression LECTURE 5 Supplementary Readings: Wilks, chapters 6; Bevington, P.R., Robinson,

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Matrices & Systems of Linear Equations
3_3 An Useful Overview of Matrix Algebra
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
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.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Chapter 2 Section 3 Arithmetic Operations on Matrices.
Methods for Dummies FIL January Jon Machtynger & Jen Marchant
Matrix Mathematics in MATLAB and Excel
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
Linear Algebra and Matrices
Matrix Algebra HGEN619 class Heuristic You already know a lot of it Economical and aesthetic Great for statistics.
Linear Algebra, Matrices (and why they matter to (f)MRI!) Methods for Dummies FIL October 2008 Nick Henriquez & Nick Wright Theory & Application Theory.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
Linear Algebra With Applications by Otto Bretscher. Page The Determinant of any diagonal nxn matrix is the product of its diagonal entries. True.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
ECON 1150 Matrix Operations Special Matrices
Chapter 3: Linear Algebra I. Solving sets of linear equations ex: solve for x, y, z. 3x + 5y + 2z = -4 2x + 9z = 12 4y + 2z = 3 (can solve longhand) (can.
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Dr. Mubashir Alam King Saud University. Outline Systems of Linear Equations (6.1) Matrix Arithmetic (6.2) Arithmetic Operations (6.2.1) Elementary Row.
More on Inverse. Last Week Review Matrix – Rule of addition – Rule of multiplication – Transpose – Main Diagonal – Dot Product Block Multiplication Matrix.
CPSC 491 Xin Liu Nov 17, Introduction Xin Liu PhD student of Dr. Rokne Contact Slides downloadable at pages.cpsc.ucalgary.ca/~liuxin.
Review of Matrices Or A Fast Introduction.
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.
Sec 3.5 Inverses of Matrices Where A is nxn Finding the inverse of A: Seq or row operations.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
The inverse of a Square Matrix 2.1 Day 1 (Out of Pre-Calc book 8.3) We are reloading for another chapter.
Lecture 28: Mathematical Insight and Engineering.
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.
Company LOGO Chapter 1: Matrix, Determinant, System of linear equations Module 1: Matrix Natural Science Department Example 1: The following rectangular.
Fundamentals of Engineering Analysis
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
1.3 Solutions of Linear Systems
Sec 4.1 Matrices.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
2.5 – Determinants and Multiplicative Inverses of Matrices.
Matrix Algebra Methods for Dummies FIL November Mikkel Wallentin
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.
Chapter 1 Section 1.6 Algebraic Properties of Matrix Operations.
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
Matrices and Vector Concepts
Linear Algebra Lecture 2.
Review of Linear Algebra
Linear independence and matrix rank
Matrix Operations Add and Subtract Matrices Multiply Matrices
Euclidean Inner Product on Rn
2. Matrix Algebra 2.1 Matrix Operations.
Lecture 11 Matrices and Linear Algebra with MATLAB
Unit 3: Matrices
Review of Matrix Algebra
Fundamentals of Engineering Analysis
Matrices.
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Linear Algebra review (optional)
Sec 3.5 Inverses of Matrices
Linear Algebra and Matrices
Chapter 2 Determinants.
Presentation transcript:

REGRESSION (CONTINUED) Matrices & Matrix Algebra; Multivariate Regression LECTURE 5 Supplementary Readings: Wilks, chapters 6; Bevington, P.R., Robinson, D.K., Data Reduction and Error Analysis for the Physical Sciences, McGraw-Hill, 1992.

Tutorial on Matrices and Matrix Algebra

VECTORS c is an N-length column vector b is an M-length row vector b T is an N-length column vector

VECTORS Can add two N-length row vectors or two N-length column vectors

VECTORS Can subtract two N-length row vectors or two N-length column vectors

VECTORS Can multiply an N-length vector by a constant

VECTORS Can multiply an K-length row vector by an K-length column vector ‘DOT PRODUCT’ or ‘INNER PRODUCT’ ‘EUCLIDEAN NORM’

VECTORS ‘DOT PRODUCT’ or ‘INNER PRODUCT’ ‘EUCLIDEAN NORM’ Note the close relationship with the linear correlation between two series

VECTORS Can multiply an N-length column vector by an M-length row vector ‘OUTER PRODUCT’

VECTORS Yields an NxM Matrix ‘OUTER PRODUCT’

MATRICES NxM Matrix

TRANSPOSE OF MATRIX NxM Matrix MxN Matrix

Can add two NxM Matrices MATRICES

Can multiply an NxK and KxM Matrix MATRICES

RULES FOR MATRIX ARITHMETIC Associative Laws Commutative Laws

NxN Matrix N IDENTITY MATRIX

DIAGONAL MATRICES

INVERSE OF A (SQUARE) MATRIX

INVERSE OF A MATRIX

Special Cases: 2x2 matrix If det(A)  0 then the matrix is “Invertible” Equivalent to the Matrix being of “full rank” (ie, there are no redundant rows in the matrix)

INVERSE OF A MATRIX Special Cases: diagonal matrix

UNITARY MATRIX Example: 2D Rotation Matrix Note that the inverse represents a rotation in the opposite direction

SOLUTION OF MATRIX EQUATION If A is invertible, We can write

Recall Linear Regression We can write this as a matrix equation,