Mathematica Curve Fitting With Uncertainties

  • #1
Screwdriver
129
0
I have a set of data points [itex]\{\{x_1, y_1\}, \{x_2, y_2\} ... \}[/itex] each with an uncertainty [itex]\{\{dx_1, dy_1,\}, \{dx_2, dy_2\} ...\}[/itex]. Is there any way of fitting a nonlinear model to the data that incorporates the uncertainties on both [itex]x[/itex] and [itex]y[/itex]? I know that you can use the Weights command to incorporate the uncertainties on the [itex]y[/itex] values, but I don't know how to get the [itex]x[/itex] uncertainties in there as well.
 

Answers and Replies

  • #2
The Electrician
Gold Member
1,344
188
I have a set of data points [itex]\{\{x_1, y_1\}, \{x_2, y_2\} ... \}[/itex] each with an uncertainty [itex]\{\{dx_1, dy_1,\}, \{dx_2, dy_2\} ...\}[/itex]. Is there any way of fitting a nonlinear model to the data that incorporates the uncertainties on both [itex]x[/itex] and [itex]y[/itex]? I know that you can use the Weights command to incorporate the uncertainties on the [itex]y[/itex] values, but I don't know how to get the [itex]x[/itex] uncertainties in there as well.

You need to read up on "errors in variables":

http://www.wavemetrics.com/products/igorpro/dataanalysis/curvefitting/errorsinvariables.htm
 

Suggested for: Mathematica Curve Fitting With Uncertainties

  • Last Post
Replies
2
Views
208
  • Last Post
Replies
1
Views
256
  • Last Post
Replies
4
Views
413
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
1K
Replies
0
Views
281
  • Last Post
Replies
17
Views
559
Replies
2
Views
822
  • Last Post
Replies
2
Views
383
Top