City A (n = 5)
1.25 1.00 1.50 1.25 1.50
City B
2.50 1.25 1.00 0.00 2.00
The variance formula is:
So, the mean A is:
(1.25 + 1.00 + 1.50 + 1.25 + 1.50)/5 = 1.30
The variance for city A is:
s²_A = 0.04
For city B:
Mean B = 1.35
The variance for city B is:
s²_B = 0.92