Robert Z. answered 07/09/20
3965+ hours (& counting!) tutoring math -- Prealgebra to Calculus 2
We are dealing with a binary variable (let’s call it r). Its 2 values are
- · Relief
- · No relief
This experiment is like the result of flipping a coin 202 times and analyzing the result to determine if it’s fair. The null hypothesis is that the population proportion for r is 0.5 (usually expressed as π=0.5), meaning that half of the patients experience relief. The alternate hypothesis is π>0.5, meaning that more than half of the patients experience relief.
The sample proportion is 108/202 ≈ 0.5347. Is this far enough above the null hypothesis to reject it?
The standard deviation of the binomial is 0.25. Adjusting for this sample size, divide that by the square root of 202. This gives a standard deviation of .0176.
The z-score for our sample is (.5347 - .5)/.0176 = 1.973.
The “reject” zone is the right tail only. Using normcdf on the TI-84+ with a lower bound of 1.973 and an upper bound of 10^99, the probability that this or a higher z-score could happen if the true proportion is .5 is .0242. This is the p-value. Since this is higher than .01, we do not reject the null hypothesis. We conclude that the medication does not provide relief at the 1% significance level.