[Linear Algebra] Another Derivation of Normal Equation

Jason Lee·2022년 9월 21일

Linear Algebra

목록 보기
24/26

Another Derivation of Normal Equation

  • x^=argminx∥b−Ax∥\hat{\textbf{x}} = \underset{\textbf{x}}{\textrm{argmin}}\begin{Vmatrix} \textbf{b} - A \textbf{x} \end{Vmatrix}
    =argminx∥b−Ax∥2= \underset{\textbf{x}}{\textrm{argmin}}\begin{Vmatrix} \textbf{b} - A \textbf{x} \end{Vmatrix}^2
    =argminx(b−Ax)T(b−Ax)= \underset{\textbf{x}}{\textrm{argmin}}\begin{pmatrix} \textbf{b} - A \textbf{x} \end{pmatrix}^T \begin{pmatrix} \textbf{b} - A \textbf{x} \end{pmatrix}
    =argminx(bbT−xTATb−bTAx+xTATAx)= \underset{\textbf{x}}{\textrm{argmin}}\begin{pmatrix} \textbf{b} \textbf{b}^T - \textbf{x}^T A^T \textbf{b} - \textbf{b}^T A \textbf{x} + \textbf{x}^T A^T A \textbf{x} \end{pmatrix}
  • Computing derivatives of (bbT−xTATb−bTAx+xTATAx)\begin{pmatrix} \textbf{b} \textbf{b}^T - \textbf{x}^T A^T \textbf{b} - \textbf{b}^T A \textbf{x} + \textbf{x}^T A^T A \textbf{x} \end{pmatrix} w.r.t. x\textbf{x},
    we obtain −ATb−ATb+ATAx+ATAx=0⇔ATAx=ATb- A^T \textbf{b} - A^T \textbf{b} + A^T A \textbf{x} + A^T A \textbf{x} = \textbf{0} \Leftrightarrow A^T A \textbf{x} = A^T \textbf{b}

    • if C=ATAC = A^T A is invertible, then the solution is computed as x=(ATA)−1ATb\textbf{x} = (A^T A)^{-1} A^T \textbf{b}
profile
AI Researcher

0개의 댓글