Linear Algebra Review

Similar documents
Knowledge Discovery and Data Mining 1 (VO) ( )

ORIE 6300 Mathematical Programming I August 25, Recitation 1

Chapter 2 Notes, Linear Algebra 5e Lay

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

CS 246 Review of Linear Algebra 01/17/19

Elementary maths for GMT

Linear Algebra, Vectors and Matrices

Department of Aerospace Engineering AE602 Mathematics for Aerospace Engineers Assignment No. 4

Chapter 2. Matrix Arithmetic. Chapter 2

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

Math 1553 Introduction to Linear Algebra

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Solutions to Exam I MATH 304, section 6

LINEAR ALGEBRA 1, 2012-I PARTIAL EXAM 3 SOLUTIONS TO PRACTICE PROBLEMS

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Problem # Max points possible Actual score Total 120

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

EXERCISE SET 5.1. = (kx + kx + k, ky + ky + k ) = (kx + kx + 1, ky + ky + 1) = ((k + )x + 1, (k + )y + 1)

Lecture 1 Review: Linear models have the form (in matrix notation) Y = Xβ + ε,

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

For comments, corrections, etc Please contact Ahnaf Abbas: Sharjah Institute of Technology. Matrices Handout #8.

Review problems for MA 54, Fall 2004.

A Quick Tour of Linear Algebra and Optimization for Machine Learning

Lecture 9: Vector Algebra

Introduction to Matrix Algebra

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

CSL361 Problem set 4: Basic linear algebra

Math 407: Linear Optimization

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

f(x, y) = 1 2 x y2 xy 3

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

Chapter 3: Theory Review: Solutions Math 308 F Spring 2015

Linear Algebra Review. Fei-Fei Li

MATH 2210Q MIDTERM EXAM I PRACTICE PROBLEMS

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

COMP 558 lecture 18 Nov. 15, 2010

Math 3191 Applied Linear Algebra

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

[3] (b) Find a reduced row-echelon matrix row-equivalent to ,1 2 2

Lecture 3 Linear Algebra Background

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Preliminary Linear Algebra 1. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 100

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then

Vectors and Matrices Statistics with Vectors and Matrices

b 1 b 2.. b = b m A = [a 1,a 2,...,a n ] where a 1,j a 2,j a j = a m,j Let A R m n and x 1 x 2 x = x n

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

Conceptual Questions for Review

Chapter 6. Orthogonality

Section 3.3. Matrix Rank and the Inverse of a Full Rank Matrix

MTH 362: Advanced Engineering Mathematics

MATRICES AND MATRIX OPERATIONS

MATH2070 Optimisation

Computational Foundations of Cognitive Science. Addition and Scalar Multiplication. Matrix Multiplication

Review of linear algebra

Digital Workbook for GRA 6035 Mathematics

Linear Algebra Practice Problems

CLASS 12 ALGEBRA OF MATRICES

LINEAR ALGEBRA QUESTION BANK

Linear Algebra and Matrix Inversion

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra V = T = ( 4 3 ).

Lecture 3: Matrix and Matrix Operations

Linear Algebra Review

Sect Least Common Denominator

Matrices and systems of linear equations

Quick Tour of Linear Algebra and Graph Theory

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

10-701/ Recitation : Linear Algebra Review (based on notes written by Jing Xiang)

Math 54 First Midterm Exam, Prof. Srivastava September 23, 2016, 4:10pm 5:00pm, 155 Dwinelle Hall.

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

Boolean Algebra & Logic Gates. By : Ali Mustafa

Physics 116A Solutions to Homework Set #5 Winter Boas, problem Use an augmented matrix to solve the following equation

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Math 3191 Applied Linear Algebra

Chapter 2. Linear Algebra. rather simple and learning them will eventually allow us to explain the strange results of

POLI270 - Linear Algebra

Recall the convention that, for us, all vectors are column vectors.

Image Registration Lecture 2: Vectors and Matrices

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

Rank and Nullity. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3

EK102 Linear Algebra PRACTICE PROBLEMS for Final Exam Spring 2016

NOTES on LINEAR ALGEBRA 1

Linear Algebra Formulas. Ben Lee

Pre-sessional Mathematics for Big Data MSc Class 2: Linear Algebra

MODULE 8 Topics: Null space, range, column space, row space and rank of a matrix

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 6

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

5.) For each of the given sets of vectors, determine whether or not the set spans R 3. Give reasons for your answers.

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

Vector Spaces and Linear Transformations

Unit 2 Boolean Algebra

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

Singular Value Decomposition

MTH 102A - Linear Algebra II Semester

Matrix invertibility. Rank-Nullity Theorem: For any n-column matrix A, nullity A +ranka = n

Linear algebra II Tutorial solutions #1 A = x 1

Problem Set 1. Homeworks will graded based on content and clarity. Please show your work clearly for full credit.

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

a11 a A = : a 21 a 22

Transcription:

Linear Algebra Review ORIE 4741 September 1, 2017 Linear Algebra Review September 1, 2017 1 / 33

Outline 1 Linear Independence and Dependence 2 Matrix Rank 3 Invertible Matrices 4 Norms 5 Projection Matrix 6 Helpful Matrix Hints 7 Gradients 8 Computational Complexity Notation Linear Algebra Review September 1, 2017 2 / 33

Linear Independence and Dependence Linear Algebra Review September 1, 2017 3 / 33

Linear Independence Algebraic Definition Definition The sequence of vectors v 1, v 2,..., v n is linearly independent if the only combination that gives the zero vector is 0v 1 + 0v 2 +... + 0v n. Example The vectors [1, 0, 0], [0, 1, 0], and [0, 0, 1] are linearly independent Linear Algebra Review September 1, 2017 4 / 33

Linear Dependence Algebraic Definition Definition The sequence of vectors v 1, v 2,..., v n is linearly dependent if there exists a combination that gives the zero vector other than 0v 1 + 0v 2 +... + 0v n. Example The vectors [1, 2, 0], [2, 4, 0], and [0, 0, 1] are linearly dependent because 2[1, 2, 0] + 1[2, 4, 0] + 0[0, 0, 1] = [0, 0, 0]. Linear Algebra Review September 1, 2017 5 / 33

Linear Dependence Geometric Definition Can you find a linear combination of these vectors that equals 0? Linear Algebra Review September 1, 2017 6 / 33

Linear Dependence Geometric Definition Any multiple of 1 Green + 2 Blue + 2 Red = 0 Linear Algebra Review September 1, 2017 7 / 33

Matrix Rank Linear Algebra Review September 1, 2017 8 / 33

Row Rank Definition The row rank of a matrix is the number of linearly independent rows in a matrix. Example Each row in matrix A is linearly independent, so row rank(a) = 3. Two rows in matrix B are linearly independent, so row rank(b) = 2. 1 0 0 1 0 0 A = 0 1 0 B = 1 1 0 0 0 1 2 0 0 Linear Algebra Review September 1, 2017 9 / 33

Column Rank Definition The column rank of a matrix is the number of linearly independent columns in a matrix. Example Each column in matrix A is linearly independent, so row rank(a) = 3. The first two columns in matrix B are linearly independent, so row rank(b) = 2. 1 0 0 1 0 0 A = 0 1 0 B = 1 1 0 0 0 1 2 0 0 Linear Algebra Review September 1, 2017 10 / 33

Rank Did you notice the row ranks and the column ranks for the matrices were the same? Definition The rank of a matrix is the number of linearly independent rows (columns) in a matrix. Linear Algebra Review September 1, 2017 11 / 33

Full-Rank Definition A matrix B is full-rank if: rank(b) = min{# columns in B, # of rows in B} Example Both A and B are full-rank. 1 0 0 1 0 0 0 A = 0 1 0 0 B = 0 1 0 0 0 1 0 0 1 0 0 0 0 Linear Algebra Review September 1, 2017 12 / 33

Invertible Matrices Linear Algebra Review September 1, 2017 13 / 33

Matrix Multiplication Multiply A*B where: [ ] [ ] 1 2 5 6 A= B= 3 4 7 8 Linear Algebra Review September 1, 2017 14 / 33

Matrix Multiplication Multiply A*B where: [ ] [ ] 1 2 5 6 A= B= 3 4 7 8 AB = [ ] (1 5) + (2 7) (1 6) + 2 8 = (3 5) + (4 7) (3 6) + 4 8 [ 19 ] 22 43 50 Linear Algebra Review September 1, 2017 14 / 33

Identity Matrix Definition The identity matrix, I, is an nxn matrix with 1s on the diagonal and 0s everywhere else with the property that Ix = xi = x for any vector x (IA = AI = A for any matrix A). Example An example of the 3x3 identity matrix is: 1 0 0 I 3 = 0 1 0 0 0 1 Linear Algebra Review September 1, 2017 15 / 33

Definition of Invertible Matrix Definition The matrix A is invertible if there exists a matrix A 1 such that A 1 A = I AA 1 = I Note: An invertible matrix should be square (same number of rows and columns) and have full-rank. Linear Algebra Review September 1, 2017 16 / 33

Invertible Matrix Example Let A = [ ] 4 3. 1 1 Then, the inverse of A is: A 1 = [ ] 1 3. 1 4 Check that A 1 satisfies the definition of an inverse: [ ] [ ] [ ] 4 3 1 3 1 0 AA 1 = = 1 1 1 4 0 1 [ ] [ ] [ ] 1 3 4 3 1 0 A 1 A = = Therefore, A 1 4 1 1 0 1 1 is the inverse of A. Linear Algebra Review September 1, 2017 17 / 33

Norms Linear Algebra Review September 1, 2017 18 / 33

Vector Norm Definition The norm of a vector x, denoted x or x 2, is the length of x: x = x1 2 + x 2 2 +... + x n 2 Example 1 Let x = 2 3, then 4 x = (1 2 + 2 2 + 3 2 + 4 2 ) = 1 + 4 + 9 + 16 = 30 Linear Algebra Review September 1, 2017 19 / 33

Projection Matrix Linear Algebra Review September 1, 2017 20 / 33

Span Definition Let A be a matrix. The Aspan of the columns of A is the set of all linear combinations of the columns of A. Example The rows of A = [ ] 1 0 spans all of R 0 1 2. Linear Algebra Review September 1, 2017 21 / 33

Projection Matrix Definition A square matrix P is the projection matrix onto the span(columns of A) if P 2 = P. Example [ 1 2 1 ] 2 P = is a projection matrix because P 2 = P. 1 2 1 2 Linear Algebra Review September 1, 2017 22 / 33

Projection Matrix Example Continued Example [ 1 2 1 ] 2 P = is a projection matrix that projects onto 1 2 1 2 [ ] [ ] [ ] 1 1 1 P = = 1 1 1 1 [ ] 2 P = 27 [ ] [ ] 4 1 = 4 4 1 [ ] [ ] [ ] 254 627 1 P = = 627 1000 627 1 [ ] 1. 1 Linear Algebra Review September 1, 2017 23 / 33

Helpful Matrix Hints Linear Algebra Review September 1, 2017 24 / 33

Helpful Matrix Properties and Identities AB BA A T B T = (BA) T A(B + C) = AB + AC (AB)C = A(BC) IA = AI = A AA 1 = A 1 A = I Linear Algebra Review September 1, 2017 25 / 33

Gradients Linear Algebra Review September 1, 2017 26 / 33

Multivariate Derivatives Find f x, f y f z, where f (x, y, z) = 5x + 2x 2 + xy + 3xy 2 z 4y 3 + 2yz + 4z 2 x 4 yz 2. Linear Algebra Review September 1, 2017 27 / 33

Multivariate Derivatives Find f x, f y f z, where f (x, y, z) = 5x + 2x 2 + xy + 3xy 2 z 4y 3 + 2yz + 4z 2 x 4 yz 2. f x = 5 + 4x + y + 3y 2 z 4x 3 yz 2 Linear Algebra Review September 1, 2017 27 / 33

Multivariate Derivatives Find f x, f y f z, where f (x, y, z) = 5x + 2x 2 + xy + 3xy 2 z 4y 3 + 2yz + 4z 2 x 4 yz 2. f x = 5 + 4x + y + 3y 2 z 4x 3 yz 2 f y = x + 6xyz 12y 2 + 2z x 4 z 2 Linear Algebra Review September 1, 2017 27 / 33

Multivariate Derivatives Find f x, f y f z, where f (x, y, z) = 5x + 2x 2 + xy + 3xy 2 z 4y 3 + 2yz + 4z 2 x 4 yz 2. f x = 5 + 4x + y + 3y 2 z 4x 3 yz 2 f y = x + 6xyz 12y 2 + 2z x 4 z 2 f z = 3xy 2 + 2y + 8z 2x 4 yz4 Linear Algebra Review September 1, 2017 27 / 33

Gradient Definition Let f (x 1, x 2,..., x n ) be a multivariable function. The gradient of f, f, is the multivariable generalization of the derivative of f. The gradient is a vector, where each row corresponds to a partial derivative with respect to a variable of the function. f x 1 f x 2 f =... f x n Linear Algebra Review September 1, 2017 28 / 33

Example Gradient Let f (x, y, z) = x 2 + 3xy + 4xyz + z. Then f is: f = f x f y f z 2x + 3y + 4yz = 3x + 4xz 4xy + 1 Linear Algebra Review September 1, 2017 29 / 33

Computational Complexity Notation Linear Algebra Review September 1, 2017 30 / 33

Big O Notation Big O notation is used to describe the run-time (computational complexity) of algorithms. Definition Let f(n) be the run-time of some algorithm. If f(n) = O(g(n)), then there exists a constant C and a constant N such that: f (x) C g(x) for all x > N. Example When an algorithm runs in time O(n). That means it runs in linear time. So, where n is the amount of data, if an algorithm runs in time 5n, 1000n+50000, n, or n-45, the algorithm runs in time O(n). Linear Algebra Review September 1, 2017 31 / 33

Big O Notation http://bigocheatsheet.com Linear Algebra Review September 1, 2017 32 / 33

References Strang, Gilbert. (2009, 4th ed.). Introduction to Linear Algebra. Ling-Hsiao Ly s 2012 Lecture 3 Projection and Projection Matrices Notes http://www.ss.ncu.edu.tw/ lyu/lecture f iles e n/lyu L A N otes/lyu L A 2 012/Lyu L A 32 012.pdf Linear Algebra Review September 1, 2017 33 / 33