 Statistics for the Behavioral Sciences, 4/e Michael Thorne,
Mississippi State University  Mississippi State Martin Giesen,
Mississippi State University  Mississippi State
Chi Square
SPSS ExercisesUSING SPSSEXAMPLES AND EXERCISES
SPSS has procedures for performing the chisquare goodnessoffit test and the chisquare test of
independence between two categorical variables. However, SPSS is designed for use with raw data. The
data presented for the exercises in this chapter are in summary form. As a consequence, in order to use
SPSS, we must "unsummarize" the data reconstruct the data as if they came from individual participants.
Unfortunately, the process of creating the data file will be somewhat laborious, and you may decide that it's
easier to work the problems using a hand calculator than using SPSS. In spite of the difficulties, you will
gain experience that will allow you to perform the chisquarebased tests using SPSS on data in the form
you would obtain in an actual research setting.Example  ChiSquare GoodnessofFit Test: To illustrate this technique, we will work Problem 7 using
SPSS. The steps are as follows: Start SPSS and name the first variable grade. We must simulate the grade data for 170 students. Use the code numbers 4 for A, 3 for B, 2 for C, 1 for D, and 0 for F. Because there were 25 As, 35 Bs, 60 Cs, 30 Ds, and 20 Fs, you should enter 4 twentyfive times, 3 thirtyfive times, and so on. (Hint: Use the editing features of the Windows environment to help. For example, enter 4 five times, copy the block, and paste it below each successive block until you reach 25. Do the same for the other numbers in blocks of 5 or 10 depending on the totals needed.)
 Select Analyze > Nonparametric Tests > ChiSquare.
 Move grade into the Test Variable List box.
 We now need to tell SPSS what our expected frequencies ratio is, if it is something other than an equal proportion for each group. In the Expected Values box, select Values and enter 4 (for 4%) in the entry box, then click Add. Repeat this process in order for all five expected value percentages: 4, 14, 64, 14, and 4. The resulting dialog box should appear as follows. Click OK and the results should appear in the output Viewer window.
(17.0K) Notes on Reading the Output You should find the output easy to read and understand. The observed frequency, expected frequency, and difference (labeled Residual) are given in the first box and the test statistics in the second box. The results indicate that the actual grade assignment does differ significantly from a normal distribution: c^{2} (4, N = 170) = 103.11, p < .001.
(10.0K) (6.0K) Example  ChiSquare Test of Independence:
We will use SPSS to work Problem 6. Let's shorten the
data entry required for this problem by taking half of the frequency for each condition to result in an N = 80
rather than 160. The steps are as follows: Start SPSS and name variables ie and pref. Use a code value of 1 for introverts and 2 for extraverts; use 1 for Brand A, 2 for Brand B, and 3 for Brand C. You will need 21 entries for introverts preferring Brand A (ie = 1 and pref = 1), and so on. The data entry window should show a pattern like this: 1, 1 for 21 entries; 2, 1 for 18 entries; 1, 2 for 9 entries; 2, 2 for 8 entries; 1, 3 for 10 entries; and 2, 3 for 14 entries.
 Select Analyze>Summarize>Crosstabs.
 In the dialog box, move ie into the Rows box and pref into the Columns box. Select the Statistics box, then ChiSquare>Continue.
 Also select the Cells boxin the Counts box, Observed should be checked by default; also check Expected. In the Percentages box, click Total, then Continue and OK. The results should appear in the output Viewer window.
Notes on Reading the Output The IE*PREF Crosstabulation box shows the frequency (count) for each cell. Note that in each cell, the first number is the frequency, the second is the expected frequency, and the third number is the percentage for that cell based on the cell frequency divided by the total sample size. If you look at the percentages across the brand preference groups, you will see that there is not much difference in the pattern between introverts and extraverts. Both prefer Brand A, then Brand C, and Brand B least.
 Shown in the ChiSquare Tests box, the Pearson ChiSquare value is 0.956, with p = .62. Thus, the results indicate that introversion or extraversion does not make a difference in brand preference: c^{2} (2, N = 80) = 0.956, p = .62.
(20.0K) (10.0K) Exercises Using SPSS Use SPSS to work Problem 9. There should be 28 data entries, with a value of 1 for 23 and 0 for the remaining 5. Chance prediction would be that being above or below the departmental average would be equally likely; thus, the expected frequencies would be equal. This is the default in the ChiSquare Test dialog box. For Expected Values, All Categories Equal already should be checked and is the appropriate setting for this exercise. Write a conclusion.
 Use SPSS to perform a chisquare test of independence using the data from Problem 8. Name the variables esteem and risk. Use a code of 1 for low selfesteem and 2 for high selfesteem; use a code of 1 for low risk takers and 2 for high risk takers. You will need to enter data for 60 participants. Write a conclusion.
Click here to view the answers. (114.0K) 
