正規方程式
Contents
正規方程式
連立一次方程式 (線型方程式) $A\boldsymbol x=\boldsymbol b$ が与えられ、$A,\boldsymbol b$ が明らかであるとする。$A^\top A$ が正則であるならば、$A\boldsymbol x=\boldsymbol b$ を次式に変形することができ、これを正規方程式 (英:normal equation) と呼ぶ。
\[ \def\b{\boldsymbol} \begin{gathered} A^\top A\b x = A^\top\b b \\ \\ \begin{aligned} A\b x &= \begin{bmatrix} a_{11} & \cdots & a_{1n} \\ \vdots & \ddots & \vdots \\ a_{n1} & \cdots & a_{nn} \\ \end{bmatrix} \begin{bmatrix} x_1 \\ \vdots \\ x_n \\ \end{bmatrix} \\ \b b &= \begin{bmatrix} b_1 \\ \vdots \\ b_n \end{bmatrix} \end{aligned} \end{gathered} \]
正規方程式の解
$A^\top A$ が正則であるため、正規方程式は次式のように変形できる。よって $(A^{\top} A)^{-1} A^{\top}\boldsymbol{b}$ から、正規方程式の解 $\boldsymbol x$ を得ることができる。
\[ \def\b{\boldsymbol} \begin{gathered} A^\top A\b x = A^\top\b b \\ (A^\top A)^{-1}A^\top A\b x = (A^\top A)^{-1}A^\top\b b \\ \Downarrow \\ \b x = (A^\top A)^{-1}A^\top\b b \\ \end{gathered} \]