If I had a data set, $A = \{5,6,8,4,2\}$ then computing the mean and the standard deviation is quite simple. This set has a mean, $\bar{x} = 5$ and a standard deviation, $\sigma = 2$.
But what if I had errors on all the samples in the data set, like so $$B = \{5 \pm 1, 6 \pm 1, 8 \pm 3, 4 \pm2, 2\pm 4\}$$
How do I compute the mean and standard deviation for this data set while taking the errors of the samples into account?
It can't possibly be the same, can it? Because the generic formulas for computing mean and standard deviation would just ignore the uncertainties/errors on the samples in the data set.