用最小二乘法拟合数据并求均方偏差[精品]
用最小二乘法拟合数据并求均方偏差
摘要:数值分析是研究分析用计算机求解数学计算问题的数值计算方法及其理
论的学科,是
数学的一个分支,它以数字计算机求解数学问题的理论和方法为研究对象。本
文通过对一组
数据用 origin 先得到散点图,然后根据散点图来预测函数。接着用 matlab 软
件采用最小二
乘法拟合,得到两个不同的函数,并计算它们的均方偏差,以便比较这两个拟
合函数的优劣。
关键字:数值分析; origin ; matlab ; 最小二乘法;均方偏差
Abstraction:Numerical analysis is a computational method and its
numerical computation problem is solved by computer analysis of
mathematical research subject, is a branch of mathematics, it is based
on the theory and methodology of digital computer to solve mathematical
problems as the research object.This article through to a set of data
with origin to get scatter plot, then predict function according to the
scatter plot.Then using least squares fitting with the matlab
software, get two different function, and the mean square deviation,
they calculated to compare the advantages and disadvantages of the two
fitting function.
Keyword:Numerical analysis; origin; matlab ;the least square method;
Mean Square Error