SlideShare a Scribd company logo
1 of 10
Download to read offline
Gram-Schmidt and QR Decompostion
(Factorization) of Matrices
Isaac Amornortey Yowetu
NIMS-GHANA
September 24, 2020
1 Introduction
2 Types of Matrices under consideration
3 QR Decompostion
4 Application of Gram-Schmidt Process to QR Decomposition
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 2 / 10
Introduction
Gram-Schmidt Process is one of the principal numerical
algorithms for computing QR Factorization.
Householder Triangularization is also one of the other algorithms
for computing QR Factorization.
In QR Decomposition;
Q is an Orthogonal Matrix with orthonormal basis.
R is a Right Upper Triangular Matrix.
A matrix A can be decomposed as A = QR.
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 3 / 10
Cases of Matrices
Considering An×m
Q-Factor
In a real space, if A is a square matrix(m=n), then
Q is an orthogonal unit vectors such that,
QT
Q = QQT
= I
if Q m × n and (m = n) with orthonormal columns, then
QT
Q = I
R-Factor
R is n × n right upper triangular matrix with rii = 0 (nonzero)
elements
R is nonsinular matrix
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 4 / 10
QR Decomposition
A = QR
a1 a2 · · · an = q1 q2 · · · qn





r11 r12 · · · r1n
0 r22 · · · r2n
...
...
...
...
0 0 · · · rnn





Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 5 / 10
Question
Example 1
Consider the matrix
B =




−1 −1 1
1 3 3
−1 −1 5
1 3 7




using Gram-Schmidt process, determine the QR Factorization.
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 6 / 10
solution
Rewrite B as B = [b1, b2, b3] where
b1 =




−1
1
−1
1



 , b2 =




−1
3
−1
3



 , b3 =




1
3
5
7




Suppose {v1, v2, v3} ∈ V a set of linearly independent vectors and
{q1, q2, q3} ∈ Q a set of othornormal basis.
Let v1 = b1 =




−1
1
−1
1



, r11 = ||v1|| =
√
4 = 2
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 7 / 10
Solution Continues...
q1 = v1
||v1||
= 1
2




−1
1
−1
1



 =




−1
2
1
2
−1
2
1
2




v2 = b2 − projq1 (b2)
v2 = b2 − r12q1
=




−1
3
−1
3



 − 4




−1
2
1
2
−1
2
1
2



 =




1
1
1
1




But, r12 = <q1,b2>
<q1,q1>
= 1
2
+ 3
2
+ 1
2
+ 3
2
= 4 and ||v2|| =
√
4 = 2
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 8 / 10
Solution Continues...
q2 = v2
||v2||
= 1
2




1
1
1
1



 =




1
2
1
2
1
2
1
2




v3 = b3 − projq1 (b3) − projq2 (b3)
v3 = b3 − r13q1 − r23q2
=




1
3
5
7



 − 2




−1
2
1
2
−1
2
1
2



 − 8




1
2
1
2
1
2
1
2



 =




−2
−2
2
2




But, r13 = <q1,b3>
<q1,q1>
= 2, r23 = <q2,b3>
<q2,q2>
= 8 and ||v3|| =
√
16 = 4
Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 9 / 10
Solution Continues...
q3 = v3
||v3||
= 1
4




−2
−2
2
2



 =




−1
2
−1
2
1
2
1
2




Solution: B = QR




−1 −1 1
1 3 3
−1 −1 5
1 3 7



 =




−1
2
1
2
−1
2
1
2
1
2
−1
2
−1
2
1
2
1
2
1
2
1
2
1
2






2 4 2
0 2 8
0 0 4


Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 10 / 10

More Related Content

What's hot

Eigen value and eigen vectors shwetak
Eigen value and eigen vectors shwetakEigen value and eigen vectors shwetak
Eigen value and eigen vectors shwetakMrsShwetaBanait1
 
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...Ceni Babaoglu, PhD
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear TransformationsCeni Babaoglu, PhD
 
sample solutions manual of a first course in integral equations by wazwaz 2nd...
sample solutions manual of a first course in integral equations by wazwaz 2nd...sample solutions manual of a first course in integral equations by wazwaz 2nd...
sample solutions manual of a first course in integral equations by wazwaz 2nd...Arthur Bailey
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptDrazzer_Dhruv
 
Complex number, polar form , rectangular form
Complex number, polar form , rectangular formComplex number, polar form , rectangular form
Complex number, polar form , rectangular formalok25kumar
 
21 monotone sequences x
21 monotone sequences x21 monotone sequences x
21 monotone sequences xmath266
 
Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Isaac Yowetu
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleMuhammadUsmanIkram2
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and DeterminantsAarjavPinara
 
Householder transformation | Householder Reflection with QR Decomposition
Householder transformation | Householder Reflection with QR DecompositionHouseholder transformation | Householder Reflection with QR Decomposition
Householder transformation | Householder Reflection with QR DecompositionIsaac Yowetu
 
Inverse of matrix
Inverse of matrixInverse of matrix
Inverse of matrixgandhinagar
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matricesStudent
 
Application of linear transformation in computer
Application of linear transformation in computerApplication of linear transformation in computer
Application of linear transformation in computerFavour Chukwuedo
 

What's hot (20)

Eigen value and eigen vectors shwetak
Eigen value and eigen vectors shwetakEigen value and eigen vectors shwetak
Eigen value and eigen vectors shwetak
 
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
 
sample solutions manual of a first course in integral equations by wazwaz 2nd...
sample solutions manual of a first course in integral equations by wazwaz 2nd...sample solutions manual of a first course in integral equations by wazwaz 2nd...
sample solutions manual of a first course in integral equations by wazwaz 2nd...
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations ppt
 
Complex number, polar form , rectangular form
Complex number, polar form , rectangular formComplex number, polar form , rectangular form
Complex number, polar form , rectangular form
 
21 monotone sequences x
21 monotone sequences x21 monotone sequences x
21 monotone sequences x
 
Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and Determinants
 
Matrix algebra
Matrix algebraMatrix algebra
Matrix algebra
 
INVERSE OF MATRIX
INVERSE OF MATRIXINVERSE OF MATRIX
INVERSE OF MATRIX
 
Gram-Schmidt process
Gram-Schmidt processGram-Schmidt process
Gram-Schmidt process
 
Linear discriminant analysis
Linear discriminant analysisLinear discriminant analysis
Linear discriminant analysis
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
03 Machine Learning Linear Algebra
03 Machine Learning Linear Algebra03 Machine Learning Linear Algebra
03 Machine Learning Linear Algebra
 
Householder transformation | Householder Reflection with QR Decomposition
Householder transformation | Householder Reflection with QR DecompositionHouseholder transformation | Householder Reflection with QR Decomposition
Householder transformation | Householder Reflection with QR Decomposition
 
Inverse of matrix
Inverse of matrixInverse of matrix
Inverse of matrix
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
 
Application of linear transformation in computer
Application of linear transformation in computerApplication of linear transformation in computer
Application of linear transformation in computer
 

More from Isaac Yowetu

Inverse-power-method.pdf
Inverse-power-method.pdfInverse-power-method.pdf
Inverse-power-method.pdfIsaac Yowetu
 
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 MethodIsaac Yowetu
 
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 3Isaac Yowetu
 
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 2Isaac Yowetu
 
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 1Isaac Yowetu
 
Singular Value Decompostion (SVD)
Singular Value Decompostion (SVD)Singular Value Decompostion (SVD)
Singular Value Decompostion (SVD)Isaac Yowetu
 
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.Isaac Yowetu
 
Givens rotation method
Givens rotation methodGivens rotation method
Givens rotation methodIsaac Yowetu
 
Sherman-Morrison Formula Proof
Sherman-Morrison Formula ProofSherman-Morrison Formula Proof
Sherman-Morrison Formula ProofIsaac Yowetu
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) MethodIsaac Yowetu
 
Projectors and Projection Onto Subspaces
Projectors and Projection Onto SubspacesProjectors and Projection Onto Subspaces
Projectors and Projection Onto SubspacesIsaac Yowetu
 
Projectors and Projection Onto a Line
Projectors and Projection Onto a LineProjectors and Projection Onto a Line
Projectors and Projection Onto a LineIsaac Yowetu
 
Secant Iterative method
Secant Iterative methodSecant Iterative method
Secant Iterative methodIsaac Yowetu
 
Newton Raphson iterative Method
Newton Raphson iterative MethodNewton Raphson iterative Method
Newton Raphson iterative MethodIsaac Yowetu
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iterationIsaac Yowetu
 

More from Isaac Yowetu (17)

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.
 
Givens rotation method
Givens rotation methodGivens rotation method
Givens rotation method
 
Sherman-Morrison Formula Proof
Sherman-Morrison Formula ProofSherman-Morrison Formula Proof
Sherman-Morrison Formula Proof
 
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

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

Gram-Schmidt and QR Decomposition (Factorization) of Matrices

  • 1. Gram-Schmidt and QR Decompostion (Factorization) of Matrices Isaac Amornortey Yowetu NIMS-GHANA September 24, 2020
  • 2. 1 Introduction 2 Types of Matrices under consideration 3 QR Decompostion 4 Application of Gram-Schmidt Process to QR Decomposition Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 2 / 10
  • 3. Introduction Gram-Schmidt Process is one of the principal numerical algorithms for computing QR Factorization. Householder Triangularization is also one of the other algorithms for computing QR Factorization. In QR Decomposition; Q is an Orthogonal Matrix with orthonormal basis. R is a Right Upper Triangular Matrix. A matrix A can be decomposed as A = QR. Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 3 / 10
  • 4. Cases of Matrices Considering An×m Q-Factor In a real space, if A is a square matrix(m=n), then Q is an orthogonal unit vectors such that, QT Q = QQT = I if Q m × n and (m = n) with orthonormal columns, then QT Q = I R-Factor R is n × n right upper triangular matrix with rii = 0 (nonzero) elements R is nonsinular matrix Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 4 / 10
  • 5. QR Decomposition A = QR a1 a2 · · · an = q1 q2 · · · qn      r11 r12 · · · r1n 0 r22 · · · r2n ... ... ... ... 0 0 · · · rnn      Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 5 / 10
  • 6. Question Example 1 Consider the matrix B =     −1 −1 1 1 3 3 −1 −1 5 1 3 7     using Gram-Schmidt process, determine the QR Factorization. Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 6 / 10
  • 7. solution Rewrite B as B = [b1, b2, b3] where b1 =     −1 1 −1 1     , b2 =     −1 3 −1 3     , b3 =     1 3 5 7     Suppose {v1, v2, v3} ∈ V a set of linearly independent vectors and {q1, q2, q3} ∈ Q a set of othornormal basis. Let v1 = b1 =     −1 1 −1 1    , r11 = ||v1|| = √ 4 = 2 Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 7 / 10
  • 8. Solution Continues... q1 = v1 ||v1|| = 1 2     −1 1 −1 1     =     −1 2 1 2 −1 2 1 2     v2 = b2 − projq1 (b2) v2 = b2 − r12q1 =     −1 3 −1 3     − 4     −1 2 1 2 −1 2 1 2     =     1 1 1 1     But, r12 = <q1,b2> <q1,q1> = 1 2 + 3 2 + 1 2 + 3 2 = 4 and ||v2|| = √ 4 = 2 Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 8 / 10
  • 9. Solution Continues... q2 = v2 ||v2|| = 1 2     1 1 1 1     =     1 2 1 2 1 2 1 2     v3 = b3 − projq1 (b3) − projq2 (b3) v3 = b3 − r13q1 − r23q2 =     1 3 5 7     − 2     −1 2 1 2 −1 2 1 2     − 8     1 2 1 2 1 2 1 2     =     −2 −2 2 2     But, r13 = <q1,b3> <q1,q1> = 2, r23 = <q2,b3> <q2,q2> = 8 and ||v3|| = √ 16 = 4 Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 9 / 10
  • 10. Solution Continues... q3 = v3 ||v3|| = 1 4     −2 −2 2 2     =     −1 2 −1 2 1 2 1 2     Solution: B = QR     −1 −1 1 1 3 3 −1 −1 5 1 3 7     =     −1 2 1 2 −1 2 1 2 1 2 −1 2 −1 2 1 2 1 2 1 2 1 2 1 2       2 4 2 0 2 8 0 0 4   Isaac Amornortey Yowetu (NIMS-GHANA)Gram-Schmidt and QR Decompostion (Factorization) of MatricesSeptember 24, 2020 10 / 10