Least Square Method, Curve Fitting, Python, Residual, Data.
optimal values of β. The normal equations are a set of equations that arise from taking the partial derivatives and setting them to zero. In matrix form, the normal equations for the linear least squares problem can be written as: where: X is the design matrix, which contains the values of φi(xᵢ)