Ho: po ≤ 0.5
Ha: po > 0.5
p-hat = X/n = 47/120 = 0.39
The sample proportion (p-hat) is those drinkers prefer Diet Pepsi.
We will go ahead and use the one sample proportion test to find the z-statistic and the critical z-value.
z = p0 - (p-hat) / √(p0(1 - p0) /n = 0.5 - 0.39 / √(0.39*0.61)/120 = 0.11/0.045 = 2.44
By using the z-crtical table, the crtical value should be ±2.28 since the level of significance is 0.01.
Since 2.44 > 2.28, we can reject the null hypothesis. There is sufficient evidence to support that more than half the drinkers prefer Diet Pepsi over Diet Coke.