SlideShare a Scribd company logo
1 of 23
Download to read offline
Householder Transformation and QR
Decomposition
Isaac Amornortey Yowetu
NIMS-GHANA
January 4, 2021
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Introduction
The Householder matrix (reflector) is a unitary (or orthogonal)
matrix that is often used to decompose a matrix into an upper
triangular matrix and orthogonal matrix. In particular,
Householder matrices are usually used to destroy the entries
below the main diagonal of a matrix.
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Householder Properties
The Householder Transformation or Matrix has the following
properties:
It is symmetric
H = HT
It is also orthogonal
HT
= H−1
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Consider H to be the Householder Matrix:
Proof: Symmetry
H = HT
(1)
H = I − 2vvT
(2)
HT
= (I − 2vvT
)T
(3)
= IT
− 2(vvT
)T
(4)
= IT
− 2(vT
)T
vT
(5)
= I − 2vvT
(6)
= H (7)
Hence, proved!
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Consider H to be the Householder Matrix:
Proof: Orthogonality
HT
= H−1
(8)
HT
H = H−1
H = I (9)
HT
H = (I − 2vvT
)T
(I − 2vvT
) (10)
= (I − 2vvT
)(I − 2vvT
) (11)
= I − 2(vvT
) − 2(vvT
) + 4vvT
vvT
(12)
= I − 4(vvT
) + 4v(vT
v)vT
(13)
= I − 4(vvT
) + 4vvT
(14)
= I (15)
Hence, proved! (16)
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Householder Reflection(Matrix) Derivation
1. Finding any vector u
Considering n dimensional vector x = [x1, x2, ..., xn]T
and
e = [1, 0, ..., 0]T
which a first standard basis vector.
u = x − ||x||e1
2. Finding Householder vector v
v =
u
||u||
3. Construction the Householder Matrix
H = I − 2vvT
= I −
2uuT
||u||2
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Remark
When the Householder Matrix H is a applied to x, it obtains
its reflection. Say,
x = Hx
Proof
x = Hx = (I − 2vvT
)x = I −
2uuT
||u||2
x (17)
||u||2
= (x − ||x||e1)T
(x − ||x||e1) (18)
= (xT
− ||x||eT
1 )(x − ||x||e1) (19)
= xT
x − ||x||xT
e1 − ||x||eT
1 x + ||x||2
eT
1 e1 (20)
= ||x||2
− 2||x||x1 + ||x||2
(21)
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Proof continues...
= 2||x||2
− 2||x||x1 (22)
= 2(||x||2
− ||x||x1) (23)
x = I −
2u(x − ||x||e1)T
2(||x||2 − ||x||x1)
x (24)
= x −
2u(xT
x − ||x||eT
1 x)
2(||x||2 − ||x||x1)
(25)
= x −
u(||x||2
− ||x||x1)
(||x||2 − ||x||x1)
(26)
= x − u (27)
= x − (x − ||x||e1) (28)
= ||x||e1 (29)
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Question 1
Consider the matrix
B =


−1 −1 1
1 3 3
−1 −1 5


using Householder Reflection, determine the QR Factorization.
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution
We consider x1 = [−1, 1 − 1]T
and ||x1||2 =
√
3
u1 = x1 − ||x1||e1
=


−1
1
−1

 −
√
3


1
0
0

 =


−2.7321
1.0000
−1.0000


v1 =
u1
||u1||
=


−0.8881
0.3251
−0.3251


H1 = I − 2vvT
=


−0.5774 0.5774 −0.5774
0.5774 0.7887 0.2113
−0.5774 0.2113 0.7887


Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution Continues...
H1B =


−0.5774 0.5774 −0.5774
0.5774 0.7887 0.2113
−0.5774 0.2113 0.7887




−1 −1 1
1 3 3
−1 −1 5


R1 =


1.7321 2.8868 −1.7321
0 1.5774 4.0000
0 0.4226 4.0000


Q1 = H1 =


−0.5774 0.5774 −0.5774
0.5774 0.7887 0.2113
−0.5774 0.2113 0.7887


Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution continues...
We consider x2 = [0, 1.5774, 0.4226]T
and ||x2||2 = 1.6330
u2 = x2 − ||x2||e2
=


0
1.5774
0.4226

 − 1.6330


0
1
0

 =


0
−0.0556
0.4226


v2 =
u2
||u2||
=


0
−0.1305
0.9914


H2 = I − 2vvT
=


1.0000 0 0
0 0.9659 0.2588
0 0.2588 −0.9659


Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution Continues...
H2R1 =


1.0000 0 0
0 0.9659 0.2588
0 0.2588 −0.9659




1.7321 2.8868 −1.7321
0 1.5774 4.0000
0 0.4226 4.0000


R2 =


1.7321 2.8868 −1.7321
0 1.6330 4.8990
0 0 −2.8284


Q2 = H1H2
=


−0.5774 0.5774 −0.5774
0.5774 0.7887 0.2113
−0.5774 0.2113 0.7887




1.0000 0 0
0 0.9659 0.2588
0 0.2588 −0.9659


Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution:
Q = Q2


−0.5774 −0.4082 −0.7071
0.5774 −0.8165 0
−0.5774 −0.4082 0.7071


R = R2


1.7321 2.8868 −1.7321
0 1.6330 4.8990
0 0 −2.8284


Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Question 2
Find QR Decomposition using Householder Method of the
matrix
B =




1 −1 4
1 4 −2
1 4 2
1 −1 0




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution
We consider x1 = [1, 1, 1, 1]T
and ||x1||2 = 2
u1 = x1 − ||x1||e1
=




1
1
1
1



 − 2




1
0
0
0



 =




−1
1
1
1




v1 =
u1
||u1||
=




−0.5000
0.5000
0.5000
0.5000




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
H1 =




0.50 0.50 0.50 0.50
0.50 0.50 −0.50 −0.50
0.50 −0.50 0.50 −0.50
0.50 −0.50 −0.50 0.50




H1B =




0.50 0.50 0.50 0.50
0.5000 0.5000 −0.50 −0.50
0.50 −0.50 0.50 −0.50
0.50 −0.50 −0.50 0.50








1 −1 4
1 4 −2
1 4 2
1 −1 0




R1 =




2 3 2
0 0 0
0 0 4
0 −5 2




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution Continues...
Q1 = H1 =




0.5000 0.5000 0.5000 0.5000
0.5000 0.5000 −0.5000 −0.5000
0.5000 −0.5000 0.5000 −0.5000
0.5000 −0.5000 −0.5000 0.5000




We consider x2 = [0, 0, 0, −5]T
and ||x2||2 = 5
u2 = x2 − ||x2||e2
=




0
0
0
−5



 − 5




0
1
0
0



 =




0
−5
0
−5




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution continues...
v2 =
u2
||u2||
=




0
−0.7071
0
−0.7071




H2 = I − 2vvT
=




1.00 0 0 0
0 0 0 −1
0 0 1 0
0 −1 0 0




H2R1 =




1.00 0 0 0
0 0 0 −1
0 0 1 0
0 −1 0 0








2 3 2
0 0 0
0 0 4
0 −5 2




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution Continues...
R2 =




2 3 2
0 5 −2
0 0 4
0 0 0




Q2 = H1H2
=




0.50 0.50 0.50 0.50
0.50 0.50 −0.50 −0.50
0.50 −0.50 0.50 −0.50
0.50 −0.50 −0.50 0.50








1.00 0 0 0
0 0 0 −1
0 0 1 0
0 −1 0 0




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
Solution:
Q = Q2




0.50 −0.50 0.50 0.50
0.50 0.50 −0.50 −0.50
0.50 0.50 0.50 −0.50
0.50 −0.50 −0.50 −0.50




R = R2




2 3 2
0 5 −2
0 0 4
0 0 0




Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
Introduction
Proof of Householder Transformation Properties
Householder Reflection Derivation
Application of Householder Reflection to QR Decomposition
End
THANK YOU
Reference
www.statlect.com/matrix-algebra/Householder-matrix
Isaac Amornortey Yowetu Householder Transformation and QR Decomposition

More Related Content

What's hot

Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Christopher Gratton
 
QR Algorithm Presentation
QR Algorithm PresentationQR Algorithm Presentation
QR Algorithm Presentation
kmwangi
 
Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectors
Riddhi Patel
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
gilandio
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matrices
EasyStudy3
 

What's hot (20)

Initial value problems
Initial value problemsInitial value problems
Initial value problems
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
QR Algorithm Presentation
QR Algorithm PresentationQR Algorithm Presentation
QR Algorithm Presentation
 
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
 
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
 
Point of inflection full
Point of inflection fullPoint of inflection full
Point of inflection full
 
Applications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeApplications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First Degree
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectors
 
Gauss Forward And Backward Central Difference Interpolation Formula
 Gauss Forward And Backward Central Difference Interpolation Formula  Gauss Forward And Backward Central Difference Interpolation Formula
Gauss Forward And Backward Central Difference Interpolation Formula
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matrices
 
Sherman-Morrison Formula Proof
Sherman-Morrison Formula ProofSherman-Morrison Formula Proof
Sherman-Morrison Formula Proof
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
Mean Squared Error (MSE) of an Estimator
Mean Squared Error (MSE) of an EstimatorMean Squared Error (MSE) of an Estimator
Mean Squared Error (MSE) of an Estimator
 

More from Isaac Yowetu

More from Isaac Yowetu (16)

Inverse-power-method.pdf
Inverse-power-method.pdfInverse-power-method.pdf
Inverse-power-method.pdf
 
Approximating Dominant Eivenvalue By The Power Method
Approximating Dominant Eivenvalue By The Power MethodApproximating Dominant Eivenvalue By The Power Method
Approximating Dominant Eivenvalue By The Power Method
 
Singular Value Decompostion (SVD): Worked example 3
Singular Value Decompostion (SVD): Worked example 3Singular Value Decompostion (SVD): Worked example 3
Singular Value Decompostion (SVD): Worked example 3
 
Singular Value Decompostion (SVD): Worked example 2
Singular Value Decompostion (SVD): Worked example 2Singular Value Decompostion (SVD): Worked example 2
Singular Value Decompostion (SVD): Worked example 2
 
Singular Value Decompostion (SVD): Worked example 1
Singular Value Decompostion (SVD): Worked example 1Singular Value Decompostion (SVD): Worked example 1
Singular Value Decompostion (SVD): Worked example 1
 
Singular Value Decompostion (SVD)
Singular Value Decompostion (SVD)Singular Value Decompostion (SVD)
Singular Value Decompostion (SVD)
 
Cayley-Hamilton Theorem, Eigenvalues, Eigenvectors and Eigenspace.
Cayley-Hamilton Theorem, Eigenvalues, Eigenvectors and Eigenspace.Cayley-Hamilton Theorem, Eigenvalues, Eigenvectors and Eigenspace.
Cayley-Hamilton Theorem, Eigenvalues, Eigenvectors and Eigenspace.
 
Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) Method
 
Bisection method
Bisection methodBisection method
Bisection method
 
Projectors and Projection Onto Subspaces
Projectors and Projection Onto SubspacesProjectors and Projection Onto Subspaces
Projectors and Projection Onto Subspaces
 
Projectors and Projection Onto a Line
Projectors and Projection Onto a LineProjectors and Projection Onto a Line
Projectors and Projection Onto a Line
 
Secant Iterative method
Secant Iterative methodSecant Iterative method
Secant Iterative method
 
Aitken's Method
Aitken's MethodAitken's Method
Aitken's Method
 
Newton Raphson iterative Method
Newton Raphson iterative MethodNewton Raphson iterative Method
Newton Raphson iterative Method
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Householder transformation | Householder Reflection with QR Decomposition

  • 1. Householder Transformation and QR Decomposition Isaac Amornortey Yowetu NIMS-GHANA January 4, 2021
  • 2. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 3. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Introduction The Householder matrix (reflector) is a unitary (or orthogonal) matrix that is often used to decompose a matrix into an upper triangular matrix and orthogonal matrix. In particular, Householder matrices are usually used to destroy the entries below the main diagonal of a matrix. Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 4. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Householder Properties The Householder Transformation or Matrix has the following properties: It is symmetric H = HT It is also orthogonal HT = H−1 Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 5. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Consider H to be the Householder Matrix: Proof: Symmetry H = HT (1) H = I − 2vvT (2) HT = (I − 2vvT )T (3) = IT − 2(vvT )T (4) = IT − 2(vT )T vT (5) = I − 2vvT (6) = H (7) Hence, proved! Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 6. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Consider H to be the Householder Matrix: Proof: Orthogonality HT = H−1 (8) HT H = H−1 H = I (9) HT H = (I − 2vvT )T (I − 2vvT ) (10) = (I − 2vvT )(I − 2vvT ) (11) = I − 2(vvT ) − 2(vvT ) + 4vvT vvT (12) = I − 4(vvT ) + 4v(vT v)vT (13) = I − 4(vvT ) + 4vvT (14) = I (15) Hence, proved! (16) Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 7. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Householder Reflection(Matrix) Derivation 1. Finding any vector u Considering n dimensional vector x = [x1, x2, ..., xn]T and e = [1, 0, ..., 0]T which a first standard basis vector. u = x − ||x||e1 2. Finding Householder vector v v = u ||u|| 3. Construction the Householder Matrix H = I − 2vvT = I − 2uuT ||u||2 Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 8. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Remark When the Householder Matrix H is a applied to x, it obtains its reflection. Say, x = Hx Proof x = Hx = (I − 2vvT )x = I − 2uuT ||u||2 x (17) ||u||2 = (x − ||x||e1)T (x − ||x||e1) (18) = (xT − ||x||eT 1 )(x − ||x||e1) (19) = xT x − ||x||xT e1 − ||x||eT 1 x + ||x||2 eT 1 e1 (20) = ||x||2 − 2||x||x1 + ||x||2 (21) Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 9. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Proof continues... = 2||x||2 − 2||x||x1 (22) = 2(||x||2 − ||x||x1) (23) x = I − 2u(x − ||x||e1)T 2(||x||2 − ||x||x1) x (24) = x − 2u(xT x − ||x||eT 1 x) 2(||x||2 − ||x||x1) (25) = x − u(||x||2 − ||x||x1) (||x||2 − ||x||x1) (26) = x − u (27) = x − (x − ||x||e1) (28) = ||x||e1 (29) Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 10. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Question 1 Consider the matrix B =   −1 −1 1 1 3 3 −1 −1 5   using Householder Reflection, determine the QR Factorization. Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 11. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution We consider x1 = [−1, 1 − 1]T and ||x1||2 = √ 3 u1 = x1 − ||x1||e1 =   −1 1 −1   − √ 3   1 0 0   =   −2.7321 1.0000 −1.0000   v1 = u1 ||u1|| =   −0.8881 0.3251 −0.3251   H1 = I − 2vvT =   −0.5774 0.5774 −0.5774 0.5774 0.7887 0.2113 −0.5774 0.2113 0.7887   Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 12. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution Continues... H1B =   −0.5774 0.5774 −0.5774 0.5774 0.7887 0.2113 −0.5774 0.2113 0.7887     −1 −1 1 1 3 3 −1 −1 5   R1 =   1.7321 2.8868 −1.7321 0 1.5774 4.0000 0 0.4226 4.0000   Q1 = H1 =   −0.5774 0.5774 −0.5774 0.5774 0.7887 0.2113 −0.5774 0.2113 0.7887   Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 13. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution continues... We consider x2 = [0, 1.5774, 0.4226]T and ||x2||2 = 1.6330 u2 = x2 − ||x2||e2 =   0 1.5774 0.4226   − 1.6330   0 1 0   =   0 −0.0556 0.4226   v2 = u2 ||u2|| =   0 −0.1305 0.9914   H2 = I − 2vvT =   1.0000 0 0 0 0.9659 0.2588 0 0.2588 −0.9659   Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 14. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution Continues... H2R1 =   1.0000 0 0 0 0.9659 0.2588 0 0.2588 −0.9659     1.7321 2.8868 −1.7321 0 1.5774 4.0000 0 0.4226 4.0000   R2 =   1.7321 2.8868 −1.7321 0 1.6330 4.8990 0 0 −2.8284   Q2 = H1H2 =   −0.5774 0.5774 −0.5774 0.5774 0.7887 0.2113 −0.5774 0.2113 0.7887     1.0000 0 0 0 0.9659 0.2588 0 0.2588 −0.9659   Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 15. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution: Q = Q2   −0.5774 −0.4082 −0.7071 0.5774 −0.8165 0 −0.5774 −0.4082 0.7071   R = R2   1.7321 2.8868 −1.7321 0 1.6330 4.8990 0 0 −2.8284   Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 16. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Question 2 Find QR Decomposition using Householder Method of the matrix B =     1 −1 4 1 4 −2 1 4 2 1 −1 0     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 17. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution We consider x1 = [1, 1, 1, 1]T and ||x1||2 = 2 u1 = x1 − ||x1||e1 =     1 1 1 1     − 2     1 0 0 0     =     −1 1 1 1     v1 = u1 ||u1|| =     −0.5000 0.5000 0.5000 0.5000     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 18. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition H1 =     0.50 0.50 0.50 0.50 0.50 0.50 −0.50 −0.50 0.50 −0.50 0.50 −0.50 0.50 −0.50 −0.50 0.50     H1B =     0.50 0.50 0.50 0.50 0.5000 0.5000 −0.50 −0.50 0.50 −0.50 0.50 −0.50 0.50 −0.50 −0.50 0.50         1 −1 4 1 4 −2 1 4 2 1 −1 0     R1 =     2 3 2 0 0 0 0 0 4 0 −5 2     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 19. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution Continues... Q1 = H1 =     0.5000 0.5000 0.5000 0.5000 0.5000 0.5000 −0.5000 −0.5000 0.5000 −0.5000 0.5000 −0.5000 0.5000 −0.5000 −0.5000 0.5000     We consider x2 = [0, 0, 0, −5]T and ||x2||2 = 5 u2 = x2 − ||x2||e2 =     0 0 0 −5     − 5     0 1 0 0     =     0 −5 0 −5     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 20. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution continues... v2 = u2 ||u2|| =     0 −0.7071 0 −0.7071     H2 = I − 2vvT =     1.00 0 0 0 0 0 0 −1 0 0 1 0 0 −1 0 0     H2R1 =     1.00 0 0 0 0 0 0 −1 0 0 1 0 0 −1 0 0         2 3 2 0 0 0 0 0 4 0 −5 2     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 21. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution Continues... R2 =     2 3 2 0 5 −2 0 0 4 0 0 0     Q2 = H1H2 =     0.50 0.50 0.50 0.50 0.50 0.50 −0.50 −0.50 0.50 −0.50 0.50 −0.50 0.50 −0.50 −0.50 0.50         1.00 0 0 0 0 0 0 −1 0 0 1 0 0 −1 0 0     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 22. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition Solution: Q = Q2     0.50 −0.50 0.50 0.50 0.50 0.50 −0.50 −0.50 0.50 0.50 0.50 −0.50 0.50 −0.50 −0.50 −0.50     R = R2     2 3 2 0 5 −2 0 0 4 0 0 0     Isaac Amornortey Yowetu Householder Transformation and QR Decomposition
  • 23. Introduction Proof of Householder Transformation Properties Householder Reflection Derivation Application of Householder Reflection to QR Decomposition End THANK YOU Reference www.statlect.com/matrix-algebra/Householder-matrix Isaac Amornortey Yowetu Householder Transformation and QR Decomposition