Hypothesis testing is a systematic method used to determine whether there is enough evidence to support a specific claim about a population parameter. In this context, we will focus on hypothesis testing for a population proportion, which involves several key steps that we will explore through a practical example.
To illustrate the process, consider a tech company that claims 90% of its devices pass inspection. A quality inspector believes the actual pass rate is lower and decides to test 200 devices, finding that 172 passed. We will conduct a hypothesis test at a significance level of 0.01 to evaluate this claim.
The first step in hypothesis testing is to formulate the hypotheses. The null hypothesis (H0) represents the claim we are testing, which in this case is that the population proportion (p) of devices passing inspection is equal to 90%, or H0: p = 0.9. The alternative hypothesis (Ha) reflects the inspector's belief that the pass rate is lower, expressed as Ha: p < 0.9.
Next, we calculate the test statistic using the formula for the z-score, which is given by:
z = \frac{\hat{p} - p}{\sqrt{\frac{p(1 - p)}{n}}}
Here, \(\hat{p}\) is the sample proportion, calculated as the number of successes (172) divided by the sample size (200), resulting in \(\hat{p} = 0.86\). Plugging in the values, we find:
z = \frac{0.86 - 0.9}{\sqrt{\frac{0.9(1 - 0.9)}{200}}} \approx -1.89
In the third step, we determine the p-value associated with our z-score. Since our alternative hypothesis indicates a left-tailed test, we look for the probability of obtaining a z-score less than -1.89. Using a z-table or statistical software, we find that the p-value is approximately 0.029.
Finally, we compare the p-value to our significance level (α = 0.01). Since 0.029 is greater than 0.01, we fail to reject the null hypothesis. This outcome suggests that there is insufficient evidence to conclude that the pass rate is below 90%.
Before finalizing our conclusion, we must verify that the conditions for hypothesis testing are met. First, we assume that the data was collected from a random sample unless stated otherwise. Next, we check the expected number of successes (n * p) and failures (n * q) to ensure both are at least 5. In this case:
n * p = 200 * 0.9 = 180
n * q = 200 * (1 - 0.9) = 20
Both values meet the criteria, confirming that we can draw valid conclusions from our hypothesis test.
In summary, we successfully conducted our first hypothesis test for a population proportion, demonstrating the importance of each step in the process. For further practice, consider exploring additional examples of hypothesis testing for population proportions.
