Timeline for How do I find the difference between a set of data and the FindFit approximation?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 6, 2017 at 1:32 | history | edited | Stitch | CC BY-SA 3.0 |
edited body
|
May 6, 2017 at 1:29 | review | First posts | |||
May 6, 2017 at 1:32 | |||||
Apr 6, 2017 at 11:41 | comment | added | Szabolcs |
NonlinearModelFit calls FindFit too.
|
|
Apr 6, 2017 at 11:37 | comment | added | Nyxvis | Thank you for linking those tutorial, I'm gonna dig into them. I understand what you're saying, but my professor precisely asked me to use the "FindFit" command for finding those values, I don't have a choice unfortunately | |
Apr 6, 2017 at 11:28 | comment | added | Szabolcs | You are trying to do too much at a time. If you do not know Mathematica at all, first you need to learn it. Start slow. Have you googled for tutorials? Take a look at wolfram.com/mathematica/resources and mathematica.stackexchange.com/q/18/12 The easiest way to solve your task is NonlinearModelFit. The most basic way with FindFit involves Table and Part. Please look these up. | |
Apr 6, 2017 at 11:24 | comment | added | Nyxvis | Mmh honestly I don't know the "FitResiduals" property, nor the "NonlinearModelFit" command. I had no problems plotting the function as "Plot[B (1/x)^g,{x,1,10}]", but that just gave me a plot, not a list of points. I have no idea how to calculate the mean of the distance between each data point and the fit curve because I don't know how to find the coordinates of the curve. I just started using Wolfram Mathematica, I only know a bunch of commands | |
Apr 6, 2017 at 11:21 | answer | added | Szabolcs | timeline score: 1 | |
Apr 6, 2017 at 11:16 | comment | added | Szabolcs |
Use NonlinearModelFit and 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!
|
|
Apr 6, 2017 at 11:13 | history | asked | Nyxvis | CC BY-SA 3.0 |