26/36
Part 4 of 6 · Few citiesLearn
With unequal city sizes, the plain average of city means answers a per-city question
With unequal city sizes, the plain average of city means weights a town of 50 users the same as a city of 50,000. So it estimates the average effect per city, not per user. If the effect varies with city size, those are different numbers.
Weighting the means by city size gets the per-user estimate back. But then the simple t-test isn't exact anymore.