If I have 2 experiments measuring the same thing. For example, I measure the voltage with 2 different tools (2 different voltmeters). I can calculate the final average in 2 different ways. For example, I have 7 measurements with the first tool and 5 measurements with the second tool for whatever reason.
- Calculate the average of all 12 values.
- Calculate the average of the first tool (7 values), then calculate the average of the second tool (5 values) and then calculate the average of the average.
Specific example:
As we can see, the first way gives the average 1.158 and the second way gives 1.161. The question: What is the correct or better way to calculate the average and why?
UPDATE 1
As pointed by Andrew in the answer, I updated my example accordingly. Let's assume, that both voltmeters give only 1 digit after the dot. It is not real data, but an artificial example.
I calculated the standard deviation and Voltmeter 1 gives $1.14\pm 0.09$. I understand that I have to put $\pm 2\sigma$ for 95% confidence interval, but let's keep it as is ($\pm \sigma$) for simplicity.
Voltmeter 2 gives $1.18\pm 0.15$. So, the averages from both voltmeters are consistent (values overlap within the confidence interval).
Based on the notation from andrew I calculated it like this
$${\mu}_1 = 1.14$$ $${\mu}_2 = 1.18$$ $${\sigma}_1 = 0.09$$ $${\sigma}_2 = 0.15$$
and based on equations from andrew
$$\bar{\mu}=1.15$$ $$\bar{\sigma}=0.08$$