Professional Documents
Culture Documents
Homework Problems - Chi-Square Test of Independence
Homework Problems - Chi-Square Test of Independence
Homework Problems - Chi-Square Test of Independence
Data Analysis
and Computers I
Chi-square Test of Independence
Slide 1
Slide 2
Slide 3
Slide 4
Independence Defined
Data Analysis
and Computers I
Slide 5
Independence Demonstrated
Data Analysis
and Computers I
Slide 6
Slide 7
80% 80%
60%
60% 60%
40% 40% 40% 40%
40% 40%
20%
20% 20%
0% 0%
Males Females Total Males Females Total
SW388R6
Expected Frequencies
Data Analysis
and Computers I
Slide 8
Slide 9
Slide 10
Expected Frequencies vs. Observed Frequencies
Slide 11
Hypotheses
Data Analysis
and Computers I
Slide 12
Slide 13
Slide 14
Slide 15
Slide 16
Standardized Residuals
Data Analysis
and Computers I
Slide 17
Slide 18
Slide 19
A chi-square test of
independence of the
relationship between
sex and marital status
finds a statistically
significant relationship
between the
variables.
SW388R6
Data Analysis Interpreting Cell Differences in
a Chi-square Test - 2
and Computers I
Slide 20
Slide 21
Slide 22
Number of Value
Degrees of freedom Significance
valid of
(from SPSS output) of statistic
cases statistic
Source: depts.washington.edu/psywc/handouts/pdf/stats.pdf
SW388R6
Data Analysis Chi-square test of independence :
APA Style – Example 2
and Computers I
Slide 23
Slide 24
This problem uses the data set GSS2000R.Sav to compare the breakdown for the
variable "should marijuana be made legal" [grass] for groups of survey
respondents defined by the variable "general happiness" [happy]. Using a chi-
square test of independence, is the following statement true, true with caution,
false, or an incorrect application of a statistic? Use .05 as alpha and 1.96 as the
critical value for the post hoc test.
Within the group of survey respondents who said that overall they were not too
happy, there were significantly more who thought the use of marijuana should
be made legal than would have been expected based on the breakdown of
"should marijuana be made legal" by "general happiness".
Slide 25
This problem uses the data set GSS2000R.Sav to compare the breakdown for the
variable "should marijuana be made legal" [grass] for groups of survey
respondents defined by the variable "general happiness" [happy]. Using a chi-
square test of independence, is the following statement true, true with caution,
false, or an incorrect application of a statistic? Use .05 as alpha and 1.96 as the
critical value for the post hoc test.
Slide 26
This problem uses the data set GSS2000R.Sav to compare the breakdown for the
variable "should marijuana be made legal" [grass] for groups of survey
respondents defined by the variable "general happiness" [happy]. Using a chi-
square test of independence, is the following statement true, true with caution,
false, or an incorrect application of a statistic? Use .05 as alpha and 1.96 as the
critical value for the post hoc test.
Within the group of survey respondents who said that overall they were not too
happy, there were significantly more who thought the use of marijuana should
be made legal than would have been expected based on the breakdown of
"should marijuana be made legal" by "general happiness".
Slide 27
This
Theproblem
answer touses the data
a problem set GSS2000R.Sav to compare the breakdown for the
will
variable
be True"should marijuana
if the test of be made legal" [grass] forSince
groupsit isoflegitimate
survey to
independence supports the use ordinal variables in
respondents defined
finding in the problem by the variable "general happiness" [happy]. Using
the chi-square test ofa chi-
statement.
square test ofThe answer to a
independence, independence,
is the following statement true, true True with caution,
problem will be False if the test with caution is not
false, or an incorrect
of independence doesapplication
not of a statistic? Use .05 as for
used alphatheseand 1.96 as the
support the finding in the problems.
critical value for the post hoc test.
problem statement.
Within the group of survey respondents who said that overall they were not too
happy, there were significantly more who thought the use of marijuana should
be made legal than would have been expected based on the breakdown of
"should marijuana be made legal" by "general happiness".
Slide 28
Slide 29
To chi-square test
of independence is
computed for
cross-tabulated
tables.
Select Descriptive
Statistics > Crosstabs…
from the Analyze menu.
SW388R6
Data Analysis Solving the problem with SPSS:
The chi-square test of independence- 2
and Computers I
Slide 30
Slide 31
Slide 32
Slide 33
Third, we click
on the
Continue
button to close
the dialog box.
Second, we mark
the check box for
Standardized
residuals, which
we will use for the
post hoc test.
SW388R6
Data Analysis Solving the problem with SPSS:
The chi-square test of independence- 6
and Computers I
Slide 34
Having completed
the specifications
for the test, we
click on the OK
button to generate
the output.
SW388R6
Data Analysis Solving the problem with SPSS:
Sample size requirement
and Computers I
Slide 35
Slide 36
Slide 37
Slide 38
Slide 39
This requires that the We can verify the direction of the relationship by
standardized residuals is comparing the Count to the Expected Count.
greater than the critical
value. Consistent with the proportion of subjects for
General Happiness and Should Marijuana be
Made Legal, we would have expected 5.2 in the
specific combination for this problem. We actually
had 12 subjects for this combination, more than
we would have expected.
Slide 40
Slide 41
All expected
frequencies ≥ 1?
No
Inappropriate
Yes application of
a statistic
Inappropriate
Yes application of
a statistic
SW388R6
Data Analysis Logic for homework problems:
Chi-square Test of Independence - 2
and Computers I
Slide 42
Probability of the No
chi-square False
statistic ≤ alpha?
Yes
Standardized
residual for target No
False
cell ≥ critical
value?
Yes
Correct interpretation
of relationship (more No
or less than False
expected)?
Yes
True