The Kalman Filter. x k+1 F k x k.

Size: px
Start display at page:

Download "The Kalman Filter. x k+1 F k x k."

Transcription

1 The Kalman Filter The RLS algorithm for updating the least squares estimate given a series of observations vectors looked like a filter : new data comes in, and we use it (along with collected knowledge of the old data) to produce a new output In the previous section, x was fixed for the entire sequence of observations The Kalman filter incorporates dynamics for the unknown vector x into our estimation framework It addresses the case where x changes from observation to observation in a manner which we can model The classic example is trying to estimate the position and velocity of an airplane If the plane is in motion, these will of course change over time But the path of the plane is somewhat predictable, and there are real physical constraints on how quickly it can turn and/or accelerate Our dynamical models will be linear That is, we will assume that we can approximate the solution at the next time step x k+1 by applying a known N N matrix F k to the current solution: x k+1 F k x k Here is a quick example of how this might work Suppose that we are trying to estimate the position p and velocity v of a particle traveling in one dimension: 54

2 p In this case, our unknowns are a two-vector: [ ] pk x k v k v If we expect the velocity to be almost the same from measurement to measurement, our dynamics equations would look like p k+1 p k + α k v k v k+1 v k (+ error) (+ error), where α k would be proportional to the time elapsed between k + 1 and k In terms of the x k, we can write [ ] 1 αk x k+1 F k x k, where F k 1 Setting up the system As before, we are making noisy observations of an unknown vector: y k A k x k + e k, e k measurement error There can be a different number of measurements at each step, but all of the x k have length N We will say that y k R M k and the A k are M k N matrices The x k are dynamic; we model the transition from step k to k + 1 using x k+1 F k x k + ɛ k, ɛ k state error 55

3 The F k are all N N It is possible to incorporate the correlation structure of the e k and ɛ k into our estimates (using the BLUE), but we will start with the standard least-squares framework Notation: Since the x k are linked together through the dynamical model, the measurements y k A k x k + e k also give us indirect information about x,, x k As such, our estimate of all of x,, x k will change at time k We will use the notation ˆx l k least-squares estimate of x l at time k Step k We have observed y A x + e We form the least-squares estimate ˆx (A T A ) A T y Step k 1 We have the following system of equations y A x + e F x x 1 + ɛ y 1 A 1 x 1 + e 1 We can write this compactly as y A 1 x + e 1, where y A [ ] x e F I x 1 + ɛ y }{{ 1 A 1 e 1 }}{{}}{{}}{{} y 1 A 1 x 1 e 1 56

4 This system is (M + N + M 1 ) 2N; we can form the least-squares estimate using ] [ˆx 1 (A ˆx T 1 A 1 ) A T 1 y Step k 2 Now we have the following system of equations y A x + e F x x 1 + ɛ y 1 A 1 x 1 + e 1 F 1 x 1 x 2 + ɛ 1 y 2 A 2 x 2 + e 2, which we can rewrite as y A e F I x 1 ɛ y 1 A 1 x 2 + e 1 F 1 I ɛ 1 y }{{ 2 } } {{ A 2 }}{{} e 2 }{{} y 2 A 2 x 2 e 2 This system is (M + M 1 + M 2 + 2N) 3N; we can form the leastsquares estimate using ˆx 2 ˆx 1 2 ˆx 2 2 (A T 2 A 2 ) A T 2 y 2 57

5 In general, we have A k A F I A 1 F 1 F k A k y y 1, y k ; (1) I this system is (M + + M k + kn) kn, and we can for the least-squares estimate using ˆx k ˆx 1 k ˆx k k The kn-vector A T k y k is (AT k A k ) A T k y k A T k y k A T y A T 1 y 1, A T k y k while the kn kn matrix A T k A k we have to invert looks like A T A + F T F F T F I + A T 1 A 1 + F T 1 F 1 F T 1 F 1 I + A T 2 A 2 + F T 2 F 2 F T 2 I + A T ka k + F T kf k y k F k (2) Notice that this matrix is block tridiagonal; this structure is precisely what we will exploit in deriving the efficient update equations later on F T k I + A T k A k 58

6 Example: Multiple measurements of a pulse The following example illustrates the essential different between the standard least-square framework and the Kalman filter We make three measurements of a patient s pulse, and want an (updated) estimate of its true value after each one Our measurements are scalars, and have the form: y x + noise We record the three values y, y 1, y 2 In the standard least-square framework, we solve the three problems [ ] [ [ ] y 1 e y 1 x +e, x y 1 1] y 1 e +, and y e 1 1 x + e If we call ˆx k the least-squares estimate after recording y k, a simple calculation shows that the estimate is simply the average of the measurements we have seen to date: ˆx y, ˆx 1 y + y 1 2 y 2, ˆx 2 y + y 1 + y 2 3 e 2 Now suppose the we use the Kalman filtering framework to explicitly recognize that the pulse can drift over time Our dynamical model is simple: x k+1 x k + ɛ k This is saying that our best guess for the pulse at the next time step is that it takes the same value as before, but we are incorporating the fact that it will in fact not be exactly the same as this best guess 59

7 In the Kalman framework, the three systems we solve look like y 1 x + e, y y 1 y y 1 y 2 1 [ ] 1 x + x x x 1 x 2 e ɛ e 1, + e ɛ e 1 ɛ 1 e 2 After the first measurement, our estimate for x is the same: ˆx y After the second measurement, we have ] [ˆx 1 ˆx 1 1 ] [ 1 [ ] y y 1 ([ ]) [ ] 2 y 2 y [ ] [ ] 1 2/3 1/3 y 1/3 2/3 y 1 ] [ 2y +y 1 3 y +2y 1 3 6

8 So the best guess for where the pulse was is now a weighted average between the two samples; the estimate for x 1 weighs the most recent measurement more heavily than the first one This is natural, since we are saying the pulse is changing between measurements After the third measurement, we have ˆx 2 ˆx 1 2 ˆx y +2y 1 +y 2 8 y +2y 1 +y 2 4 y +2y 1 +5y 2 8 y y 1 y 2 Again, we see that as a direct result of allowing the pulse to drift, recent measurements are weighed more heavily in the current estimate 61

9 Block tridiagonal factorization To find the least-squares estimate of x,, x N, we need to solve the kn kn system given by (2) a few pages back In this section, we will show how this this type of system allows a nice factorization which makes it clear how to solve it in a streaming manner Consider the following general symmetric block tridiagonal system: D C T x b C D 1 C T 1 x 1 b 1 C 1 D 2 C T k x k b k C k D k x k b k The system is (k + 1)N (k + 1)N, and each of the D i and C i are N N Likewise, x i R N and b i R N The matrix on the left-hand side above as the product of block lower triangular and block upper triangular matrices: Q I U C Q 1 I U 1 C 1 Q 2, U k C k Q k I where the C i are the same as in the original system, and the Q i and U i are also all N N By inspecting the blocks, we see that we can compute the Q i and U i using the following iterative algorithm: Q D for i 1, 2,, k 62

10 end U i Q ic T i Q i D i C i U i, meaning that Q i D i C i Q ic T i If the factorization is already in place, we can solve for the x i by using forward substitution followed by back substitution First, we solve Q w b C Q 1 w 1 C 1 Q 2 b 1 C k Q k w k b k working from the top down: w Q b for i 1, 2,, k w i Q i (b i C i w i ) end With the w i in hand, we can now solve I U I U 1 U k I x x 1 x k w w 1 w k for the x i by working bottom up: x k w k for i k 1, k 2,, 63

11 x i w i U i x i+1 end Of course, we can combine the factorization with the forward step of the solve above to yield the following algorithm for solving symmetric 1 block tridiagonal systems: Symmetric Block Tridiagonal Solve Input: N N matrices D,, D k and C,, C k ; Right-hand side N-vectors b,, b k Initialize: Q D w Q b for i 1, 2,, k do U i Q ic T i Q i D i C i U i w i Q i (b i C i w i ) end for x k w k for i k 1, k 2,, do x i w i U i x i+1 end for 1 This is easily adapted to non-symmetric block tridiagonal, but we only need the symmetric case for what we do below 64

12 Kalman filter update equations From (2) previously in this notes, we can find the least-squares solution ˆx k, ˆx 1 k,, ˆx k k at step k using the tridiagonal solver from the previous section with C i F i, i,, k 1 A T A + F T F, i D i I + A T i A i + F T i F i, i 1,, k 1 I + A T k A k, i k That is great, but what is even better is that we can quickly move from the current best estimate ˆx k k to the estimate at the next time step ˆx k+1 k+1 very quickly Suppose that we have in our hands the solution to (2), consisting of the estimates ˆx k, ˆx 1 k,, ˆx k k (3) When the signal evolves (x k+1 F k x k + ɛ k ) and new measurements come in (x k+1 A k+1 x k+1 + e k+1 ), we break the update into two stages The first is the predict stage, where we add the evolution equations we solve, Ã k+1 A F I A 1 F 1 F k y y 1, ỹ k+1 I A k y k F k I 65

13 This system has another block column, but since the last block column in non-zero only in the k + 1 block, the x k+1 variables are essentially decoupled The solution to ÃT k+1ãk+1 x ÃT k+1ỹk+1 will be exactly the same as before, ie (3), but with an additional component given by ˆx k+1 k F k ˆx k k We can interpret this as a prediction for ˆx k+1 k+1 which we will update when we incorporate the measuremets y k+1 The factorization is updated with D k D k + F T k F k I + A T k A T k + F T k F k C k F k D k+1 I How exactly this works is thoroughly detailed in the Technical Details section below In the second stage, the update stage, we incorporate the measurements and solve A y F I A 1 y 1 F 1 A k+1, y F k I k+1 A k y k F k I A k+1 y k+1 This update works by changing the last block diagonal element to D k+1 D k+1 + A T k+1a k+1 I + A T k+1a k+1 66

14 we can then quickly compute ˆx k+1 k+1 w k+1 as ˆx k+1 k+1 ˆx k+1 k + G k+1 (y k+1 A k+1 ˆx k+1 k ), where G k+1 is the Kalman gain matrix (this is computed below) Notice that if the measurement y k+1 match our prediction ˆx k+1 k, then we don t update this prediction at all otherwise we pass the difference through the gain matrix G k+1 and add it to ˆx k+1 k Here are the updating equations, which are carefully derived in the Technical Details section: Kalman Filter Initialize: ˆx (A T A ) A T y P (A T A ) for k, 1, 2, do State update extrapolation: ˆx k+1 k F k ˆx k k Info matrix extrapolation: P k+1 k F k P k k F T k + I Kalman gain: G k+1 P k+1 k A T k+1(a k+1 P k+1 k A T k+1 + I) State update: ˆx k+1 k+1 ˆx k+1 k + G k+1 (y k+1 A k+1 ˆx k+1 k ) Info matrix update: P k+1 k+1 (I G k+1 A k+1 )P k+1 k end for So the cost of moving from ˆx k k to ˆx k+1 k+1 is O(N 3 ) + O(M k+1 N 2 ), which is about the same as it would cost to simply compute the standard least-squares solution for x k+1 using only the measurements y k+1 67

15 Kalman Filter and the BLUE Just as with recursive least squares, we can incorporate covariance information about the measurement and state errors into the Kalman filter Suppose the measurement errors e i have covariance matrices R i E[e i e T i ] and the state errors ɛ i have covariances matrices S i E[ɛ i ɛ T i ] In addition, we need to assume that from time step to time step, all the errors are uncorrelated with one another: E[e i e T j ], E[ɛ i ɛ T j ], i j i j E[e i ɛ T j ], for all i, j Following the derivation above using the BLUE in place of standard least square results in two changes to the update equations: Info matrix extrapolation : P k+1 k F k P k k F T k + S k Kalman gain : P k+1 k A T k+1(a k+1 P k+1 k A T k+1 + R k ) 68

16 Kalman Filter Updating: Technical Details For the first stage of the update, the predict stage, the system of equations moves from A k in (1) to à k+1 A F I A 1 F 1 F k y y 1, ỹ k+1 I A k y k F k I The least-squares solution to this system will be unchanged, except for an additional term in the k + 1st block, which we call ˆx k+1 k With our previous factorization in hand, we have P k k : Q k computed already The addition of the F k above changes the D k in our block tridiagonal system to D k D k + F T k F k, and so the factorization is updated with Q k Q k + F T k F k w k Q k (b k + F k w k ) This new system also has k + 1 blocks, so we need to compute the new terms in our running factorization: U k, Q k+1, and w k+1 69

17 By the matrix inversion lemma Q k Q k Q k F T k (I + F k Q F T k ) F k Q k k, so we can rewrite w k as w k w k Q k F T k (I + F k Q k F T k ) F k w k We now have C k F k and D k+1 I, and b k+1, so we move forward with the running factorization by solving U k Q k F T k Q k+1 I F Q k k w k+1 F T k Q k+1f k w k Q k+1(i F k Q k F T k (I + F k Q k F T k ) )F k w k Q k+1(i + F k Q k F T k ) F k w k (4) F k w k (5) where the second to last step (4) follows from the identity for symmetric matrices I A(I + A) (I + A), (6) (just multiply both sides on the right by (I + A)), and the last step (5) follows from an application of the matrix inversion lemma (I + F k Q k F T k ) I F k (Q k + F T k F k ) F T k I F Q k k F k Q k+1 7

18 Since w k+1 ˆx k+1 k and w k ˆx k k, we can rewrite the conclusion above as ˆx k+1 k F k ˆx k k We will also denote P k+1 k : Q k+1 I + F k Q k F k I + F k P k k F k We now go to the second stage of the update, where we add the measurements y k+1 A k+1 x x+1 + e k+1 We add a block row to our system of equations; we now want to solve A k+1 A F I A 1 F 1 F k, y I k+1 A k F k I A k+1 y y 1 y k y k+1 This means that we are replacing D k+1 I with D k+1 I + A T k+1a k+1 and b k+1 with b k+1 A T k+1y k+1 We update the factor-and-solve as follows: D k+1 I + A T k+1a k+1 Q k+1 Q k+1 + A T k+1a k+1 w k+1 Q k+1(a T k+1y k+1 + F k w k ) (7) 71

19 Using the matrix-inversion lemma, we can write Q k+1 Q k+1 Q k+1a T k+1(i + A k+1 Q k+1a T k+1) A k+1 Q k+1, (8) and so using the fact from above that w k+1 Q k+1f k w k Q k+1 ˆx k+1 k, the two terms in the expression for w k+1 ˆx k+1 k+1 becomes Q k+1f k w k ˆx k+1 k Q k+1a T k+1(i + A k+1 Q k+1a T k+1) A k+1 ˆx k+1 k (9) and Q k+1a T k+1y k+1 Q k+1a T k+1 (I (I + A k+1 Q Q k+1a T k+1 k+1a T k+1) A Q k+1 k+1a T k+1 ) y k+1 (I + A k+1 Q k+1a T k+1) yk+1, (1) where we have again used the identity (6) Combining (9) and (1) with (7), we have where w k+1 ˆx k+1 k+1 ˆx k+1 k + G k+1 ( yk+1 A k+1 ˆx k+1 k ), ) G k+1 Q k+1a T k+1 (I + A Q k+1 k+1a T k+1 ( P k+1 k A T k+1 I + A k+1 P k+1 k Ak+1) T Finally, (8) above also gives us the update P k+1 k+1 : Q k+1 (I G k+1 A k+1 ) P k+1 k 72

6. Cholesky factorization

6. Cholesky factorization 6. Cholesky factorization EE103 (Fall 2011-12) triangular matrices forward and backward substitution the Cholesky factorization solving Ax = b with A positive definite inverse of a positive definite matrix

More information

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system 1. Systems of linear equations We are interested in the solutions to systems of linear equations. A linear equation is of the form 3x 5y + 2z + w = 3. The key thing is that we don t multiply the variables

More information

Understanding and Applying Kalman Filtering

Understanding and Applying Kalman Filtering Understanding and Applying Kalman Filtering Lindsay Kleeman Department of Electrical and Computer Systems Engineering Monash University, Clayton 1 Introduction Objectives: 1. Provide a basic understanding

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

Operation Count; Numerical Linear Algebra

Operation Count; Numerical Linear Algebra 10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point

More information

Direct Methods for Solving Linear Systems. Matrix Factorization

Direct Methods for Solving Linear Systems. Matrix Factorization Direct Methods for Solving Linear Systems Matrix Factorization Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011

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

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication). MAT 2 (Badger, Spring 202) LU Factorization Selected Notes September 2, 202 Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix

More information

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1. MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

More information

Review Jeopardy. Blue vs. Orange. Review Jeopardy

Review Jeopardy. Blue vs. Orange. Review Jeopardy Review Jeopardy Blue vs. Orange Review Jeopardy Jeopardy Round Lectures 0-3 Jeopardy Round $200 How could I measure how far apart (i.e. how different) two observations, y 1 and y 2, are from each other?

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

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

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

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

Orthogonal Projections

Orthogonal Projections Orthogonal Projections and Reflections (with exercises) by D. Klain Version.. Corrections and comments are welcome! Orthogonal Projections Let X,..., X k be a family of linearly independent (column) vectors

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

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

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

Row Echelon Form and Reduced Row Echelon Form

Row Echelon Form and Reduced Row Echelon Form 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

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

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix 7. LU factorization EE103 (Fall 2011-12) factor-solve method LU factorization solving Ax = b with A nonsingular the inverse of a nonsingular matrix LU factorization algorithm effect of rounding error sparse

More information

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

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

Chapter 12 Modal Decomposition of State-Space Models 12.1 Introduction The solutions obtained in previous chapters, whether in time domain or transfor

Chapter 12 Modal Decomposition of State-Space Models 12.1 Introduction The solutions obtained in previous chapters, whether in time domain or transfor Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A. Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology 1 1 c Chapter

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 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 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

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

1 VECTOR SPACES AND SUBSPACES

1 VECTOR SPACES AND SUBSPACES 1 VECTOR SPACES AND SUBSPACES What is a vector? Many are familiar with the concept of a vector as: Something which has magnitude and direction. an ordered pair or triple. a description for quantities such

More information

1 Review of Least Squares Solutions to Overdetermined Systems

1 Review of Least Squares Solutions to Overdetermined Systems cs4: introduction to numerical analysis /9/0 Lecture 7: Rectangular Systems and Numerical Integration Instructor: Professor Amos Ron Scribes: Mark Cowlishaw, Nathanael Fillmore Review of Least Squares

More information

General Framework for an Iterative Solution of Ax b. Jacobi s Method

General Framework for an Iterative Solution of Ax b. Jacobi s Method 2.6 Iterative Solutions of Linear Systems 143 2.6 Iterative Solutions of Linear Systems Consistent linear systems in real life are solved in one of two ways: by direct calculation (using a matrix factorization,

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

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

7 Gaussian Elimination and LU Factorization

7 Gaussian Elimination and LU Factorization 7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method

More information

Solving Mass Balances using Matrix Algebra

Solving Mass Balances using Matrix Algebra Page: 1 Alex Doll, P.Eng, Alex G Doll Consulting Ltd. http://www.agdconsulting.ca Abstract Matrix Algebra, also known as linear algebra, is well suited to solving material balance problems encountered

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

Lecture 5 Least-squares

Lecture 5 Least-squares EE263 Autumn 2007-08 Stephen Boyd Lecture 5 Least-squares least-squares (approximate) solution of overdetermined equations projection and orthogonality principle least-squares estimation BLUE property

More information

Solutions to Math 51 First Exam January 29, 2015

Solutions to Math 51 First Exam January 29, 2015 Solutions to Math 5 First Exam January 29, 25. ( points) (a) Complete the following sentence: A set of vectors {v,..., v k } is defined to be linearly dependent if (2 points) there exist c,... c k R, not

More information

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations Using Matrices Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.

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

System Identification for Acoustic Comms.:

System Identification for Acoustic Comms.: System Identification for Acoustic Comms.: New Insights and Approaches for Tracking Sparse and Rapidly Fluctuating Channels Weichang Li and James Preisig Woods Hole Oceanographic Institution The demodulation

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

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

Unit 18 Determinants

Unit 18 Determinants Unit 18 Determinants Every square matrix has a number associated with it, called its determinant. In this section, we determine how to calculate this number, and also look at some of the properties of

More information

Matrix Algebra in R A Minimal Introduction

Matrix Algebra in R A Minimal Introduction A Minimal Introduction James H. Steiger Department of Psychology and Human Development Vanderbilt University Regression Modeling, 2009 1 Defining a Matrix in R Entering by Columns Entering by Rows Entering

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

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

Dynamic data processing

Dynamic data processing Dynamic data processing recursive least-squares P.J.G. Teunissen Series on Mathematical Geodesy and Positioning Dynamic data processing recursive least-squares Dynamic data processing recursive least-squares

More information

Lecture 3: Finding integer solutions to systems of linear equations

Lecture 3: Finding integer solutions to systems of linear equations Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture

More information

Factorization Theorems

Factorization Theorems Chapter 7 Factorization Theorems This chapter highlights a few of the many factorization theorems for matrices While some factorization results are relatively direct, others are iterative While some factorization

More information

1.2 Solving a System of Linear Equations

1.2 Solving a System of Linear Equations 1.. SOLVING A SYSTEM OF LINEAR EQUATIONS 1. Solving a System of Linear Equations 1..1 Simple Systems - Basic De nitions As noticed above, the general form of a linear system of m equations in n variables

More information

Linear Codes. Chapter 3. 3.1 Basics

Linear Codes. Chapter 3. 3.1 Basics Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length

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

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

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

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

1 Teaching notes on GMM 1.

1 Teaching notes on GMM 1. Bent E. Sørensen January 23, 2007 1 Teaching notes on GMM 1. Generalized Method of Moment (GMM) estimation is one of two developments in econometrics in the 80ies that revolutionized empirical work in

More information

Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem

Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem Chapter Vector autoregressions We begin by taking a look at the data of macroeconomics. A way to summarize the dynamics of macroeconomic data is to make use of vector autoregressions. VAR models have become

More information

5 Homogeneous systems

5 Homogeneous systems 5 Homogeneous systems Definition: A homogeneous (ho-mo-jeen -i-us) system of linear algebraic equations is one in which all the numbers on the right hand side are equal to : a x +... + a n x n =.. a m

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

CS3220 Lecture Notes: QR factorization and orthogonal transformations

CS3220 Lecture Notes: QR factorization and orthogonal transformations CS3220 Lecture Notes: QR factorization and orthogonal transformations Steve Marschner Cornell University 11 March 2009 In this lecture I ll talk about orthogonal matrices and their properties, discuss

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

[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

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

(Quasi-)Newton methods

(Quasi-)Newton methods (Quasi-)Newton methods 1 Introduction 1.1 Newton method Newton method is a method to find the zeros of a differentiable non-linear function g, x such that g(x) = 0, where g : R n R n. Given a starting

More information

Nonlinear Iterative Partial Least Squares Method

Nonlinear Iterative Partial Least Squares Method Numerical Methods for Determining Principal Component Analysis Abstract Factors Béchu, S., Richard-Plouet, M., Fernandez, V., Walton, J., and Fairley, N. (2016) Developments in numerical treatments for

More information

1 0 5 3 3 A = 0 0 0 1 3 0 0 0 0 0 0 0 0 0 0

1 0 5 3 3 A = 0 0 0 1 3 0 0 0 0 0 0 0 0 0 0 Solutions: Assignment 4.. Find the redundant column vectors of the given matrix A by inspection. Then find a basis of the image of A and a basis of the kernel of A. 5 A The second and third columns are

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

8. Linear least-squares

8. Linear least-squares 8. Linear least-squares EE13 (Fall 211-12) definition examples and applications solution of a least-squares problem, normal equations 8-1 Definition overdetermined linear equations if b range(a), cannot

More information

Solving Simultaneous Equations and Matrices

Solving Simultaneous Equations and Matrices Solving Simultaneous Equations and Matrices The following represents a systematic investigation for the steps used to solve two simultaneous linear equations in two unknowns. The motivation for considering

More information

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors Chapter 9. General Matrices An n m matrix is an array a a a m a a a m... = [a ij]. a n a n a nm The matrix A has n row vectors and m column vectors row i (A) = [a i, a i,..., a im ] R m a j a j a nj col

More information

Elementary Matrices and The LU Factorization

Elementary Matrices and The LU Factorization lementary Matrices and The LU Factorization Definition: ny matrix obtained by performing a single elementary row operation (RO) on the identity (unit) matrix is called an elementary matrix. There are three

More information

Lecture Notes 2: Matrices as Systems of Linear Equations

Lecture Notes 2: Matrices as Systems of Linear Equations 2: Matrices as Systems of Linear Equations 33A Linear Algebra, Puck Rombach Last updated: April 13, 2016 Systems of Linear Equations Systems of linear equations can represent many things You have probably

More information

Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems

Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course G63.2010.001 / G22.2420-001,

More information

DETERMINANTS TERRY A. LORING

DETERMINANTS TERRY A. LORING DETERMINANTS TERRY A. LORING 1. Determinants: a Row Operation By-Product The determinant is best understood in terms of row operations, in my opinion. Most books start by defining the determinant via formulas

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

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

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

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A = MAT 200, Midterm Exam Solution. (0 points total) a. (5 points) Compute the determinant of the matrix 2 2 0 A = 0 3 0 3 0 Answer: det A = 3. The most efficient way is to develop the determinant along the

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

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA MATHEMATICS FOR ENGINEERING BASIC ALGEBRA TUTORIAL 3 EQUATIONS This is the one of a series of basic tutorials in mathematics aimed at beginners or anyone wanting to refresh themselves on fundamentals.

More information

Mechanics 1: Conservation of Energy and Momentum

Mechanics 1: Conservation of Energy and Momentum Mechanics : Conservation of Energy and Momentum If a certain quantity associated with a system does not change in time. We say that it is conserved, and the system possesses a conservation law. Conservation

More information

1 Solving LPs: The Simplex Algorithm of George Dantzig

1 Solving LPs: The Simplex Algorithm of George Dantzig Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.

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

Time Domain and Frequency Domain Techniques For Multi Shaker Time Waveform Replication

Time Domain and Frequency Domain Techniques For Multi Shaker Time Waveform Replication Time Domain and Frequency Domain Techniques For Multi Shaker Time Waveform Replication Thomas Reilly Data Physics Corporation 1741 Technology Drive, Suite 260 San Jose, CA 95110 (408) 216-8440 This paper

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

and (1) The notation represents the value of the field at the location at time For the second-order derivatives, we use the following definitions (2)

and (1) The notation represents the value of the field at the location at time For the second-order derivatives, we use the following definitions (2) IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL 8, NO 11, NOVEMBER 1999 1593 Data Assimilation in Large Time-Varying Multidimensional Fields Amir Asif, Member, IEEE, and José M F Moura, Fellow, IEEE Abstract

More information

Epipolar Geometry. Readings: See Sections 10.1 and 15.6 of Forsyth and Ponce. Right Image. Left Image. e(p ) Epipolar Lines. e(q ) q R.

Epipolar Geometry. Readings: See Sections 10.1 and 15.6 of Forsyth and Ponce. Right Image. Left Image. e(p ) Epipolar Lines. e(q ) q R. Epipolar Geometry We consider two perspective images of a scene as taken from a stereo pair of cameras (or equivalently, assume the scene is rigid and imaged with a single camera from two different locations).

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

Linear Programming. March 14, 2014

Linear Programming. March 14, 2014 Linear Programming March 1, 01 Parts of this introduction to linear programming were adapted from Chapter 9 of Introduction to Algorithms, Second Edition, by Cormen, Leiserson, Rivest and Stein [1]. 1

More information

Iterative Methods for Solving Linear Systems

Iterative Methods for Solving Linear Systems Chapter 5 Iterative Methods for Solving Linear Systems 5.1 Convergence of Sequences of Vectors and Matrices In Chapter 2 we have discussed some of the main methods for solving systems of linear equations.

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

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = 7 2 + 5-2 = 7-2 5 + (2-2) = 7-2 5 = 5. x + 5-5 = 7-5. x + 0 = 20.

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = 7 2 + 5-2 = 7-2 5 + (2-2) = 7-2 5 = 5. x + 5-5 = 7-5. x + 0 = 20. Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM 1. Introduction (really easy) An equation represents the equivalence between two quantities. The two sides of the equation are in balance, and solving

More information

Linear Programming in Matrix Form

Linear Programming in Matrix Form Linear Programming in Matrix Form Appendix B We first introduce matrix concepts in linear programming by developing a variation of the simplex method called the revised simplex method. This algorithm,

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

Introduction to Matrices

Introduction to Matrices Introduction to Matrices Tom Davis tomrdavis@earthlinknet 1 Definitions A matrix (plural: matrices) is simply a rectangular array of things For now, we ll assume the things are numbers, but as you go on

More information

CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES. From Exploratory Factor Analysis Ledyard R Tucker and Robert C.

CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES. From Exploratory Factor Analysis Ledyard R Tucker and Robert C. CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES From Exploratory Factor Analysis Ledyard R Tucker and Robert C MacCallum 1997 180 CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES In

More information

Outline. Generalize Simple Example

Outline. Generalize Simple Example Solving Simultaneous Nonlinear Algebraic Equations Larry Caretto Mechanical Engineering 309 Numerical Analysis of Engineering Systems March 5, 014 Outline Problem Definition of solving simultaneous nonlinear

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

4F7 Adaptive Filters (and Spectrum Estimation) Kalman Filter. Sumeetpal Singh Email : sss40@eng.cam.ac.uk

4F7 Adaptive Filters (and Spectrum Estimation) Kalman Filter. Sumeetpal Singh Email : sss40@eng.cam.ac.uk 4F7 Adaptive Filters (and Spectrum Estimation) Kalman Filter Sumeetpal Singh Email : sss40@eng.cam.ac.uk 1 1 Outline State space model Kalman filter Examples 2 2 Parameter Estimation We have repeated observations

More information