Linear Algebra (Review) Volker Tresp 2017

Similar documents
Linear Algebra (Review) Volker Tresp 2018

Review of Linear Algebra

Lecture 3: Matrix and Matrix Operations

Linear Algebra Review. Vectors

Large Scale Data Analysis Using Deep Learning

Review of Linear Algebra

Knowledge Discovery and Data Mining 1 (VO) ( )

Image Registration Lecture 2: Vectors and Matrices

Linear Algebra V = T = ( 4 3 ).

Quantum Computing Lecture 2. Review of Linear Algebra

Properties of Matrices and Operations on Matrices

Example Linear Algebra Competency Test

The Singular Value Decomposition

Lecture notes on Quantum Computing. Chapter 1 Mathematical Background

Linear Algebra & Geometry why is linear algebra useful in computer vision?

This appendix provides a very basic introduction to linear algebra concepts.

Matrix Basic Concepts

Section 12.4 Algebra of Matrices

Review of linear algebra

. =. a i1 x 1 + a i2 x 2 + a in x n = b i. a 11 a 12 a 1n a 21 a 22 a 1n. i1 a i2 a in

Linear Algebra for Machine Learning. Sargur N. Srihari

Mathematics 13: Lecture 10

Review of some mathematical tools

Linear Algebra & Geometry why is linear algebra useful in computer vision?

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Elementary Row Operations on Matrices

Chapter 3 Transformations

Deep Learning Book Notes Chapter 2: Linear Algebra

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

Matrix Algebra: Summary

Matrix & Linear Algebra

Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

Introduction to Numerical Linear Algebra II

Basic Linear Algebra in MATLAB

Linear Algebra. Session 12

1 Linearity and Linear Systems

I = i 0,

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

Linear Algebra - Part II

1. Vectors.

Matrices and Matrix Algebra.

Basic Concepts in Matrix Algebra

ELE/MCE 503 Linear Algebra Facts Fall 2018

POLI270 - Linear Algebra

Foundations of Computer Vision

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

Matrices. Chapter Definitions and Notations

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

Computational Foundations of Cognitive Science. Definition of the Inverse. Definition of the Inverse. Definition Computation Properties

5 Linear Algebra and Inverse Problem

Linear Algebra II. 7 Inner product spaces. Notes 7 16th December Inner products and orthonormal bases

Lecture II: Linear Algebra Revisited

Kevin James. MTHSC 3110 Section 2.1 Matrix Operations

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

Background Mathematics (2/2) 1. David Barber

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

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

Eigenvalues and diagonalization

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Lecture 2: Linear Algebra Review

Maths for Signals and Systems Linear Algebra in Engineering

CS 143 Linear Algebra Review

Pseudoinverse & Moore-Penrose Conditions

Basic Concepts in Linear Algebra

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Final Project # 5 The Cartan matrix of a Root System

Fall TMA4145 Linear Methods. Exercise set Given the matrix 1 2

Review of Basic Concepts in Linear Algebra

We use the overhead arrow to denote a column vector, i.e., a number with a direction. For example, in three-space, we write

Linear Algebra Methods for Data Mining

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Math for ML: review. ML and knowledge of other fields

Dimensionality Reduction: PCA. Nicholas Ruozzi University of Texas at Dallas

1. The Polar Decomposition

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

MATRIX ALGEBRA. or x = (x 1,..., x n ) R n. y 1 y 2. x 2. x m. y m. y = cos θ 1 = x 1 L x. sin θ 1 = x 2. cos θ 2 = y 1 L y.

Matrices. In this chapter: matrices, determinants. inverse matrix

Singular Value Decomposition

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

. a m1 a mn. a 1 a 2 a = a n

DATA MINING LECTURE 8. Dimensionality Reduction PCA -- SVD

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

MATH 2030: MATRICES ,, a m1 a m2 a mn If the columns of A are the vectors a 1, a 2,...,a n ; A is represented as A 1. .

MATH 423 Linear Algebra II Lecture 33: Diagonalization of normal operators.

Final Exam Practice Problems Answers Math 24 Winter 2012

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Chapter 2. Matrix Arithmetic. Chapter 2

Linear Algebra and Eigenproblems

Basic Elements of Linear Algebra

MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra

Linear Algebra: Characteristic Value Problem

Singular Value Decomposition

Review problems for MA 54, Fall 2004.

Applied Linear Algebra in Geoscience Using MATLAB

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices

ORTHOGONALITY AND LEAST-SQUARES [CHAP. 6]

j=1 u 1jv 1j. 1/ 2 Lemma 1. An orthogonal set of vectors must be linearly independent.

LEAST SQUARES SOLUTION TRICKS

Transcription:

Linear Algebra (Review) Volker Tresp 2017 1

Vectors k is a scalar (a number) c is a column vector. Thus in two dimensions, c = ( c1 c 2 ) (Advanced: More precisely, a vector is defined in a vector space. Example: c R 2 and c = c i e 1 + c 2 e 2 with an orthogonal basis e 1, e 2. We denote with c both the vector and its component representation) c i is the i-th component of c c T = (c 1, c 2 ) is a row vector, the transposed of c 2

Matrices A is a matrix. (Advanced: A matrix is a 2-D array that is defined with respect to a vector space.) If A is a k l-dimensional matrix, then the transposed A T is an l k-dimensional matrix the columns (rows) of A are the rows (columns) of A T and vice versa 3

Addition of Two Vectors Let c = a + d Then c j = a j + d j 4

Multiplication of a Vector with a Scalar c = ka is a vector with c j = ka j C = ka is a matrix of the dimensionality of A, with c i,j = ka i,j 5

Scalar Product of Two Vectors The scalar product (also called dot product) is defines as and is a scalar a c = a T c = l m=1 a m c m Advanced: The dot product is identical to the inner product a, c for Euclidean vector spaces with orthonormal basis vectors e i ( ) a, c = a i e i c i e i = i i i a i c i = a c = a T c 6

Matrix-Vector Product A matrix consists of many row vectors. So a product of a matrix with a column vector consists of many scalar products of vectors If A is a k l-dimensional matrix and c a l-dimensional column vector Then d = Ac is a k-dimensional column vector d with d j = l m=1 a j,m c m 7

Matrix-Matrix Product A matrix also consists of many column vectors. So a product of matrix with a matrix consists of many matrix-vector products If A is a k l-dimensional matrix and C an l p-dimensional matrix Then D = AC is a k p-dimensional matrix with d i,j = l m=1 a i,m c m,j 8

Multiplication of a Row-Vector with a Matrix Multiplication of a row vector with a matrix is a row vector. If A is a k l-dimensional matrix and d a k-dimensional Vector and if c T = d T A Then c is a l-dimensional vector with c i = k m=1 d m a m,i 9

Outer Product Special case: Multiplication of a column vector with a row vector is a matrix. Let d be a k-dimensional vector and c be a p-dimensional vector, then A = dc T is a k p matrix with a i,j = d i c j. Advanced: This is also called an outer product (when related to vector spaces) and is written as d c. Note that a matrix is generated from two vectors Advanced: An outer product is a special case of a tensor product 10

Matrix Transposed The transposed A T changes rows and columns ( A T ) T = A (AC) T = C T A T 11

Unit Matrix I = 1 0... 0 0 1... 0... 0... 0 1 12

Diagonal Matrix k k diagonal matrix: A = a 1,1 0... 0 0 a 2,2... 0... 0... 0 a k,k 13

Matrix Inverse Let A be a square matrix If there is a unique inverse matrix A 1, then we have A 1 A = I AA 1 = I If the corresponding inverse exist, (AC) 1 = C 1 A 1 14

Orthogonal Matrices Orthogonal Matrix (more precisely: Orthonormal Matrix): R is a (quadratic) orthogonal matrix, if all columns are orthonormal. It follows (non-trivially) that all rows are orthonormal as well and R T R = I RR T = I R 1 = R T (1) 15

Singular Value Decomposition (SVD) Any N M matrix X can be factored as X = UDV T where U and V are both orthonormal matrices. U is an N N Matrix and V is an M M Matrix. D is an N M diagonal matrix with diagonal entries (singular values) d i 0, i = 1,..., r, with r = min(m, N) The u j (columns of U) are the left singular vectors The v j (columns of V ) are the right singular vectors The d j (diagonal entries of D) are the singular values 16