Chi-Square Goodness-of-Fit Test in SPSS
Chi-Square Goodness-of-Fit Test in SPSS
A machine has a record of producing 80% excellent, 17% good, and 3% unacceptable parts. After extensive
repairs, a sample of 200 produced 157 excellent, 42 good, and 1 unacceptable part. Have the repairs changed
the nature of the output of the machine? Use SPSS with α = 0.05.
1. Enter the data into one variable (Quality: 1 = Excellent, 2 = Good, 3 = Unacceptable) so that there
are 157 Excellent (1), 42 Good (2), and 1 Unacceptable (3). This method enters raw data.
or
Enter the category values into one variable and the observed frequencies into another variable (see
left figure, below). Then weight the category values variable by the observed frequencies variable
(see two right figures, below). This method enters tabulated data.
3. Select “Quality” as the test variable and enter the values for the null hypothesis proportions in
numerical order by category value [i.e., P(Excellent) = π1,0 = 0.80, then P(Good) = π2,0 = 0.17, then
P(Unacceptable) = π3,0 = 0.03] (see right figure, below).
4. Your output gives the expected frequencies table (Step 4.1), the Chi-Square test statistic and p-value
(Step 4.3), as well as a footnote for checking the assumptions (Step 4.2).
Step 1: Hypotheses
H0: The repairs did not change the nature of the output of the machine.
[i.e., the proportions remained the same (π1 = 0.80, π2 = 0.17, π3 = 0.03)]
Ha: The repairs did change the nature of the output of the machine.
[i.e., the proportions changed after the repairs (at least one πi ≠ πi,0)]
Step 2: Significance Level
α = 0.05
Step 3: Rejection Region
Reject the null hypothesis if p-value ≤ 0.05 = α.
Step 4.1: Calculate Expected Frequencies
Step 5: Decision
Since p-value = 0.0472 ≤ 0.05, we shall reject the null hypothesis.
Step 6: State conclusion in words
At the α = 0.05 level of significance, there is enough evidence to conclude that the repairs
changed the nature of the output of the machine (the proportions are not what they used to be).