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 | CR0 vs 1.96 | CR1 vs 1.96 | CR1 vs t | City means vs t |
|---|---|---|---|---|
| 4 | 30.0% | 25.0% | 12.1% | 5.0% |
| 6 | 18.5% | 15.4% | 8.3% | 5.0% |
| 10 | 11.8% | 10.2% | 6.5% | 5.0% |
| 20 | 7.9% | 7.2% | 5.6% | 5.0% |
| 40 | 6.4% | 6.0% | 5.3% | 5.0% |
| 100 | 5.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_sereturns. - The 1.96 columns compare the t statistic to the normal curve's cutoff.
- The t columns compare it to a t distribution: degrees of freedom for CR1, and 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 . 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 degrees of freedom get you close. Below about 20, even both together run hot.