Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Errors in fitting to data, relationship to residue

  1. Feb 6, 2012 #1

    I'd like to fit a straight line to some data which is noisey with gaussian noise with some st dev.

    Using least squares, I can estimate the slope and intercept. I'd like to know the uncertainty in these numbers. I can find the residue, I believe this is a measure of the variance of the noise.

    Using a simulation with N points, each with noise st dev. σ, I find the variation in estimated slope is proportional to σ/(√N^3), which I can't explain, I'd have expected sigma over root N, as for the standard error.

    Any help would be fantastic. I just want to know what error to quote with my fitted gradient.

  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted