Example 6.  Why is the RMS error for  [Graphics:Images/LeastSqPolyMod_gr_76.gif]  essentially zero ?

Solution 6.

If you fit six points with a fifth degree polynomial, then it should be "an exact fit" provided that the abscissas are all distinct.

If the data is of a "polynomial type" then often times the RMS error will decrease with increasing degree of the polynomial fit.

 

[Graphics:../Images/LeastSqPolyMod_gr_77.gif]

[Graphics:../Images/LeastSqPolyMod_gr_78.gif]
[Graphics:../Images/LeastSqPolyMod_gr_79.gif]
[Graphics:../Images/LeastSqPolyMod_gr_80.gif]
[Graphics:../Images/LeastSqPolyMod_gr_81.gif]

Caveat.  Curve fitting is nice for data interpolation.  

[Graphics:../Images/LeastSqPolyMod_gr_82.gif]

[Graphics:../Images/LeastSqPolyMod_gr_83.gif]

Warning.  You are on your own if you use curve fitting for data extrapolation.  Things might "blow up" outside the interval where the data is located.  Too often this is the case.

[Graphics:../Images/LeastSqPolyMod_gr_84.gif]

[Graphics:../Images/LeastSqPolyMod_gr_85.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004