21/36
Part 4 of 6 · Few citiesLearn

With equal cities, equal arms and normal noise, even the corrected test runs hot below about 20 cities

Even with the correction and the t cutoff, few cities cost you.

Cities GGCR0 vs 1.96CR1 vs 1.96CR1 vs tCity means vs t
430.0%25.0%12.1%5.0%
618.5%15.4%8.3%5.0%
1011.8%10.2%6.5%5.0%
207.9%7.2%5.6%5.0%
406.4%6.0%5.3%5.0%
1005.5%5.4%5.1%5.0%

Each entry is how often a 5% test rejects when there's no effect. Half the cities are treated, every city has 50 users, and the noise is normal.

  • CR0 is the uncorrected sandwich. CR1 is the corrected one, the one cluster_se returns.
  • The 1.96 columns compare the t statistic to the normal curve's cutoff.
  • The t columns compare it to a t distribution: G−1G - 1 degrees of freedom for CR1, and G−2G - 2 for the city means.

Under those conditions:

  • Every clustered t statistic in the table is a fixed multiple of the city-means t statistic from a later step.
  • The city-means t statistic has an exact t distribution, so these rates are exact.
  • The ICC drops out.
  • The city size enters only through (N−1)/(N−K)(N - 1)/(N - K). At 50 users or more, it moves no entry by more than a tenth of a point.
  • A 200,000-run simulation of each row lands within about a tenth of a point of every entry.

At 40 cities, the correction and G−1G - 1 degrees of freedom get you close. Below about 20, even both together run hot.