第22章付録:深層学習のための数学
22.2.5. Gershgorin Circle Theorem22.2.5 ゲルシュゴリンの円定理
Eigenvalues are often difficult to reason with intuitively. If presented an arbitrary matrix, there is little that can be said about what the eigenvalues are without computing them. There is, however, one theorem that can make it easy to approximate well if the largest values are on the diagonal.
英語のヒント
固有値は、直観的に推論するのが難しいことが多い。任意の行列を示されても、計算せずに固有値について言えることはほとんどない。しかし、最大の値が対角にある場合に、よい近似を簡単に与えてくれる定理が一つある。
Let be any square matrix (). We will define . Let represent the disc in the complex plane with center radius . Then, every eigenvalue of is contained in one of the .
英語のヒント
を任意の正方行列()とする。と定義する。を、中心がで半径がの、複素平面上の円板とする。すると、のすべての固有値は、いずれかのに含まれる。
This can be a bit to unpack, so let’s look at an example. Consider the matrix:
英語のヒント
これは少しわかりにくいかもしれないので、例を見よう。次の行列を考える。
(22.2.15)
We have , , and . The matrix is symmetric, so all eigenvalues are real. This means that all of our eigenvalues will be in one of the ranges of
英語のヒント
、、、である。行列は対称なので、すべての固有値は実数である。これは、すべての固有値が次の範囲のいずれかに入ることを意味する。
(22.2.16)
(22.2.17)
(22.2.18)
(22.2.19)
Performing the numerical computation shows that the eigenvalues are approximately , , , , all comfortably inside the ranges provided.
英語のヒント
数値計算を行うと、固有値はおよそ、、、であり、どれも与えられた範囲の中に余裕をもって収まっている。
A = torch.tensor([[1.0, 0.1, 0.1, 0.1],
[0.1, 3.0, 0.2, 0.3],
[0.1, 0.2, 5.0, 0.5],
[0.1, 0.3, 0.5, 9.0]])
v, _ = torch.linalg.eig(A)
vtensor([0.9923+0.j, 9.0803+0.j, 4.9539+0.j, 2.9734+0.j])In this way, eigenvalues can be approximated, and the approximations will be fairly accurate in the case that the diagonal is significantly larger than all the other elements.
英語のヒント
このようにして固有値を近似でき、対角成分がほかのすべての要素よりかなり大きい場合には、その近似はかなり正確になる。
It is a small thing, but with a complex and subtle topic like eigendecomposition, it is good to get any intuitive grasp we can.
英語のヒント
小さなことだが、固有値分解のような複雑で微妙な話題では、得られる直観的な理解は何でも得ておくのがよい。