Basic Error Propagation¶
Let's have a function \(f\) of variables \(x_i\), which can be well linearised around some point \(f_0\):
then we can write the variance \(\sigma_f^2\) of \(f\) as follows:
where \(J\) is the Jacobian of \(f\) and the \(\sigma_i\) are the uncertainties of variables \(x_i\), while \(\sigma_{ij}\) are the covariances between the variables. The covariance matrix \(\Sigma\) you can get, for instance, from a fitting function. We often assume that the variables are not correlated, i.e. covariance matrix has non-zero values only on the diagonal. In such a case, we get the famous formula:
However, sometimes we should not neglect the covariances. For details, see the more extensive Wikipedia article about propagation of uncertainty or your favourite statistics textbook.