Mathematica Curve Fitting With Uncertainties

  • #1
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,302
171
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
 

Related Threads on Mathematica Curve Fitting With Uncertainties

  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
1
Views
782
  • Last Post
Replies
0
Views
935
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
4
Views
1K
Replies
2
Views
665
Replies
10
Views
16K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
3K
Top