32/38
Part 5 of 6 · Evaluation and the online testLearn and do

Analyze by agent, and 600 agents detect about 48 seconds

Randomizing agents makes this a cluster-randomized test: each agent is a cluster of tickets, and the tickets inside one cluster tend to be alike. Analyze it as one. The field study did the same: its robust standard errors are clustered at the agent level.

Size it. Assume 600 agents, 300 per arm, each handling 160 tickets in a two-week test. Handle time has a standard deviation of 12 minutes. The intraclass correlation between tickets of the same agent is 0.08.

DEFF=1+(160−1)×0.08=13.7\text{DEFF} = 1 + (160 - 1) \times 0.08 = 13.7

The 96,000 tickets carry the information of about 96,000/13.7≈7,00096{,}000 / 13.7 \approx 7{,}000 independent ones, 3,500 per arm.

The standard error of the difference is 122/3,500=0.2912 \sqrt{2 / 3{,}500} = 0.29 minutes. At 5% two-sided and 80% power, the smallest detectable effect is about 2.8×0.29=0.802.8 \times 0.29 = 0.80 minutes. That's 48 seconds, a bit over 5% of a 15-minute ticket.

A ticket-level analysis of the same data would report a standard error 13.7=3.7\sqrt{13.7} = 3.7 times too small.

In the editor, write design_effect(m, icc) and mde(agents_per_arm, tickets_each, sd, icc): the sizing above as code. The numbers above should give 13.7 and about 0.80 minutes.