Suppose that we want to test
Ho : p = 0.5 vs Ha : p > 0.5
where the parameter p is the probability of occurrence of some event, e.g., a coin falling heads. Let us use X, the number of successes on n = 4 trials, as the test statistic.
(a) If when the data are gathered, x = 2. Find the P-value.
(b) If Ha : p ≠ 0.5, what is the P-value for x = 2?