Economics 102C: Advanced Topics in Econometrics 2 - Tooling Up: The Basics

Size: px
Start display at page:

Download "Economics 102C: Advanced Topics in Econometrics 2 - Tooling Up: The Basics"

Transcription

1 Economics 102C: Advanced Topics in Econometrics 2 - Tooling Up: The Basics Michael Best Spring 2015

2 Outline The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices

3 The Evaluation Problem: Why Do We Do Microeconometrics? Microeconometrics = statistical tools to establish causality prediction Answer economic policy questions such as: Do job training programs help participants find jobs and earn higher wages? How much more do people earn as a result of going to college? Do higher minimum wages increase unemployment? Do higher taxes make people work less? Using data, but informed by theory The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 2 / 47

4 The Selection Problem: Why This Isn t Trivial Example 1: Do hospitals make people healthier? Would you say your health in general is excellent (5), very good (4), good (3), fair (2), poor (1)? Group Sample Size Mean Health Status Std. Error Hospital 7, No Hospital 90, Source: National Halth Interview Survey (NHIS) 2005, via Mostly Harmless Econometrics Difference in means is 0.72 (t=58.9) So people who go to hospital feel worse? The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 3 / 47

5 The Selection Problem: Why This Isn t Trivial Example 2: Do higher tax rates make people work less? Source: Feldstein (1995) So higher taxes make people richer? The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 4 / 47

6 The Selection Problem: Why This Isn t Trivial Example 3: Do more police officers reduce crime rates? Source: Levitt (1997) So more police increase crime rates? The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 5 / 47

7 Potential Outcomes: A Framework for Thinking About This In Define a binary random variable, D i = {0, 1}: The treatment variable. Outcome of interest y i (health status) Does D i affect y i? Potential outcome Hospitals example: Potential outcome = { y 1i if D i = 1 y 0i if D i = 0 y1i is the health status i would report if they go to hospital, irrespective of whether they actually go y0i is the health status i would report if they don t go to hospital, irrespective of whether they actually go The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 6 / 47

8 Potential Outcomes: Causal Effects and Observed Outcomes Causal effect of going to hospital on person i is y 1i y 0i Unfortunately, we never observe both y 1i and y 0i. Instead we observe { y 1i if D i = 1 y i = y 0i if D i = 0 = y 0i + (y 1i y 0i ) D i y 1i y 0i can be very different for different people. But we can learn about averages The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 7 / 47

9 Detour: Expectations Recall the expectation operator E [y] = ˆ Y f y (Y ) dy and the conditional expectation operator E [y x = X] = = ˆ ˆ Y f y (Y x = X) dy Y f x,y (Y, X) dy f x (X) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 8 / 47

10 Potential Outcomes: Average Treatment Effects Return to table 1, we observe: E [yi D i = 1] = 3.21 E[y i D i = 0] = 3.93 E [y i D i = 1] E [y i D i = 0] = 0.72 = E [y 1i D i = 1] E [y 0i D i = 1]?? Decompose the observed difference: E [y i D i = 1] E [y i D i = 0] }{{} Observed difference in average health = E [y 1i D i = 1] E [y 0i D i = 1] }{{} Average treatment effect on the treated + E [y 0i D i = 1] E [y 0i D i = 0] }{{} Selection bias We want to estimate ATT = E [y 1i y 0i D i = 1] but need to deal with selection bias: Enter microeconometrics The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 9 / 47

11 What Distinguishes Microeconometrics? Data is at the level of the individual, firm or group (not economy-wide aggregates) Panel data common Deal with discrete and/or censored data use non-linear methods Deal with heterogeneity explicitly The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 10 / 47

12 Randomization and The Selection Problem Randomized Control Trials (RCTs) are becoming increasingly prevalent in applied economics: [AEA RCT Registry] Randomly assign some units to treatment (D i = 1) and others to control (D i = 0) Implies that D i is independent of y 1i and y 0i E [y i D i = 1] E [y i D i = 0] = E [y 1i D i = 1] E [y 0i D i = 0] Moreover, we can simplify further = E [y 1i D i = 1] E [y 0i D i = 1] independence of D i, y 1i &y 0i = E [y 1i y 0i D i = 1] = AT T E [y 1i y 0i D i = 1] = E [y 1i y 0i ] = AT E The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 11 / 47

13 Outline The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices

14 Matrices A matrix is a rectangular array of numbers. An r c matrix has r rows and c columns a 11 a 12 a 13 a 1c a 21 a 22 a 23 a 2c A = [a ij ] = a 31 a 32 a 33 a 3c a r1 a r2 a r3 a rc A matrix is square if r = c The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 13 / 47

15 Vectors A row vector is a 1 c matrix x = (x 1, x 2, x 3,..., x c ) A column vector is an r 1 matrix y 1 y 2 y = y 3. y r The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 14 / 47

16 Square Matrices A square matrix is symmetric if a ij = a ji i, j The main or principal diagonal of a square matrix is diag (A) = (a 11, a 22, a 33,..., a cc ) A square matrix is diagonal if a ij = 0 i j A = a a a a cc The n n identity matrix I n is a square, diagonal matrix with diag (I n ) = (1, 1, 1,..., 1) The trace of a matrix is the sum of its diagonal elements tr (A) = n i=1 a ii The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 15 / 47

17 Matrix Operations (arithmetic) A = B if a ij = b ij i, j C = A + B = [a ij + b ij ] C = a 11 + b 11 a 12 + b 12 a 13 + b 13 a 1c + b 1c a 21 + b 21 a 22 + b 22 a 23 + b 23 a 2c + b 2c a 31 + b 31 a 32 + b 32 a 33 + b 33 a 3c + b 3c a r1 + b r1 a r2 + b r2 a r3 + b r3 a rc + b rc Requires both A and B to have the same dimensions The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 16 / 47

18 Transposing Matrices The transpose of a matrix flips the rows and columns of the matrix We denote the transpose of A by A [a ji ] If A is r c then A is c r If A is symmetric, then A = A By definition (A ) = A If a is a column vector, then a is a row vector (A + B) = A + B The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 17 / 47

19 Multiplying Matrices To multiply two matrices A n m and B m p, the number of columns in A must equal the number of rows in B. Multiplying gives AB = [ ab ij = p k=1 a ik b kj ] That is, the ij th element of A is the product of the i th row of A and the j th column of B: b 1j b 2j (a i1, a i2,, a im ) b 3j p = a ik b kj = ab ij. k=1 In general, AB BA b mj The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 18 / 47

20 Matrix Products: Practice Turn to your neighbor: Consider the matrices P = I = Find IP 2. Find (P + I) and verify that it is equal to P + I 3. Find P P The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 19 / 47

21 Matrix Products: Practice-Solutions 1. Find IP: IP = = = (1 1) + (0 1) + (0 1) (1 2) + (0 3) + (0 0) (1 1) + (0 2) + (0 4) (0 1) + (1 1) + (0 1) (0 2) + (1 3) + (0 0) (0 1) + (1 2) + (0 4) (0 1) + (0 1) + (1 1) (0 2) + (0 3) + (1 4) (0 1) + (0 2) + (1 4) = P The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 20 / 47

22 Matrix Products: Practice-Solutions 2. Find (P + I) and verify that it is equal to P + I : (P + I) = = = (P + I) = P = I = I P + I = = (P + I) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 21 / 47

23 Matrix Products: Practice-Solutions 3 find P P: P P = = = (1 1) + ( 1 1) + (1 1) (1 2) + ( 1 3) + (1 0) (1 1) + ( 1 2) + (1 4) (2 1) + (3 1) + (0 1) (2 2) + (3 3) + (0 0) (2 1) + (3 2) + (0 4) (1 1) + (2 1) + (4 1) (1 2) + (2 3) + (4 0) (1 1) + (2 2) + (4 4) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 22 / 47

24 Properties of Matrix Products IA = A and AI = A where I are appropriate identity matrices (AB) = B A ABC = (AB)C = A(BC) A (B + C) = AB + AC; (A + B) C = AC + BC for A n m, A A m m and AA n n are symmetric, but not equal. For example, for x n 1 x x 1 1 = (x 1, x 2,, x n ) xx n n = x 1 x 2. x n x 1 x 2. x n = n i=1 (x 1, x 2,, x n ) = x 2 i x 2 1 x 1 x 2 x 1 x n x 2 x 1 x 2 2 x 2 x n x n x 1 x n x 2 x 2 n The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 23 / 47

25 Properties of Matrix Products If A n n is diagonal, then x 1 n Ax n 1 = n i=1 a iix 2 i is a weighted sum of squares tr (A A) = tr (AA ) a (square) matrix B is idempotent if B = B 2 If B is symmetric and idempotent, then B B = B The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 24 / 47

26 The Identity Vector and the Centering Matrix the identity vector is a column vector of ones 1 1 ι n 1 =. 1 so ι ι = n and ι x n 1 = x n 1 ι = n i=1 x i and (ι ι) 1 ι x = 1 n n i=1 x i = x (ι ι) 1 ιι is an n n matrix with all elements equal to 1/n Since x = Ix, x 1 x x 2 x. x n x [ = x ( ι ι ) ] 1 ιι x where M 0 is the centering matrix = [ I ( ι ι ) 1 ιι ] x = M 0 x The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 25 / 47

27 The Centering Matrix M 0 has diagonal elements (1 1/n) and off diagonal elements 1/n so it is symmetric and idempotent We also find that n (x i x) 2 = ( M 0 x ) ( M 0 x ) = x M 0 M 0 x = x M 0 x i=1 And we can combine 2 vectors x and y to arrive at [ n i=1 (x i x) 2 n i=1 (x ] i x) (y i ȳ) n i=1 (y i ȳ) (x i x) n i=1 (y i ȳ) 2 [ x = M 0 x x M 0 ] y y M 0 x y M 0 y The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 26 / 47

28 Matrix Rank The column rank of a matrix is the maximum number of linearly independent columns of the matrix. A column is linearly independent of the other columns if we can t write it as a linear combination of the other columns e.g if a = 1 2 2, b = 1 0 4, c = then c = 2a + b and so c is not linearly independent of a and b Similarly, the row rank of a matrix is the maximum number of linearly independent rows of the matrix. It turns out the row and column rank of a matrix are equal, so we just talk about the rank of a matrix A: rank (A) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 27 / 47

29 Matrix Rank For a matrix A r c rank (A) min {r, c} If rank (A) = min {r, c} then A has full rank. If rank (A) < min {r, c} then A is rank deficient Furthermore (don t prove) rank (A) = rank (A A) = rank (AA ) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 28 / 47

30 Matrix Determinant The minor A ij of a matrix A is the matrix you get by deleting the i th row and the j th column from A ( ) ( ) e.g. A = , A 11 = & A = The co-factor of a matrix minor A ij is defined as c ij = ( 1) i+j A ij where A is the determinant of a matrix, defined as... The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 29 / 47

31 Matrix Determinant The determinant of a matrix A n n is A = n a ij c ij = j=1 n a ij ( 1) i+j A ij for any row i (or column) of the matrix A ( ) a b Note that for a 2 2 matrix A =, A c d 11 = d, A 12 = c, A 21 = b and A 22 = a. A = ad bc j=1 Note that the determinant of a matrix is a scalar The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 30 / 47

32 Matrix Determinant: Practice Turn to your neighbor: Together, find the determinant of the matrix P = The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 31 / 47

33 Matrix Determinant: Practice-Solutions Using Row 1 of P: ( 3 2 P 11 = 0 4 ) ( 1 2 P 12 = 1 4 ) ( 1 3 P 13 = 1 0 P 11 = (3 4) (2 0) = 12 P 12 = ( 1 4) (2 1) = 6 P 13 = ( 1 0) (3 1) = 3 c 11 = ( 1) 1+1 P 11 = 12 c 12 = ( 1) 1+2 P 12 = 6 c 13 = ( 1) 1+3 P 13 = 3 P = (1 12) + (2 6) + (1 3) = 21 ) Using row 3 of P : ( 2 1 P 31 = 3 2 ) ( 1 1 P 32 = 1 2 ) ( 1 2 P 33 = 1 3 P 31 = (2 2) (1 3) = 1 P 32 = (1 2) (1 1) = 3 P 33 = (1 3) (2 1) = 5 c 31 = ( 1) 3+1 P 31 = 1 c 32 = ( 1) 3+2 P 32 = 3 c 33 = ( 1) 3+3 P 33 = 5 P = (1 1) + (0 3) + (4 5) = 21 ) The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 32 / 47

34 Inverse of a Matrix Think of the inverse as a bit like dividing An n n matrix A has an inverse, denoted by A 1 if and only if A 1 A = I n and AA 1 = I n Think of the scalar case: a a 1 = 1 a 1 = 1 a However, for matrices it s usually not true that a 1 ij = 1 a ij A matrix that has no inverse is singular, or non-invertible Turns out that for an n n matrix A A is singular A = 0 rank (A) < n The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 33 / 47

35 Properties of the Matrix Inverse If a matrix has an inverse, it is unique (αa) 1 = (1/α) A 1 for scalar α 0 and A 1 ( exists A 1) 1 = A (A ) 1 = ( A 1) (AB) 1 = B 1 A 1 The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 34 / 47

36 Outline The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices

37 Matrix Calculus Recall, that if x is a scalar and we have a function y = f (x) g (x) = f (x) x f (x) x = = y x When, instead y = f (x 1, x 2,..., x n ) = f (x), the vector of partial derivatives, the gradient vector is y/ x 1 y/ x 2. y/ x n The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 36 / 47

38 Matrix Calculus The second derivatives matrix, or the Hessian matrix H = 2 y/ x y/ x 1 x 2 2 y/ x 1 x n 2 y/ x 2 x 1 2 / x y/ x 2 x n y/ x n x 1 2 y/ x n x 2 2 y/ x 2 n is a square, symmetric matrix. Note that [ ( y/ x) ( y/ x) H = ( y/ x) ] x 1 x 2 x n ( y/ x) = (x 1, x 2,..., x n ) = ( y/ x) x = 2 y x x The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 37 / 47

39 Matrix Calculus In particular, consider a linear function y = f (x 1, x 2,..., x n ) = a 1 x 1 + a 2 x a n x n which we can write as y = a x = x a = n a i x i i=1 Then we have that g (x) = a x x =a The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 38 / 47

40 Matrix Calculus What about differentiating a vector wrt another vector? Consider the set of linear functions y = Ax so that y i = a i x where a i is the ith row of A Then y i / x = a i, the transpose of the i th row of A This means that y 1 / x y 2 / x. y n / x = [a 1, a 2,..., a n ] Ax x = A The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 39 / 47

41 Quadratic Forms A quadratic form is a way of writing a quadratic polynomial n n x Ax = x i x j a ij For example if A = i=1 j=1 [ ] then (x Ax) x In general, x Ax = 1x x x 1 x 2 [ ] 2x1 + 6x = 2 = 6x 1 + 8x 2 (x Ax) x [ = ( A + A ) x ] [ x1 x 2 ] = 2Ax The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 40 / 47

42 Matrix Calculus: Practice Turn to your neighbor and together consider the matrices x 1 P = x = x x 3 1. Derive Px x and verify that it is equal to P 2. Derive x Px x and verify that it is equal to (P + P ) x The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 41 / 47

43 Matrix Calculus: Practice-Solutions 1. Derive Px x Px = x 1 x 2 x 3 = x 1 + 2x 2 + x 3 x 1 + 3x 2 + 2x 3 x 1 + 4x 3 ( x +3x +2x ) (x +4x ) (x 1 +2x 2 +x 3 ) Px x 1 x 1 x 1 x = (x 1 +2x 2 +x 3 ) ( x 1 +3x 2 +2x 3 ) (x 1 +4x 3 ) x 2 x 2 x 2 (x 1 +2x 2 +x 3 ) ( x 1 +3x 2 +2x 3 ) (x 1 +4x 3 ) x 3 x 3 x 3 = = P The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 42 / 47

44 2. Derive x Px x Matrix Calculus: Practice-Solutions x (Px) = ( x 1 x 2 x 3 ) x 1 + 2x 2 + x 3 x 1 + 3x 2 + 2x 3 x 1 + 4x 3 = x 1 (x 1 + 2x 2 + x 3 ) + x 2 ( x 1 + 3x 2 + 2x 3 ) + x 3 (x 1 + 4x 3 ) = x x 1x 2 + 2x 1 x 3 + 3x x 2x 3 + 4x 2 3 x Px = x x 2 1 +x 1 x 2 +2x 1 x 3 +3x2 2 +2x 2 x 3 +4x2 3 x 1 x 2 1 +x 1 x 2 +2x 1 x 3 +3x2 2 +2x 2 x 3 +4x2 3 x 2 x 2 1 +x 1 x 2 +2x 1 x 3 +3x2 2 +2x 2 x 3 +4x2 3 x 3 = 2x 1 + x 2 + 2x 3 x 1 + 6x 2 + 2x 3 2x 1 + 2x 2 + 8x 3 ( = P + P ) x = x 1 x 2 x 3 The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 43 / 47

45 Outline The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices

46 OLS With Matrices Consider the OLS model for N individuals and k < N regressors. We have y 1 = β 1 + β 2 x 12 + β 3 x β k x 1k + u 1 y 2 = β 1 + β 2 x 22 + β 3 x β k x 2k + u 1. =. y N = β 1 + β 2 x 1N + β 3 x 1N β k x 1N + u N or, in matrices: y 1 1 x 12 x 13 x 1k y 2. = 1 x 22 x 23 x 2k y N 1 x N2 x N3 x Nk y = X β + u N 1 N k k 1 N 1 β 1 β 2. β k + u 1 u 2. u N The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 45 / 47

47 The OLS problem is: min β f (β) = OLS With Matrices N u 2 i = i=1 N ( yi x iβ ) 2 i=1 = û û = (y Xβ) (y Xβ) = y y y Xβ β X y + β X Xβ Differentiate to find the optimum ˆβ: f (β) / β = 0: 0 = y X ˆβ β ˆβ X y β = X y X y + 2X X ˆβ = 2X y + 2X X ˆβ + ˆβ X X ˆβ β The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 46 / 47

48 OLS With Matrices Need to solve X Xˆβ =X y If (X X) is invertible then we can pre-multiply both sides by (X X) 1 to get ˆβ = ( X X ) 1 X y When is (X X) invertible? Need (X X) to have full rank: No multicollinearity rank ( X X ) = rank (X) = k Is the second order condition satisfied? The Evaluation Problem Matrix Algebra Matrix Calculus OLS With Matrices 47 / 47

1 Introduction to Matrices

1 Introduction to Matrices 1 Introduction to Matrices In this section, important definitions and results from matrix algebra that are useful in regression analysis are introduced. While all statements below regarding the columns

More information

Lecture 2 Matrix Operations

Lecture 2 Matrix Operations Lecture 2 Matrix Operations transpose, sum & difference, scalar multiplication matrix multiplication, matrix-vector product matrix inverse 2 1 Matrix transpose transpose of m n matrix A, denoted A T or

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 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

Matrix Differentiation

Matrix Differentiation 1 Introduction Matrix Differentiation ( and some other stuff ) Randal J. Barnes Department of Civil Engineering, University of Minnesota Minneapolis, Minnesota, USA Throughout this presentation I have

More information

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Matrix Algebra A. Doerr Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Some Basic Matrix Laws Assume the orders of the matrices are such that

More information

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. ( 1 1 5 2 0 6

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. ( 1 1 5 2 0 6 Chapter 7 Matrices Definition An m n matrix is an array of numbers set out in m rows and n columns Examples (i ( 1 1 5 2 0 6 has 2 rows and 3 columns and so it is a 2 3 matrix (ii 1 0 7 1 2 3 3 1 is a

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Psychology 7291: Multivariate Statistics (Carey) 8/27/98 Matrix Algebra - 1 Introduction to Matrix Algebra Definitions: A matrix is a collection of numbers ordered by rows and columns. It is customary

More information

Solution to Homework 2

Solution to Homework 2 Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if

More information

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation

More information

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components The eigenvalues and eigenvectors of a square matrix play a key role in some important operations in statistics. In particular, they

More information

15.062 Data Mining: Algorithms and Applications Matrix Math Review

15.062 Data Mining: Algorithms and Applications Matrix Math Review .6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop

More information

9 MATRICES AND TRANSFORMATIONS

9 MATRICES AND TRANSFORMATIONS 9 MATRICES AND TRANSFORMATIONS Chapter 9 Matrices and Transformations Objectives After studying this chapter you should be able to handle matrix (and vector) algebra with confidence, and understand the

More information

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra Notes for Marsden and Tromba Vector Calculus Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of

More information

Linear Algebra Review. Vectors

Linear Algebra Review. Vectors Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka kosecka@cs.gmu.edu http://cs.gmu.edu/~kosecka/cs682.html Virginia de Sa Cogsci 8F Linear Algebra review UCSD Vectors The length

More information

Similar matrices and Jordan form

Similar matrices and Jordan form Similar matrices and Jordan form We ve nearly covered the entire heart of linear algebra once we ve finished singular value decompositions we ll have seen all the most central topics. A T A is positive

More information

Using row reduction to calculate the inverse and the determinant of a square matrix

Using row reduction to calculate the inverse and the determinant of a square matrix Using row reduction to calculate the inverse and the determinant of a square matrix Notes for MATH 0290 Honors by Prof. Anna Vainchtein 1 Inverse of a square matrix An n n square matrix A is called invertible

More information

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions. 3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms

More information

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set. MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set. Vector space A vector space is a set V equipped with two operations, addition V V (x,y) x + y V and scalar

More information

F Matrix Calculus F 1

F Matrix Calculus F 1 F Matrix Calculus F 1 Appendix F: MATRIX CALCULUS TABLE OF CONTENTS Page F1 Introduction F 3 F2 The Derivatives of Vector Functions F 3 F21 Derivative of Vector with Respect to Vector F 3 F22 Derivative

More information

LINEAR ALGEBRA. September 23, 2010

LINEAR ALGEBRA. September 23, 2010 LINEAR ALGEBRA September 3, 00 Contents 0. LU-decomposition.................................... 0. Inverses and Transposes................................. 0.3 Column Spaces and NullSpaces.............................

More information

1 2 3 1 1 2 x = + x 2 + x 4 1 0 1

1 2 3 1 1 2 x = + x 2 + x 4 1 0 1 (d) If the vector b is the sum of the four columns of A, write down the complete solution to Ax = b. 1 2 3 1 1 2 x = + x 2 + x 4 1 0 0 1 0 1 2. (11 points) This problem finds the curve y = C + D 2 t which

More information

Linear Algebra: Determinants, Inverses, Rank

Linear Algebra: Determinants, Inverses, Rank D Linear Algebra: Determinants, Inverses, Rank D 1 Appendix D: LINEAR ALGEBRA: DETERMINANTS, INVERSES, RANK TABLE OF CONTENTS Page D.1. Introduction D 3 D.2. Determinants D 3 D.2.1. Some Properties of

More information

160 CHAPTER 4. VECTOR SPACES

160 CHAPTER 4. VECTOR SPACES 160 CHAPTER 4. VECTOR SPACES 4. Rank and Nullity In this section, we look at relationships between the row space, column space, null space of a matrix and its transpose. We will derive fundamental results

More information

MAT188H1S Lec0101 Burbulla

MAT188H1S Lec0101 Burbulla Winter 206 Linear Transformations A linear transformation T : R m R n is a function that takes vectors in R m to vectors in R n such that and T (u + v) T (u) + T (v) T (k v) k T (v), for all vectors u

More information

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89 by Joseph Collison Copyright 2000 by Joseph Collison All rights reserved Reproduction or translation of any part of this work beyond that permitted by Sections

More information

Introduction to Matrices for Engineers

Introduction to Matrices for Engineers Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

More information

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively. Chapter 7 Eigenvalues and Eigenvectors In this last chapter of our exploration of Linear Algebra we will revisit eigenvalues and eigenvectors of matrices, concepts that were already introduced in Geometry

More information

T ( a i x i ) = a i T (x i ).

T ( a i x i ) = a i T (x i ). Chapter 2 Defn 1. (p. 65) Let V and W be vector spaces (over F ). We call a function T : V W a linear transformation form V to W if, for all x, y V and c F, we have (a) T (x + y) = T (x) + T (y) and (b)

More information

Brief Introduction to Vectors and Matrices

Brief Introduction to Vectors and Matrices CHAPTER 1 Brief Introduction to Vectors and Matrices In this chapter, we will discuss some needed concepts found in introductory course in linear algebra. We will introduce matrix, vector, vector-valued

More information

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices Solving square systems of linear equations; inverse matrices. Linear algebra is essentially about solving systems of linear equations,

More information

Math 312 Homework 1 Solutions

Math 312 Homework 1 Solutions Math 31 Homework 1 Solutions Last modified: July 15, 01 This homework is due on Thursday, July 1th, 01 at 1:10pm Please turn it in during class, or in my mailbox in the main math office (next to 4W1) Please

More information

The Characteristic Polynomial

The Characteristic Polynomial Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem

More information

NOTES ON LINEAR TRANSFORMATIONS

NOTES ON LINEAR TRANSFORMATIONS NOTES ON LINEAR TRANSFORMATIONS Definition 1. Let V and W be vector spaces. A function T : V W is a linear transformation from V to W if the following two properties hold. i T v + v = T v + T v for all

More information

Notes on Symmetric Matrices

Notes on Symmetric Matrices CPSC 536N: Randomized Algorithms 2011-12 Term 2 Notes on Symmetric Matrices Prof. Nick Harvey University of British Columbia 1 Symmetric Matrices We review some basic results concerning symmetric matrices.

More information

DATA ANALYSIS II. Matrix Algorithms

DATA ANALYSIS II. Matrix Algorithms DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where

More information

Similarity and Diagonalization. Similar Matrices

Similarity and Diagonalization. Similar Matrices MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that

More information

Notes on Determinant

Notes on Determinant ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without

More information

Typical Linear Equation Set and Corresponding Matrices

Typical Linear Equation Set and Corresponding Matrices EWE: Engineering With Excel Larsen Page 1 4. Matrix Operations in Excel. Matrix Manipulations: Vectors, Matrices, and Arrays. How Excel Handles Matrix Math. Basic Matrix Operations. Solving Systems of

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra 4 Introduction to Matrix Algebra In the previous chapter, we learned the algebraic results that form the foundation for the study of factor analysis and structural equation modeling. These results, powerful

More information

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 3: Wednesday, Feb 8

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 3: Wednesday, Feb 8 Spaces and bases Week 3: Wednesday, Feb 8 I have two favorite vector spaces 1 : R n and the space P d of polynomials of degree at most d. For R n, we have a canonical basis: R n = span{e 1, e 2,..., e

More information

Torgerson s Classical MDS derivation: 1: Determining Coordinates from Euclidean Distances

Torgerson s Classical MDS derivation: 1: Determining Coordinates from Euclidean Distances Torgerson s Classical MDS derivation: 1: Determining Coordinates from Euclidean Distances It is possible to construct a matrix X of Cartesian coordinates of points in Euclidean space when we know the Euclidean

More information

Section 5.3. Section 5.3. u m ] l jj. = l jj u j + + l mj u m. v j = [ u 1 u j. l mj

Section 5.3. Section 5.3. u m ] l jj. = l jj u j + + l mj u m. v j = [ u 1 u j. l mj Section 5. l j v j = [ u u j u m ] l jj = l jj u j + + l mj u m. l mj Section 5. 5.. Not orthogonal, the column vectors fail to be perpendicular to each other. 5..2 his matrix is orthogonal. Check that

More information

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 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. Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

More information

Solving Linear Systems, Continued and The Inverse of a Matrix

Solving Linear Systems, Continued and The Inverse of a Matrix , Continued and The of a Matrix Calculus III Summer 2013, Session II Monday, July 15, 2013 Agenda 1. The rank of a matrix 2. The inverse of a square matrix Gaussian Gaussian solves a linear system by reducing

More information

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Mathematics Course 111: Algebra I Part IV: Vector Spaces Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are

More information

Question 2: How do you solve a matrix equation using the matrix inverse?

Question 2: How do you solve a matrix equation using the matrix inverse? Question : How do you solve a matrix equation using the matrix inverse? In the previous question, we wrote systems of equations as a matrix equation AX B. In this format, the matrix A contains the coefficients

More information

1 Determinants and the Solvability of Linear Systems

1 Determinants and the Solvability of Linear Systems 1 Determinants and the Solvability of Linear Systems In the last section we learned how to use Gaussian elimination to solve linear systems of n equations in n unknowns The section completely side-stepped

More information

Numerical Analysis Lecture Notes

Numerical Analysis Lecture Notes Numerical Analysis Lecture Notes Peter J. Olver 6. Eigenvalues and Singular Values In this section, we collect together the basic facts about eigenvalues and eigenvectors. From a geometrical viewpoint,

More information

Matrix Representations of Linear Transformations and Changes of Coordinates

Matrix Representations of Linear Transformations and Changes of Coordinates Matrix Representations of Linear Transformations and Changes of Coordinates 01 Subspaces and Bases 011 Definitions A subspace V of R n is a subset of R n that contains the zero element and is closed under

More information

Vector and Matrix Norms

Vector and Matrix Norms Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty

More information

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form Section 1.3 Matrix Products A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form (scalar #1)(quantity #1) + (scalar #2)(quantity #2) +...

More information

Lecture 4: Partitioned Matrices and Determinants

Lecture 4: Partitioned Matrices and Determinants Lecture 4: Partitioned Matrices and Determinants 1 Elementary row operations Recall the elementary operations on the rows of a matrix, equivalent to premultiplying by an elementary matrix E: (1) multiplying

More information

MATH 551 - APPLIED MATRIX THEORY

MATH 551 - APPLIED MATRIX THEORY MATH 55 - APPLIED MATRIX THEORY FINAL TEST: SAMPLE with SOLUTIONS (25 points NAME: PROBLEM (3 points A web of 5 pages is described by a directed graph whose matrix is given by A Do the following ( points

More information

by the matrix A results in a vector which is a reflection of the given

by the matrix A results in a vector which is a reflection of the given Eigenvalues & Eigenvectors Example Suppose Then So, geometrically, multiplying a vector in by the matrix A results in a vector which is a reflection of the given vector about the y-axis We observe that

More information

Linearly Independent Sets and Linearly Dependent Sets

Linearly Independent Sets and Linearly Dependent Sets These notes closely follow the presentation of the material given in David C. Lay s textbook Linear Algebra and its Applications (3rd edition). These notes are intended primarily for in-class presentation

More information

Inner products on R n, and more

Inner products on R n, and more Inner products on R n, and more Peyam Ryan Tabrizian Friday, April 12th, 2013 1 Introduction You might be wondering: Are there inner products on R n that are not the usual dot product x y = x 1 y 1 + +

More information

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution SF2940: Probability theory Lecture 8: Multivariate Normal Distribution Timo Koski 24.09.2015 Timo Koski Matematisk statistik 24.09.2015 1 / 1 Learning outcomes Random vectors, mean vector, covariance matrix,

More information

Linear Algebra Notes

Linear Algebra Notes Linear Algebra Notes Chapter 19 KERNEL AND IMAGE OF A MATRIX Take an n m matrix a 11 a 12 a 1m a 21 a 22 a 2m a n1 a n2 a nm and think of it as a function A : R m R n The kernel of A is defined as Note

More information

A Primer on Index Notation

A Primer on Index Notation A Primer on John Crimaldi August 28, 2006 1. Index versus Index notation (a.k.a. Cartesian notation) is a powerful tool for manipulating multidimensional equations. However, there are times when the more

More information

3.1 Least squares in matrix form

3.1 Least squares in matrix form 118 3 Multiple Regression 3.1 Least squares in matrix form E Uses Appendix A.2 A.4, A.6, A.7. 3.1.1 Introduction More than one explanatory variable In the foregoing chapter we considered the simple regression

More information

Name: Section Registered In:

Name: Section Registered In: Name: Section Registered In: Math 125 Exam 3 Version 1 April 24, 2006 60 total points possible 1. (5pts) Use Cramer s Rule to solve 3x + 4y = 30 x 2y = 8. Be sure to show enough detail that shows you are

More information

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Recall that two vectors in are perpendicular or orthogonal provided that their dot Orthogonal Complements and Projections Recall that two vectors in are perpendicular or orthogonal provided that their dot product vanishes That is, if and only if Example 1 The vectors in are orthogonal

More information

Section 6.1 - Inner Products and Norms

Section 6.1 - Inner Products and Norms Section 6.1 - Inner Products and Norms Definition. Let V be a vector space over F {R, C}. An inner product on V is a function that assigns, to every ordered pair of vectors x and y in V, a scalar in F,

More information

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution SF2940: Probability theory Lecture 8: Multivariate Normal Distribution Timo Koski 24.09.2014 Timo Koski () Mathematisk statistik 24.09.2014 1 / 75 Learning outcomes Random vectors, mean vector, covariance

More information

Notes on Matrix Calculus

Notes on Matrix Calculus Notes on Matrix Calculus Paul L. Fackler North Carolina State University September 27, 2005 Matrix calculus is concerned with rules for operating on functions of matrices. For example, suppose that an

More information

Applied Linear Algebra I Review page 1

Applied Linear Algebra I Review page 1 Applied Linear Algebra Review 1 I. Determinants A. Definition of a determinant 1. Using sum a. Permutations i. Sign of a permutation ii. Cycle 2. Uniqueness of the determinant function in terms of properties

More information

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors Chapter 6 Eigenvalues and Eigenvectors 6. Introduction to Eigenvalues Linear equations Ax D b come from steady state problems. Eigenvalues have their greatest importance in dynamic problems. The solution

More information

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model 1 September 004 A. Introduction and assumptions The classical normal linear regression model can be written

More information

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes The Inverse of a Matrix 7.4 Introduction In number arithmetic every number a 0 has a reciprocal b written as a or such that a ba = ab =. Similarly a square matrix A may have an inverse B = A where AB =

More information

Linear Algebra Review and Reference

Linear Algebra Review and Reference Linear Algebra Review and Reference Zico Kolter (updated by Chuong Do) September 30, 2015 Contents 1 Basic Concepts and Notation 2 11 Basic Notation 2 2 Matrix Multiplication 3 21 Vector-Vector Products

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis

More information

LS.6 Solution Matrices

LS.6 Solution Matrices LS.6 Solution Matrices In the literature, solutions to linear systems often are expressed using square matrices rather than vectors. You need to get used to the terminology. As before, we state the definitions

More information

DERIVATIVES AS MATRICES; CHAIN RULE

DERIVATIVES AS MATRICES; CHAIN RULE DERIVATIVES AS MATRICES; CHAIN RULE 1. Derivatives of Real-valued Functions Let s first consider functions f : R 2 R. Recall that if the partial derivatives of f exist at the point (x 0, y 0 ), then we

More information

5. Orthogonal matrices

5. Orthogonal matrices L Vandenberghe EE133A (Spring 2016) 5 Orthogonal matrices matrices with orthonormal columns orthogonal matrices tall matrices with orthonormal columns complex matrices with orthonormal columns 5-1 Orthonormal

More information

1 Sets and Set Notation.

1 Sets and Set Notation. LINEAR ALGEBRA MATH 27.6 SPRING 23 (COHEN) LECTURE NOTES Sets and Set Notation. Definition (Naive Definition of a Set). A set is any collection of objects, called the elements of that set. We will most

More information

[1] Diagonal factorization

[1] Diagonal factorization 8.03 LA.6: Diagonalization and Orthogonal Matrices [ Diagonal factorization [2 Solving systems of first order differential equations [3 Symmetric and Orthonormal Matrices [ Diagonal factorization Recall:

More information

Linear Maps. Isaiah Lankham, Bruno Nachtergaele, Anne Schilling (February 5, 2007)

Linear Maps. Isaiah Lankham, Bruno Nachtergaele, Anne Schilling (February 5, 2007) MAT067 University of California, Davis Winter 2007 Linear Maps Isaiah Lankham, Bruno Nachtergaele, Anne Schilling (February 5, 2007) As we have discussed in the lecture on What is Linear Algebra? one of

More information

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n. ORTHOGONAL MATRICES Informally, an orthogonal n n matrix is the n-dimensional analogue of the rotation matrices R θ in R 2. When does a linear transformation of R 3 (or R n ) deserve to be called a rotation?

More information

Systems of Linear Equations

Systems of Linear Equations Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and

More information

Inner Product Spaces

Inner Product Spaces Math 571 Inner Product Spaces 1. Preliminaries An inner product space is a vector space V along with a function, called an inner product which associates each pair of vectors u, v with a scalar u, v, and

More information

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013 Notes on Orthogonal and Symmetric Matrices MENU, Winter 201 These notes summarize the main properties and uses of orthogonal and symmetric matrices. We covered quite a bit of material regarding these topics,

More information

CONTROLLABILITY. Chapter 2. 2.1 Reachable Set and Controllability. Suppose we have a linear system described by the state equation

CONTROLLABILITY. Chapter 2. 2.1 Reachable Set and Controllability. Suppose we have a linear system described by the state equation Chapter 2 CONTROLLABILITY 2 Reachable Set and Controllability Suppose we have a linear system described by the state equation ẋ Ax + Bu (2) x() x Consider the following problem For a given vector x in

More information

8 Square matrices continued: Determinants

8 Square matrices continued: Determinants 8 Square matrices continued: Determinants 8. Introduction Determinants give us important information about square matrices, and, as we ll soon see, are essential for the computation of eigenvalues. You

More information

Matrix Multiplication

Matrix Multiplication Matrix Multiplication CPS343 Parallel and High Performance Computing Spring 2016 CPS343 (Parallel and HPC) Matrix Multiplication Spring 2016 1 / 32 Outline 1 Matrix operations Importance Dense and sparse

More information

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i.

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i. Math 5A HW4 Solutions September 5, 202 University of California, Los Angeles Problem 4..3b Calculate the determinant, 5 2i 6 + 4i 3 + i 7i Solution: The textbook s instructions give us, (5 2i)7i (6 + 4i)(

More information

MA106 Linear Algebra lecture notes

MA106 Linear Algebra lecture notes MA106 Linear Algebra lecture notes Lecturers: Martin Bright and Daan Krammer Warwick, January 2011 Contents 1 Number systems and fields 3 1.1 Axioms for number systems......................... 3 2 Vector

More information

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix. MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix. Nullspace Let A = (a ij ) be an m n matrix. Definition. The nullspace of the matrix A, denoted N(A), is the set of all n-dimensional column

More information

Lecture 5: Singular Value Decomposition SVD (1)

Lecture 5: Singular Value Decomposition SVD (1) EEM3L1: Numerical and Analytical Techniques Lecture 5: Singular Value Decomposition SVD (1) EE3L1, slide 1, Version 4: 25-Sep-02 Motivation for SVD (1) SVD = Singular Value Decomposition Consider the system

More information

Vector Spaces 4.4 Spanning and Independence

Vector Spaces 4.4 Spanning and Independence Vector Spaces 4.4 and Independence October 18 Goals Discuss two important basic concepts: Define linear combination of vectors. Define Span(S) of a set S of vectors. Define linear Independence of a set

More information

Chapter 6. Orthogonality

Chapter 6. Orthogonality 6.3 Orthogonal Matrices 1 Chapter 6. Orthogonality 6.3 Orthogonal Matrices Definition 6.4. An n n matrix A is orthogonal if A T A = I. Note. We will see that the columns of an orthogonal matrix must be

More information

Lectures notes on orthogonal matrices (with exercises) 92.222 - Linear Algebra II - Spring 2004 by D. Klain

Lectures notes on orthogonal matrices (with exercises) 92.222 - Linear Algebra II - Spring 2004 by D. Klain Lectures notes on orthogonal matrices (with exercises) 92.222 - Linear Algebra II - Spring 2004 by D. Klain 1. Orthogonal matrices and orthonormal sets An n n real-valued matrix A is said to be an orthogonal

More information

Chapter 17. Orthogonal Matrices and Symmetries of Space

Chapter 17. Orthogonal Matrices and Symmetries of Space Chapter 17. Orthogonal Matrices and Symmetries of Space Take a random matrix, say 1 3 A = 4 5 6, 7 8 9 and compare the lengths of e 1 and Ae 1. The vector e 1 has length 1, while Ae 1 = (1, 4, 7) has length

More information

University of Lille I PC first year list of exercises n 7. Review

University of Lille I PC first year list of exercises n 7. Review University of Lille I PC first year list of exercises n 7 Review Exercise Solve the following systems in 4 different ways (by substitution, by the Gauss method, by inverting the matrix of coefficients

More information

Rotation Matrices and Homogeneous Transformations

Rotation Matrices and Homogeneous Transformations Rotation Matrices and Homogeneous Transformations A coordinate frame in an n-dimensional space is defined by n mutually orthogonal unit vectors. In particular, for a two-dimensional (2D) space, i.e., n

More information

Linear Algebra Done Wrong. Sergei Treil. Department of Mathematics, Brown University

Linear Algebra Done Wrong. Sergei Treil. Department of Mathematics, Brown University Linear Algebra Done Wrong Sergei Treil Department of Mathematics, Brown University Copyright c Sergei Treil, 2004, 2009, 2011, 2014 Preface The title of the book sounds a bit mysterious. Why should anyone

More information

Orthogonal Diagonalization of Symmetric Matrices

Orthogonal Diagonalization of Symmetric Matrices MATH10212 Linear Algebra Brief lecture notes 57 Gram Schmidt Process enables us to find an orthogonal basis of a subspace. Let u 1,..., u k be a basis of a subspace V of R n. We begin the process of finding

More information

Factoring Polynomials

Factoring Polynomials Factoring Polynomials 4-1-2014 The opposite of multiplying polynomials is factoring. Why would you want to factor a polynomial? Let p(x) be a polynomial. p(c) = 0 is equivalent to x c dividing p(x). Recall

More information

Linear Algebra I. Ronald van Luijk, 2012

Linear Algebra I. Ronald van Luijk, 2012 Linear Algebra I Ronald van Luijk, 2012 With many parts from Linear Algebra I by Michael Stoll, 2007 Contents 1. Vector spaces 3 1.1. Examples 3 1.2. Fields 4 1.3. The field of complex numbers. 6 1.4.

More information

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2 MATHEMATICS FO ENGINEES BASIC MATIX THEOY TUTOIAL This is the second of two tutorials on matrix theory. On completion you should be able to do the following. Explain the general method for solving simultaneous

More information