I have a question regarding errors which has always stumped me. It's what error should be quoted on a measurement. Let's say I have a very simple situation with a force on a spring. For
$$ F = kx$$
typically the Force (F) is plotted against the extension (x). To calculate the error on this one could use the error using
\begin{equation} \sigma_f^2 = \sum{\left(\frac{\partial f}{\partial\beta_i}\right)^2\sigma^2_{\beta{_i}}} \label{eq:error} \end{equation}
which provides a simple but effective estimation of the error. This equation assumes independent, uncorrelated values. When the variables $\beta$ are correlated with each other the covariances are not negligible. As such where the function involves a number of variables together with their associated errors, as for $\alpha$, the individual errors need to be propagated. The error propagation equation is expressed in matrix form as: \begin{equation} \sigma_f^2 = {g}^T{Vg} \end{equation} in which $\sigma_f^2$ represents the variance of a function $f$ whose parameters are $\beta$, whose variance-covariance matrix is $\mathbf{V}$ with the $i$th element of the vector $\mathbf{g}$ being $\frac{\partial f}{\partial\beta_i}$. [I know this form is better but despite researching am struggling to implement it].
During my fitting with python using script it outputs the covariance of every parameter which it has fit. Presumably as above. However say it calculates the covariance for the spring constant. In this case what should I use that as the error on k. Should it be calculated using the errors on the individual elements as in the first error propagation equation or using the covariance produced by scipy. Surely the covariance only computes the scatter of the points and not the error itself, as it has no baring on the error of the initial measurements. In addition would be taking the average of the largest and smallest gradient be separate from both these methods for calculating the error on the gradient k?
Sorry for the long post, to me it is very confusing what errors mean what and which should be used.