最小二乘法(Least Squares Fitting)

least squares fitting proceeds by finding the sum of the squares of the vertical deviations R2 of a set of n data points:
这里写图片描述

The condition for R2 to be a minimum is that
这里写图片描述

for i=1, …, n. For a linear fit,
这里写图片描述

so
最小二乘法(Least Squares Fitting)_第1张图片

These lead to the equations
最小二乘法(Least Squares Fitting)_第2张图片

In matrix form,
这里写图片描述

so
这里写图片描述

The 2×2 matrix inverse is
这里写图片描述

so
最小二乘法(Least Squares Fitting)_第3张图片

原文链接:Least Squares Fitting

你可能感兴趣的:(数据挖掘)