z-Test for Difference of Proportions - College Statistics
- A researcher calculates a 95% confidence interval for the difference between two population proportions, , and obtains the interval (0.02, 0.12). They wish to use this result to test the hypothesis against at a significance level of . Which of the following statements is the most accurate? Answer: The null hypothesis should be rejected because the confidence interval consists entirely of positive values and does not contain 0. For a two-sided hypothesis test, the conclusion from a confidence interval is consistent with the conclusion from the hypothesis test if . In this case, corresponds to a 95% confidence level. Since the 95% confidence interval for is (0.02, 0.12) and does not contain the hypothesized value of 0, this provides sufficient evidence to reject the null hypothesis at the level. The interval suggests that is likely greater than . * B is incorrect because while the standard errors for a confidence interval (unpooled) and a hypothesis test (pooled) are different, the conclusion regarding rejection of the null hypothesis at the corresponding alpha level will be the same. If the 95% CI excludes 0, the p-value for the two-sided test will be less than 0.05. * C is incorrect because a definitive conclusion about rejecting or failing to reject the null hypothesis can be made. Although the exact p-value isn't known, we know it is less than 0.05. * D is incorrect because is the critical value (), not the test statistic. The test statistic would be calculated as , which is not necessarily equal to 1.96.
- With extremely large sample sizes (e.g., and ), a two-proportion z-test is performed. A statistically significant result is found (p < 0.001) for a difference in sample proportions of and . Which of the following is the most important consideration when interpreting this result? Answer: Despite statistical significance, the actual difference in proportions is very small and may have no practical importance. With very large sample sizes, hypothesis tests have very high power to detect even minuscule differences. This can lead to results that are statistically significant (i.e., a very small p-value) but where the magnitude of the difference is so small that it is not meaningful or useful in a real-world context. This is the distinction between statistical significance and practical significance. Here, the difference is only (or 0.2 percentage points), which is unlikely to be important in most applications, even though the test registers it as a statistically significant finding. * A is incorrect because a small p-value is evidence against the null hypothesis; it doesn't suggest a Type I error, although one is always possible. * B is incorrect because statistical significance does not automatically imply practical significance. * D is incorrect because the z-test is more, not less, valid with large samples, and the proportions being close to 0.5 actually optimizes the conditions for the Normal approximation.
- A researcher conducts a one-tailed test for the difference in two proportions with . The test yields a statistic . They had initially set their significance level at . However, a supervisor suggests that for this particular study, a significance level of would be more appropriate. What are the correct conclusions at each significance level? Answer: Reject H₀ at but fail to reject H₀ at . To make a conclusion, we can compare the test statistic to the critical values or compare the p-value to the significance levels. Method 1: P-value. For a one-tailed test with , the p-value is . * At , since , we reject H₀. * At , since , we fail to reject H₀. Method 2: Critical Values. * For a one-tailed test at , the critical value is . Since our test statistic , we reject H₀. * For a one-tailed test at , the critical value is . Since our test statistic , we fail to reject H₀. Both methods lead to the same conclusion: reject at the 5% level, but fail to reject at the 1% level. * A, B, and D represent incorrect conclusions based on these comparisons.
- To check if two samples are independent, a researcher compares a sample of 150 students from a morning lecture section of a course with a sample of 150 students from an afternoon lecture section of the same course. It is discovered that 20 students are enrolled in both sections. How does this discovery affect the plan to use a two-proportion z-test to compare the performance of students in the two sections? Answer: The violation of the independence assumption means a two-proportion z-test is inappropriate; a method for paired or matched data should be considered instead. When you encounter a two-proportion z-test question, the fundamental requirement is that your two samples must be completely independent. This means no individual can appear in both groups, as their responses would be correlated rather than independent. The discovery that 20 students are enrolled in both sections creates a critical violation of the independence assumption. These overlapping students don't represent independent observations—their performance in one section is likely correlated with their performance in the other section. This dependency invalidates the mathematical foundation of the two-proportion z-test, which assumes each observation is unrelated to all others. Option A incorrectly suggests simply removing the overlap while keeping the same statistical approach. However, this doesn't address the fundamental issue that you now have related/paired observations that require different analytical methods. Option B proposes adjusting the pooled proportion calculation, but no mathematical adjustment can fix a violated independence assumption—the test itself becomes inappropriate. Option C makes the common mistake of thinking that a "small" violation (20 out of 300 students) can be ignored. In statistics, violations of core assumptions aren't about magnitude—any dependency matters because it changes the underlying probability distribution. Option D correctly identifies that the independence violation requires switching to methods designed for dependent data, such as paired t-tests or McNemar's test for paired proportions. Study tip: Always check independence assumptions first in hypothesis testing. When you see any overlap between groups—whether it's the same people measured twice, matched pairs, or shared characteristics—immediately consider paired/dependent methods rather than independent sample tests.
- A manufacturer is comparing defect rates from two production lines. A sample of 100 items from Line 1 has 8 defects, and a sample of 500 items from Line 2 has 90 defects. The test for a difference in proportions () yields a z-statistic of -2.50. What was the approximate pooled sample proportion () used in the calculation? Answer: 0.163 When you're testing for a difference between two proportions, you need to calculate a pooled sample proportion that combines information from both samples under the assumption that the true proportions are equal (the null hypothesis). The pooled sample proportion formula is: , where and are the number of successes (defects) in each sample, and and are the sample sizes. From the given information: Line 1 has 8 defects out of 100 items, and Line 2 has 90 defects out of 500 items. Therefore: This confirms answer D is correct. Looking at the wrong answers: A) 0.130 appears to be a miscalculation, possibly from incorrectly handling the denominators. B) 0.098 equals 98/1000, suggesting someone mistakenly used 1000 as the total sample size instead of 600. C) 0.260 is far too high and might result from adding the individual sample proportions (0.08 + 0.18 = 0.26) rather than pooling the raw counts. The key insight is that the pooled proportion weighs each sample by its size automatically when you combine the raw counts. Don't try to average the individual proportions—this would give equal weight to unequal sample sizes. Always pool by combining the numerators and denominators separately, which properly accounts for the different sample sizes in your analysis.
- A journalist wants to test the claim that the proportion of city residents in favor of a new park is higher in District 1 () than in District 2 (). They set up the hypotheses and . Sample data shows that the proportion in favor is 45% in a sample from District 1 and 52% in a sample from District 2. Without performing any calculations, what can be concluded about the result of the hypothesis test? Answer: The test will result in a negative z-statistic, and the p-value will be greater than 0.5. The z-statistic's sign is determined by the numerator of the test statistic formula, , as the denominator (the standard error) is always positive. Here, and , so the difference is . Since the difference is negative, the z-statistic will be negative. The alternative hypothesis, , specifies a one-tailed test in the positive direction. The p-value for this test is the area to the right of the calculated negative z-statistic. The area to the right of any negative value on the standard Normal curve is, by definition, greater than 0.5. Therefore, we can be certain the p-value will be large, and we will fail to reject the null hypothesis. * A is incorrect because while the z-statistic is negative, the p-value (area to the right) must be greater than 0.5. * B is incorrect because the z-statistic will be negative, not positive. * D is incorrect because the sample sizes only affect the magnitude of the z-statistic, not its sign.
- A political campaign tests two slogans. Slogan A was shown to 400 randomly selected voters, and 180 expressed approval. Slogan B was shown to 500 different voters, and 200 expressed approval. The campaign manager wants to test if Slogan A has a higher approval rating than Slogan B. The test yields a z-statistic of approximately 1.58. What is the correct p-value and interpretation at ? Answer: p-value ≈ 0.057; fail to reject H₀ because the p-value is greater than . There is not significant evidence that Slogan A is superior. The hypothesis is to test if Slogan A has a higher approval rating than Slogan B. This implies a one-tailed test: vs. . The sample proportions are and . Since , the data is in the direction of the alternative hypothesis. The p-value for a one-tailed test with is the area to the right of 1.58 under the standard Normal curve: . Using a standard z-table or calculator, this probability is approximately 0.0571. Since the p-value (0.0571) is greater than the significance level (), we fail to reject the null hypothesis. There is insufficient evidence to conclude that Slogan A's approval rating is higher than Slogan B's. * A is incorrect because it corresponds to a two-tailed p-value (), which would be used for . * C is incorrect because it draws the wrong conclusion; a p-value of 0.057 is not less than 0.05. * D is incorrect because it calculates the p-value as , which would be the p-value for a one-tailed test in the opposite direction.
- A test of versus is conducted using a significance level of . The sample data from two independent groups yield a test statistic of . What is the appropriate conclusion? Answer: Fail to reject H₀, because the p-value is approximately 0.11, which is greater than . The test is a two-tailed test because the alternative hypothesis is . The p-value is the probability of observing a z-statistic as extreme or more extreme than 1.60 in either tail. This is calculated as . From a z-table, . Therefore, the p-value is , or approximately 0.11. The decision rule is to reject H₀ if the p-value is less than or equal to . Since , we fail to reject the null hypothesis. * A is incorrect because it incorrectly compares the test statistic directly to the significance level. * C is incorrect because it uses the one-tailed p-value (0.055), which would be appropriate for , not the two-tailed test specified. * D is incorrect because the critical values of correspond to a two-tailed test with , not . For , the critical values are . Using this correct critical value, one would reject H₀ since is not greater than . Thus the conclusion is correct, but the reasoning is flawed. The p-value approach in B is the most complete.
- When calculating the required sample size for a two-proportion test with a specified power (e.g., 80%) and significance level, the formula incorporates variance estimates under both the null and alternative hypotheses. Why are two different variance estimates necessary? Answer: One variance is for the sampling distribution centered on the null value (for ), and the other is for the distribution centered on the alternative value (for ). When you're calculating sample size for a two-proportion test, you're essentially planning for two different scenarios that occur at different stages of your hypothesis test. Understanding this dual nature is crucial for power analysis. The correct answer is D because hypothesis testing involves two distinct probability calculations, each requiring its own variance estimate. For the significance level (α), you calculate the probability of a Type I error assuming the null hypothesis is true - this uses a variance based on the null hypothesis proportion. For power (1-β), you calculate the probability of correctly rejecting the null when the alternative hypothesis is actually true - this requires a variance based on the alternative hypothesis proportion. Since these hypotheses specify different population proportions, their sampling distributions have different variances. Option A is wrong because using two variances isn't about being conservative - it's about mathematical necessity for accurate probability calculations. Option B incorrectly suggests this only applies to unequal sample sizes; the dual variance requirement exists regardless of whether your groups are equal or unequal. Option C misrepresents the process entirely - you don't average the variances together. Each variance serves a specific purpose in its respective probability calculation. Remember this key insight: sample size calculations for hypothesis tests always involve planning for both "what if the null is true?" (for α) and "what if the alternative is true?" (for β). Each scenario has its own sampling distribution with its own variance, making two estimates mathematically essential, not optional.
- A marketing firm is testing two different advertisements, Ad A and Ad B. In a sample of 300 viewers for Ad A, 63 found it memorable. In a separate sample of 400 viewers for Ad B, 104 found it memorable. The firm conducts a hypothesis test to determine if the proportion of viewers who find the ads memorable is different for Ad A and Ad B. Which of the following represents the correct standard error for this test? Answer: For a hypothesis test of the difference of proportions (H₀: p₁ = p₂), the standard error is calculated using a pooled sample proportion, , which is the best estimate of the common proportion under the null hypothesis. The pooled proportion is calculated by combining the successes and sample sizes from both groups: . Here, , so . The standard error formula is . Choice C correctly identifies both the formula for the standard error and the correct calculation of the pooled proportion . * A is incorrect because it uses the unpooled standard error, which is appropriate for a confidence interval for the difference of proportions, not a hypothesis test. * B is incorrect because it calculates the pooled proportion by incorrectly averaging the two sample proportions, which is only valid when sample sizes are equal. * D is incorrect because it misplaces the term outside the square root, a fundamental algebraic error.
- A two-proportion z-test for versus results in a test statistic of . If the same data were analyzed using a chi-square test for homogeneity on the corresponding 2x2 contingency table, what would be the value of the chi-square () statistic and the conclusion at ? Answer: ; reject . For a test on a 2x2 table, the chi-square test for homogeneity is mathematically equivalent to the two-sided two-proportion z-test. The relationship between the test statistics is . Given , the chi-square statistic is . For a two-sided test at , the critical z-values are . Since , we reject the null hypothesis. Equivalently, for a chi-square test with , the critical value at is 3.841. Since , we reject the null hypothesis. The conclusions of both tests must be identical. * B is incorrect because it draws the wrong conclusion for the calculated statistic. * C is incorrect because it fails to square the z-statistic to find the value. * D is incorrect because the relationship allows for the direct calculation of the statistic from the z-statistic.
- An epidemiologist is studying the prevalence of a certain health condition in two different communities. In Community A, a sample of 200 individuals reveals 8 cases. In Community B, a sample of 150 individuals reveals 9 cases. The epidemiologist plans to conduct a two-proportion z-test to see if the prevalence rates differ. Which of the following presents the most significant issue for the validity of this test? Answer: The number of observed cases in Community A is too small to justify the use of the Normal approximation for the sampling distribution. A key condition for the validity of a two-proportion z-test is that the sample sizes must be large enough to ensure the sampling distribution of the difference in proportions is approximately Normal. This is typically checked by ensuring the counts of successes and failures are sufficiently large in both samples, often using the guideline and . For Community A, and the number of successes (cases) is . Since , the large counts condition is violated. This is the most significant statistical issue for the validity of the z-test procedure. * A is incorrect because the two-proportion z-test is robust to unequal sample sizes; the formulas correctly account for this. * C is incorrect because while it is a valid point about the interpretation of the study, it is a limitation of the study design, not a violation of the mathematical assumptions required to perform the test itself. * D is incorrect because there is no information to suggest the samples are not independent. The method of sampling (random sampling) is what ensures independence, not the social connections between populations.
- A researcher plans a study to detect a difference between two proportions, and , with 80% power at a significance level of . The initial plan called for equal sample sizes of . Due to budget cuts, the sample sizes must be reduced to . What is the most likely consequence of this reduction in sample size? Answer: The power of the test to detect the same true difference in proportions will decrease. Power is the probability of correctly rejecting a false null hypothesis. It depends on the sample size, the significance level (), and the size of the true effect being measured. Holding and the effect size constant, a decrease in sample size leads to an increase in the standard error of the sampling distribution. This causes the sampling distributions under the null and alternative hypotheses to overlap more, which reduces the probability of correctly rejecting the null hypothesis. Therefore, the power of the test will decrease. * A is incorrect because the probability of a Type I error is the significance level , which is set by the researcher at 0.05 and does not change with sample size. * B is incorrect for the same reason as A; is a pre-specified value. * D is incorrect because the p-value is calculated from the observed sample data. While larger samples tend to produce smaller p-values for a given effect size, the p-value is not determined before the data is collected.
- A hypothesis test is conducted to determine if the failure rates for the two sections are different. What is the value of the z-test statistic? Answer: -0.39 Let be the failure rate for in-person and be the rate for online. The hypotheses are and . 1. Calculate sample proportions: ; . 2. Calculate the pooled proportion: . 3. Calculate the standard error: . 4. Calculate the z-test statistic: , which rounds to -0.39. * B is incorrect because it likely results from using an unpooled standard error, which would be , yielding . This seems to be too close. Let's recheck calculations. Ah, -0.45 comes from a calculation error, perhaps in the pooled proportion. If one uses , then , still -0.37. The distractor is plausible if a more significant calculation error is made. * C is correct except for the sign. This would result from calculating in the numerator. * D is incorrect due to a sign error and a calculation error.
- Two studies are conducted to compare the proportion of successes for a treatment versus a control. Both studies have equal sample sizes in the treatment and control groups ().
* Study X: The sample proportions are and .
* Study Y: The sample proportions are and .
How will the z-test statistic for the difference in proportions compare between the two studies? Answer: The z-statistic for Study Y will be larger in magnitude than for Study X. The z-statistic is calculated as . The numerator, , is the same for both studies. Therefore, the comparison depends on the standard error, . The term determines the size of the SE. This term is maximized when and gets smaller as moves toward 0 or 1. * For Study X, . The variance term is . * For Study Y, . The variance term is . Since the variance term for Study Y is smaller, its standard error will be smaller. A smaller denominator (SE) for the same numerator (0.10) will result in a z-statistic that is larger in magnitude. Therefore, the z-statistic for Study Y will be larger. * A is incorrect because Study X has the larger standard error, leading to a smaller z-statistic. * C is incorrect because it ignores the effect of the pooled proportion on the standard error. * D is incorrect because the significance level does not affect the calculation of the test statistic.
- A test of against is conducted at the significance level. The test statistic is calculated to be exactly . What is the p-value for this test and the correct conclusion? Answer: p-value = 0.05; reject H₀. When you encounter a two-proportion hypothesis test with , you're dealing with a two-tailed test. This means you need to consider extreme values in both directions when calculating the p-value. With a test statistic of , you first find the area to the right of 1.96 in the standard normal distribution, which is 0.025. However, since this is a two-tailed test, you must double this value to account for both tails. The p-value is therefore . Since the p-value (0.05) equals the significance level (), you reject . The convention is that when p-value ≤ , you reject the null hypothesis. Looking at the wrong answers: Choice A correctly identifies one tail area (0.025) but mistakes it for the complete p-value, forgetting to double it for the two-tailed test. Choice B uses 0.975, which is the area to the left of 1.96 (completely irrelevant for p-value calculation). Choice C correctly calculates the p-value as 0.05 but incorrectly concludes to fail to reject – this reflects confusion about the decision rule when p-value equals . Study tip: Remember that for two-tailed tests, always double the single-tail probability. Also, the critical z-value of 1.96 at is worth memorizing – when your test statistic equals this boundary value, you're right at the rejection threshold.