Business Statistics: A Decision-Making Approach, 6e © 2010 Prentice-Chapter Goals After completing this chapter, you should be able to: Use the chi-square goodness-of-fit test to de
Trang 1Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 2Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Chapter Goals
After completing this chapter, you should be
able to:
Use the chi-square goodness-of-fit test to
determine whether data fits a specified distribution
Set up a contingency analysis table and perform a chi-square test of independence
Trang 3Business Statistics: A Decision-Making Approach, 6e © 2010
Does sample data conform to a hypothesized
Trang 4Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice- Are technical support calls equal across all days of the week? (i.e., do calls follow a uniform distribution?)
Sample data for 10 days per day of week:
Sum of calls for this day:
Monday 290 Tuesday 250 Wednesday 238 Thursday 257 Friday 265 Saturday 230 Sunday 192
Chi-Square Goodness-of-Fit
Test
(continue d)
= 1722
Trang 5Business Statistics: A Decision-Making Approach, 6e © 2010
Logic of Goodness-of-Fit Test
If calls are uniformly distributed, the 1722 calls
would be expected to be equally divided across the 7 days:
Chi-Square Goodness-of-Fit Test: test to see if the sample results are consistent with the
expected results
uniform if
day per
calls expected
246 7
1722
Trang 6Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Observed vs Expected
Frequencies
Observed
o i Expected e i Monday
Tuesday Wednesday Thursday Friday Saturday Sunday
290 250 238 257 265 230 192
246 246 246 246 246 246 246
Trang 7Business Statistics: A Decision-Making Approach, 6e © 2010
Chi-Square Test Statistic
The test statistic is
1) k
df (where
e
) e (o
i
2 i i
o i = observed cell frequency for category i
e i = expected cell frequency for category i
H 0 : The distribution of calls is uniform over days of the week
H A : The distribution of calls is not uniform
Trang 8Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-The Rejection Region
2
e
) e o
(with k – 1 degrees
Trang 9Business Statistics: A Decision-Making Approach, 6e © 2010
23.05 246
246)
(192
246
246)
(250 246
246)
2
Chi-Square Test Statistic
H0: The distribution of calls is uniform over days of the week
HA: The distribution of calls is not uniform
0
= 05
Reject H0
Do not reject H0
2
k – 1 = 6 (7 days of the week) so
use 6 degrees of freedom:
2 05 = 12.5916
2 05 = 12.5916
Conclusion:
2 = 23.05 > 2
= 12.5916 so
distribution is not uniform
Trang 10Business Statistics: A Decision-Making Approach, 6e © 2010
follow a normal distribution with μ = 50 and σ
= 15?
Process:
Get sample data
Group sample results into classes (cells) (Expected cell frequency must be at least
5 for each cell)
Compare actual cell frequencies with expected cell frequencies
Normal Distribution Example
Trang 11Business Statistics: A Decision-Making Approach, 6e © 2010
Normal Distribution Example
150 Sample Measurements
80 65 36 66 50 38 57 77 59
Sample data and values grouped into classes:
Trang 12Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice- What are the expected frequencies for these classes for
a normal distribution with μ = 50 and σ = 15?
(continue d)
•Class •Frequency Frequency •Expected
Trang 13Business Statistics: A Decision-Making Approach, 6e © 2010
Example:
.0912
1.3333) P(z
15
50 30
z P 30) P(x
(.0912)(15
Trang 14Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-The Test Statistic
e
) e o
2
2 α
Trang 15Business Statistics: A Decision-Making Approach, 6e © 2010
The Rejection Region
097
12 57
0
) 57 0 2
(
68 13
) 68 13 10
( e
) e o
i
2 i i
2
8 classes so use 7 d.f.:
2 05 = 14.0671
Trang 16Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Contingency Tables
Contingency Tables
Situations involving multiple population
proportions
Used to classify sample observations according
to two or more characteristics
Also called a crosstabulation table.
Trang 17Business Statistics: A Decision-Making Approach, 6e © 2010
Contingency Table Example
H 0 : Hand preference is independent of gender
H A : Hand preference is not independent of gender
Left-Handed vs Gender
Dominant Hand: Left vs Right
Gender: Male vs Female
Trang 18Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Contingency Table Example
Sample results organized in a contingency table:
(continue d)
Gender
Hand Preference Left Right Female 12 108 120
Trang 19Business Statistics: A Decision-Making Approach, 6e © 2010
Logic of the Test
If H 0 is true, then the proportion of left-handed females should be the same as the proportion of left-handed males
The two proportions above should be the same as the proportion of left-handed people overall
H 0 : Hand preference is independent of gender
H A : Hand preference is not independent of gender
Trang 20Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Finding Expected
Frequencies
Overall:
P(Left Handed) = 36/300 = 12
120 Females, 12 were left handed
180 Males, 24 were left handed
If independent, then
P(Left Handed | Female) = P(Left Handed | Male) = 12
So we would expect 12% of the 120 females and 12% of the 180
males to be left handed…
i.e., we would expect (120)(.12) = 14.4 females to be left handed
(180)(.12) = 21.6 males to be left handed
Trang 21Business Statistics: A Decision-Making Approach, 6e © 2010
Expected Cell Frequencies
Expected cell frequencies:
(continue d)
size sample
Total
total) Column
j total)(
Row
i(
e
th th
ij
4
14 300
) 36 )(
120
(
e 11
Example:
Trang 22Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 23Business Statistics: A Decision-Making Approach, 6e © 2010
The Chi-Square Test Statistic
where:
o ij = observed frequency in cell (i, j)
e ij = expected frequency in cell (i, j)
c
1
2 ij ij
2
e
) e o
(
The Chi-square contingency test statistic is:
) 1 c )(
1 r ( d
Trang 24Business Statistics: A Decision-Making Approach, 6e © 2010
0 4
158
) 4 158 156
( 6
21
) 6 21 24
( 6
105
) 6 105 108
( 4
14
) 4 14 12
Trang 25Business Statistics: A Decision-Making Approach, 6e © 2010
Contingency Analysis
2
2 05 = 3.841
Reject H 0
= 0.05
Decision Rule:
If 2 > 3.841, reject H 0 , otherwise, do not reject H 0
1 (1)(1)
1) - 1)(c -
(r d.f.
with 6848
0
Trang 26Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Chapter Summary
Used the chi-square goodness-of-fit test to
determine whether data fits a specified distribution
Example of a discrete distribution (uniform)
Example of a continuous distribution (normal)
Used contingency tables to perform a chi-square test of independence
Compared observed cell frequencies to expected cell frequencies