Eigenproblems II: Computation

Similar documents
Announce Statistical Motivation Properties Spectral Theorem Other ODE Theory Spectral Embedding. Eigenproblems I

Announce Statistical Motivation ODE Theory Spectral Embedding Properties Spectral Theorem Other. Eigenproblems I

Computational Methods. Eigenvalues and Singular Values

Conjugate Gradients I: Setup

Norms, Sensitivity and Conditioning

Numerical Methods I Eigenvalue Problems

Linear Algebra Review

Singular Value Decomposition

Orthogonal iteration to QR

In this section again we shall assume that the matrix A is m m, real and symmetric.

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for

Course Information Course Overview Study Skills Background Material. Introduction. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics

Today: eigenvalue sensitivity, eigenvalue algorithms Reminder: midterm starts today

Last Time. Social Network Graphs Betweenness. Graph Laplacian. Girvan-Newman Algorithm. Spectral Bisection

Math 405: Numerical Methods for Differential Equations 2016 W1 Topics 10: Matrix Eigenvalues and the Symmetric QR Algorithm

Numerical Analysis Lecture Notes

Optimization II: Unconstrained Multivariable

1 Number Systems and Errors 1

Linear Systems and LU

Computation of eigenvalues and singular values Recall that your solutions to these questions will not be collected or evaluated.

QR-decomposition. The QR-decomposition of an n k matrix A, k n, is an n n unitary matrix Q and an n k upper triangular matrix R for which A = QR

Section 4.4 Reduction to Symmetric Tridiagonal Form

Optimization II: Unconstrained Multivariable

Introduction to Applied Linear Algebra with MATLAB

EECS 275 Matrix Computation

APPLIED NUMERICAL LINEAR ALGEBRA

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

Orthogonal iteration to QR

Iterative methods for symmetric eigenvalue problems

5.3 The Power Method Approximation of the Eigenvalue of Largest Module

Linear algebra & Numerical Analysis

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Eigenvalue Problems and Singular Value Decomposition

Linear Systems and LU

AMS526: Numerical Analysis I (Numerical Linear Algebra)

22.4. Numerical Determination of Eigenvalues and Eigenvectors. Introduction. Prerequisites. Learning Outcomes

Matrices, Moments and Quadrature, cont d

Solving large scale eigenvalue problems

Applied Linear Algebra in Geoscience Using MATLAB

ECS130 Scientific Computing Handout E February 13, 2017

Solving large scale eigenvalue problems

Lecture 10: October 27, 2016

Computing Eigenvalues and/or Eigenvectors;Part 2, The Power method and QR-algorithm

Iterative solvers for linear equations

Lecture # 11 The Power Method for Eigenvalues Part II. The power method find the largest (in magnitude) eigenvalue of. A R n n.

The QR Decomposition

Eigenvalues and eigenvectors

DIAGONALIZATION. In order to see the implications of this definition, let us consider the following example Example 1. Consider the matrix

ECS231 Handout Subspace projection methods for Solving Large-Scale Eigenvalue Problems. Part I: Review of basic theory of eigenvalue problems

13-2 Text: 28-30; AB: 1.3.3, 3.2.3, 3.4.2, 3.5, 3.6.2; GvL Eigen2

Lecture 12 Eigenvalue Problem. Review of Eigenvalues Some properties Power method Shift method Inverse power method Deflation QR Method

Eigenvalue Problems. Eigenvalue problems occur in many areas of science and engineering, such as structural analysis

Scientific Computing: An Introductory Survey

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

18.06 Problem Set 8 - Solutions Due Wednesday, 14 November 2007 at 4 pm in

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

Numerical methods for eigenvalue problems

A PRIMER ON SESQUILINEAR FORMS

EIGENVALUE PROBLEMS. Background on eigenvalues/ eigenvectors / decompositions. Perturbation analysis, condition numbers..

Iterative Methods for Solving A x = b

LINEAR ALGEBRA: NUMERICAL METHODS. Version: August 12,

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

CS 246 Review of Linear Algebra 01/17/19

Lecture notes: Applied linear algebra Part 1. Version 2

Tutorials in Optimization. Richard Socher

Iterative solvers for linear equations

Linear Algebra. Brigitte Bidégaray-Fesquet. MSIAM, September Univ. Grenoble Alpes, Laboratoire Jean Kuntzmann, Grenoble.

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Matrix Algorithms. Volume II: Eigensystems. G. W. Stewart H1HJ1L. University of Maryland College Park, Maryland

Quantum Computing Lecture 2. Review of Linear Algebra

Iterative solvers for linear equations

Numerical Methods in Matrix Computations

Least squares and Eigenvalues

Chapter 8 Gradient Methods

Final Examination. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics (Fall 2013), Stanford University

Computing Eigenvalues and/or Eigenvectors;Part 2, The Power method and QR-algorithm

AN ITERATION. In part as motivation, we consider an iteration method for solving a system of linear equations which has the form x Ax = b

EIGENVALUE PROBLEMS. EIGENVALUE PROBLEMS p. 1/4

Ma/CS 6b Class 23: Eigenvalues in Regular Graphs

Preconditioned inverse iteration and shift-invert Arnoldi method

AMS526: Numerical Analysis I (Numerical Linear Algebra)

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

Motivation: Sparse matrices and numerical PDE's

ECE 595, Section 10 Numerical Simulations Lecture 7: Optimization and Eigenvalues. Prof. Peter Bermel January 23, 2013

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

MAA507, Power method, QR-method and sparse matrix representation.

and let s calculate the image of some vectors under the transformation T.

EIGENVALUE PROBLEMS (EVP)

EXAM. Exam 1. Math 5316, Fall December 2, 2012

For each problem, place the letter choice of your answer in the spaces provided on this page.

The goal of this chapter is to study linear systems of ordinary differential equations: dt,..., dx ) T

Math 108b: Notes on the Spectral Theorem

We will discuss matrix diagonalization algorithms in Numerical Recipes in the context of the eigenvalue problem in quantum mechanics, m A n = λ m

Numerical Methods - Numerical Linear Algebra

Mathematical foundations - linear algebra

Index. for generalized eigenvalue problem, butterfly form, 211

Double-shift QR steps

Lecture 10: Eigenvectors and eigenvalues (Numerical Recipes, Chapter 11)

Math 411 Preliminaries

December 20, MAA704, Multivariate analysis. Christopher Engström. Multivariate. analysis. Principal component analysis

Transcription:

Eigenproblems II: Computation CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Doug James (and Justin Solomon) CS 205A: Mathematical Methods Eigenproblems II: Computation 1 / 31

Setup A R n n symmetric x 1,..., x n R n eigenvectors λ 1 λ 2 λ n eigenvalues CS 205A: Mathematical Methods Eigenproblems II: Computation 2 / 31

Setup A R n n symmetric x 1,..., x n R n eigenvectors λ 1 λ 2 λ n eigenvalues Review (Spectral Theorem): What do we know about the eigenvectors? CS 205A: Mathematical Methods Eigenproblems II: Computation 2 / 31

Usual Trick v R n v = c 1 x 1 + + c n x n CS 205A: Mathematical Methods Eigenproblems II: Computation 3 / 31

Observation λ k 1 ( A k v = ( ) k ( ) ) k c 1 x 1 + λ2 λ λ c2 1 x 2 + + n λ cn 1 x n CS 205A: Mathematical Methods Eigenproblems II: Computation 4 / 31

For Large k A k v λ k 1c 1 x 1 (assuming λ 2 < λ 1 and c 1 0) CS 205A: Mathematical Methods Eigenproblems II: Computation 5 / 31

Power Iteration v k = A v k 1 CS 205A: Mathematical Methods Eigenproblems II: Computation 6 / 31

Power Iteration v k = A v k 1 Question: What if λ 1 > 1? CS 205A: Mathematical Methods Eigenproblems II: Computation 6 / 31

Normalized Power Iteration w k = A v k 1 v k = w k w k CS 205A: Mathematical Methods Eigenproblems II: Computation 7 / 31

Normalized Power Iteration w k = A v k 1 v k = w k w k Question: Which norm? CS 205A: Mathematical Methods Eigenproblems II: Computation 7 / 31

Eigenvalues of Inverse Matrix A v = λ v = A 1 v = 1 λ v CS 205A: Mathematical Methods Eigenproblems II: Computation 8 / 31

Eigenvalues of Inverse Matrix A v = λ v = A 1 v = 1 λ v Question: What is the largest-magnitude eigenvalue? CS 205A: Mathematical Methods Eigenproblems II: Computation 8 / 31

Inverse Iteration w k = A 1 v k 1 v k = w k w k CS 205A: Mathematical Methods Eigenproblems II: Computation 9 / 31

Inverse Iteration w k = A 1 v k 1 v k = w k w k Question: How to make faster? CS 205A: Mathematical Methods Eigenproblems II: Computation 9 / 31

Inverse Iteration with LU Solve L y k = v k 1 Solve U w k = y k Normalize v k = w k w k CS 205A: Mathematical Methods Eigenproblems II: Computation 10 / 31

Eigenvalues of Shifted Matrix A v = λ v = (A σi) v = (λ σ) v CS 205A: Mathematical Methods Eigenproblems II: Computation 11 / 31

Shifted Inverse Iteration To find eigenvalue closest to σ: v k+1 = (A σi) 1 v k (A σi) 1 v k CS 205A: Mathematical Methods Eigenproblems II: Computation 12 / 31

Heuristic: Convergence Rate Recall power iteration: λ k 1 ( A k v = ( ) k ( ) ) k c 1 x 1 + λ2 λ λ c2 1 x 2 + + n λ cn 1 x n CS 205A: Mathematical Methods Eigenproblems II: Computation 13 / 31

Strategy for Better Convergence For power iteration, find σ with λ 2 σ λ 1 σ < λ 2 λ 1 CS 205A: Mathematical Methods Eigenproblems II: Computation 14 / 31

Least-Squares Approximation If v 0 is approximately an eigenvector: arg min λ A v 0 λ v 0 2 2 = v 0 A v 0 v 0 2 2 CS 205A: Mathematical Methods Eigenproblems II: Computation 15 / 31

Rayleigh Quotient Iteration w k = (A σ k I) 1 v k 1 v k = w k w k σ k+1 = v k A v k v k 2 2 CS 205A: Mathematical Methods Eigenproblems II: Computation 16 / 31

Rayleigh Quotient Iteration w k = (A σ k I) 1 v k 1 v k = w k w k σ k+1 = v k A v k v k 2 2 Efficiency per iteration vs. number of iterations? CS 205A: Mathematical Methods Eigenproblems II: Computation 16 / 31

Unlikely Failure Mode for Iteration What is v 0? CS 205A: Mathematical Methods Eigenproblems II: Computation 17 / 31

Unlikely Failure Mode for Iteration What is v 0? What happens when v 0 x 1 = 0? CS 205A: Mathematical Methods Eigenproblems II: Computation 17 / 31

Bug or Feature? 1. Compute x 0 via power iteration. 2. Project x 0 out of v 0. 3. Compute x 1 via power iteration. 4. Project span { x 0, x 1 } out of v 0. 5. CS 205A: Mathematical Methods Eigenproblems II: Computation 18 / 31

Bug or Feature? 1. Compute x 0 via power iteration. 2. Project x 0 out of v 0. 3. Compute x 1 via power iteration. 4. Project span { x 0, x 1 } out of v 0. 5. Assumption: A is symmetric. CS 205A: Mathematical Methods Eigenproblems II: Computation 18 / 31

Avoiding Numerical Drift Do power iteration on P AP where P projects out known eigenvectors. Deflation Modify A so that power iteration reveals an eigenvector you have not yet computed. CS 205A: Mathematical Methods Eigenproblems II: Computation 19 / 31

Similarity Transformations Similar matrices Two matrices A and B are similar if there exists T with B = T 1 AT. CS 205A: Mathematical Methods Eigenproblems II: Computation 20 / 31

Similarity Transformations Similar matrices Two matrices A and B are similar if there exists T with B = T 1 AT. Proposition Similar matrices have the same eigenvalues. CS 205A: Mathematical Methods Eigenproblems II: Computation 20 / 31

Householder Asymmetric Deflation H x 1 = e 1 = HAH e 1 = HAH e 1 by symmetry = HA x 1 since H 2 = I = λ 1 H x 1 = λ 1 e 1 CS 205A: Mathematical Methods Eigenproblems II: Computation 21 / 31

Householder Asymmetric Deflation HAH = ( λ 1 b 0 B ) Similarity transform of A = same eigenvalues. CS 205A: Mathematical Methods Eigenproblems II: Computation 22 / 31

Householder Asymmetric Deflation HAH = ( λ 1 b 0 B ) Similarity transform of A = same eigenvalues. Do power iteration on B. CS 205A: Mathematical Methods Eigenproblems II: Computation 22 / 31

Householder Asymmetric Deflation HAH = ( λ 1 b 0 B ) Similarity transform of A = same eigenvalues. Do power iteration on B. Reveals eigenvalues + vectors one at a time. CS 205A: Mathematical Methods Eigenproblems II: Computation 22 / 31

<warning> Justin s favorite algorithm. Ever. </warning> CS 205A: Mathematical Methods Eigenproblems II: Computation 23 / 31

Conjugation without Inversion Q 1 = Q = Q 1 AQ = Q AQ CS 205A: Mathematical Methods Eigenproblems II: Computation 24 / 31

Conjugation without Inversion Q 1 = Q = Q 1 AQ = Q AQ But which Q? Should involve matrix structure but be easy to compute. CS 205A: Mathematical Methods Eigenproblems II: Computation 24 / 31

Experiment A = QR Q 1 AQ =? CS 205A: Mathematical Methods Eigenproblems II: Computation 25 / 31

QR Iteration A 1 = A Factor A k = Q k R k Multiply A k+1 = R k Q k CS 205A: Mathematical Methods Eigenproblems II: Computation 26 / 31

Commutativity Lemma Take A, B R n n. Suppose that the eigenvectors of A span R n and have distinct eigenvalues. Then, AB = BA if and only if A and B have the same set of eigenvectors (with possibly different eigenvalues). CS 205A: Mathematical Methods Eigenproblems II: Computation 27 / 31

If QR Iteration Converges A = Q R = R Q (Convergence proof in book.) CS 205A: Mathematical Methods Eigenproblems II: Computation 28 / 31

Starting Point (A + δa)( x + δ x) = (λ + δλ)( x + δ x) CS 205A: Mathematical Methods Eigenproblems II: Computation 29 / 31

Starting Point (A + δa)( x + δ x) = (λ + δλ)( x + δ x) What are the independent and dependent variables? CS 205A: Mathematical Methods Eigenproblems II: Computation 29 / 31

Starting Point (A + δa)( x + δ x) = (λ + δλ)( x + δ x) What are the independent and dependent variables? Approximation: Aδ x + δa x λδ x + δλ x CS 205A: Mathematical Methods Eigenproblems II: Computation 29 / 31

Trick: Left Eigenvector A x = λ x, x 0 = y 0 such that A y = λ y CS 205A: Mathematical Methods Eigenproblems II: Computation 30 / 31

Change in Eigenvalue δλ δa 2 y x CS 205A: Mathematical Methods Eigenproblems II: Computation 31 / 31

Change in Eigenvalue δλ δa 2 y x What about symmetric A? Next CS 205A: Mathematical Methods Eigenproblems II: Computation 31 / 31