How often the rate’s interval covers

The Korn-Graubard interval of Estimation covers the logical error rate about as often as it claims when errors are plentiful, more often when they are few, and markedly less often when the draws of the checks differ a great deal. We describe the simulation first, then read the table.

The simulation

scripts/coverage.py builds each scenario from draws of the checks whose logical error rates, per shot, are lognormal about a mean rate, with a given standard deviation of their logarithm. Each draw samples its errors over 1,000 shots, every one accepted, so the rate per accepted shot is the rate per shot, and the mean rate is the true rate the interval should cover. Each scenario is repeated 10,000 times, and the Monte Carlo standard error of each coverage \(c\) is \(\sqrt{c(1 - c)/R}\) over the \(R\) repetitions. The seed and the versions that produced the table are in results/coverage.json.

The scenarios cross plentiful and few errors with moderate and heavy spread between draws. The log-standard deviation of 1.5 for heavy spread, a coefficient of variation near 3 between draws, was chosen before the simulation was run, though not written down first. An earlier simulation, before this one, found a coverage of 91.8% under heavy spread, but its definition of heavy spread was not saved, so the two figures cannot be read together.

The coverage

Scenario

Mean rate

Log-standard deviation

Draws

Errors, on average

Coverage at 95%

Monte Carlo SE (points)

Plentiful errors

0.02

0.5

40

798

94.3%

0.2

Few errors

0.0001

0.5

10

1

99.0%

0.1

Heavy spread

0.02

1.5

10

198

81.3%

0.4

Few errors, heavy spread

0.0001

1.5

10

1

99.5%

0.1

With few errors the interval widens rather than undercovers, since it falls back on the exact interval for the shots it has, and Clopper-Pearson is conservative. Under heavy spread it falls short, at 81.3%: the variance between draws is estimated from 10 of them, on 9 degrees of freedom, the known weakness of design-based intervals with few clusters. The remedy is more draws where the design effect is large, not a different interval (5. Korn-Graubard intervals for the logical error rate over draws). Few errors with heavy spread covers at 99.5%, since with about one error the interval rests on the exact fallback.