Subscribe Bookmark RSS Feed

Fitting a line taking into account different error bars on data points

alexw

Community Trekker

Joined:

Apr 25, 2014

Hi, I wish to get the gradient and standard error of gradient of a straight line being fitted between three data points. Ordinarily this would be a very simple bit of linear regression. However, the three data points each have a standard error associated with them, as each point is in itself the natural log of the gradient of another linear regression fit. If I fit a straight line to my three data points in the normal way, the standard error of the gradient will be vastly underestimated, because it fails to take into account the errors associated with the data points.

Here are some visualisations of the data to explain a bit more:

1) Fitting response as a function of time, grouped by temperature.

7403_pastedImage_0.png

7405_pastedImage_2.png

2) Fitting the logs of (-1 x 3 gradients above) as a function of (1/temperature). The important bit I need is the gradient and standard error of gradient of this graph...

7406_pastedImage_4.png

Any thoughts on how I might go about preventing myself from underestimating the standard error of the gradient in part 2) please?

1 REPLY
alexw

Community Trekker

Joined:

Apr 25, 2014

Hi,

Any thoughts on this would be greatly appreciated.

Thanks,

Alex