Introduction Eigen Values and Eigen Vectors An Application Matrix Calculus Optimal Portfolio. Portfolios. Christopher Ting.

Size: px
Start display at page:

Download "Introduction Eigen Values and Eigen Vectors An Application Matrix Calculus Optimal Portfolio. Portfolios. Christopher Ting."

Transcription

1 Portfolios Christopher Ting Christopher Ting : christopherting@smu.edu.sg : : LKCSB 5036 November 4, 2016 Christopher Ting QF 101 Week 12 November 4, /51

2 Table of Contents 1 Introduction 2 Eigen Values and Eigen Vectors 3 An Application 4 Matrix Calculus 5 Optimal Portfolio Christopher Ting QF 101 Week 12 November 4, /51

3 Pre-U Scalar and Vector A scalar a is a single number or one dimension. N: Natural numbers Z: Integers Q: Rational numbers R: Real numbers A vector a is a k 1 list of numbers arranged in a column. a 1 a 2 a =. Rk. a k Christopher Ting QF 101 Week 12 November 4, /51

4 Pre-U Matrix A matrix A is a k r rectangular array of numbers arranged in k rows and r columns. A 11 A 12 A 1r A 21 A 22 A 2r.... A k1 A k2 A kr Regular letters are used for scalars, lower case bold letters for vectors, and upper case bold letters for matrices. By convention, a i is the element of a vector in the i-th row, and A ij refers to the element of a matrix in the i-th row and j-th column. Christopher Ting QF 101 Week 12 November 4, /51

5 Matrix Transpose The transpose of matrix is the matrix obtained by rotating each row into a column (clockwise) with the first element as pivot, i.e., for each row i, A 1i A 2i [ Ai1 A i2 A ir]. Notation-wise, we write the transpose of A as A or A, and [ Aij ] = [ Aji ]. A ri Question If A is a k r matrix, what is the length and width of A? Christopher Ting QF 101 Week 12 November 4, /51

6 Matrix Addition Two matrices A and B are addable only when they are of the same order (rows column): A + B = [A ij ] + [B ij ] = [A ij + B ij ]. Matrix addition follows the commutative and associative laws. A + B = B + A. ( A + B ) + C = A + ( B + C ). Christopher Ting QF 101 Week 12 November 4, /51

7 Inner or Dot Product If a and b are both k 1, then the sum of element-wise products is called the inner product or dot product. a b = k a h b h. h=1 The result of an inner product is a scalar. Dot product is commutative: a b = b a. In Python, inner product is coded as numpy.inner(a, b). Christopher Ting QF 101 Week 12 November 4, /51

8 Linear Combination A vector can be written as a linear combination: a a 2 a = = a a a 0 k. a k The vectors with 1 in the i-th row and the rest 0 are called the basis vectors, and denoted by e i. Compactly, k the column vector is expressed as a = a i e i ; and the row vector a as a = k a i e i. i=1 i=1 Christopher Ting QF 101 Week 12 November 4, /51

9 Linear Dependence and Independence 1 A set of vectors a i, i = 1,2,...,n are said to be linearly dependent if there exist scalars c 1,c 2,...,c n such that c 1 a 1 + c 2 a 2 + c n a n = c i a i = o. (1) 2 A set of vectors a i, i = 1,2,...,n are said to be linearly independent if they are not linearly dependent. 3 Hence, a i, i = 1,2,...,n are linearly independent iff equation (1) has only the trivial solution: c i = 0, for all i = 1,2,...,n. Christopher Ting QF 101 Week 12 November 4, /51

10 Einstein s Notation In Einstein s notation, the inner product is written as a b = e i a i b j e j = a i b j e i e j = a i b j δ i j = a ib i, where δ i is called the Kronecker delta, which is defined as j e i e j = δ i j := { 1 when i = j; 0 otherwise. When a b = 0, we say that a and b are orthogonal. Christopher Ting QF 101 Week 12 November 4, /51

11 Inspirational Digression: General Relativity Space-Time Curvature = Energy-Momentum tensor R µν 1 2 Rg µν = 8πG c 4 T µν Christopher Ting QF 101 Week 12 November 4, /51

12 Matrix Multiplication Multiplication by a scalar: If c is a non-zero and finite scalar, c A = Ac = [ A ij c ]. If A is k r and B is r s so that the number of columns of A equals the number of rows of B, we say that A and B are conformable, and the matrix product AB can be defined. a 1 a 1 a b 1 a 1 b 2 a 1 b s 2 [ ] a 2 AB = b1 b 2 b s = b 1 a 2 b 2 a 2 b s..... a k b 1 a k b 2 a k b s a k Christopher Ting QF 101 Week 12 November 4, /51

13 Matrix Multiplication Christopher Ting QF 101 Week 12 November 4, /51

14 Square Matrix and Trace A matrix is said to be square when r = k. A square matrix is said to symmetric when A = A. The trace of a k k square matrix A is defined as k tra := A ii = A ij δ ij, i=1 i.e., the sum of its diagonal elements. Christopher Ting QF 101 Week 12 November 4, /51

15 Properties of Trace For square matrices A and B and a real and finite constant c, we have tr ( ca ) = c tra; tra = tra; tr ( A + B ) = tra + trb; tri k = k. For example, the trace of the matrix [ 3 ] 4 Tr(A) = 7 9 = = 12. Christopher Ting QF 101 Week 12 November 4, /51

16 Theorem Commutativity of Trace For k r A and r k B, we have tr ( AB ) = tr ( BA ). Proof: a 1 b 1 a 1 b 2 a 1 b k tr ( AB ) a 2 = tr b 1 a 2 b 2 a 2 b k... a k b 1 a k b 2 a k b k = a i b i = b i a i = tr ( BA ). We have applied the fact that the dot product is commutative. Christopher Ting QF 101 Week 12 November 4, /51

17 Rank of a Matrix 1 The rank of a matrix is defined as the number of its linearly independent rows, which is equal to the number of its linearly independent columns, i.e., row rank = column rank. 2 The rank of a matrix A is given by the maximum number of linearly independent rows (or columns). For example, [ 3 ] 4 rank 7 9 = 2, [ 3 ] 6 rank 2 4 = 1. Christopher Ting QF 101 Week 12 November 4, /51

18 Properties of Rank A matrix with a rank equal to its dimension is a matrix of full rank. A matrix that is not full rank is known as a short rank matrix, and is singular (non-invertible). Four important properties: rank(a) = rank ( A ). rank(ca) = rank ( A ), where c is a constant. rank(ab) min ( rank(a), rank(b) ) rank ( A A ) = rank ( AA ) = rank (A). Christopher Ting QF 101 Week 12 November 4, /51

19 Rank and Inverse Matrix The rank of the k r matrix (r k) A = [ a 1 a 2 a r ] is the number of linearly independent columns a j, and is written as ranka. We say that A has full rank if ranka = r. A square k k matrix A is said to be non-singular if it is has full rank, e.g. ranka = k. If A is non-singular then there exists a unique k k matrix A 1 called the inverse of A that satisfies AA 1 = A 1 A = I k. Christopher Ting QF 101 Week 12 November 4, /51

20 Properties of Matrix Inverse For non-singular A and C, ( A 1 ) ( = A ) 1 ; ( ) 1 AC = C 1 A 1 ; ( ) 1 A + C = A 1 ( A 1 + C 1) 1 C 1 ; A 1 ( A + C ) 1 = A 1 ( A 1 + C 1) 1 A 1. If A is an orthogonal matrix, then A 1 = A. Christopher Ting QF 101 Week 12 November 4, /51

21 Determinant of Square Matrix Let A be a general k k matrix. Let (j 1,j 2,...,j k ) denote a permutation of (1,2,...,k). There are k! permutations. There is a unique count of the number of inversions of the indices of such permutations relative to the natural order (1,2,...,k), and let ɛ (j1,j 2,...,j k ) = +1 if this count is even and ɛ (j1,j 2,...,j k ) = 1 if the count is odd. Then the determinant of A is defined as deta := π ɛ π A 1j1 A 2j2 A kjk = ξ j 1j 2 j k A 1j1 A 2j2 A kjk, where { ξ j 1j 2 j k 1 if (j1,j 2,...,j k ) is even; := 1 if (j 1,j 2,...,j k ) is odd. Christopher Ting QF 101 Week 12 November 4, /51

22 Properties of Determinant For example, if k = 2, then the two permutations of (1,2) are (1,2) and (2,1), for which ɛ (1,2) = 1 and ɛ (2,1) = 1. Thus, deta = ɛ (1,2) A 11 A 22 + ɛ (2,1) A 21 A 12 = A 11 A 22 A 21 A 12. If A is non-singular, deta 0. If A is orthogonal, then deta = ±1. If A is triangular (upper or lower), then deta = k i=1 A ii. Some other properties of a k k square matrix A include deta = deta ; det ( ca ) = c k deta; det ( AB ) = deta detb; det ( A 1) = ( deta ) 1 ; [ ] A B det = detddet ( A BD 1 C ), if detd 0. C D Christopher Ting QF 101 Week 12 November 4, /51

23 Determinant of a 3 3 Matrix a 11 a 12 a 13 det(a) = a 21 a 22 a 23 a 31 a 32 a = ( ) a 11 a 22 a 33 + a 21 a 32 a 13 + a 31 a 12 a ( ) a 13 a 22 a 31 + a 23 a 32 a 11 + a 33 a 12 a a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 a 11 a 12 a 13 a 21 a 22 a 23 Christopher Ting QF 101 Week 12 November 4, /51

24 Calculating the Inverse of a 2 2 Matrix The inverse of a 2 2 non-singular matrix [ ] [ ] a b 1 d b is. c d ad bc c a The expression in the denominator, ad bc, is the determinant of the matrix. If the matrix is [ ] 2 1, 4 6 then the inverse will be 1 8 [ ] = [ ] 8. As a check, multiply the two matrices together and it should give the identity matrix I. Christopher Ting QF 101 Week 12 November 4, /

25 Eigenvalues The characteristic equation of a k k square matrix A is det ( A λi k ) = 0. It is a polynomial of degree k in λ, so it has exactly k roots, which are not necessarily distinct and may be real or complex. They are called the latent roots or characteristic roots or eigenvalues of A. When the eigenvalues are real, they are written in descending order λ 1 λ 2 λ k. We also write λ min (A) = λ k and λ max (A) = λ 1. Christopher Ting QF 101 Week 12 November 4, /51

26 Eigenvectors If λ i is an eigenvalue of A, then A λ i I k is singular, i.e., there exists a non-zero vector h i such that ( A λi I k ) hi = o. The vector h i is called a latent vector or characteristic vector or eigenvector of A corresponding to λ i. It is a fundamental result of linear algebra that an equation Mv = o has a non-zero solution v if and only if the determinant det(m)is zero. Hence, f (λ) := det ( A λi ) = 0. Christopher Ting QF 101 Week 12 November 4, /51

27 Calculating Eigenvalues: An Example Let A be the 2 2 matrix A = [ ] Then the characteristic equation is A λi 2 = 0. That is [ ] [ ] λ = [ ] 5 λ 1 = = (5 λ)(4 λ) 2 = λ 2 9λ λ The solutions are λ = 6 and λ = 3. The characteristic roots are also known as. Christopher Ting QF 101 Week 12 November 4, /51

28 A Simple PageRank Algorithm Transition matrix of the directed graph of 4 web sites: A = Christopher Ting QF 101 Week 12 November 4, /51

29 A Simple PageRank Algorithm (Cont d) Denote by x 1,x 2,x 3, and x 4 the importance of the four sites. Analyzing the situation at each node, we get the system: x 1 = 1 x x 4 x 2 = 1 3 x 1 x 3 = 1 3 x x x 4 x 4 = 1 3 x x 2 It is equivalent to Ax = x, where x := [x 1 x 2 x 3 x 4 ]. Christopher Ting QF 101 Week 12 November 4, /51

30 Finding the Eigenvector The PageRank algorithm involves finding the eigenvector corresponding to the eigenvalue of 1! x 1 x 2 x 3 x 4 = 1 Since x 2 = x 1 /3, we substitute it in x 4 to find that x 4 = x 1 /2. In turn, we find that x 3 = x x x 1 2 = 3x 1 4. Christopher Ting QF 101 Week 12 November 4, /51 x 1 x 2 x 3 x 4.

31 Finding the Eigenvector (Cont d) So the eigenvector is v := x 1 x 2 x 3 x 4 1 = x 1/3 1 3/4. 1/2 To find x 1, we impose the condition that the sum of eigenvector s entries is equal to 1. Therefore ( x ) = 1. 2 Christopher Ting QF 101 Week 12 November 4, /51

32 Finding the Eigenvector (Cont d) So x 1 = Finally, the unique eigenvector is Therefore, the PageRank is, in declining order of importance, Site 1, Site 3, Site 4, and Site 2. Christopher Ting QF 101 Week 12 November 4, /51

33 Final Result So x 1 = Finally, the unique eigenvector is Therefore, the PageRank is, in declining order of importance, Site 1, Site 3, Site 4, and Site 2. Reference: PageRank Algorithm - The Mathematics of Google Search...some of you may have heard of quants but at Google, they re just called employees, because they re all quants... James Simon Christopher Ting QF 101 Week 12 November 4, /51

34 Definition of Vector Differentiation Let x be a column k-vector. Consider the function g(x) = g(x 1,x 2,...,x k ) : R k R. The vector derivative is g(x) x 1 g(x) x g(x) = x 2.. g(x) x k and [ x g(x) = g(x) x 1 x 2 g(x) ] g(x) x k Christopher Ting QF 101 Week 12 November 4, /51

35 Basic Properties For constant vector a and matrix A, x ( a x ) = x ( x a ) = a, x ( a x ) = a x ( Ax ) = A ( x Ax ) = ( A + A ) x x 2 x x ( x Ax ) = A + A Christopher Ting QF 101 Week 12 November 4, /51

36 Assets There are n assets whose expected returns are denoted by µ i := E ( r i ), i = 1,2,...,n. The covariance between asset i and asset j is denoted as σ ij. Arrange the covariances into a n n matrix: σ 11 σ 12 σ 1n Σ := [ ] σ 21 σ 22 σ 2n σ ij = σ n1 σ n2 σ nn The diagonal element σ ii is the variance of asset i. Note that the covariance matrix Σ is symmetric. Christopher Ting QF 101 Week 12 November 4, /51

37 Investment For each dollar invested, a fraction w i is invested in asset i. It must be that n w i = 1. The weights are arranged as a n-vector w. The portfolio s expected return and variance are, respectively, i=1 µ p := E ( ) n r p = w i E ( ) r i = wi µ i = w µ; σ 2 p := n i=1 j=1 i=1 n w i w j σ ij = w i Σ i j w j = w Σw. Christopher Ting QF 101 Week 12 November 4, /51

38 Numerical Illustration Suppose there are two assets. µ 1 = 5% and µ 2 = 8% per annum. The covariance is a 2 by 2 matrix. [ σ11 σ 12 Σ := σ 21 σ 22 ] = [ Given that the variance of asset 1 is , its volatility is = 25% per annum. The volatility of asset 2 is. The portfolio s expected return and variance are, respectively, µ p = 0.05w w 2 σ 2 p = w w 1w w 2 w w 2 2 ] Christopher Ting QF 101 Week 12 November 4, /51

39 Optimization Minimize half the portfolio variance under two constrains: n w i E ( ) r i i=1 = E ( r p ). n w i = 1. i=1 Constrained optimization with Lagrange multipliers λ and ψ: ( min L = 1 n n n w i w j σ ij λ w 1,w 2,...,w n 2 i=1 j=1 ) w i µ i µ p ψ i=1 ( n w i 1 i=1 ) Christopher Ting QF 101 Week 12 November 4, /51

40 In Matrix Form The Lagrangian L is L = 1 2 w Σw λ ( w µ µ p ) ψ(w 1 1). The first-order conditions with respect to w are Σw λµ ψ1 = 0 w µ = µ p w 1 = 1 Christopher Ting QF 101 Week 12 November 4, /51

41 Solution of First FOC The first FOC gives the solution for the weight vector w = Σ 1( λµ + ψ1 ). But what are the values of the Lagrange multipliers λ and ψ? To solve for λ and ψ, substitute the optimal weight vector above into the last two FOC s, µ w = µ Σ 1( λµ + ψ1 ) = µ p 1 w = 1 Σ 1( λµ + ψ1 ) = 1 Christopher Ting QF 101 Week 12 November 4, /51

42 Solution of Second and Third FOCs Let A := µ Σ 1 µ B := µ Σ 1 1 C := 1 Σ 1 1 The last two FOCs can be written as [ ][ ] [ A B λ µp = B C ψ 1 ] Solving these two linear equations, we obtain λ = Cµ p B AC B 2, ψ = A Bµ p AC B 2 Christopher Ting QF 101 Week 12 November 4, /51

43 Optimal Weight Vector and Portfolio Variance The optimal weight is then solved as Σ 1( ( Cµp B ) µ + ( ) ) A Bµ p 1 w = AC B 2. The portfolio variance is a quadratic function of the mean portfolio return µ p : V ( ) r p = w Σw = Cµ2 p 2Bµ p + A AC B 2 C = AC B 2 µ2 p 2B AC B 2 µ A p + AC B 2. Christopher Ting QF 101 Week 12 November 4, /51

44 Global Minimum Variance Portfolio The global minimum variance portfolio is obtained by minimizing V ( r p ) with respect to µp. dv ( ) r p = 2C dµ p AC B 2 µ p 2B AC B 2. The results of the first-order condition are µ = B C, σ2 = 1 C, w = Σ 1 1 C. Christopher Ting QF 101 Week 12 November 4, /51

45 Numerical Example For the two assets, compute the inverse matrix Σ 1 = [ ] = ( 0.01) ( 0.01) [ ] = [ ] Christopher Ting QF 101 Week 12 November 4, /51

46 Values of A,B, and C So the three scalars A, B, and C are A = µ Σ 1 µ = [ ][ ][ ] = ; B = µ Σ 1 1 = [ ][ ][ ] = C = 1 Σ 1 1 = Christopher Ting QF 101 Week 12 November 4, /51

47 Global Minimum Variance Portfolio Let s consider the global minimum variance portfolio. µ = B C = , σ2 = 1 C = So the minimum volatility is σ = 20.21%. The weight vector for w for the global minimum variance portfolio is w = Σ 1 1 C = [ ][ ] 1 = 1 [ ] 70.11% 29.89% Christopher Ting QF 101 Week 12 November 4, /51

48 Efficient Frontier Christopher Ting QF 101 Week 12 November 4, /51

49 Takeaways Quantitative (mathematics and programming) skills provide a competitive advantage. Ideas of eigenvalue and eigenvector appear in Google search engine! Investment optimization: Obtain highest possible return with minimal risk. Quants way of deriving the efficient frontier Christopher Ting QF 101 Week 12 November 4, /51

50 Week 12 Assignment 1. What are the eigenvalues and eigenvectors of a diagonal matrix? Let A = (A) Show that the characteristic equation is (λ 1)(λ + 3) 2 = 0. (B) Find the eigenvector corresponding to λ 1 = 1. (C) Find the eigenvector corresponding to λ = 3. Christopher Ting QF 101 Week 12 November 4, /51

51 Week 12 Additional Exercise 1. Consider the transformation of Cartesian coordinates (x, y) to the polar coordinates (r, ϕ): (A) Show that x = r cosϕ, y = r sinϕ x x r ϕ [ ] cosϕ r sinϕ J(r,ϕ) = y y = sinϕ r cosϕ r ϕ (B) Show that detj = r. 2. Apply the Jacobian detj in Problem 1 to show that I := exp ( x2 2 ) dx = 2π. Christopher Ting QF 101 Week 12 November 4, /51

Knowledge Discovery and Data Mining 1 (VO) ( )

Knowledge Discovery and Data Mining 1 (VO) ( ) Knowledge Discovery and Data Mining 1 (VO) (707.003) Review of Linear Algebra Denis Helic KTI, TU Graz Oct 9, 2014 Denis Helic (KTI, TU Graz) KDDM1 Oct 9, 2014 1 / 74 Big picture: KDDM Probability Theory

More information

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

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p Math Bootcamp 2012 1 Review of matrix algebra 1.1 Vectors and rules of operations An p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Introduction to Matrix Algebra August 18, 2010 1 Vectors 1.1 Notations A p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the line. When p

More information

Review of Linear Algebra

Review of Linear Algebra Review of Linear Algebra Definitions An m n (read "m by n") matrix, is a rectangular array of entries, where m is the number of rows and n the number of columns. 2 Definitions (Con t) A is square if m=

More information

Introduction to Matrices

Introduction to Matrices POLS 704 Introduction to Matrices Introduction to Matrices. The Cast of Characters A matrix is a rectangular array (i.e., a table) of numbers. For example, 2 3 X 4 5 6 (4 3) 7 8 9 0 0 0 Thismatrix,with4rowsand3columns,isoforder

More information

Matrices and Linear Algebra

Matrices and Linear Algebra Contents Quantitative methods for Economics and Business University of Ferrara Academic year 2017-2018 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2

More information

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

Chapter 1. Matrix Algebra

Chapter 1. Matrix Algebra ST4233, Linear Models, Semester 1 2008-2009 Chapter 1. Matrix Algebra 1 Matrix and vector notation Definition 1.1 A matrix is a rectangular or square array of numbers of variables. We use uppercase boldface

More information

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

Math Linear Algebra Final Exam Review Sheet

Math Linear Algebra Final Exam Review Sheet Math 15-1 Linear Algebra Final Exam Review Sheet Vector Operations Vector addition is a component-wise operation. Two vectors v and w may be added together as long as they contain the same number n of

More information

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

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 MTH 0: Linear Algebra Department of Mathematics and Statistics Indian Institute of Technology - Kanpur Problem Set Problems marked (T) are for discussions in Tutorial sessions (T) If A is an m n matrix,

More information

Quantum Computing Lecture 2. Review of Linear Algebra

Quantum Computing Lecture 2. Review of Linear Algebra Quantum Computing Lecture 2 Review of Linear Algebra Maris Ozols Linear algebra States of a quantum system form a vector space and their transformations are described by linear operators Vector spaces

More information

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

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT Math Camp II Basic Linear Algebra Yiqing Xu MIT Aug 26, 2014 1 Solving Systems of Linear Equations 2 Vectors and Vector Spaces 3 Matrices 4 Least Squares Systems of Linear Equations Definition A linear

More information

Dimension. Eigenvalue and eigenvector

Dimension. Eigenvalue and eigenvector Dimension. Eigenvalue and eigenvector Math 112, week 9 Goals: Bases, dimension, rank-nullity theorem. Eigenvalue and eigenvector. Suggested Textbook Readings: Sections 4.5, 4.6, 5.1, 5.2 Week 9: Dimension,

More information

3 (Maths) Linear Algebra

3 (Maths) Linear Algebra 3 (Maths) Linear Algebra References: Simon and Blume, chapters 6 to 11, 16 and 23; Pemberton and Rau, chapters 11 to 13 and 25; Sundaram, sections 1.3 and 1.5. The methods and concepts of linear algebra

More information

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88 Math Camp 2010 Lecture 4: Linear Algebra Xiao Yu Wang MIT Aug 2010 Xiao Yu Wang (MIT) Math Camp 2010 08/10 1 / 88 Linear Algebra Game Plan Vector Spaces Linear Transformations and Matrices Determinant

More information

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are real numbers. 1

More information

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued) 1 A linear system of equations of the form Sections 75, 78 & 81 a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2 a m1 x 1 + a m2 x 2 + + a mn x n = b m can be written in matrix

More information

Math 315: Linear Algebra Solutions to Assignment 7

Math 315: Linear Algebra Solutions to Assignment 7 Math 5: Linear Algebra s to Assignment 7 # Find the eigenvalues of the following matrices. (a.) 4 0 0 0 (b.) 0 0 9 5 4. (a.) The characteristic polynomial det(λi A) = (λ )(λ )(λ ), so the eigenvalues are

More information

Conceptual Questions for Review

Conceptual Questions for Review Conceptual Questions for Review Chapter 1 1.1 Which vectors are linear combinations of v = (3, 1) and w = (4, 3)? 1.2 Compare the dot product of v = (3, 1) and w = (4, 3) to the product of their lengths.

More information

CS 246 Review of Linear Algebra 01/17/19

CS 246 Review of Linear Algebra 01/17/19 1 Linear algebra In this section we will discuss vectors and matrices. We denote the (i, j)th entry of a matrix A as A ij, and the ith entry of a vector as v i. 1.1 Vectors and vector operations A vector

More information

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of . Matrices A matrix is any rectangular array of numbers. For example 3 5 6 4 8 3 3 is 3 4 matrix, i.e. a rectangular array of numbers with three rows four columns. We usually use capital letters for matrices,

More information

Principal Component Analysis (PCA) Our starting point consists of T observations from N variables, which will be arranged in an T N matrix R,

Principal Component Analysis (PCA) Our starting point consists of T observations from N variables, which will be arranged in an T N matrix R, Principal Component Analysis (PCA) PCA is a widely used statistical tool for dimension reduction. The objective of PCA is to find common factors, the so called principal components, in form of linear combinations

More information

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

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB Glossary of Linear Algebra Terms Basis (for a subspace) A linearly independent set of vectors that spans the space Basic Variable A variable in a linear system that corresponds to a pivot column in the

More information

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

Introduction. Vectors and Matrices. Vectors [1] Vectors [2] Introduction Vectors and Matrices Dr. TGI Fernando 1 2 Data is frequently arranged in arrays, that is, sets whose elements are indexed by one or more subscripts. Vector - one dimensional array Matrix -

More information

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX September 2007 MSc Sep Intro QT 1 Who are these course for? The September

More information

Linear Algebra V = T = ( 4 3 ).

Linear Algebra V = T = ( 4 3 ). Linear Algebra Vectors A column vector is a list of numbers stored vertically The dimension of a column vector is the number of values in the vector W is a -dimensional column vector and V is a 5-dimensional

More information

and let s calculate the image of some vectors under the transformation T.

and let s calculate the image of some vectors under the transformation T. Chapter 5 Eigenvalues and Eigenvectors 5. Eigenvalues and Eigenvectors Let T : R n R n be a linear transformation. Then T can be represented by a matrix (the standard matrix), and we can write T ( v) =

More information

Systems of Algebraic Equations and Systems of Differential Equations

Systems of Algebraic Equations and Systems of Differential Equations Systems of Algebraic Equations and Systems of Differential Equations Topics: 2 by 2 systems of linear equations Matrix expression; Ax = b Solving 2 by 2 homogeneous systems Functions defined on matrices

More information

Mathematical Foundations of Applied Statistics: Matrix Algebra

Mathematical Foundations of Applied Statistics: Matrix Algebra Mathematical Foundations of Applied Statistics: Matrix Algebra Steffen Unkel Department of Medical Statistics University Medical Center Göttingen, Germany Winter term 2018/19 1/105 Literature Seber, G.

More information

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

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices Matrices A. Fabretti Mathematics 2 A.Y. 2015/2016 Table of contents Matrix Algebra Determinant Inverse Matrix Introduction A matrix is a rectangular array of numbers. The size of a matrix is indicated

More information

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

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian FE661 - Statistical Methods for Financial Engineering 2. Linear algebra Jitkomut Songsiri matrices and vectors linear equations range and nullspace of matrices function of vectors, gradient and Hessian

More information

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0. Matrices Operations Linear Algebra Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0 The rectangular array 1 2 1 4 3 4 2 6 1 3 2 1 in which the

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2016 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing

More information

Foundations of Matrix Analysis

Foundations of Matrix Analysis 1 Foundations of Matrix Analysis In this chapter we recall the basic elements of linear algebra which will be employed in the remainder of the text For most of the proofs as well as for the details, the

More information

GATE Engineering Mathematics SAMPLE STUDY MATERIAL. Postal Correspondence Course GATE. Engineering. Mathematics GATE ENGINEERING MATHEMATICS

GATE Engineering Mathematics SAMPLE STUDY MATERIAL. Postal Correspondence Course GATE. Engineering. Mathematics GATE ENGINEERING MATHEMATICS SAMPLE STUDY MATERIAL Postal Correspondence Course GATE Engineering Mathematics GATE ENGINEERING MATHEMATICS ENGINEERING MATHEMATICS GATE Syllabus CIVIL ENGINEERING CE CHEMICAL ENGINEERING CH MECHANICAL

More information

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient. ENGI 940 Lecture Notes - Matrix Algebra Page.0. Matrix Algebra A linear system of m equations in n unknowns, a x + a x + + a x b (where the a ij and i n n a x + a x + + a x b n n a x + a x + + a x b m

More information

Linear Algebra Formulas. Ben Lee

Linear Algebra Formulas. Ben Lee Linear Algebra Formulas Ben Lee January 27, 2016 Definitions and Terms Diagonal: Diagonal of matrix A is a collection of entries A ij where i = j. Diagonal Matrix: A matrix (usually square), where entries

More information

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz Introduction to Mobile Robotics Compact Course on Linear Algebra Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz Vectors Arrays of numbers Vectors represent a point in a n dimensional space

More information

Basic Concepts in Matrix Algebra

Basic Concepts in Matrix Algebra Basic Concepts in Matrix Algebra An column array of p elements is called a vector of dimension p and is written as x p 1 = x 1 x 2. x p. The transpose of the column vector x p 1 is row vector x = [x 1

More information

Quick Tour of Linear Algebra and Graph Theory

Quick Tour of Linear Algebra and Graph Theory Quick Tour of Linear Algebra and Graph Theory CS224W: Social and Information Network Analysis Fall 2014 David Hallac Based on Peter Lofgren, Yu Wayne Wu, and Borja Pelato s previous versions Matrices and

More information

Lecture notes on Quantum Computing. Chapter 1 Mathematical Background

Lecture notes on Quantum Computing. Chapter 1 Mathematical Background Lecture notes on Quantum Computing Chapter 1 Mathematical Background Vector states of a quantum system with n physical states are represented by unique vectors in C n, the set of n 1 column vectors 1 For

More information

Lecture Notes in Linear Algebra

Lecture Notes in Linear Algebra Lecture Notes in Linear Algebra Dr. Abdullah Al-Azemi Mathematics Department Kuwait University February 4, 2017 Contents 1 Linear Equations and Matrices 1 1.2 Matrices............................................

More information

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2018 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing

More information

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns. MATRICES After studying this chapter you will acquire the skills in knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns. List of

More information

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

Computational Foundations of Cognitive Science. Definition of the Inverse. Definition of the Inverse. Definition Computation Properties al Foundations of Cognitive Science Lecture 1: s; Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February, 010 1 Reading: Anton and Busby, Chs..,.6 Frank Keller al Foundations

More information

Massachusetts Institute of Technology Department of Economics Statistics. Lecture Notes on Matrix Algebra

Massachusetts Institute of Technology Department of Economics Statistics. Lecture Notes on Matrix Algebra Massachusetts Institute of Technology Department of Economics 14.381 Statistics Guido Kuersteiner Lecture Notes on Matrix Algebra These lecture notes summarize some basic results on matrix algebra used

More information

TBP MATH33A Review Sheet. November 24, 2018

TBP MATH33A Review Sheet. November 24, 2018 TBP MATH33A Review Sheet November 24, 2018 General Transformation Matrices: Function Scaling by k Orthogonal projection onto line L Implementation If we want to scale I 2 by k, we use the following: [

More information

Basics of Calculus and Algebra

Basics of Calculus and Algebra Monika Department of Economics ISCTE-IUL September 2012 Basics of linear algebra Real valued Functions Differential Calculus Integral Calculus Optimization Introduction I A matrix is a rectangular array

More information

Pre-School Linear Algebra

Pre-School Linear Algebra Pre-School Linear Algebra Cornelius Weber Matrix Product The elements of a matrix C = AB are obtained as: c mn = Q a mq b qn q which is written in matrix notation as (small capital letters denote number

More information

Lecture 15 Review of Matrix Theory III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Lecture 15 Review of Matrix Theory III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore Lecture 15 Review of Matrix Theory III Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore Matrix An m n matrix is a rectangular or square array of

More information

1. General Vector Spaces

1. General Vector Spaces 1.1. Vector space axioms. 1. General Vector Spaces Definition 1.1. Let V be a nonempty set of objects on which the operations of addition and scalar multiplication are defined. By addition we mean a rule

More information

Quick Tour of Linear Algebra and Graph Theory

Quick Tour of Linear Algebra and Graph Theory Quick Tour of Linear Algebra and Graph Theory CS224w: Social and Information Network Analysis Fall 2012 Yu Wayne Wu Based on Borja Pelato s version in Fall 2011 Matrices and Vectors Matrix: A rectangular

More information

Mathematical Foundations

Mathematical Foundations Chapter 1 Mathematical Foundations 1.1 Big-O Notations In the description of algorithmic complexity, we often have to use the order notations, often in terms of big O and small o. Loosely speaking, for

More information

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors 5 Eigenvalues and Eigenvectors 5.2 THE CHARACTERISTIC EQUATION DETERMINANATS nn Let A be an matrix, let U be any echelon form obtained from A by row replacements and row interchanges (without scaling),

More information

EIGENVALUES AND EIGENVECTORS

EIGENVALUES AND EIGENVECTORS EIGENVALUES AND EIGENVECTORS Diagonalizable linear transformations and matrices Recall, a matrix, D, is diagonal if it is square and the only non-zero entries are on the diagonal This is equivalent to

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2 MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS SYSTEMS OF EQUATIONS AND MATRICES Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Exam 2 will be held on Tuesday, April 8, 7-8pm in 117 MacMillan What will be covered The exam will cover material from the lectures

More information

Symmetric and anti symmetric matrices

Symmetric and anti symmetric matrices Symmetric and anti symmetric matrices In linear algebra, a symmetric matrix is a square matrix that is equal to its transpose. Formally, matrix A is symmetric if. A = A Because equal matrices have equal

More information

NOTES on LINEAR ALGEBRA 1

NOTES on LINEAR ALGEBRA 1 School of Economics, Management and Statistics University of Bologna Academic Year 207/8 NOTES on LINEAR ALGEBRA for the students of Stats and Maths This is a modified version of the notes by Prof Laura

More information

MATH2210 Notebook 2 Spring 2018

MATH2210 Notebook 2 Spring 2018 MATH2210 Notebook 2 Spring 2018 prepared by Professor Jenny Baglivo c Copyright 2009 2018 by Jenny A. Baglivo. All Rights Reserved. 2 MATH2210 Notebook 2 3 2.1 Matrices and Their Operations................................

More information

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

. a m1 a mn. a 1 a 2 a = a n Biostat 140655, 2008: Matrix Algebra Review 1 Definition: An m n matrix, A m n, is a rectangular array of real numbers with m rows and n columns Element in the i th row and the j th column is denoted by

More information

Announcements Wednesday, November 01

Announcements Wednesday, November 01 Announcements Wednesday, November 01 WeBWorK 3.1, 3.2 are due today at 11:59pm. The quiz on Friday covers 3.1, 3.2. My office is Skiles 244. Rabinoffice hours are Monday, 1 3pm and Tuesday, 9 11am. Section

More information

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder Introduction to Mobile Robotics Compact Course on Linear Algebra Wolfram Burgard, Bastian Steder Reference Book Thrun, Burgard, and Fox: Probabilistic Robotics Vectors Arrays of numbers Vectors represent

More information

EE731 Lecture Notes: Matrix Computations for Signal Processing

EE731 Lecture Notes: Matrix Computations for Signal Processing EE731 Lecture Notes: Matrix Computations for Signal Processing James P. Reilly c Department of Electrical and Computer Engineering McMaster University September 22, 2005 0 Preface This collection of ten

More information

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

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti Mobile Robotics 1 A Compact Course on Linear Algebra Giorgio Grisetti SA-1 Vectors Arrays of numbers They represent a point in a n dimensional space 2 Vectors: Scalar Product Scalar-Vector Product Changes

More information

Math 304 Fall 2018 Exam 3 Solutions 1. (18 Points, 3 Pts each part) Let A, B, C, D be square matrices of the same size such that

Math 304 Fall 2018 Exam 3 Solutions 1. (18 Points, 3 Pts each part) Let A, B, C, D be square matrices of the same size such that Math 304 Fall 2018 Exam 3 Solutions 1. (18 Points, 3 Pts each part) Let A, B, C, D be square matrices of the same size such that det(a) = 2, det(b) = 2, det(c) = 1, det(d) = 4. 2 (a) Compute det(ad)+det((b

More information

Review problems for MA 54, Fall 2004.

Review problems for MA 54, Fall 2004. Review problems for MA 54, Fall 2004. Below are the review problems for the final. They are mostly homework problems, or very similar. If you are comfortable doing these problems, you should be fine on

More information

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MATH 240 Spring, Chapter 1: Linear Equations and Matrices MATH 240 Spring, 2006 Chapter Summaries for Kolman / Hill, Elementary Linear Algebra, 8th Ed. Sections 1.1 1.6, 2.1 2.2, 3.2 3.8, 4.3 4.5, 5.1 5.3, 5.5, 6.1 6.5, 7.1 7.2, 7.4 DEFINITIONS Chapter 1: Linear

More information

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in Chapter 4 - MATRIX ALGEBRA 4.1. Matrix Operations A a 11 a 12... a 1j... a 1n a 21. a 22.... a 2j... a 2n. a i1 a i2... a ij... a in... a m1 a m2... a mj... a mn The entry in the ith row and the jth column

More information

Matrix Algebra, part 2

Matrix Algebra, part 2 Matrix Algebra, part 2 Ming-Ching Luoh 2005.9.12 1 / 38 Diagonalization and Spectral Decomposition of a Matrix Optimization 2 / 38 Diagonalization and Spectral Decomposition of a Matrix Also called Eigenvalues

More information

Ir O D = D = ( ) Section 2.6 Example 1. (Bottom of page 119) dim(v ) = dim(l(v, W )) = dim(v ) dim(f ) = dim(v )

Ir O D = D = ( ) Section 2.6 Example 1. (Bottom of page 119) dim(v ) = dim(l(v, W )) = dim(v ) dim(f ) = dim(v ) Section 3.2 Theorem 3.6. Let A be an m n matrix of rank r. Then r m, r n, and, by means of a finite number of elementary row and column operations, A can be transformed into the matrix ( ) Ir O D = 1 O

More information

LINEAR ALGEBRA REVIEW

LINEAR ALGEBRA REVIEW LINEAR ALGEBRA REVIEW SPENCER BECKER-KAHN Basic Definitions Domain and Codomain. Let f : X Y be any function. This notation means that X is the domain of f and Y is the codomain of f. This means that for

More information

1 9/5 Matrices, vectors, and their applications

1 9/5 Matrices, vectors, and their applications 1 9/5 Matrices, vectors, and their applications Algebra: study of objects and operations on them. Linear algebra: object: matrices and vectors. operations: addition, multiplication etc. Algorithms/Geometric

More information

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes Repeated Eigenvalues and Symmetric Matrices. Introduction In this Section we further develop the theory of eigenvalues and eigenvectors in two distinct directions. Firstly we look at matrices where one

More information

Chapter 2 Notes, Linear Algebra 5e Lay

Chapter 2 Notes, Linear Algebra 5e Lay Contents.1 Operations with Matrices..................................1.1 Addition and Subtraction.............................1. Multiplication by a scalar............................ 3.1.3 Multiplication

More information

Announcements Wednesday, November 01

Announcements Wednesday, November 01 Announcements Wednesday, November 01 WeBWorK 3.1, 3.2 are due today at 11:59pm. The quiz on Friday covers 3.1, 3.2. My office is Skiles 244. Rabinoffice hours are Monday, 1 3pm and Tuesday, 9 11am. Section

More information

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by Linear Algebra Determinants and Eigenvalues Introduction: Many important geometric and algebraic properties of square matrices are associated with a single real number revealed by what s known as the determinant.

More information

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013 CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1 Prof. N. Harnew University of Oxford TT 2013 1 OUTLINE 1. Vector Algebra 2. Vector Geometry 3. Types of Matrices and Matrix Operations 4. Determinants

More information

Linear Algebra (Review) Volker Tresp 2018

Linear Algebra (Review) Volker Tresp 2018 Linear Algebra (Review) Volker Tresp 2018 1 Vectors k, M, N are scalars A one-dimensional array c is a column vector. Thus in two dimensions, ( ) c1 c = c 2 c i is the i-th component of c c T = (c 1, c

More information

A Quick Tour of Linear Algebra and Optimization for Machine Learning

A Quick Tour of Linear Algebra and Optimization for Machine Learning A Quick Tour of Linear Algebra and Optimization for Machine Learning Masoud Farivar January 8, 2015 1 / 28 Outline of Part I: Review of Basic Linear Algebra Matrices and Vectors Matrix Multiplication Operators

More information

Linear Algebra and Matrices

Linear Algebra and Matrices Linear Algebra and Matrices 4 Overview In this chapter we studying true matrix operations, not element operations as was done in earlier chapters. Working with MAT- LAB functions should now be fairly routine.

More information

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science Computational Methods CMSC/AMSC/MAPL 460 Eigenvalues and Eigenvectors Ramani Duraiswami, Dept. of Computer Science Eigen Values of a Matrix Recap: A N N matrix A has an eigenvector x (non-zero) with corresponding

More information

Matrix Algebra: Summary

Matrix Algebra: Summary May, 27 Appendix E Matrix Algebra: Summary ontents E. Vectors and Matrtices.......................... 2 E.. Notation.................................. 2 E..2 Special Types of Vectors.........................

More information

Linear Algebra - Part II

Linear Algebra - Part II Linear Algebra - Part II Projection, Eigendecomposition, SVD (Adapted from Sargur Srihari s slides) Brief Review from Part 1 Symmetric Matrix: A = A T Orthogonal Matrix: A T A = AA T = I and A 1 = A T

More information

Econ Slides from Lecture 7

Econ Slides from Lecture 7 Econ 205 Sobel Econ 205 - Slides from Lecture 7 Joel Sobel August 31, 2010 Linear Algebra: Main Theory A linear combination of a collection of vectors {x 1,..., x k } is a vector of the form k λ ix i for

More information

18.S34 linear algebra problems (2007)

18.S34 linear algebra problems (2007) 18.S34 linear algebra problems (2007) Useful ideas for evaluating determinants 1. Row reduction, expanding by minors, or combinations thereof; sometimes these are useful in combination with an induction

More information

Study Notes on Matrices & Determinants for GATE 2017

Study Notes on Matrices & Determinants for GATE 2017 Study Notes on Matrices & Determinants for GATE 2017 Matrices and Determinates are undoubtedly one of the most scoring and high yielding topics in GATE. At least 3-4 questions are always anticipated from

More information

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors 5 Eigenvalues and Eigenvectors 5.2 THE CHARACTERISTIC EQUATION DETERMINANATS n n Let A be an matrix, let U be any echelon form obtained from A by row replacements and row interchanges (without scaling),

More information

Lecture 2: Linear operators

Lecture 2: Linear operators Lecture 2: Linear operators Rajat Mittal IIT Kanpur The mathematical formulation of Quantum computing requires vector spaces and linear operators So, we need to be comfortable with linear algebra to study

More information

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

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible. MATH 2331 Linear Algebra Section 2.1 Matrix Operations Definition: A : m n, B : n p ( 1 2 p ) ( 1 2 p ) AB = A b b b = Ab Ab Ab Example: Compute AB, if possible. 1 Row-column rule: i-j-th entry of AB:

More information

Linear Algebra in Actuarial Science: Slides to the lecture

Linear Algebra in Actuarial Science: Slides to the lecture Linear Algebra in Actuarial Science: Slides to the lecture Fall Semester 2010/2011 Linear Algebra is a Tool-Box Linear Equation Systems Discretization of differential equations: solving linear equations

More information

Elementary Linear Algebra

Elementary Linear Algebra Matrices J MUSCAT Elementary Linear Algebra Matrices Definition Dr J Muscat 2002 A matrix is a rectangular array of numbers, arranged in rows and columns a a 2 a 3 a n a 2 a 22 a 23 a 2n A = a m a mn We

More information

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B Chapter 8 - S&B Algebraic operations Matrix: The size of a matrix is indicated by the number of its rows and the number of its columns. A matrix with k rows and n columns is called a k n matrix. The number

More information

Introduction to Matrices

Introduction to Matrices 214 Analysis and Design of Feedback Control Systems Introduction to Matrices Derek Rowell October 2002 Modern system dynamics is based upon a matrix representation of the dynamic equations governing the

More information

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

Recall the convention that, for us, all vectors are column vectors. Some linear algebra Recall the convention that, for us, all vectors are column vectors. 1. Symmetric matrices Let A be a real matrix. Recall that a complex number λ is an eigenvalue of A if there exists

More information

4. Determinants.

4. Determinants. 4. Determinants 4.1. Determinants; Cofactor Expansion Determinants of 2 2 and 3 3 Matrices 2 2 determinant 4.1. Determinants; Cofactor Expansion Determinants of 2 2 and 3 3 Matrices 3 3 determinant 4.1.

More information

1 Matrices and Systems of Linear Equations. a 1n a 2n

1 Matrices and Systems of Linear Equations. a 1n a 2n March 31, 2013 16-1 16. Systems of Linear Equations 1 Matrices and Systems of Linear Equations An m n matrix is an array A = (a ij ) of the form a 11 a 21 a m1 a 1n a 2n... a mn where each a ij is a real

More information

Properties of Matrices and Operations on Matrices

Properties of Matrices and Operations on Matrices Properties of Matrices and Operations on Matrices A common data structure for statistical analysis is a rectangular array or matris. Rows represent individual observational units, or just observations,

More information