A weighted average is the result of the special case of a data fitting to a model function which is a constant. It is easy to see that minimizing w.r.t
yields
The good-faith s.d. (square-root of twice the inverse of the second derivative of at the minimum) is then
I use the term 'good-faith' to indicate the case when it is really appropriate to use a constant as a model functions, i.e. when the observations are truly different observations of the same observable. When this is not the case but we do not know what to do better we can at least increase the s.d. In fact, there is a correction factor for the s.d., given - in this case - by
so that
Specializing now to the two cases above,