ANOVA (Maths)
ANOVA (Analysis of Variance)
- With several samples, we can calculate if the sample variance corresponds to the Variance of the sample average
- This tells us if there are differences between the samples, or if the samples are part of the same distribution
Example:
You are studying the body heights of schoolchildren in different villages. If they are all part of the same population, there will be no difference in sample . If there is some difference in nutrition for example, we might expect that one village will have a lower body height than the others. This is our null hypothesis:
We have
Our sample averages for each
We also have the total average which we just call
The best estimate of the variance of the body size based on our samples is given by this formula. If we multiply this by
If we divide this by the average of the :
If they all behave like one population, the quotient of these two is equal to one. However, due to stochasticity and limited sample size, there is some randomness in both parts, so we will not get exactly one. We call this the famous F-statistic.
Both of these are estimates of the basic variance
Then the denominator uses the sample variance given by our longer formula, then takes the average of all
Significance
If the number is bigger than one by a little bit - how to tell if this is just due to stochasticity or if this shows a real differentiation from the true variance?
We need to show that
If
For example, if we got an
So, this is a very unlikely outcome, and it's likely that our null hypothesis is not true.
Degrees of Freedom
We also need to consider degrees of freedom: these are
shows us how reliable the numerator is (how many samples we have). shows us how reliable our estimate of the sample variance is. If we have small samples, our averages are unreliable, so it might mean that getting a high or low statistic is actually pretty likely.
Problems with the above example
We are still falling for the the prosecutor's fallacy introduced in Conditional Probability#Bayesian Inference
We have calculated