Hi guys,(adsbygoogle = window.adsbygoogle || []).push({});

So I'm writing up a physics lab and I have a bunch of data points. All of these data points have both x and y error bars. The relationship between x and y is linear and so I've made a line of best fit using Python passing through the data.

Now the slope of that line of best fit has physical significance and I need to know its value. Of course I know the gradient of this line but what I don't have is the uncertainty in this gradient - which I need.

How can I go about calculating it?

Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

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

# Uncertainty Propagation for the Slope of a Line of Best Fit

**Physics Forums | Science Articles, Homework Help, Discussion**