# learn by doing 3

In this activity you will learn to use StatCrunch to perform a two-sample t-test.

Some features of this activity may not work well on a cell phone or tablet. We highly recommend that you complete this activity on a computer.

Here are the directions and grading rubric for the Learn by Doing discussion board exercises.

A list of StatCrunch directions is provided at the bottom of this page.

### Context

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.

### Variables

Hours: typical number of hours a student sleeps each night

Program is the explanatory variable, and the data is categorical. Hours is the response variable, and the data is quantitative.

### Data

Download the sleep2 (Links to an external site.) datafile, and upload the file in StatCrunch.

### Prompt

1. State the null and alternative hypotheses. Include a clear description of the populations and the variable.
2. Explain why we can safely use the two-sample T-test in this case.
3. Use StatCrunch to carry out the test. (directions)
Copy and paste the content of in the StatCrunch output window (text and the table) in your initial post.
4. State a conclusion in the context of this problem.

I will attach statcrunch information once bid is selected