結果 : least squares python implementation