Statistics
Grade 11-12
Two-Sample Tests (t-test, z-test) Cheat Sheet
A printable reference covering two-sample t-tests, z-tests, standard errors, confidence intervals, hypotheses, and p-values for grades 11-12.
Related Tools
Related Labs
Related Worksheets
Related Infographics
Two-sample tests compare the means or proportions of two independent groups to decide whether an observed difference is statistically meaningful. This cheat sheet helps students choose between a two-sample t-test and a two-sample z-test, set up hypotheses, and interpret results. It is useful for classwork, exams, and data investigations where two groups are being compared.
Key Facts
- Use a two-sample t-test for independent means when population standard deviations are unknown, with test statistic .
- Use a two-sample z-test for independent means when population standard deviations are known, with test statistic .
- For two proportions, use , where for a hypothesis test with .
- A confidence interval for the difference of two means is when using sample standard deviations.
- A confidence interval for the difference of two proportions is .
- The null hypothesis usually states no difference, such as or .
- Reject when the p-value is less than the significance level , such as .
- Two-sample tests require independent samples, random sampling or random assignment, and approximately normal sampling distributions.
Vocabulary
- Two-sample test
- A statistical test used to compare a parameter, such as a mean or proportion, between two independent groups.
- Null hypothesis
- The claim being tested that usually says there is no difference, such as .
- Alternative hypothesis
- The claim that represents a difference or direction of change, such as .
- Standard error
- The estimated standard deviation of a sampling distribution, such as for two sample means.
- P-value
- The probability of getting a test statistic at least as extreme as the observed one, assuming the null hypothesis is true.
- Significance level
- The cutoff probability used to decide whether evidence is strong enough to reject the null hypothesis.
Common Mistakes to Avoid
- Using a z-test when population standard deviations are unknown is wrong because sample standard deviations require the t-distribution for means.
- Pooling proportions in a confidence interval is wrong because is used for the hypothesis test under , not for estimating the interval.
- Forgetting to check independence is wrong because two-sample formulas assume the groups do not influence each other.
- Interpreting a large p-value as proof that is true is wrong because it only means the sample did not provide strong enough evidence against .
- Reversing the order of subtraction is wrong when the conclusion depends on direction, since and have opposite signs.
Practice Questions
- 1 Two independent samples have , , , , , and . Compute the two-sample t statistic for testing .
- 2 A survey finds successes out of and successes out of . Compute , , and the pooled proportion for testing .
- 3 For two independent samples, and . Using , find the confidence interval for .
- 4 Explain why a two-sample t-test is usually more appropriate than a two-sample z-test when comparing the average test scores of two classes.