Wiki Page, Math 13 - Perez Sandbox : Directions: One Column Sample Data - Hypothesis Test for the Difference in Two Population Means

Wiki Page
2026-01-17T21:14:58-08:00

These directions assume the data worksheet is open in StatCrunch.

Format (1): Sample data in one column - Detailed written directions follow the video directions.

Video Directions: Here is a video example demonstrating how to use StatCrunch to conduct a two-sample t-test when the quantitative variable (sample data) is in one column and the group designations for the categorical variable are in another column.

Written Directions:

1. Choose: Stat T statistics Two sample With Data

2. Select the data column (twice - the first time for Sample 1 and the second time for Sample 2).

3. Under the Sample 1: heading:

1. Use the Values in: drop-down menu to select the appropriate quantitative variable.

2. Use the Where option to "build" the Sample 1 group. Here you are "building" a category from the explanatory variable. To do this:

Click on Build.

Then choose the appropriate categorical variable, and click on it until the categorical variable shows up in the Expression line at the top of the Expression window.

Your cursor should now be in the Expression line right after the categorical variable. Type the equal sign.

Use the Values: drop-down menu (bottom-left of the Expression window) to select the group for your first sample. Then click the Add button (to the right of the drop-down menu).

Click Okay in the bottom right corner of the Expression window.

4. For the second sample, we repeat these steps. Under the Sample 2: heading:

1. Use the Values in: drop-down menu to select the appropriate quantitative variable. The same quantitative variable you selected for Sample 1.

2. Use the Where option to "build" the Sample 2 group. Here you are "building" a category from the explanatory variable. To do this:

Click on Build.

Then choose the same categorical variable you chose for Sample 1, and click on it until the categorical variable shows up in the Expression line at the top of the Expression window.

Your cursor should now be in the Expression line right after the categorical variable. Type the equal sign.

Use the Values: drop-down menu (bottom-left of the Expression window) to select the group for your second sample. Then click the Add button (to the right of the drop-down menu).

Click Okay in the bottom right corner of the Expression window.

5. Under Perform select the appropriate hypothesis test (based on the alternative hypothesis).

6. Press Compute!