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*

定義ていぎする。ここで Σ+ は、Σ非零特異値ひぜろとくいち σi1/σ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場合ばあいは、これらのしきATA*置換ちかんする。れつ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 value2,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 projectionA+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+bAx-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+bb到達可能とうたつかのう部分ぶぶん、つまり A列空間れつくうかんcolumn spaceもっとちかてんあらわす。

一方いっぽうA+ARow(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)Tbspan{(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
タブを全て閉じる