I am not sure if this is the case for just four numbers, but here is my question if someone could verify. If you take the mean of four numbers, subtract the mean from each of the four numbers, and then take the sum of these differences, is the sum always zero? Here is an example if the wording is off:
w = 1;
x = 2;
y = 3;
z = 4;
mean = 10/4 = 2.5
w-mean = -1.5;
x-mean = -.5;
y-mean=.5;
z-mean=1.5;
sum of these=0
I even tried it with a random number generator but always get zero. can someone verify if this is always true or just a fluke?
Thanks!!
Yes, it's always true. Good observation!
If the mean of a sequence of $n$ numbers $m_1, m_2, ..., m_n$ is $\mu$ then the sum of those numbers is $n\mu$:
$$\sum_{j=1}^n m_j = n \mu.$$
Adding up the values of the numbers subtracted by their mean:
$$\sum_{j=1}^n (m_j-\mu) = \sum_{j=1}^n m_j - \sum_{j=1}^n \mu = n \mu - n \mu = 0.$$