"Error" definition for nonlinear fit deviating from data points
- To: mathgroup at smc.vnet.net
- Subject: [mg129954] "Error" definition for nonlinear fit deviating from data points
- From: max.ulbrich at bioss.uni-freiburg.de
- Date: Wed, 27 Feb 2013 23:44:54 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
Hello, I am doing a fit to a series of data points with NonlinearModelFit. The fit works well but the fitted function does not exactly match the data. Now the standard error from the parameter confidence interval table is very small, which I understand. A simple example: data = Table[{x, x + Sin[x]}, {x, 0, 30, 0.01}]; nlf = NonlinearModelFit[data, a*x, a, x]; bf = a*x /. nlf["BestFitParameters"]; Show[Plot[bf, {x, 0, 30}], ListPlot[data]] nlf[{"ParameterConfidenceIntervalTable"}] The last result shows a standard error of 0.00075, but the plot shows that the fit and the data deviate a lot. Is there a measure that reflects how the fit deviates from the data? Can this also be expressed as some type of "error" in the parameter estimate? I.e. is there a way to write a = 1.0 +- xxx where x reflects the deviation of fit and curve? Thanks a lot for your help, Max