Binary outcomes

Consider a clinical study with N=29 patients testing a new treatment. We assume that the success probability is π0=0.60 under the null hypothesis, and that successes occur independently in all patients. Under the alternative hypothesis, we hope that the success probability is π1=0.70. The binomial probabilities are given in the tables below.

Table 1. Binomial probabilities
kPBi(X=k;N,π0)PBi(X=k;N,π1)
0...110.0130.000
120.0190.001
130.0380.003
140.0650.008
150.0980.018
160.1280.036
170.1470.064
180.1470.100
190.1280.135
200.0960.157
210.0620.157
220.0340.133
230.0150.095
240.0060.055
250.0020.026
26...N0.0000.012