BBS11 PPT ch12
BBS11 PPT ch12
11th Edition
Chapter 12
Contingency Tables
Useful in situations involving multiple population
proportions
Used to classify sample observations according
to two or more characteristics
Also called a cross-classification table .
Hand Preference
sample size = n = 300:
Gender Left Right
120 Females, 12
were left handed
Female 12 108 120
180 Males, 24 were
left handed Male 24 156 180
36 264 300
Decision Rule:
2 2
χ
If STAT χ α , reject H 0,
otherwise, do not reject
H0
0
Do not Reject H0
reject H0
2α
Hand Preference
Decision Rule:
2
If χ STAT > 3.841, reject H0,
otherwise, do not reject H0
Here,
2 2
0.05 χ STAT = 0.7576< χ 0.05 = 3.841,
so we do not reject H0 and
0 conclude that there is not
Do not Reject H0 sufficient evidence that the two
reject H0
20.05 = 3.841 proportions are different at =
0.05
H 0: π 1 = π 2 = … = π c
H1: Not all of the πj are equal (j = 1, 2, …, c)
2
χ STAT 12.792 χ 02.01 9.2103 so reject H 0
Other Data
Level of significance 0.01 Chi-sq Critical Value 9.2103
d.f 2
Q Statistic 3.034854
At 1% level of significance, there is evidence of a difference
in attitude between students and faculty
Where:
row total = sum of all frequencies in the row
column total = sum of all frequencies in the column
n = overall sample size
If χ 2 χ 2 , reject H ,
0
STAT α
2
Where χ α is from the chi-squared distribution
with (r – 1)(c – 1) degrees of freedom
( f o f e )2
2
χ STAT
all cells
fe
( 24 24.5 ) 2 ( 32 30.8 ) 2 ( 10 8.4 ) 2
0.709
24.5 30.8 8.4
2
The test statistic is χ STAT 0.709 ; χ 02.05 with 6 d.f. 12.592
Decision Rule:
2
If χ STAT > 12.592, reject H0,
otherwise, do not reject H0
0.05 Here,
2
χ STAT = 0.709 < χ 0.2 05 = 12.592,
so do not reject H0
0
Do not Reject H0 Conclusion: there is not
reject H0 sufficient evidence that meal
20.05=12.592 plan and class standing are
related at = 0.05
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 12-30
McNemar Test (Related Samples)
Condition 2
Yes A B A+B
No C D C+D
A C
p2 proportion of respondents who answer yes to condition 2
n
Test H0: π1 = π2
(the two population proportions are equal)
H1: π1 ≠ π2
(the two population proportions are not equal)
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 12-33
McNemar Test (Related Samples)
(continued)
B C
Z STAT
BC
2 (n - 1)S 2
χ STAT
σ2
n(n 1)
T1 T2
2
where n = n1 + n2
standard deviation σ T : 1
n1 (n 1) n1 n2 (n 1)
μT1 σ T1
2 12
Must use the normal approximation if either n1
or n2 > 10
Assign n1 to be the smaller of the two sample sizes
Can use the normal approximation for small samples
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 12-48
Wilcoxon Rank-Sum Test
(Large Sample)
(continued)
12
Where ZSTAT approximately follows a
standardized normal distribution
n2 = 5 (factory A)
n1 n 2 ( n 1 ) 4 ( 5 )( 9 1 )
σT 4.082
1 12 12
For small samples (n’ < 20), use Table E.9 for
the critical value of W
n' (n'1)
μW
4
n' (n'1)(2n'1)
σW
24
n' (n'1)
W
Z STAT 4
n' (n'1)(2n'1)
24
To test for no median difference in the paired
values:
H0: MD = 0
H1: MD ≠ 0
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 12-55
Kruskal-Wallis Rank Test
Tests the equality of more than 2 population
medians
Use when the normality assumption for one-
way ANOVA is violated
Assumptions:
The samples are random and independent
Variables have a continuous distribution
The data can be ranked
Populations have the same variability
Populations have the same shape
groups
Compute the H test statistic
12 c T2
H j
3(n 1)
n(n 1) j1 n j
where:
n = sum of sample sizes in all groups
c = Number of groups
Tj = Sum of ranks in the jth group
nj = Number of values in the jth group (j = 1, 2, … , c)
Decision rule
Reject H0 if test statistic H > 2α
Otherwise do not reject H0
0
Do not Reject H0
reject H0
2α
The H statistic is
c T2
12
j
H 3(n 1)
n(n 1) nj
j 1
12 45.52 55.52 19 2
3(15 1) 7.12
15(15 1) 5 5 5
2
Since H = 7.12 >0.05 5.991
χ
,
reject H0
There is sufficient evidence to reject that
the population medians are all equal
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 12-63
Friedman Rank Test
2
Reject H0 if FR χ α