Assignment: Using Technology with Data to Run a Hypothesis Test

 

The purpose of this activity is to give you guided practice in carrying out the two-sample t-test, and to show you how to use software to aid in the process.

Background

Do undergraduates sleep less than graduate students? A student conducted a study of sleep habits at a large state university. His hypothesis is that undergraduates will party more and sleep less than graduate students. He surveyed random samples of 75 undergraduate students and 50 graduate students. Subjects reported the hours they sleep in a typical night.

For this hypothesis test, he defined the population means as follows:

  • μ1 is the mean number of hours undergraduate students sleep in a typical night.
  • μ2 is the mean number of hours graduate students sleep in a typical night.

Question 1:

State the null and alternative hypotheses that are being tested here.

Question 2:

Explain why we can safely use the two-sample T-test in this case.

Comment: Before we move on to carry out the test, it is important to realize that in the two-sample problem, the data can be provided in three possible ways:

(i) Sample data in one column, and another column that indicates which sample the observation belongs to. Recall that this is the way the data were given in our leading example (looks vs. personality score and gender):

Note that essentially, one column contains the explanatory variable, and one contains the response.

(ii) Sample data in different columns—data from each of the two samples appear in a column dedicated to that category. As you’ll see, this is the way the data are provided in this example:

(iii) Summarized data—we are not given the actual data, but just the data summaries: sample sizes, sample means and sample standard deviations of both samples. Recall that in our second example, the data were given in this format.

Instructions

Click on the link corresponding to your statistical package to see instructions for completing the activity, and then answer the questions below.

R | StatCrunch | Minitab | Excel 2007 | TI Calculator

Question 3:

Carry out the test and report the test statistic and P-value.

Question 4:

Draw your conclusions in context.
{"cc_re__cc_re__cc_by_4_0": ["icense-attribution-dropdown\">Licenses and Attributions</div>\n              <div id=\"citation-list-559\" style=\"display:none;\">\n                <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously</div><ul class=\"citation-list\"><li>Concepts in Statistics. <strong>Provided by</strong>: Open Learning Initiative. <strong>Located at</strong>: <a target=\"_blank\" href=\"http://oli.cmu.edu\">http://oli.cmu.edu</a>. <strong>License</strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY: Attribution</a></em></li></ul></div>              </div>\n            </div>\n          </section>\n        \n\n\t\t\t\t\t\t\t\t\t<!-- edit page button -->\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t<!-- page nav buttons -->\n\t\t\t\t<nav class=\"bottom-nav-buttons\" role=\"navigation\">\n\t\t\t\t\t<a class=\"post-nav-button\" id=\"prev\" href=\"https://courses.lumenlearning.com/atd-herkimer-statisticssocsci/chapter/assignment-test-of-independence-using-technology/\">\n\t\t\t\tPrevious\t\t\t</a>\n\t\t\n\t\t\t\t\t<a class=\"post-nav-button\" id=\"next\" href=\"https://cours"], "copyright__copyright__copyright": ["ata summaries: sample sizes, sample means and sample standard deviations of both samples. Recall that in our second example, the data were given in this format.\n\nInstructions\n\nClick on the link corresponding to your statistical package to see instructions for completing the activity, and then answer the questions below.\n\nR | StatCrunch | Minitab | Excel 2007 | TI Calculator\n\nQuestion 3:\n\nCarry out the test and report the test statistic and P-value.\n\nQuestion 4:\n\nDraw your conclusions in context.", "ata summaries: sample sizes, sample means and sample standard deviations of both samples. Recall that in our second example, the data were given in this format.\n\nInstructions\n\nClick on the link corresponding to your statistical package to see instructions for completing the activity, and then answer the questions below.\n\nR | StatCrunch | Minitab | Excel 2007 | TI Calculator\n\nQuestion 3:\n\nCarry out the test and report the test statistic and P-value.\n\nQuestion 4:\n\nDraw your conclusions in context.", "ata summaries: sample sizes, sample means and sample standard deviations of both samples. Recall that in our second example, the data were given in this format.\n\nInstructions\n\nClick on the link corresponding to your statistical package to see instructions for completing the activity, and then answer the questions below.\n\nR | StatCrunch | Minitab | Excel 2007 | TI Calculator\n\nQuestion 3:\n\nCarry out the test and report the test statistic and P-value.\n\nQuestion 4:\n\nDraw your conclusions in context.", "ata summaries: sample sizes, sample means and sample standard deviations of both samples. Recall that in our second example, the data were given in this format.\n\nInstructions\n\nClick on the link corresponding to your statistical package to see instructions for completing the activity, and then answer the questions below.\n\nR | StatCrunch | Minitab | Excel 2007 | TI Calculator\n\nQuestion 3:\n\nCarry out the test and report the test statistic and P-value.\n\nQuestion 4:\n\nDraw your conclusions in context."]}