Least Squares Approximations

Slides:



Advertisements
Similar presentations
Example: Given a matrix defining a linear mapping Find a basis for the null space and a basis for the range Pamela Leutwyler.
Advertisements

Differential Equations Verification Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Differential Equations Separable Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Systems of Linear Equations Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Math 3C Practice Midterm #1 Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Orthogonality and Least Squares
6 6.3 © 2012 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
Math 3C Euler’s Method Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Math 3C Practice Midterm Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Lecture 10: Inner Products Norms and angles Projection Sections 2.10.(1-4), Sections 2.2.3, 2.3.
Length and Dot Product in R n Notes: is called a unit vector. Notes: The length of a vector is also called its norm. Chapter 5 Inner Product Spaces.
I can solve systems of equations by graphing and analyze special systems.
Systems of Linear Equations Gaussian Elimination Types of Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
AN ORTHOGONAL PROJECTION
Orthogonality and Least Squares
Differential Equations Separable Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
The Inverse of a Matrix Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Differential Equations Graphing Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Systems of Linear Equations in Vector Form Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Vector Spaces Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Inner Product, Length and Orthogonality Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Linear Transformations
Orthogonal Projections Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Coordinate Systems Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Differential Equations Solving First-Order Linear DEs Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Math 4B Systems of Differential Equations Matrix Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Let W be a subspace of R n, y any vector in R n, and the orthogonal projection of y onto W. …
6 6.5 © 2016 Pearson Education, Ltd. Orthogonality and Least Squares LEAST-SQUARES PROBLEMS.
Differential Equations
Differential Equations
Systems of Differential Equations Phase Plane Analysis
Differential Equations
Eigenvalues and Eigenvectors
Matrix Arithmetic Prepared by Vince Zaccone
Systems of Linear Equations
Vector Spaces Prepared by Vince Zaccone
Orthogonal Projections
Systems of Linear Equations
Linear Transformations
Differential Equations
Differential Equations
Prepared by Vince Zaccone
Complex Eigenvalues Prepared by Vince Zaccone
Linear Transformations
Systems of Linear Equations
Systems of Linear Equations
Coordinate Systems Prepared by Vince Zaccone
Inner Product, Length and Orthogonality
Linear Independence Prepared by Vince Zaccone
Linear Transformations
Vector Spaces Prepared by Vince Zaccone
Systems of Differential Equations Phase Plane Analysis
Autonomous Differential Equations
Systems of Differential Equations Nonhomogeneous Systems
Differential Equations
Least Squares Approximations
Orthogonality and Least Squares
Systems of Linear Equations
Differential Equations
Differential Equations
The Inverse of a Matrix Prepared by Vince Zaccone
Differential Equations
Systems of Linear Equations
Systems of Linear Equations
Orthogonal Projections
Linear Transformations
Coordinate Systems Prepared by Vince Zaccone
Diagonalization Prepared by Vince Zaccone
Differential Equations
Orthogonality and Least Squares
Presentation transcript:

Least Squares Approximations Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Suppose you have an inconsistent linear system (i.e. there are no solutions). How do you find a vector that comes close to solving the system? We will use a method called “Least-Squares” Approximation. We have the following system: 𝐴 𝑥 = 𝑏 Unfortunately there are no exact solutions. We will look for a solution of the related system: 𝐴 𝑥 = 𝑏 In this equation, is the orthogonal projection of onto the column space of A. In other words, is the vector that A maps to that is “closest” to . 𝑏 𝑏 𝑏 𝑏 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations 𝐴 𝑥 = 𝑏 We start with this system, which is inconsistent. 𝐴 𝑥 = 𝑏 Instead, we will look for a solution of this related system. A least-squares solution will satisfy the equation 𝐴 𝑇 𝐴 𝑥 = 𝐴 𝑇 𝑏 An example is on the next slide. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 A least-squares solution will satisfy the equation 𝐴 𝑇 𝐴 𝑥 = 𝐴 𝑇 𝑏 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 A least-squares solution will satisfy the equation 𝐴 𝑇 𝐴 𝑥 = 𝐴 𝑇 𝑏 𝐴 𝑇 𝑏 = 1 −1 1 2 4 2 ∙ 3 −1 5 = 9 12 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 A least-squares solution will satisfy the equation 𝐴 𝑇 𝐴 𝑥 = 𝐴 𝑇 𝑏 𝐴 𝑇 𝑏 = 1 −1 1 2 4 2 ∙ 3 −1 5 = 9 12 This is our least-squares solution 3 0 0 24 𝑥 = 9 12 → 𝑥 = 3 1 2 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 A least-squares solution will satisfy the equation 𝐴 𝑇 𝐴 𝑥 = 𝐴 𝑇 𝑏 This matrix came out diagonal because the columns of the original matrix were orthogonal This is our least-squares solution 3 0 0 24 𝑥 = 9 12 → 𝑥 = 3 1 2 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 𝑥 = 3 1 2 This is our least-squares solution We can find the “error” by comparing this with the original system. Least-Squares Error = 𝑏 −𝐴 𝑥 𝑏 −𝐴 𝑥 =𝑒𝑟𝑟𝑜𝑟 Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Least Squares Approximations Here is an example: We have the following system: 1 2 −1 4 1 2 𝑥 = 3 −1 5 𝑥 = 3 1 2 This is our least-squares solution We can find the “error” by comparing this with the original system. Least-Squares Error = 𝑏 −𝐴 𝑥 𝑏 −𝐴 𝑥 =𝑒𝑟𝑟𝑜𝑟 𝑏 −𝐴 𝑥 = 3 −1 5 − 4 −1 4 = −1 0 1 𝑏 −𝐴 𝑥 = 2 The error in any approximation to the original system will be at least this large. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB