Derivation of error formula for gradient from least squares fit

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
BOAS
Messages
546
Reaction score
19
There isn't a problem question really, but I think this section is most appropriate since this is a question born out of my lab module.

To calculate the gradient of a line of best fit for a set of data you can use the equation


M = n [itex]\sum[/itex]xy - [itex]\sum[/itex]x[itex]\sum[/itex]y / n[itex]\sum[/itex]x2 - ([itex]\sum[/itex]x)2

Where [itex]\sum[/itex]xy = x1y1 + x2y2... and so on.

I'm told that you can calculate the eroor on this gradient to be

σM = [itex]\sqrt{\sum}[(y-Y)[/itex]-M(x-X)]2 / n[itex]\sum[/itex]x2 - ([itex]\sum[/itex]x)2



Capital letters are supposed represent mean values of x and y (don't know how to get xbar in latex) and the square root should encompass the entire equation.

My question is this, from what rule of error propagation do we arrive at this equation? I can't see how i'd arrive at this using what I already know, so I'm thinking there's some stuff here that I'm missing.

Again, this is not homework, but for peace of mind.

Thanks!
 
Physics news on Phys.org