正規方程式と逆行列を用いる最小二乗法
least square method using normal equation and inverse matrix