Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Fit with x and y errors' topicStudent Support Forum > General > Archives > "Fit with x and y errors"

Next Comment >Help | Reply To Topic
Author Comment/Response
Benedikt Brandt
09/21/11 07:26am

Hello alltogether

I just tried to do a fit of some experimental data containing errors in both x and y coordinates (using mathematica 7). However I can't get FindFit to do that.

My example data is

data = {{{1, 0.1}, {2, 0.2}}, {{2, 0.1}, {4, 0.2}}}

in the format of {{{x1,x1_err},{y1,y1_err}},{{x2,x2_err},{y2,y2_err}}}. Doing

FindFit[data, a[0] + a[1] x, {a[0], a[1]}, x]

i get the following error:

FindFit::fitd: First argument {{{1,0.1},{2,0.2}},{{2,0.1},{4,0.2}}} in FindFit is not a list or a rectangular array. >>

Therefore my question: Does standard mathematica not support fits with errors in the data points? Do I have to purchase the experimental data analyst for that? Or did I simply got the format wrong in the above example?

Thanks

B. Brandt

URL: ,

Subject (listing for 'Fit with x and y errors')
Author Date Posted
Fit with x and y errors Benedikt Bra... 09/21/11 07:26am
Re: Fit with x and y errors Shinjini Basu 01/27/13 10:31am
Re: Fit with x and y errors Forum Modera... 01/27/13 5:55pm
Next Comment >Help | Reply To Topic