QR Factorization - PowerPoint PPT Presentation

1 / 39
About This Presentation
Title:

QR Factorization

Description:

Title: No Slide Title Author: Alessandra Nardi Last modified by: Salusu Created Date: 9/13/2000 12:51:00 PM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:268
Avg rating:3.0/5.0
Slides: 40
Provided by: Alessand86
Category:

less

Transcript and Presenter's Notes

Title: QR Factorization


1
Pertemuan 2.
Outline
  • QR Factorization
  • Direct Method to solve linear systems
  • Problems that generate Singular matrices
  • Modified Gram-Schmidt Algorithm
  • QR Pivoting
  • Matrix must be singular, move zero column to end.
  • Minimization view point ? Link to Iterative Non
    stationary Methods (Krylov Subspace)

2
LU Factorization fails Singular Example
The resulting nodal matrix is SINGULAR, but a
solution exists!
3
LU Factorization fails Singular Example
One step GE
The resulting nodal matrix is SINGULAR, but a
solution exists! Solution (from picture) v4
-1 v3 -2 v2 anything you want ?
solutions v1 v2 - 1
4
QR Factorization Singular Example
Recall weighted sum of columns view of systems
of equations
M is singular but b is in the span of the columns
of M
5
QR Factorization Key idea
If M has orthogonal columns
Orthogonal columns implies
Multiplying the weighted columns equation by i-th
column
Simplifying using orthogonality
6
QR Factorization - M orthonormal
Picture for the two-dimensional case
Non-orthogonal Case
Orthogonal Case
M is orthonormal if
7
QR Factorization Key idea
How to perform the conversion?
8
QR Factorization Projection formula
9
QR Factorization Normalization
Formulas simplify if we normalize
10
QR Factorization 2x2 case
Mxb ? Qyb ? MxQy
11
QR Factorization 2x2 case
Two Step Solve Given QR
12
QR Factorization General case
To Insure the third column is orthogonal
13
QR Factorization General case
In general, must solve NxN dense linear system
for coefficients
14
QR Factorization General case
To Orthogonalize the Nth Vector
15
QR Factorization General case
Modified Gram-Schmidt Algorithm
To Insure the third column is orthogonal
16
QR FactorizationModified Gram-Schmidt
Algorithm(Source-column oriented approach)
  • For i 1 to N For each Source
    Column
  • For j i1 to N For each target
    Column right of source
  • end
  • end

Normalize
17
QR Factorization By picture
18
QR Factorization Matrix-Vector Product View
Suppose only matrix-vector products were
available?
More convenient to use another approach
19
QR FactorizationModified Gram-Schmidt
Algorithm(Target-column oriented approach)
For i 1 to N For each Target Column
For j 1 to i-1 For each Source Column left
of target end end
Normalize
20
QR Factorization
r11
r22
r33
r34
r44
r11
r12
r22
r33
r44
21
QR Factorization Zero Column
What if a Column becomes Zero?
Matrix MUST BE Singular!
  • Do not try to normalize the column.
  • Do not use the column as a source for
    orthogonalization.
  • 3) Perform backward substitution as well as
    possible

22
QR Factorization Zero Column
Resulting QR Factorization
23
QR Factorization Zero Column
Recall weighted sum of columns view of systems
of equations
M is singular but b is in the span of the columns
of M
24
Reasons for QR Factorization
  • QR factorization to solve Mxb
  • Mxb ? QRxb ? RxQTb
  • where Q is orthogonal, R is upper trg
  • O(N3) as GE
  • Nice for singular matrices
  • Least-Squares problem
  • Mxb where M mxn and mgtn
  • Pointer to Krylov-Subspace Methods
  • through minimization point of view

25
QR Factorization Minimization View
Minimization More General!
26
QR Factorization Minimization
ViewOne-Dimensional Minimization
One dimensional Minimization
27
QR Factorization Minimization
ViewOne-Dimensional Minimization Picture
One dimensional minimization yields same result
as projection on the column!
28
QR Factorization Minimization
ViewTwo-Dimensional Minimization
Residual Minimization
Coupling Term
29
QR Factorization Minimization
ViewTwo-Dimensional Minimization Residual
Minimization
To eliminate coupling term we change search
directions !!!
30
QR Factorization Minimization
ViewTwo-Dimensional Minimization
More General Search Directions
Coupling Term
31
QR Factorization Minimization
ViewTwo-Dimensional Minimization
More General Search Directions
Goal find a set of search directions such
that In this case minimization decouples
!!! pi and pj are called MTM orthogonal
32
QR Factorization Minimization ViewForming MTM
orthogonal Minimization Directions
i-th search direction equals MTM orthogonalized
unit vector
Use previous orthogonalized Search directions
33
QR Factorization Minimization ViewMinimizing
in the Search Direction
When search directions pj are MTM orthogonal,
residual minimization becomes
34
QR Factorization Minimization ViewMinimization
Algorithm
For i 1 to N For each Target Column
For j 1 to i-1 For each Source Column left
of target end end
Orthogonalize Search Direction
Normalize
35
Intuitive summary
  • QR factorization ? Minimization view
  • (Direct) (Iterative)
  • Compose vector x along search directions
  • Direct composition along Qi (orthonormalized
    columns of M) ? need to factorize M
  • Iterative composition along certain search
    directions ? you can stop half way
  • About the search directions
  • Chosen so that it is easy to do the minimization
    (decoupling) ? pj are MTM orthogonal
  • Each step try to minimize the residual

36
Compare Minimization and QR
Orthonormal
M
M
M
MTM Orthonormal
37
Summary
  • Iterative Methods Overview
  • Stationary
  • Non Stationary
  • QR factorization to solve Mxb
  • Modified Gram-Schmidt Algorithm
  • QR Pivoting
  • Minimization View of QR
  • Basic Minimization approach
  • Orthogonalized Search Directions
  • Pointer to Krylov Subspace Methods

38
Forward Difference Formula
Y e-x sin(x)
Of order o(h2) for
Numerical Differentiation
39
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com