I have measurement dataset [tex] (x_i,y_i) [/tex] -pairs with error for each value [tex] \Delta x_i [/tex] and [tex] \Delta y_i [/tex] so that I can plot datapoints with vertical as well as horizontal errorbar. I want to fit linear regression line [tex]y=a_1 x + a_0[/tex] and also error lines to the data.(adsbygoogle = window.adsbygoogle || []).push({});

But how I take into account as I'm fitting regression line that each datapoint will have its error in x- and y-direction?

And what about the error lines so that I get min and max value of [tex]a_1, a_0[/tex]. I could use standard deviation, but then again this does not take into account the errors [tex] \Delta x_i [/tex] and [tex] \Delta y_i [/tex].

This picture enlightens my problem

http://www.chemistry.adelaide.edu.au/external/soc-rel/content/images/graph_er.png"

I'm interested only in mathematical ways to do this. I already know how to do this by hand. Especially any Matlab example would be greatly appreciated.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Measurement error analyses, fitting min/max slopes to data with error bars.

Loading...

Similar Threads - Measurement error analyses | Date |
---|---|

B Least / Smallest / Minimum Detectable Difference | Jan 21, 2018 |

I Help with sample size to measure Form Error of a round metal part | Oct 29, 2017 |

Combinations of measurements: obtain mean and errors | Jul 16, 2015 |

Propagation of error with sliding window of measurement | Sep 27, 2013 |

Error propagation question - when do we combine repeated measurements? | Apr 14, 2013 |

**Physics Forums - The Fusion of Science and Community**