Psychology 241

Lab Assignment: Statistics (t-tests)

Instructions

This lab exercise will introduce you to the use of SPSS for data analysis with quantitative dependent variables. Follow the instructions below to perform the analyses, and as you do so, fill in the accompanying Answer Sheet. Turn in your answer sheet at the end of the lab session to receive credit for the lab.

The data set you will use for this assignment is available from the following link.  Right-click on it and save it to your computer's desktop.  You will start SPSS and then import the data file to SPSS.

DATA FILE:  lab3-data-ttests.txt

The data file contains 40 rows and 5 columns of numbers, plus one row of variable labels in the first row. These are hypothetical (made up) data for an experiment on balance. In the hypothetical experiment, male and female participants balanced on one foot for as long as they could, first on the right foot and then on the left. Participants assigned to one condition had to count backwards while balancing. Particpants in the other condition did not have to count backwards. The experimenter measured how long (in minutes) the particpant could balance on one foot. The data file is described by the following coding guide:

Column    variable  possible values     meaning   
 
1         ID        1-40           subject number
2         count     1, 2           1 = counting backwards; 2 = not counting
3         sex       1, 2           1 = male, 2 = female
4         right     >= 0           number of minutes balanced on right foot
5         left      >= 0           number of minutes balanced on left foot

Note regarding importing data files: SPSS can also import Excel spreadsheets. You may want to use a spreadsheet as your data file rather than creating a text file like the one used in this lab exercise. Either way, it is convenient to use the first line of your data file to list the variable names. If your data file is a text (.txt) file, SPSS gets fussy if you have more than one space between the variable names. Excel files seem to import without problems, however. Here is the path I would suggest for creating a data file for your project:

personals ads -> content analysis protocol -> data summary sheet -> coding guide -> Excel spreadsheet (data file) -> import to SPSS

In other words, use the content analysis protocol to assign values to the variables in your data summary sheet based on the content of the ads, use the coding guide to tell you what values to put in the spreadsheet, use the spreadsheet as your data file, and import it to SPSS for analysis.

 

Assignment for this lab session:

1) After saving the data file to your local hard drive, import it to SPSS as a data file by following these steps:

2) Create a frequency table of all of the variables in the data file, in order to check for invalid data. Use the following steps:

3) Use stem plots (stem and leaf plots) to check for outliers (outlying data points) for each of the variables "right" and "left." SPSS will identify any points it decides are outliers and label them as "Extremes" in the stem plot. Follow these steps to produce stem plots:

4) Create a table of means comparing males vs. females on each of the variables "right" and "left." Use the following procedure:

5) Test the hypothesis that counting backwards makes it harder to balance on the right foot. To do this, you will need to perform and independent samples t-test. An independent samples test is used when each subject was in only one condition - when you have a separate control group and experimental group. In a repeated measures (or within-subjects design) on the other hand, each subject participates in both the control condition and the experimental condition. In that case, you would need to use a paired-samples t-test. Follow these steps to perform an independent samples t-test:

6) The variables "right" and "left" actually measure the same thing (time balanced on one foot) in two different conditions (left vs. right foot). Test the hypothesis that which foot someone is standing on makes a difference in how long they can balance on one foot. Because the DV in this hypothesis (time balanced) is measured twice for each participant, we call this a repeated measure (or within-subjects) design. Another way to tell that it is a within-subjects design is because each subject gets all levels of the IV (in this case, the IV is "which foot" and the two levels are "right" and "left"). For a within-subjects design, you must use a Paired Samples t-test to compare the means of the two conditions. Follow these steps to test the hypothesis with a Paired Samples t-test:

7) Is there any relationship between how long someone balances on the right foot and how long they balance on the left foot? In other words, are the variables "left" and "right" correlated? Follow these steps to calculate the correlation coefficient for these two variables:

8) Create a scatterplot for the variables "right" and "left."