SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
Eigen Problem
          Power and Inverse Power Method
                        QR Decomposition
                              QR Algorithm
 Techniques used to Accelerate Convergence
                                 References




            Understanding the QR Algorithm

                            Kenneth Mwangi
                       Northern Arizona University


                               December 3, 2008




Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                 Power and Inverse Power Method
                               QR Decomposition
                                     QR Algorithm
        Techniques used to Accelerate Convergence
                                        References


Table of contents

  1   Eigen Problem
  2   Power and Inverse Power Method
        Power Method
        Inverse Power Method
  3   QR Decomposition
       QR Decomposition
  4   QR Algorithm
       QR Algorithm
  5   Techniques used to Accelerate Convergence
  6   References

       Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
               Power and Inverse Power Method
                             QR Decomposition
                                   QR Algorithm
      Techniques used to Accelerate Convergence
                                      References


Introduction to the Eigen Value Problem


      The classical mathematical eigenvalue problem is defined as
      the solution of the following equation:
      Avn = λvn ; n = 1, 2, . . . , N
      Eigen Problem reveals the following facts;

         1   A is a n matrix either real or complex.
         2   n is small (1000,2000,. . . )
         3   Calculate all the Eigenvalue. Eigenvectors?

      The generalised eigenvalue problem is; Avn = Bλvn


     Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
              Power and Inverse Power Method
                            QR Decomposition      Power Method
                                  QR Algorithm    Inverse Power Method
     Techniques used to Accelerate Convergence
                                     References


Power Method



     The power iteration is a very simple algorithm.

     It does not decompose the matrix and thus it can be used
     when A is a large matrix.

     Nevertheless, it will find only one eigenvalue (one with the
     greatest absolute value) and it may converge only slowly.




    Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
              Power and Inverse Power Method
                            QR Decomposition      Power Method
                                  QR Algorithm    Inverse Power Method
     Techniques used to Accelerate Convergence
                                     References


The power method algorithm is highlighted below;

                                          u (0) = x0
                                             k=1

                                            Repeat

                             w = Au (k−1)
               λ = entry of u with the largest magnitude.

                                      u (k) = wλ
                                     k ←k +1
                              until u (k) − u (k−1) <


   Kenneth Mwangi Northern Arizona University     Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition      Power Method
                                    QR Algorithm    Inverse Power Method
       Techniques used to Accelerate Convergence
                                       References


Inverse Power Method

  Inverse iteration is also an iterative eigenvalue algorithm.From the
  power method, the method seeks to improve the performance
  While the power method always converges to the largest
  eigenvalue, inverse iteration also enables the choice of eigenvalue
  to converge to.
  The inverse iteration algorithm converges fairly quickly.However,
  we can achieve even faster convergence by using a better
  eigenvalue approximation each time (Rayleigh quotient iteration).
  The inverse iteration algorithm requires solving a linear system at
  each step. This would appear to require O(n3 ) operations.
  However, this can be reduced to O(n2 ) if we first reduce A to
  Hessenberg form.
      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
          Power and Inverse Power Method
                        QR Decomposition      Power Method
                              QR Algorithm    Inverse Power Method
 Techniques used to Accelerate Convergence
                                 References




               To get the eigenvalue of A closet to q

                         Eigenvalue of (A − qI )−1

                                 1       1               1
                           =   λ1 −q , λ2 −q , . . . , λn −q


 Suppose λk is the eigenvalue of A closet to q. Thus the
        modification on the power algorithm is;

                          w (k) = (A − qI )−1 u (k−1)



Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


QR Decomposition

  QR Decomposition is the factorization of a matrix into an
  orthogonal and a right triangular matrix;

                                             A = QR


  where Q is an orthogonal matrix (meaning thatQ T Q = I ) and R is
  an upper triangular matrix (also called right triangular matrix).

  Although the QR factorization is more computationally rigorous
  than the LU factorization the method offers superior stability
  properties.

      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References




The QR decomposition is usually calculated using the following
ways;
  1   Gram-Schmidt process;
  2   Householder reflections; and
  3   Givens rotations.

Mostly used process is the Householder reflection because it has
greater numerical stability than the Gram-Schmidt method.




      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                      QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


Householder Transformation

  If X and Y are vectors with the same norm, there exists an
  orthogonal symmetric matrix P such that;

                      Y = PX where P = I − 2WW T and
          X −Y
  W =     X −Y     . Since P is both orthogonal and symmetric, it follows
                                 that P −1 = P.

                  *             *     *     *       *         *             *    *     *   *
                  *             *     *     *       *                       *    *     *   *
  Conclusion; X = *             *     *     *       * and Y =                    *     *   *
                  *             *     *     *       *                                  *   *
                  *             *     *     *       *                                      *

      Kenneth Mwangi Northern Arizona University      Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Algorithm
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


QR Algorithm

  The overall stability theory for the QR algorithm was given by
  Wilkinson’s in 1965 in his work the algebraic eigenvalue problem.
  We now investigate a well known and efficient method for finding
  all the eigenvalues of a general n × n real matrix; but working with
  a general matrix takes many iterations and becomes expensive and
  time consuming.
  Therefore the QR Method works much faster on special matrices,
  hence the reason to decompose the general matrices to a
  Hessenberg form.
  Hessenberg matrix is one that is ”almost” triangular. To be exact,
  an upper Hessenberg matrix has zero entries below the first
  subdiagonal.
      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                  Power and Inverse Power Method
                                QR Decomposition
                                                      QR Algorithm
                                      QR Algorithm
         Techniques used to Accelerate Convergence
                                         References


QR Algorithm Implementation

  To find eigenvalues of a real matrix A using the QR factorization,
  we will generate a sequence of matrices A(m) that are orthogonal
  and similar to A, the QR proceeds by forming a sequences of
  matrices A = A(1) , A(2) , . . . , as follows.

    1   A(1) = A is factored as a product A(1) = Q (1) R (1) , where Q (1) is
        orthogonal and R (1) is upper triangular.
    2   A(2) is defined as A(2) = R (1) Q (1) .

  Thus if the eigenvalues satisfy |λ1 | > |λ2 | > . . . > |λ2 |, the iterates
  converge to T , an upper triangular matrix with the eigenvalues on
  the diagonal.

        Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
               Power and Inverse Power Method
                             QR Decomposition
                                                   QR Algorithm
                                   QR Algorithm
      Techniques used to Accelerate Convergence
                                      References


QR Algorithm


                                      Given A ∈ R n×n

                                       Define A1 = A

                                  For k = 1, 2, . . . , do

              Calculate the QR decomposition Ak = Qk Rk ,

                                   Define Ak+1 = Ak .



     Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


Techniques used to Accelerate Convergence



  Deflation

  Aggressive deflation (due to Francis 1961, Watkins 1995)

  Ad hoc shifts




      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                  Power and Inverse Power Method
                                QR Decomposition
                                      QR Algorithm
         Techniques used to Accelerate Convergence
                                         References


References

    1   Burden and Faires , Numerical Analysis , 8th Edition

    2   Laurene V. Fausett, Applied Numerical Analysis Using MATLAB,
        2nd Edition

    3   Marco Latini ,The QR Algorithm, Past and Future

    4   Wikipedia

    5   Dr. Shafiu Jibrin, Numerical Analysis notes.


        Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm

Mais conteúdo relacionado

Mais procurados

Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and EigenvectorsVinod Srivastava
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination MethodAndi Firdaus
 
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...sanjay kumar pediredla
 
Orthogonal sets and basis
Orthogonal sets and basisOrthogonal sets and basis
Orthogonal sets and basisPrasanth George
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williamsMadhumita Tamhane
 
Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Isaac Yowetu
 
Lu decomposition
Lu decompositionLu decomposition
Lu decompositiongilandio
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiationandrushow
 
Integration in the complex plane
Integration in the complex planeIntegration in the complex plane
Integration in the complex planeAmit Amola
 
Bilinear transformation
Bilinear transformationBilinear transformation
Bilinear transformationBuvaneswari
 
02 linear algebra
02 linear algebra02 linear algebra
02 linear algebraRonald Teo
 
Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equationssajidpk92
 
Diagonalization of matrix
Diagonalization of matrixDiagonalization of matrix
Diagonalization of matrixVANDANASAINI29
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydineshDinesh Kumar
 
Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3DigiGurukul
 

Mais procurados (20)

Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and Eigenvectors
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
 
Orthogonal sets and basis
Orthogonal sets and basisOrthogonal sets and basis
Orthogonal sets and basis
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williams
 
Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process Gram schmidt orthogonalization | Orthonormal Process
Gram schmidt orthogonalization | Orthonormal Process
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiation
 
Integration in the complex plane
Integration in the complex planeIntegration in the complex plane
Integration in the complex plane
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
 
Bilinear transformation
Bilinear transformationBilinear transformation
Bilinear transformation
 
02 linear algebra
02 linear algebra02 linear algebra
02 linear algebra
 
Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equations
 
Vector space
Vector spaceVector space
Vector space
 
Defuzzification
DefuzzificationDefuzzification
Defuzzification
 
Diagonalization of matrix
Diagonalization of matrixDiagonalization of matrix
Diagonalization of matrix
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
 
Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3
 

Último

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Último (20)

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

QR Algorithm Explained for Eigenvalue Problems

  • 1. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Understanding the QR Algorithm Kenneth Mwangi Northern Arizona University December 3, 2008 Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 2. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Table of contents 1 Eigen Problem 2 Power and Inverse Power Method Power Method Inverse Power Method 3 QR Decomposition QR Decomposition 4 QR Algorithm QR Algorithm 5 Techniques used to Accelerate Convergence 6 References Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 3. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Introduction to the Eigen Value Problem The classical mathematical eigenvalue problem is defined as the solution of the following equation: Avn = λvn ; n = 1, 2, . . . , N Eigen Problem reveals the following facts; 1 A is a n matrix either real or complex. 2 n is small (1000,2000,. . . ) 3 Calculate all the Eigenvalue. Eigenvectors? The generalised eigenvalue problem is; Avn = Bλvn Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 4. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References Power Method The power iteration is a very simple algorithm. It does not decompose the matrix and thus it can be used when A is a large matrix. Nevertheless, it will find only one eigenvalue (one with the greatest absolute value) and it may converge only slowly. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 5. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References The power method algorithm is highlighted below; u (0) = x0 k=1 Repeat w = Au (k−1) λ = entry of u with the largest magnitude. u (k) = wλ k ←k +1 until u (k) − u (k−1) < Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 6. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References Inverse Power Method Inverse iteration is also an iterative eigenvalue algorithm.From the power method, the method seeks to improve the performance While the power method always converges to the largest eigenvalue, inverse iteration also enables the choice of eigenvalue to converge to. The inverse iteration algorithm converges fairly quickly.However, we can achieve even faster convergence by using a better eigenvalue approximation each time (Rayleigh quotient iteration). The inverse iteration algorithm requires solving a linear system at each step. This would appear to require O(n3 ) operations. However, this can be reduced to O(n2 ) if we first reduce A to Hessenberg form. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 7. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References To get the eigenvalue of A closet to q Eigenvalue of (A − qI )−1 1 1 1 = λ1 −q , λ2 −q , . . . , λn −q Suppose λk is the eigenvalue of A closet to q. Thus the modification on the power algorithm is; w (k) = (A − qI )−1 u (k−1) Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 8. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References QR Decomposition QR Decomposition is the factorization of a matrix into an orthogonal and a right triangular matrix; A = QR where Q is an orthogonal matrix (meaning thatQ T Q = I ) and R is an upper triangular matrix (also called right triangular matrix). Although the QR factorization is more computationally rigorous than the LU factorization the method offers superior stability properties. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 9. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References The QR decomposition is usually calculated using the following ways; 1 Gram-Schmidt process; 2 Householder reflections; and 3 Givens rotations. Mostly used process is the Householder reflection because it has greater numerical stability than the Gram-Schmidt method. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 10. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Householder Transformation If X and Y are vectors with the same norm, there exists an orthogonal symmetric matrix P such that; Y = PX where P = I − 2WW T and X −Y W = X −Y . Since P is both orthogonal and symmetric, it follows that P −1 = P. * * * * * * * * * * * * * * * * * * * Conclusion; X = * * * * * and Y = * * * * * * * * * * * * * * * * Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 11. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm The overall stability theory for the QR algorithm was given by Wilkinson’s in 1965 in his work the algebraic eigenvalue problem. We now investigate a well known and efficient method for finding all the eigenvalues of a general n × n real matrix; but working with a general matrix takes many iterations and becomes expensive and time consuming. Therefore the QR Method works much faster on special matrices, hence the reason to decompose the general matrices to a Hessenberg form. Hessenberg matrix is one that is ”almost” triangular. To be exact, an upper Hessenberg matrix has zero entries below the first subdiagonal. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 12. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm Implementation To find eigenvalues of a real matrix A using the QR factorization, we will generate a sequence of matrices A(m) that are orthogonal and similar to A, the QR proceeds by forming a sequences of matrices A = A(1) , A(2) , . . . , as follows. 1 A(1) = A is factored as a product A(1) = Q (1) R (1) , where Q (1) is orthogonal and R (1) is upper triangular. 2 A(2) is defined as A(2) = R (1) Q (1) . Thus if the eigenvalues satisfy |λ1 | > |λ2 | > . . . > |λ2 |, the iterates converge to T , an upper triangular matrix with the eigenvalues on the diagonal. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 13. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm Given A ∈ R n×n Define A1 = A For k = 1, 2, . . . , do Calculate the QR decomposition Ak = Qk Rk , Define Ak+1 = Ak . Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 14. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Techniques used to Accelerate Convergence Deflation Aggressive deflation (due to Francis 1961, Watkins 1995) Ad hoc shifts Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 15. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References References 1 Burden and Faires , Numerical Analysis , 8th Edition 2 Laurene V. Fausett, Applied Numerical Analysis Using MATLAB, 2nd Edition 3 Marco Latini ,The QR Algorithm, Past and Future 4 Wikipedia 5 Dr. Shafiu Jibrin, Numerical Analysis notes. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm