Linear Inverse Problems

Slides:



Advertisements
Similar presentations
Chapter 6 Matrix Algebra.
Advertisements

State Variables.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Mech300 Numerical Methods, Hong Kong University of Science and Technology. 1 Part Three Linear Algebraic Equations.
Solution of Simultaneous Linear Algebraic Equations: Lecture (I)
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
Matrices and Systems of Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems
Basic Mathematics for Portfolio Management. Statistics Variables x, y, z Constants a, b Observations {x n, y n |n=1,…N} Mean.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Linear Simultaneous Equations
Matrix Mathematics in MATLAB and Excel
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Chapter 10 Real Inner Products and Least-Square (cont.)
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Systems of Linear Equations and Row Echelon Form.
SYSTEMS OF LINEAR EQUATIONS
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
EGR 1101 Unit 7 Systems of Linear Equations in Engineering (Chapter 7 of Rattan/Klingbeil text)
Chapter 10 Review: Matrix Algebra
Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Matrix Algebra. Quick Review Quick Review Solutions.
Fin500J Mathematical Foundations in Finance Topic 1: Matrix Algebra Philip H. Dybvig Reference: Mathematics for Economists, Carl Simon and Lawrence Blume,
Chapter 9 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Multiplicative Inverses of Matrices and Matrix Equations.
1 Ch. 4 Linear Models & Matrix Algebra Matrix algebra can be used: a. To express the system of equations in a compact manner. b. To find out whether solution.
SVD: Singular Value Decomposition
1. Inverse of A 2. Inverse of a 2x2 Matrix 3. Matrix With No Inverse 4. Solving a Matrix Equation 1.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Solving Linear Systems of Equations
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Section 1.7 Linear Independence and Nonsingular Matrices
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Introduction to Financial Modeling MGT 4850 Spring 2008 University of Lethbridge.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Geology 5670/6670 Inverse Theory 12 Jan 2015 © A.R. Lowry 2015 Read for Wed 14 Jan: Menke Ch 2 (15-37) Last time: Course Introduction (Cont’d) Goal is.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
An Introduction to Matrix Algebra Math 2240 Appalachian State University Dr. Ginn.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
12-4: Matrix Methods for Square Systems
Linear Algebraic Equations and Matrices
Linear Algebra Lecture 2.
Review of Matrix Operations
The Inverse of a Square Matrix
Linear independence and matrix rank
Chapter 7: Matrices and Systems of Equations and Inequalities
MATRICES Operations with Matrices Properties of Matrix Operations
Section 9.5 Inverses of Matrices
Multiplication of Matrices
Sec 3.5 Inverses of Matrices
Presentation transcript:

Linear Inverse Problems A MATLAB Tutorial Presented by Johnny Samuels

What do we want to do? We want to develop a method to determine the best fit to a set of data: e.g.

The Plan Review pertinent linear algebra topics Forward/inverse problem for linear systems Discuss well-posedness Formulate a least squares solution for an overdetermined system

Linear Algebra Review Represent m linear equations with n variables: A = m x n matrix, y = n x 1 vector, b = m x 1 vector If A = m x n and B = n x p then AB = m x p (number of columns of A = number of rows of B)

Linear Algebra Review: Example Solve system using MATLAB’s backslash operator “\”: A = [1 -1 3 1;3 -3 1 0;1 1 0 -2]; b=[2;-1;3]; y = A\b

Linear Algebra Review: What does it mean? Graphical Representation:

Linear Algebra Review: Square Matrices A = square matrix if A has n rows and n columns The n x n identity matrix = If there exists s.t. then A is invertible

Linear Algebra Review Square Matrices cont. If then Compute (by hand) and verify (with MATLAB’s “*” command) the inverse of

Linear Algebra Review: One last thing… The transpose of a matrix A with entries Aij is defined as Aji and is denoted as AT – that is, the columns of AT are the rows of A Ex: implies Use MATLAB’s “ ‘ “ to compute transpose

Forward Problem: An Introduction We will work with the linear system Ay = b where (for now) A = n x n matrix, y = n x 1 vector, b = n x 1 vector The forward problem consists of finding b given a particular y

Forward Problem: Example g = 2y : Forward problem consists of finding g for a given y If y = 2 then g = 4 What if and ? What is the forward problem for vibrating beam?

Inverse Problem For the vibrating beam, we are given data (done in lab) and we must determine m, c and k. In the case of linear system Ay=b, we are provided with A and b, but must determine y

Inverse Problem: Example g = 2y : Inverse problem consists of finding y for a given g If g = 10 then Use A\b to determine y

Well-posedness The solution technique produces the correct answer when Ay=b is well-posed Ay=b is well-posed when Existence – For each b there exists an y such that Ay=b Uniqueness – Stability – is continuous Ay=b is ill-posed if it is not well-posed

Well-posedness: Example In command window type y=well_posed_ex(4,0) y is the solution to K = condition number; the closer K is to 1 the more trusted the solution is

Ill-posedness: Example In command window type y=ill_posed_ex(4,0) y is the solution to where Examine error of y=ill_posed_ex(8,0) Error is present because H is ill-conditioned

What is an ill conditioned system? A system is ill conditioned if some small perturbation in the system causes a relatively large change in the exact solution Ill-conditioned system:

Ill-Conditioned System: Example II

What is the effect of noisy data? Data from vibrating beam will be corrupted by noise (e.g. measurement error) Compare: y=well_posed_ex(4,0) and z=well_posed(4,.1) y=well_posed_ex(10,0) and z=well_posed(10,.2) y=ill_posed_ex(4,0) and z=ill_posed(4,.1) y=ill_posed_ex(10,0) and z=ill_posed(10,.2) How to deal with error? Stay tuned for next talk

Are we done? What if A is not a square matrix? In this case does not exist Focus on an overdetermined system (i.e. A is m x n where m > n) Usually there exists no exact solution to Ay=b when A is overdetermined In vibrating beam example, # of data points will be much larger than # of parameters to solve (i.e. m > n)

Overdetermined System: Example Minimize

Obtaining the Normal Equations We want to minimize : is minimized when y solves provides the least squares solution

Least Squares: Example Approximate the spring constant k for Hooke’s Law: l is measured lengths of spring, E is equilibrium position, and F is the resisting force least_squares_ex.m determines the least squares solution to the above equation for a given data set

What did we learn? Harmonic oscillator is a nonlinear system, so the normal equations are not directly applicable Many numerical methods approximate the nonlinear system with a linear system, and then apply the types of results we obtained here