Solution (source code)

= Solution

Use the <binomial distribution> for independent outcomes in each nonoverlapping batch, and let the <CUSUM> accumulate the <log-likelihood ratio> favoring a specified change. The two numbered calculations below treat the batch score and the initial-response design separately.