The coverage probability of a confidence interval procedure for estimating \(\pi\) at a fixed value of \(\pi\) is
\[C_n(\pi) = \sum_{k=0}^nI(k, \pi)\binom{n}{k}\pi^k(1 - \pi)^{n-k}\]
where \(I(k, \pi)\) equals 1 if the interval contains \(\pi\) when \(X = k\) and equals 0 if it does not contain \(\pi\).