my professor is asking to find the mean of the difference between:
data={{1.6, 2.3}, {2.2, 2.}, {3.4, 1.8}, {2., 2.1}, {0.1, 6.1}, {1.9,
2.2}, {3., 1.9}, {2.8, 1.9}, {3.3, 1.8}, {1.3, 2.4}, {2.2,
2.}, {1.7, 2.3}, {3., 1.9}, {1.8, 2.2}, {2.7, 2.}, {2.1, 2.1}, {2.8,
1.9}, {4.9, 1.6}, {3.8, 1.7}, {0.6, 3.2}}
and the approximation curve found with FindFit[data,B (1/x)^g,{B,g},x]
Is there any way to extrapolate some actual points from the FindFit function? I've already plotted it but I just don't know how to find the difference.
Thank you in advance!
NonlinearModelFitand the"FitResiduals"property. Read the NonlinearModelFit documentation, including under "Details" and the examples. But I do not understand the question. You say that you used FindFit and got a result. You could plot the result. This means that you can compute its values in different points. What specific difficulty did you encounter when computing in at your original data points? In other words: show what you tried! – Szabolcs Apr 06 '17 at 11:16NonlinearModelFitcallsFindFittoo. – Szabolcs Apr 06 '17 at 11:41