ã¯ããã« ä¸è¬çãªç·å½¢æå°äºä¹æ³ $$ \text{argmin}_\mathbf{x} \bigl\vert \mathbf{y} - \mathrm{A} \mathbf{x} \bigr\vert^2 $$ ã®è§£ $\mathbf{x}$ ãæ±ããã¨ãããããªã·ã¼ã³ã¯ãããã¨ããã§åºã¦ãã¾ãããªããã®è§£ã¯ $$ \mathbf{x}^\mathrm{opt} = \bigl(\mathrm{A}^\top \mathrm{A}\bigr)^{-1} \mathrm{A}^\top \mathbf{y} $$ ã¨ãªãã¾ããå®è£ ããéã¯ãæ¢åã®ã©ã¤ãã©ãªãç¨ãããã¨ãå¤ãã¨æãã¾ããä¾ãã° python ã®å ´åã ã¨ããã°ããã§ãããã ï¼ããã§ã¯æ¬é¡ã§ãªãã®ã§è§¦ãã¾ããããéè¡å $(\mathrm{A^\top A})^{-1}$ ãè¨ç®ãã¦ãã $\mathbf{A^\top y}
{{#tags}}- {{label}}
{{/tags}}