3_3 An Useful Overview of Matrix Algebra

Slides:



Advertisements
Similar presentations
Applied Informatics Štefan BEREŽNÝ
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
APPENDIX A: REVIEW OF LINEAR ALGEBRA APPENDIX B: CONVEX AND CONCAVE FUNCTIONS V. Sree Krishna Chaitanya 3 rd year PhD student Advisor: Professor Biswanath.
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.
MF-852 Financial Econometrics
Review of Matrix Algebra
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.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrices and Determinants
Matrices The Basics Vocabulary and basic concepts.
Intro to Matrices Don’t be scared….
3.8 Matrices.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Compiled By Raj G. Tiwari
ECON 1150 Matrix Operations Special Matrices
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Unit 3: Matrices.
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
Fundamentals of Engineering Analysis
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
Unit 3 Matrix Arithmetic IT Disicipline ITD 1111 Discrete Mathematics & Statistics STDTLP 1 Unit 3 Matrix Arithmetic.
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.
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.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices, Vectors, Determinants.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
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.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
MAT 322: LINEAR ALGEBRA.
Matrices and Vector Concepts
Linear Algebraic Equations and Matrices
Linear Algebra Lecture 2.
Chapter 7 Matrix Mathematics
ECON 213 Elements of Mathematics for Economists
L8 inverse of the matrix.
Linear Algebraic Equations and Matrices
Linear independence and matrix rank
L6 matrix operations.
L5 matrix.
Section 7.4 Matrix Algebra.
Matrix Algebra.
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
Matrices Introduction.
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Matrix Algebra.
3.5 Perform Basic Matrix Operations Algebra II.
Presentation transcript:

3_3 An Useful Overview of Matrix Algebra Definitions Operations SAS/IML matrix commands

What is it? Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type

Why use it? Matrix algebra makes mathematical expression and computation easier. It allows you to get rid of cumbersome notation, concentrate on the concepts involved and understand where your results come from.

Definitions - scalar a scalar is a number (denoted with regular type: 1 or 22)

Definitions - vector Vector: a single row or column of numbers denoted with bold small letters row vector a = column vector b =

Definitions - Matrix A matrix is an array of numbers A = Denoted with a bold Capital letter All matrices have an order (or dimension): that is, the number of rows  the number of columns. So, A is 2 by 3 or (2  3).

Definitions A square matrix is a matrix that has the same number of rows and columns (n  n)

Matrix Equality Two matrices are equal if and only if they both have the same number of rows and the same number of columns their corresponding elements are equal

Matrix Operations Transposition Addition and Subtraction Multiplication Inversion

The Transpose of a Matrix: A' The transpose of a matrix is a new matrix that is formed by interchanging the rows and columns. The transpose of A is denoted by A' or (AT)

Example of a transpose Thus, If A = A', then A is symmetric

Addition and Subtraction Two matrices may be added (or subtracted) iff they are the same order. Simply add (or subtract) the corresponding elements. So, A + B = C yields

Addition and Subtraction (cont.) Where

Matrix Multiplication To multiply a scalar times a matrix, simply multiply each element of the matrix by the scalar quantity

Matrix Multiplication (cont.) To multiply a matrix times a matrix, we write AB (A times B) This is pre-multiplying B by A, or post-multiplying A by B.

Matrix Multiplication (cont.) In order to multiply matrices, they must be CONFORMABLE that is, the number of columns in A must equal the number of rows in B So, A  B = C (m  n)  (n  p) = (m  p)

Matrix Multiplication (cont.) (m  n)  (p  n) = cannot be done (1  n)  (n  1) = a scalar (1x1)

Matrix Multiplication (cont.) Thus where

Matrix Multiplication- an example Thus where

Properties AB does not necessarily equal BA (BA may even be an impossible operation) For example, A  B = C (2  3)  (3  2) = (2  2) B  A = D (3  2)  (2  3) = (3  3)

Properties Matrix multiplication is Associative A(BC) = (AB)C Multiplication and transposition (AB)' = B'A'

A popular matrix: X'X

Another popular matrix: e'e

Special matrices There are a number of special matrices Diagonal Null Identity

Diagonal Matrices A diagonal matrix is a square matrix that has values on the diagonal with all off-diagonal entities being zero.

Identity Matrix An identity matrix is a diagonal matrix where the diagonal elements all equal one. I = A  I = A

Null Matrix A square matrix where all elements equal zero.

The Determinant of a Matrix The determinant of a matrix A is denoted by |A| (or det(A)). Determinants exist only for square matrices. They are a matrix characteristic, and they are also difficult to compute

The Determinant for a 2x2 matrix If A = Then

Properties of Determinates Determinants have several mathematical properties which are useful in matrix manipulations. 1 |A|=|A'|. 2. If a row or column of A = 0, then |A|= 0. 3. If every value in a row or column is multiplied by k, then |A| = k|A|. 4. If two rows (or columns) are interchanged the sign, but not value, of |A| changes. 5. If two rows or columns are identical, |A| = 0. 6. If two rows or columns are linear combination of each other, |A| = 0

Properties of Determinants 7. |A| remains unchanged if each element of a row or each element multiplied by a constant, is added to any other row. 8. |AB| = |A| |B| 9. Det of a diagonal matrix = product of the diagonal elements

Rank The rank of a matrix is defined as rank(A) = number of linearly independent rows = the number of linearly independent columns. A set of vectors is said to be linearly dependent if scalars c1, c2, …, cn (not all zero) can be found such that c1a1 + c2a2 + … + cnan = 0

For example, a = [1 21 12] and b = [1/3 7 4] are linearly dependent A matrix A of dimension n  p (p < n) is of rank p. Then A has maximum possible rank and is said to be of full rank. In general, the maximum possible rank of an n  p matrix A is min(n,p).

The Inverse of a Matrix (A-1) For an n  n matrix A, there may be a B such that AB = I = BA. The inverse is analogous to a reciprocal A matrix which has an inverse is nonsingular. A matrix which does not have an inverse is singular. An inverse exists only if

Properties of inverse matrices

How to find inverse matrixes? determinants? and more? If and |A|  0 Otherwise, use SAS/IML an easier way