Chi Square
used when data are nominal (both IV and
DV)
Comparing frequencies of distributions
Chi Square
Test statistic is based on counts that represent
the number of items that fall in each category
For testing significance of patterns in
qualitative data
Test statistics measures the agreement
between actual counts and expected counts
assuming the null hypothesis
Chi Square
Establish the level of significance:
Formulate the statistical hypothesis
Calculate the test statistic
Determine the degree of freedom
Compare computed test statistic against a
tabled/critical value
6. Determine the appropriate test
1.
2.
3.
4.
5.
Chi Square
2 tables are included in most statistics texts
and consist of columns and rows, with
columns representing areas under the curve
and rows associated with the degrees of
Chi Square
The chi-square distribution can be used to see
Formula
2
(
F
F
)
2
o
e
Fe
4. Calculating Test
Statistics
Continued
O
fre bs
qu erv
en ed
ci
es
( Fo Fe )
Fe
Ex
fre pec
qu te
en d
cy
Ex
fre pe
qu cte
en d
cy
Example continued
Martzial
Breece
Dunton
artesani
Observed fo = 40
Frequency
fo = 62
fo = 56
fo = 42
fo = 200
Expected fe =50
Frequency
fe = 50
fe = 50
fe = 50
fe = 200
(fo - fe )2
fe
(62 50)2
50
= (12)2
50
= 2.88
= fo
fe )2
fe
= 2.00 +
2.88 + .
(40 50)2
50
(-10)2
50
= 2.00
Example continued
The one varialbe chi square test is quite simple.
Example continued
Next you compute your df.
For a one variable case it is simple
df = C 1; where C = number of columns
fe = (frow ) (fcol )
n
The easiest way to learn chi square is by
example.
Example
Suppose a researcher is interested in voting
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
25
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
d 25
e
v ies
r
e nc
s
b e
O qu
e
fr
17
Row frequency
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
25
18
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
Column frequency
25
19
20
21
2. Establish Level
of Significance
Alpha of .05
3. Determine The
Hypothesis
Ho : There is no difference between D & R in
22
Neutral
Oppose
f row
fo =10
fo =10
fe =13.9 fe =13.9
fo =30
fe=22.2
50
Republican fo =15
fo =15
fe =11.1 fe =11.1
fo =10
fe =17.8
40
f column
40
n = 90
Democrat
25
25
23
4. Calculating TestContinued
Statistics
Favor
Democrat
Neutral
Oppose
= 50*25/90
f row
fo =10
fo =10
fe =13.9 fe =13.9
fo =30
fe=22.2
50
Republican fo =15
fo =15
fe =11.1 fe =11.1
fo =10
fe =17.8
40
f column
40
n = 90
25
25
24
4. Calculating TestContinued
Statistics
Favor
Neutral
Oppose
f row
fo =10
fo =10
fe =13.9 fe =13.9
fo =30
fe=22.2
50
Republican fo =15
fo =15
fe =11.1 fe =11.1
fo =10
fe =17.8
40
f column
40
n = 90
Democrat
= 40* 25/90
25
25
25
Continued
13
.
89
)
(
10
13
.
89
)
(
30
22
.
2
)
2
13.89
13.89
22.2
11.11
11.11
17.8
= 11.03
26
of
r
e
b
Num ls in
leve mn
colu ble
a
vari
Numb
levels er of
in
varia row
ble
27
5. Determine
Degrees of
Freedom
df = (R-1)(C-1)
28
5. Determine
Degrees of
Freedom
df = (R-1)(C-1) =
(2-1)(3-1) = 2
29