<p>Algebraically speaking, these are two different operations</p>

<p>In the first scenario you have</p>

<p><span class="math-container">$$
\frac{10 + 20 + 30}{3} = 20 \tag{1}
$$</span></p>

<p>In the second case you have</p>

<p><span class="math-container">$$
\frac{(10 + 20) / 2 + 30}{2} = 22.5 \tag{2}
$$</span></p>

<p>But if this is not convincing enough, consider a different set of numbers, just to make things easier take <span class="math-container">$\{-3, -2, -1, 0, 1, 2, 3\}$</span>. Imagine a bar of length <span class="math-container">$6$</span>, and you put a mass separated by a unit of length:</p>

<pre><code> *===*===*===*===*===*===*
-3  -2  -1   0   1   2   3
</code></pre>

<p>The question is, where do you need to place your finger such that bar is in equilibrium? Answer is <span class="math-container">$0$</span>, which actually is the average of the points. Now let's group the first three points and replace it with the average, and the other four and replace them with the average </p>

<pre><code> ====*=============*======
    -2       0    1.5     
</code></pre>

<p>you immediately see that if you place your finger at <span class="math-container">$0$</span> the bar will topple to the left. So you changed the problem just by averaging in groups. You can return to the original situation by adding different weights to each point</p>

CC BY-SA 4.0
2018-12-02T23:09:03.107Z
2018-12-02T23:09:03.107Z
caverac
<p>why when we do the following operation mean (10 ,20,30)= 20 </p>

<p>is different from (mean(10,20)+30)/2=22,5</p>

<p>there are no equality between the 2 operations using mean  ? why?</p>

<p>thanks a lot in advance for any help </p>

CC BY-SA 4.0
2018-12-02T22:54:56.157Z
This question is more suitable on https://math.stackexchange.com/ or https://stats.stackexchange.com/
Herr K.
CC BY-SA 4.0
2018-12-07T10:06:22.100Z
I'm voting to close this question as off-topic because it appears more suitable for Mathematics SE.
Adam Bailey
<mathematical-economics>
equality between 2 operations using mean
prep
# equality between 2 operations using mean

(Asked by: username_0 on 2018-12-02)

why when we do the following operation mean (10 ,20,30)= 20

is different from (mean(10,20)+30)/2=22,5

there are no equality between the 2 operations using mean ? why?

thanks a lot in advance for any help

**Tags:** mathematical-economics
> **Comments:**
> **username_1**: This question is more suitable on https://math.stackexchange.com/ or https://stats.stackexchange.com/  
> **username_2**: I'm voting to close this question as off-topic because it appears more suitable for Mathematics SE.  

---

## 1 answers

### Answer by username_3 on 2018-12-02. Score: 2

Algebraically speaking, these are two different operations
In the first scenario you have
$$
\frac{10 + 20 + 30}{3} = 20 \tag{1}
$$
In the second case you have
$$
\frac{(10 + 20) / 2 + 30}{2} = 22.5 \tag{2}
$$
But if this is not convincing enough, consider a different set of numbers, just to make things easier take $\{-3, -2, -1, 0, 1, 2, 3\}$. Imagine a bar of length $6$, and you put a mass separated by a unit of length:
 *===*===*===*===*===*===*
-3  -2  -1   0   1   2   3

The question is, where do you need to place your finger such that bar is in equilibrium? Answer is $0$, which actually is the average of the points. Now let's group the first three points and replace it with the average, and the other four and replace them with the average 
 ====*=============*======
    -2       0    1.5     

you immediately see that if you place your finger at $0$ the bar will topple to the left. So you changed the problem just by averaging in groups. You can return to the original situation by adding different weights to each point


---

