error in Python gradient measurement
The standard error of a linear regression is the standard deviation of the serie obtained by substracting the fitted model to your data points. It indicates how well your data points can be fitted by a linear model.
I need to fit a straight line to my data to find out if there is a gradient.
I am currently doing this with scipy.stats.linregress.
I'm a little confused though, because one of the outputs of linregress is the "standard error", but I'm not sure how linregress calculated this, as the uncertainty of your data points is not given as an input.
Surely the uncertainty on the data points influence how uncertain the given gradient is?
Thank you!