Accuracy, experiment 3

In this last experiment we will perform more specific tests, for comparing the accuracy of the proposed method with the methods, available in MATLAB.

The matrices $ S$ considered in the following examples are tridiagonal matrices having eigenvalues $ 2^0,2^1,\ldots,2^{n-1}$. They are constructed by reducing the matrix:

$\displaystyle Q^T {\mathrm{diag}}([2^0,2^1,\ldots,2^{n-1}]) Q,$    

to tridiagonal form. The matrix $ Q$ is an orthogonal matrix taken from the $ QR$-factorization of a random matrix. The diagonal and subdiagonal elements of the matrix $ T$ are generated by the MATLAB command RANDN. We computed the generalized eigenvalues for this problem by three methods. The method proposed in this manuscript and by the $ QZ$-method EIG(T,S,'QZ') implemented in MATLAB and by the Cholesky factorization as implemented in MATLAB EIG(T,S,'CHOL').

We plotted for all eigenpairs the following error. Remark that we normalized the eigenvectors:

$\displaystyle {\Vert T\mathbf{x}_i - \lambda_i S \mathbf{x}_i\Vert _2 }.$    

In the left of Figure 4 you can see the comparison of the different accuracies of the different methods. The right figure denotes the logarithm of the absolute values of the eigenvalues, to see which eigenvalues are the smallest ones in the left figure. It is shown that our method performs better for smaller eigenvalues than the Cholesky factorization approach of MATLAB. It performs slightly worse than the $ QZ$-approach, for small eigenvalues. One can also see that the new approach yields a behavior rather similar to the one of the Cholesky approach.

Figure 4: Accuracy of the eigenvalues/eigenvectors
\includegraphics[scale=0.45]{macc1} \includegraphics[scale=0.45]{macc2}

In the following four figures, we repeated the same experiment. A similar behavior as discussed in the previous figure is observed.

Figure 5: Accuracy of the eigenvalues/eigenvectors
\includegraphics[scale=0.45]{macc11} \includegraphics[scale=0.45]{macc12} \includegraphics[scale=0.45]{macc21} \includegraphics[scale=0.45]{macc22}

In Figure 6, we did not compare the individual error for each eigenpair, but we ran $ 20$ experiments (like the ones above) and plotted for each experiment individually the following error measure:

$\displaystyle {\Vert T E - S E \Lambda \Vert _2 },$    

the matrix $ E$ contains the eigenvectors and the matrix $ \Lambda$ is a diagonal matrix containing the eigenvalues on the diagonal. We can see that globally the new method delivers the most accurate results.

Figure 6: Global accuracy
\includegraphics[scale=0.45]{macc3}

Even though we sort of reshuffled the eigenvalues of the original matrix by performing the similarity transformation with the matrix $ Q$, and reducing the matrix to tridiagonal form, the matrix is still graded in some sense. The top left elements on the diagonal are much smaller than the elements in the bottom right position. We will now flip our matrix $ S$ upside down and from left to right, such that it becomes graded but in the wrong dimension.

In Figure 7 on the left, we plotted for one specific example the error of each eigenpair. We see that the Cholesky approach and the new method perform equally well. In the right figure, we plot again the global error of $ 20$ experiments. We see that the $ QZ$-method is the worst now, whereas the Cholesky approach is slightly better than the new method.

Figure 7: Individual accuracy and global accuracy
\includegraphics[scale=0.45]{macc5} \includegraphics[scale=0.45]{macc6}

Raphael Vandebril 2007-07-17