Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2004/iii/paper-38/4/a/solution

Let be the number allocated to each arm and test equality of the two reconviction probabilities, with a specified target difference as the alternative. For equal independent binomial arms, put , , and . Under the null the rejection boundary for is approximately ; under the planning alternative its mean is and variance is . statistical power 0.8 is obtained approximately by requiring
Thus the sample size for comparing two proportions is
where , for a two-sided test, or for a prespecified one-sided superiority test. With and , this simplifies to
For illustration only, at this gives 35 per arm, 70 total, for a two-sided test, or 27 per arm, 54 total, for a one-sided test. No unique numerical count is specified until alpha and sidedness are fixed. These are normal planning approximations; an exact requirement can be checked by summing the probabilities, from the two independent binomial distributions, of all tables in an exact test's rejection region and increasing until statistical power is at least 0.8.
This calculation detects a treatment difference when the effect equals the proposed target. It does not promise 80% statistical power to establish that the reduction is at least that target via a confidence bound when the true effect lies exactly at the target boundary. Such a different testing objective needs a separately specified null and planning alternative. Complete follow-up and ascertainment by intention-to-treat analysis are also required.

New to topics? Read the docs here!