markdown
擬似逆行列の基本md 0476f35
lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md
Download PDF

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixの基本きほん

date2026-07-14document_iddoc_6eba467a0347e7066e9c67f646f47240description擬似逆行列を、逆行列が存在しない場合にも最小二乗解と最小ノルム解を統一的に記述するための行列として整理する講義である。prerequisites特異値分解の入口 / 最小二乗法の基本 / 逆行列の基本type講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/linear-algebra-portal.lecture.n.md / data/lecture/math/linear-algebra/introduction-to-singular-value-decomposition.lecture.n.md / data/lecture/math/linear-algebra/least-squares-basics.lecture.n.md / data/lecture/math/linear-algebra/inverse-matrix-basics.lecture.n.md / data/exercise/math/linear-algebra/eigenvalues-diagonalization-and-extensions.exercise.n.md
mathlinear-algebraundergraduatelecture

Basics of the pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ

1導入どうにゅう

この講義こうぎで重要じゅうようなのは、擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、逆行列ぎゃくぎょうれつinverse matrixが存在そんざいしない行列ぎょうれつmatrixに対たいしても、最小二乗解さいしょうにじょうかいと最小さいしょうノルム解かいを統一的とういつてきに与あたえる道具どうぐであるということである。

逆行列ぎゃくぎょうれつinverse matrixは正方行列せいほうぎょうれつsquare matrixで、しかも情報じょうほうを失うしなわない場合ばあいにだけ存在そんざいする。しかし、長方行列ちょうほうぎょうれつや階数落かいすうおちの行列ぎょうれつmatrixにおいても、近似解きんじかいや代表解だいひょうかいを必要ひつようとする状況じょうきょうは多おおい。擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、その状況じょうきょうを線型代数せんけいだいすうの言葉ことばで処理しょりする。

1Introduction

The key point of this lecture is that the pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ extends the idea of an inverse matrix逆行列ぎゃくぎょうれつ to matrices that are rectangular or rank階数かいすう-deficient, and it does so by selecting least-squares and least-norm solutions.

An inverse matrix逆行列ぎゃくぎょうれつ exists only for square matrices that lose no information. But rectangular or rank階数かいすう-deficient matrices still occur constantly in approximation and data problems. The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ gives a canonical linear-algebraic way to handle them.

2用語ようごと定義ていぎ

ムーア・ペンローズ擬似逆行列ぎじぎゃくぎょうれつMoore-Penrose pseudoinverse とは、行列ぎょうれつmatrix A の特異値分解とくいちぶんかいsingular value decompositionSVDから定義ていぎされる行列ぎょうれつmatrixである。実行列じつぎょうれつでは

A=UΣVT

に対たいして

A+=VΣ+UT

で定義ていぎする。複素行列ふくそぎょうれつでは

A=UΣV*

に対たいして

A+=VΣ+U*

で定義ていぎする。ここで Σ+ は、Σ の非零特異値ひぜろとくいち σi を 1/σi に置換ちかんし、転置てんちした形かたちの行列ぎょうれつmatrixである。

2Terms and definitions

The Moore-Penrose pseudoinverseムーア・ペンローズ擬似逆行列ぎじぎゃくぎょうれつ is defined from SVD. In the real case, if

A=UΣVT,

then

A+=VΣ+UT.

In the complex case, if

A=UΣV*,

then

A+=VΣ+U*.

Here Σ+ is formed by replacing each nonzero singular value特異値とくいち σi by 1/σi and transposing the rectangular diagonal shape.

3方針ほうしん

方針ほうしんは、特異値分解とくいちぶんかいsingular value decompositionSVDにより行列ぎょうれつmatrixの作用さようを直交変換ちょっこうへんかんと伸縮しんしゅくへ分解ぶんかいし、非零ひぜろの伸縮方向しんしゅくほうこうだけを反転はんてんすることである。零特異値ぜろとくいちの方向ほうこうは情報じょうほうが消失しょうしつするため、逆変換ぎゃくへんかんを定義ていぎしない。

data/lecture/math/linear-algebra/introduction-to-singular-value-decomposition.lecture.n.md

3Plan

Use SVD to decompose the action of A into orthogonal/unitary changes of coordinates and nonnegative stretching. Reverse only the nonzero stretching directions. Directions with zero singular value特異値とくいち have lost information, so they cannot be inverted.

data/lecture/math/linear-algebra/introduction-to-singular-value-decomposition.lecture.n.md

4直感的ちょっかんてきな説明せつめい

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、可能かのうな範囲はんいで逆向ぎゃくむきの操作そうさoperationを実行じっこうする行列ぎょうれつmatrixである。

A がある方向ほうこうを 3 倍ばいするなら、A+ はその方向ほうこうを 1/3 倍ばいする。A がある方向ほうこうを 0 に潰つぶすなら、その情報じょうほうは復元不能ふくげんふのうであるため、A+ はその方向ほうこうを復元ふくげんしない。

4Intuitive explanation

The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ reverses what can be reversed. If A multiplies a direction by 3, then A+ multiplies that direction by 1/3. If A collapses a direction to zero, the information is gone, and A+ does not attempt to reconstruct it.

5厳密げんみつな説明せつめい

5.11. 正則行列せいそくぎょうれつでは逆行列ぎゃくぎょうれつinverse matrixに一致いっちする

A が正則せいそくなら、すべての特異値とくいちsingular valueが正せいである。この場合ばあい、Σ+ は Σ-1 に一致いっちし、

A+=A-1

である。擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは逆行列ぎゃくぎょうれつinverse matrixの拡張かくちょうである。

5.22. 最小二乗解さいしょうにじょうかい

連立一次方程式れんりついちじほうていしきsystem of linear equations

Ax=b

が解かいを持もたない場合ばあい、A+b は

∥Ax-b∥

を最小化さいしょうかする解かいのうち、ノルムが最小さいしょうのものを与あたえる。

[PARSE ERROR: Undefined("Command(\"boxed\")")]x=A+b

5.33. 階数条件かいすうじょうけんによる公式こうしき

A の列れつcolumnが一次独立いちじどくりつlinear independenceなら、

A+=(ATA)-1AT

である。これは正規方程式せいきほうていしきから得えられる最小二乗公式さいしょうにじょうこうしきである。

A の行ぎょうrowが一次独立いちじどくりつlinear independenceなら、

A+=AT(AAT)-1

である。この場合ばあいは、解かいが複数ふくすう存在そんざいするときに最小さいしょうノルム解かいを選択せんたくする。

複素ふくそcomplexの場合ばあいは、これらの式しきの AT を A* に置換ちかんする。列れつcolumnが一次独立いちじどくりつlinear independenceなら

A+=(A*A)-1A*

であり、行ぎょうrowが一次独立いちじどくりつlinear independenceなら

A+=A*(AA*)-1

である。

5.44. ペンローズの 4 条件じょうけん

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは SVD による構成こうせいだけでなく、次つぎの 4 条件じょうけんによって一意いちいに特徴とくちょうづけられる。

AA+A=A
A+AA+=A+
(AA+)*=AA+
(A+A)*=A+A

これらをペンローズの条件じょうけんという。前半ぜんはん 2 式しきは「可能かのうな範囲はんいで逆操作ぎゃくそうさとして機能きのうする」ことを表あらわし、後半こうはん 2 式しきは得えられる射影しゃえいprojectionが直交射影ちょっこうしゃえいorthogonal projectionであることを保証ほしょうする。

5.55. 射影しゃえいprojectionとしての AA+ と A+A

A のコンパクト SVD を

A=UrΣrVr*

とすると、

AA+=UrUr*

であり、これは Col(A) への直交射影ちょっこうしゃえいorthogonal projectionである。また

A+A=VrVr*

であり、これは行空間ぎょうくうかんrow spaceへの直交射影ちょっこうしゃえいorthogonal projectionである。実行列じつぎょうれつでは * を T に置換ちかんする。

5Precise explanation

5.11. Agreement with the inverse

If A is invertible可逆かぎゃく, all singular values特異値とくいち are positive and Σ+=Σ-1. Therefore

A+=A-1.

Thus the pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ is a genuine extension of the inverse.

5.22. Least squares and least norm

If Ax=b has no solution, then

x=A+b

minimizes ∥Ax-b∥ among all x, and among all minimizers it has the smallest norm. If Ax=b does have solutions, A+b is the solution with smallest norm.

To see this through SVD, write A=UΣV* and set U*b=c. The minimization becomes

miny∥Σy-c∥.

For σi>0, the best choice is yi=ci/σi. For σi=0, changing yi cannot reduce the residual, so the least-norm choice is yi=0. This is exactly

x=VΣ+U*b=A+b.

5.33. rank階数かいすう-condition formulas

If the columns of A are linearly independent, then

A+=(ATA)-1AT

in the real case, and

A+=(A*A)-1A*

in the complex case.

If the rows of A are linearly independent, then

A+=AT(AAT)-1

in the real case, and

A+=A*(AA*)-1

in the complex case.

5.44. Penrose conditions

The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ is also uniquely characterized by the four Penrose equations:

AA+A=A,
A+AA+=A+,
(AA+)*=AA+,
(A+A)*=A+A.

The first two equations say that the map behaves like an inverse on the parts where inversion is possible. The last two say that the resulting projections are orthogonal projections.

5.55. Projection meaning of AA+ and A+A

If the compact SVD is

A=UrΣrVr*,

then

AA+=UrUr*

is the orthogonal projection直交射影ちょっこうしゃえい onto Col(A), and

A+A=VrVr*

is the orthogonal projection直交射影ちょっこうしゃえい onto the row space行空間ぎょうくうかん. In the real case, replace * by T.

Thus AA+b is the reachable part of b inside the column space列空間れつくうかん, while A+A removes unnecessary nullspace components from a coefficient vector.

6具体例ぐたいていれい

A=(2000)

とする。この行列ぎょうれつmatrixは第二成分だいにせいぶんを消去しょうきょするため、正則せいそくではない。特異値とくいちsingular valueは 2,0 である。したがって

A+=(1/2000)

である。失うしなわれた第二成分だいにせいぶんは復元ふくげんされない。

この例れいでは

AA+=(1000),A+A=(1000)

である。どちらも第一成分だいいちせいぶんの軸じくへの直交射影ちょっこうしゃえいorthogonal projectionであり、消去しょうきょされた第二成分だいにせいぶんを復元ふくげんしない。

6Concrete examples

For

A=(2000),

the singular values特異値とくいち are 2 and 0, so

A+=(1/2000).

The lost second component is not reconstructed.

For the rectangular matrix長方行列ちょうほうぎょうれつ

A=(11),

we have

A+=(ATA)-1AT=12(11).

For b=(1,3)T,

A+b=2.

Then Ax=(2,2)T is the orthogonal projection直交射影ちょっこうしゃえい of b onto span{(1,1)T}. This is the operation of averaging the two measurements 1 and 3.

7射影しゃえいprojectionとしての見方みかたと数値計算上すうちけいさんじょうの注意ちゅうい

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、射影しゃえいprojectionとも密接みっせつに関係かんけいする。AA+ は列空間れつくうかんcolumn spaceへの直交射影ちょっこうしゃえいorthogonal projection、A+A は行空間ぎょうくうかんrow spaceへの直交射影ちょっこうしゃえいorthogonal projectionとして解釈かいしゃくできる。

数値計算すうちけいさんでは、極端きょくたんに小ちいさい特異値とくいちsingular valueをそのまま逆数ぎゃくすうにすると誤差ごさが増幅ぞうふくされる。そのため、小ちいさい特異値とくいちsingular valueを除外じょがいする切断せつだん SVD

Ak+=∑i=1kσi-1viui*

や、σi-1 の代かわりに σi/(σi2+λ) を用もちいる正則化せいそくかが利用りようされる。

7Projection viewpoint and numerical warning

The pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ is closely related to projection. The matrix AA+ can be interpreted as the orthogonal projection直交射影ちょっこうしゃえい onto the column space列空間れつくうかん, and A+A can be interpreted as the orthogonal projection onto the row space行空間ぎょうくうかん.

If a singular value特異値とくいち is nonzero but extremely small, its reciprocal is extremely large. Then A+ can amplify small errors in b. In practice, truncated SVD or Tikhonov regularization is often used to suppress the effect of very small singular values特異値とくいち.

In truncated SVD one uses

Ak+=∑i=1kσi-1viui*

after keeping only selected singular values. In Tikhonov regularization, the factor σi-1 is replaced by σi/(σi2+λ).

8判定基準はんていきじゅん

  • 擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは特異値分解とくいちぶんかいsingular value decompositionSVDから定義ていぎされる。
  • 非零特異値ひぜろとくいちだけを逆数ぎゃくすうにする。
  • 正則行列せいそくぎょうれつでは通常つうじょうの逆行列ぎゃくぎょうれつinverse matrixと一致いっちする。
  • ペンローズの 4 条件じょうけんにより一意いちいに定さだまる。
  • 解かいが存在そんざいしない場合ばあいは最小二乗解さいしょうにじょうかいを与あたえる。
  • 解かいが複数ふくすう存在そんざいする場合ばあいは最小さいしょうノルム解かいを選択せんたくする。

8Criteria

  • The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ is defined from SVD.
  • Only nonzero singular values特異値とくいち are inverted.
  • For invertible可逆かぎゃく matrices, it equals the ordinary inverse.
  • The Penrose conditions characterize it uniquely.
  • In inconsistent systems, it gives a least-squares solution最小二乗解さいしょうにじょうかい.
  • In underdetermined or nonunique systems, it gives the least-norm solution最小さいしょうノルム解かい.

9どこまで成立せいりつするか

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは任意にんいの実行列じつぎょうれつ・複素行列ふくそぎょうれつに定義ていぎできる。ただし特異値とくいちsingular valueが極端きょくたんに小ちいさい場合ばあい、逆数ぎゃくすうが大おおきくなり、数値的不安定性すうちてきふあんていせいが生しょうじる。この場合ばあいは切断特異値分解せつだんとくいちぶんかいや正則化せいそくかを検討けんとうする。

9Scope and limitations

The pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ exists for every real or complex matrix. However, when singular values特異値とくいち are extremely small, the exact pseudoinverse擬似逆行列ぎじぎゃくぎょうれつ may be numerically unstable. In that case, truncated SVD or regularization should be considered.

10命題めいだい:A+b が選えらぶ解かい

擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、Ax=b の状況じょうきょうに応おうじて次つぎの意味いみを持もつ。

  • Ax=b が解かいを持もつ場合ばあい、A+b はその解かいの中なかでノルムnormが最小さいしょうのものを与あたえる。
  • Ax=b が解かいを持もたない場合ばあい、A+b は ∥Ax-b∥ を最小さいしょうにする解かいの中なかでノルムnormが最小さいしょうのものを与あたえる。

SVD で A=UΣV* と書かき、U*b=c と置おくと、問題もんだいは

miny∥Σy-c∥

へ変換へんかんされる。Σ は対角方向たいかくほうこうの伸縮しんしゅくだけなので、σi>0 の方向ほうこうでは yi=ci/σi と決きまり、σi=0 の方向ほうこうでは yi は残差ざんさを減へらせない。そこで最小さいしょうノルムにするため yi=0 を選えらぶ。この選択せんたくが

x=A+b=VΣ+U*b

である。

11射影しゃえいの意味いみを確認かくにんする

AA+ は Col(A) への直交射影ちょっこうしゃえいorthogonal projectionである。したがって AA+b は b の到達可能とうたつかのうな部分ぶぶん、つまり A の列空間れつくうかんcolumn spaceに最もっとも近ちかい点てんを表あらわす。

一方いっぽう、A+A は Row(A) への直交射影ちょっこうしゃえいorthogonal projectionである。これは x から ker(A) 方向ほうこうの余分よぶんな成分せいぶんを除のぞき、最小さいしょうノルムの代表元だいひょうげんを選えらぶ操作そうさである。

12計算例けいさんれい:長方行列ちょうほうぎょうれつの擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrix

A=(11)

とする。これは R から R2 への写像しゃぞうで、x を (x,x) に送おくる。列れつcolumnは一次独立いちじどくりつなので

A+=(ATA)-1AT=12(11).

b=(1,3)T に対たいして

A+b=2

であり、Ax=(2,2)T が b の span{(1,1)T} への直交射影ちょっこうしゃえいorthogonal projectionになる。これは 2 点てん 1,3 の平均へいきんを取とる操作そうさと同おなじである。

13落おとし穴あな:小ちいさい特異値とくいちsingular value

σi が 0 ではないが非常ひじょうに小ちいさい場合ばあい、1/σi は非常ひじょうに大おおきくなり、b の小ちいさな誤差ごさを大おおきく増幅ぞうふくする。このため、理論上りろんじょうの A+ がいつも数値的すうちてきに良よい選択せんたくとは限かぎらない。実務じつむでは切断せつだん SVD や Tikhonov 正則化せいそくかを使つかい、小ちいさな特異値とくいちsingular valueの逆数ぎゃくすうを抑おさえる。

14最終形さいしゅうけい

[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣVT,A+=VΣ+UT
[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣV*,A+=VΣ+U*(complexcase)
[PARSE ERROR: Undefined("Command(\"boxed\")")]x=A+b
[PARSE ERROR: Undefined("Command(\"boxed\")")]A+=(ATA)-1ATifcolumnsareindependent
[PARSE ERROR: Undefined("Command(\"boxed\")")]AA+=projCol(A),A+A=projRow(A)

10Theorem: what A+b selects

The pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ has the following meaning for Ax=b.

  • If Ax=b has solutions, A+b is the solution with minimum normノルム.
  • If Ax=b has no solution, A+b is the minimum-norm solution among the minimizers of ∥Ax-b∥.

Using the SVD A=UΣV* and writing U*b=c, the problem becomes

miny∥Σy-c∥.

Since Σ only stretches along diagonal directions, directions with σi>0 force yi=ci/σi. Directions with σi=0 cannot reduce the residual, so the minimum-norm choice sets those yi to 0. This gives

x=A+b=VΣ+U*b.

11Projection meaning

AA+ is the orthogonal projection直交射影ちょっこうしゃえい onto Col(A). Thus AA+b is the reachable part of b, namely the closest point to b in the column space列空間れつくうかん of A.

On the other hand, A+A is the orthogonal projection直交射影ちょっこうしゃえい onto Row(A). It removes the unnecessary component in the ker(A) direction from x and selects the minimum-norm representative.

12Calculation example: pseudoinverse of a rectangular matrix

Let

A=(11).

This maps R to R2 by sending x to (x,x). The column is independent, so

A+=(ATA)-1AT=12(11).

For b=(1,3)T,

A+b=2,

and Ax=(2,2)T is the orthogonal projection直交射影ちょっこうしゃえい of b onto span{(1,1)T}. This is the same operation as averaging the two values 1 and 3.

13Pitfall: small singular values特異値とくいち

If σi is nonzero but very small, 1/σi is very large and can greatly amplify small errors in b. Therefore the theoretical A+ is not always the best numerical choice. In practice, truncated SVD or Tikhonov regularization is used to suppress reciprocals of small singular values特異値とくいち.

14Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣVT,A+=VΣ+UT
[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣV*,A+=VΣ+U*(complexcase)
[PARSE ERROR: Undefined("Command(\"boxed\")")]x=A+b
[PARSE ERROR: Undefined("Command(\"boxed\")")]A+=(ATA)-1ATifcolumnsareindependent
[PARSE ERROR: Undefined("Command(\"boxed\")")]AA+=projCol(A),A+A=projRow(A)

15一言ひとことでいうと

  • 擬似逆行列ぎじぎゃくぎょうれつpseudoinverse matrixは、逆行列ぎゃくぎょうれつinverse matrixを持もたない行列ぎょうれつmatrixに対たいして、射影しゃえいprojectionと最小化さいしょうかに基もとづく代表的だいひょうてきな逆操作ぎゃくそうさを与あたえる。

15In one sentence

The pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ gives the canonical inverse-like operation based on projection, least squares, and least-norm selection when an ordinary inverse is unavailable.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる