22.27 Finding a P-value by
H0: p = 0.5
(no difference in effectiveness)
Ha: p > 0.5
(Method B is more effective)
The result of your experiment is that Method B gave the higher score in 12 of the 20 pairs, or .
(a) If H0 is true, the 20 pairs of students are 20 independent trials with probability 0.5 that Method B “wins’’ each trial (is the more effective method). Explain how to use Table A to simulate these 20 trials if we assume for the sake of argument that H0 is true.
(b) Use Table A, starting at line 105, to simulate 10 repetitions of the experiment. Estimate from your simulation the probability that Method B will do better (be the more effective method) in 12 or more of the 20 pairs when H0 is true. (Of course, 10 repetitions are not enough to estimate the probability reliably. Once you understand the idea, more repetitions are easy.)
(c) Explain why the probability you simulated in part (b) is the P-value for your experiment. With enough patience, you could find all the P-values in this chapter by doing simulations similar to this one.