Statistics · Hypothesis Testing with Two Samples
Hypothesis Testing for Two Means and Two Proportions
CC BY 4.0 · OpenStax · approximately 3 min read
Hypothesis Testing for Two Means and Two Proportions
Student Learning Outcomes
The student will select the appropriate distributions to use in each case.
The student will conduct hypothesis tests and interpret the results.
Supplies: The business section from two consecutive days’ newspapers
Three small packages of multicolored chocolates
Five small packages of peanut butter candies
Increasing Stocks Survey Look at yesterday’s newspaper business section. Conduct a hypothesis test to determine if the proportion of New York Stock Exchange (NYSE) stocks that increased is greater than the proportion of NASDAQ stocks that increased. As randomly as possible, choose 40 NYSE stocks and 32 NASDAQ stocks and complete the following statements.
H0 : _________
Ha : _________
In words, define the random variable.
The distribution to use for the test is _____________.
Calculate the test statistic using your data.
Draw a graph and label it appropriately. Shade the actual level of significance.
Graph:
View original figure (external; image not reproduced in this text edition)
Original figure description: This is a blank graph template. The vertical and horizontal axes are unlabeled.
Calculate the p value.
Do you reject or not reject the null hypothesis? Why?
Write a clear conclusion using a complete sentence.
Decreasing Stocks Survey Randomly pick eight stocks from the newspaper. Using two consecutive days’ business sections, test whether the stocks went down, on average, for the second day.H0 : ________
Ha : ________
In words, define the random variable.
The distribution to use for the test is _____________.
Calculate the test statistic using your data.
Draw a graph and label it appropriately. Shade the actual level of significance.
GraphView original figure (external; image not reproduced in this text edition)
Original figure description: This is a blank graph template. The vertical and horizontal axes are unlabeled.
Calculate the p value:
Do you reject or not reject the null hypothesis? Why?
Write a clear conclusion using a complete sentence.
Candy Survey Buy three small packages of multicolored chocolates and five small packages of peanut butter candies (same net weight as the multicolored chocolates). Test whether the mean number of candy pieces per package is the same for the two brands.
H0 : ________
Ha : ________
In words, define the random variable.
What distribution should be used for this test?
Calculate the test statistic using your data.
Draw a graph and label it appropriately. Shade the actual level of significance.
GraphView original figure (external; image not reproduced in this text edition)
Original figure description: This is a blank graph template. The vertical and horizontal axes are unlabeled.
Calculate the p value.
Do you reject or not reject the null hypothesis? Why?
Write a clear conclusion using a complete sentence.
Shoe Survey
Test whether women have, on average, more pairs of shoes than men. Include all forms of sneakers, shoes, sandals, and boots. Use your class as the sample.
H0 : ________
Ha : ________
In words, define the random variable.
The distribution to use for the test is ________________.
Calculate the test statistic using your data.
Draw a graph and label it appropriately. Shade the actual level of significance.
GraphView original figure (external; image not reproduced in this text edition)
Original figure description: This is a blank graph template. The vertical and horizontal axes are unlabeled.
Calculate the p value.
Do you reject or not reject the null hypothesis? Why?
Write a clear conclusion using a complete sentence.
Attribution. Statistics, OpenStax, Rice University, and the contributing authors credited in the book. Licensed under Creative Commons Attribution 4.0 International. Source revision 7dea80ae28 of openstax/osbooks-statistics (2026-04-23). CC BY 4.0 . Original source ↗ . Text edition of a pinned CC BY 4.0 source revision of the OpenStax book, converted from CNXML by the EvidenceHelix importer. Original prose, learning objectives, tables, exercises, glossary and captions are preserved; images are not copied (figures link to the original source and keep their credits). No new content was added. Later revisions of this book can carry different licence terms and are not used.