I have some data:
That I plot with
ListPlot. I have two functions that I would like to check which one of them best fits my data. The functions are:
f1[x_]:=0.5 x + (4/2) x^3 f2[x_]:=0.5 x + (5/2) x^3 + 80
f2 is plotted red, and function
f1 is plotted blue. Function
f2 is seems to be the best fit to data points, but is there a way in which I can in Mathematica check this, not by using something like
NonlinearModelFit, but instead calculating say distances between points and plots and see which function gets data points closer to it. Is this a correct way of thinking about fitting? Is there a code that allows checking how close are data points to some model function, or two of them or even more?