1 Systems of Linear Equations Error Analysis and System Condition.

Slides:



Advertisements
Similar presentations
SOLUTION OF STATE EQUATION
Advertisements

Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Section 3.1 The Determinant of a Matrix. Determinants are computed only on square matrices. Notation: det(A) or |A| For 1 x 1 matrices: det( [k] ) = k.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Section 3.4 Systems of Equations in 3 Variables
Chapter 9 Gauss Elimination The Islamic University of Gaza
Ch 7.9: Nonhomogeneous Linear Systems
Tutorial 10 Iterative Methods and Matrix Norms. 2 In an iterative process, the k+1 step is defined via: Iterative processes Eigenvector decomposition.
Vector Norms CSE 541 Roger Crawfis.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
Systems of Linear Equations
1 Systems of Linear Equations Gauss-Jordan Elimination and LU Decomposition.
1 Systems of Linear Equations Error Analysis and System Condition.
SOLVING SYSTEMS USING SUBSTITUTION
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Table of Contents Solving Linear Systems - Elementary Row Operations A linear system of equations can be solved in a new way by using an augmented matrix.
1.2 Gaussian Elimination.
Autar Kaw Humberto Isaza
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Systems of Equations and Inequalities
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
ES 240: Scientific and Engineering Computation. Matrix Inverse Chapter 11: Matrix Inverse Uchechukwu Ofoegbu Temple University.
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
MATH 250 Linear Equations and Matrices
ME 1202: Linear Algebra & Ordinary Differential Equations (ODEs)
Chapter 4.1 Solving Systems of Linear Equations in two variables.
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
Part 3 Chapter 11 Matrix Inverse and Condition PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
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.
1. Inverse of A 2. Inverse of a 2x2 Matrix 3. Matrix With No Inverse 4. Solving a Matrix Equation 1.
Orthogonality and Least Squares
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
Part 3 Chapter 11 Matrix Inverse and Condition Part A All images copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 2 System of Linear Equations Sensitivity and Conditioning (2.3) Solving Linear Systems (2.4) January 19, 2010.
Numerical Computation Lecture 9: Vector Norms and Matrix Condition Numbers United International College.
1 Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Linear Systems – Iterative methods
Matrix Condition Numbers
Chapter 9 Gauss Elimination The Islamic University of Gaza
Warm- Up Solve the following systems using elimination or substitution : 1. x + y = 6 -3x + y = x + 4y = 7 x + 2y = 7.
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 4-1 Systems of Equations and Inequalities Chapter 4.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
Determinants Every n  n matrix A is associated with a real number called the determinant of A, written  A . The determinant of a 2  2 matrix.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
3.8B Solving Systems using Matrix Equations and Inverses.
Chapter 7: Systems of Equations and Inequalities; Matrices
Chapter 7: Matrices and Systems of Equations and Inequalities
Chapter 4 Systems of Linear Equations; Matrices
Systems of Equations and Inequalities
Multiplicative Inverses of Matrices and Matrix Equations
Numerical Analysis Lecture14.
Systems of Equations and Inequalities
12 Systems of Linear Equations and Inequalities.
Sec 3.5 Inverses of Matrices
Chapter 4 Systems of Linear Equations; Matrices
Linear Algebra Lecture 16.
Chapter 2 Determinants.
Presentation transcript:

1 Systems of Linear Equations Error Analysis and System Condition

2 Questions What does it mean when a system of equations is ill-condition? How can we tell if a system is ill-condition? What can we expect from the solution when solving a system that is ill-condition?

3 (a)Singular (no solution) (b)Singular (infinite solution) (c)Ill-condition system (Near-singular) Ill-condition system

4 Ill-condition System Small change in input  large change in output For a system of equations, Ax = b, this means the result, x, will be very sensitive to –Small changes in A –Small changes in b –Round-off errors introduced during the computation

5 Example An example of an ill-condition system and its solution If we change the coefficient a 21 from 1.1 to 1.05, we have the equations and the corresponding solution as That is, a small change in A results in large change in the solution!

6 Question In general, when solving a system Ax = b, how can we tell how "reliable" the calculated result is? The data may already have error during the data collection process. We can't represent the data accurately. Round-off errors are introduced during calculation.

7 Error Analysis Suppose we want to find the solution of Ax = b Would there be a x' which gives b – Ax' ≈ 0 and yet x' is very different from the true solution? Would a small rounding error in b or in A results in large change in the solution x ?

8 Suppose x' is the computed solution of Ax = b. Then where r = b – Ax' is the residual vector, and κ(A) = || A ||·|| A -1 || is the condition number of A. || · || is called the norm, which is a real-valued function that measures the size/length of vectors or matrices. Relationship between error and residual

9 Various definitions of norm for Vectors p-norm Euclidean-norm 1-norm ∞-norm

10 Various definitions of norm for Matrices p-norm Euclidean-norm 1-norm (max column) ∞-norm (max row)

11 Some properties of norms and condition numbers Condition number, κ(A) = ||A||||A -1 || If A is non-singular, κ(A) ≥ 1

12 Error Analysis (Relationship between error and residual) Suppose x' is the computed solution of Ax = b. Let the residual be r = b – Ax' ---- (1) Substitute b = Ax into (1) gives r = Ax – Ax' =>r = A(x – x') =>x – x' = A -1 r =>||x – x'|| = ||A -1 r|| ≤ ||A -1 || ||r||---- (2) Thus, if ||A -1 || is large, a small residual, r, may still result in large errors in the computed result.

13 Error Analysis (Relationship between error and residual) [… continue] To measure the relative error in the solution, we can divide (2) by ||x|| to get Since Ax = b, it follows that Substituting (4) into the R.H.S. of (3) gives

14 Change in x w.r.t. change in b Suppose Ax = b and Ax ^ = (b+Δb), then Relationship between the errors in x and the errors in b or A Change in x w.r.t. change in A Suppose Ax = b and ( A + ΔA)x ^ = b, then

15 Error Analysis – Summary The reliability of the solution depends heavily on the condition number of the matrix. –e.g.: κ( A ) = 10 N implies that the accuracy of the solution is reduced by about N decimal places. Condition number is costly to calculate directly. –For large systems of equations, condition number is estimated.

16 Calculate κ( A ) using 1-norm Calculate κ( A ) using Euclidean norm Excercise

17 Iterative Refinement – Residual Correction Method suggests that we can improve the solution by reducing || r||. Suppose the errors in A and b are negligible and the major errors in the solution are introduced during the computation. Let x' be the computed solution. Then the inequality

18 Suppose in solving Ax = b, we obtain the computed solution x' s.t. x = x' + ε. Substituting x' back into the system yields Ax' = b'---- (1) Ax = b => A(x' + ε) = b---- (2) (2) – (1) =>Aε = b – b' = r---- (3) Solving the system of equations in (3) yields ε. By adding ε (called the correction factor) to x', we can possibly improve the solution to Ax = b. The above procedure can be repeated if necessary. Iterative Refinement – Residual Correction Method