SlideShare a Scribd company logo
1 of 32
Chap 12-1
Chapter 12
Tests of Goodness of Fit and
Independence
BUSINESS STATISTICS
Chap 12-2
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
 Perform tests for normality
 Set up a contingency analysis table and perform a
chi-square test of association
Chap 12-3
 Does sample data conform to a hypothesized
distribution?
 Examples:
 Do sample results conform to specified expected
probabilities?
 Are technical support calls equal across all days of
the week? (i.e., do calls follow a uniform
distribution?)
 Do measurements from a production process
follow a normal distribution?
Chi-Square Goodness-of-Fit Test
Chap 12-4
 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
(continued)
= 1722
Chap 12-5
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

Chap 12-6
Observed vs. Expected
Frequencies
Observed
Oi
Expected
Ei
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
290
250
238
257
265
230
192
246
246
246
246
246
246
246
TOTAL 1722 1722
Chap 12-7
Chi-Square Test Statistic
 The test statistic is
1)
K
d.f.
(where
E
)
E
(O
K
1
i i
2
i
i
2



 


where:
K = number of categories
Oi = observed frequency for category i
Ei = expected frequency for category i
H0: The distribution of calls is uniform
over days of the week
H1: The distribution of calls is not uniform
Chap 12-8
The Rejection Region
 Reject H0 if




K
1
i i
2
i
i
2
E
)
E
(O

H0: The distribution of calls is uniform
over days of the week
H1: The distribution of calls is not uniform
2
α
2



0
2
Reject H0
Do not
reject H0
(with k – 1 degrees
of freedom) 2
Chap 12-9
23.05
246
246)
(192
...
246
246)
(250
246
246)
(290 2
2
2
2









Chi-Square Test Statistic
H0: The distribution of calls is uniform
over days of the week
H1: 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 =
Conclusion:
2 = 23.05 > 2 = 12.5916 so
reject H0 and conclude that the
distribution is not uniform
Chap 12-10
15-10
Chi-Square Test for Goodness-of-
Fit
• A multinomial distribution is defined by any k probabilities p1, p2,
…, pk that sum to unity.
• For example, consider the following “official” proportions of M&M
colors.
Multinomial GOF Test
calc
Chap 12-11
15-11
Chi-Square Test for Goodness-of-Fit
• The hypotheses are
H0: p1 = .30, p2 = .20, p3 = .10, p4 = .10, p5 = .10, p6 = .20
H1: At least one of the pj differs from the
hypothesized value
• No parameters are estimated (m = 0) and there are c = 6 classes, so
the degrees of freedom are
n = k – 1=5
Multinomial GOF Test
Chap 12-12
Goodness-of-Fit Tests, Population
Parameters Unknown
Idea:
 Test whether data follow a specified distribution
(such as binomial, Poisson, or normal) . . .
 . . . without assuming the parameters of the
distribution are known
 Use sample data to estimate the unknown
population parameters
Chap 12-13
 Suppose that a null hypothesis specifies category
probabilities that depend on the estimation (from the
data) of m unknown population parameters
 The appropriate goodness-of-fit test is the same as in
the previously section . . .
 . . . except that the number of degrees of freedom for
the chi-square random variable is
 Where K is the number of categories




K
1
i i
2
i
i
2
E
)
E
(O

1)
m
(K
Freedom
of
Degrees 


Goodness-of-Fit Tests, Population
Parameters Unknown
(continued)
Chap 12-14
Test of Normality
 The assumption that data follow a normal
distribution is common in statistics
 Normality was assessed in prior chapters
 Normal probability plots (Chapter 6)
 Normal quintile plots (Chapter 8)
 Here, a chi-square test is developed
Chap 12-15
Test of Normality
 Two population parameters can be estimated using
sample data:
 For a normal distribution,
Skewness = 0
Kurtosis = 3
(continued)
3
n
1
i
3
i
ns
)
x
(x
Skewness




4
n
1
i
4
i
ns
)
x
(x
Kurtosis




Chap 12-16
Bowman-Shelton
Test for Normality
 Consider the null hypothesis that the population
distribution is normal
 The Bowman-Shelton Test for Normality is based on the closeness
the sample skewness to 0 and the sample kurtosis to 3
 The test statistic is
 as the number of sample observations becomes very large, this
statistic has a chi-square distribution with 2 degrees of freedom
 The null hypothesis is rejected for large values of the test statistic





 


24
3)
(Kurtosis
6
(Skewness)
n
B
2
2
Chap 12-17
Bowman-Shelton
Test for Normality
 The chi-square approximation is close only for very
large sample sizes
 If the sample size is not very large, the Bowman-
Shelton test statistic is compared to significance points
from text Table 16.7
(continued)
Sample
size N
10%
point
5% point Sample
size N
10%
point
5% point
20
30
40
50
75
100
125
150
2.13
2.49
2.70
2.90
3.09
3.14
3.31
3.43
3.26
3.71
3.99
4.26
4.27
4.29
4.34
4.39
200
250
300
400
500
800
∞
3.48
3.54
3.68
3.76
3.91
4.32
4.61
4.43
4.61
4.60
4.74
4.82
5.46
5.99
Chap 12-18
 The average daily temperature has been recorded for
200 randomly selected days, with sample skewness
0.232 and kurtosis 3.319
 Test the null hypothesis that the true distribution is
normal
 From Table 16.7 the 10% critical value for n = 200 is
3.48, so there is not sufficient evidence to reject that the
population is normal
2.642
24
3)
(3.319
6
(0.232)
200
24
3)
(Kurtosis
6
(Skewness)
n
B
2
2
2
2






 







 


Example: Bowman-Shelton
Test for Normality
Chap 12-19
Contingency Tables
Contingency Tables
 Used to classify sample observations according
to a pair of attributes
 Also called a cross-classification or cross-
tabulation table
 Assume r categories for attribute A and c
categories for attribute B
 Then there are (r x c) possible cross-classifications
Chap 12-20
r x c Contingency Table
Attribute B
Attribute A 1 2 . . . C Totals
1
2
.
.
.
r
Totals
O11
O21
.
.
.
Or1
C1
O12
O22
.
.
.
Or2
C2
…
…
…
…
…
…
…
O1c
O2c
.
.
.
Orc
Cc
R1
R2
.
.
.
Rr
n
Chap 12-21
Test for Independence
 Consider n observations tabulated in an r x c
contingency table
 Denote by Oij the number of observations in
the cell that is in the ith row and the jth column
 The null hypothesis is
 The appropriate test is a chi-square test with
(r-1)(c-1) degrees of freedom
population
the
in
attributes
two
the
between
exists
n
associatio
No
:
H0
Chap 12-22
Test for Independence
 Let Ri and Cj be the row and column totals
 The expected number of observations in cell row i and
column j, given that H0 is true, is
 A test of Independence at a significance level  is
based on the chi-square distribution and the following
decision rule
2
1),
1)c
(r
r
1
i
c
1
j ij
2
ij
ij
2
0
E
)
E
(O
if
H
Reject α
χ
χ 

 


 
n
C
R
E
j
i
ij 
(continued)
Chap 12-23
Contingency Table Example
H0: There is the independence between
hand preference and gender
H1: Hand preference is not independent of gender
Left-Handed vs. Gender
 Dominant Hand: Left vs. Right
 Gender: Male vs. Female
Chap 12-24
Contingency Table Example
Sample results organized in a contingency table:
Gender
Hand Preference
Left Right
Female 12 108 120
Male 24 156 180
36 264 300
120 Females, 12
were left handed
180 Males, 24 were
left handed
sample size = n = 300:
(continued)
Chap 12-25
Logic of the Test
 If H0 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
H0: There is the independence between
hand preference and gender
H1: Hand preference is not independent of gender
Chap 12-26
Finding Expected Frequencies
Overall:
P(Left Handed)
= 36/300 = .12
120 Females, 12
were left handed
180 Males, 24 were
left handed
If no association, 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
Chap 12-27
Expected Cell Frequencies
 Expected cell frequencies:
size
sample
Total
total)
Column
total)(j
Row
(i
n
C
R
E
th
th
j
i
ij 

14.4
300
(120)(36)
E11 

Example:
(continued)
Chap 12-28
Observed vs. Expected
Frequencies
Observed frequencies vs. expected frequencies:
Gender
Hand Preference
Left Right
Female
Observed = 12
Expected = 14.4
Observed = 108
Expected = 105.6
120
Male
Observed = 24
Expected = 21.6
Observed = 156
Expected = 158.4
180
36 264 300
Chap 12-29
The Chi-Square Test Statistic
 where:
Oij = observed frequency in cell (i, j)
Eij = expected frequency in cell (i, j)
r = number of rows
c = number of columns

 


r
1
i
c
1
j ij
2
ij
ij
2
E
)
E
(O

The Chi-square test statistic is:
)
1
c
)(
1
r
(
.
f
.
d
with 


Chap 12-30
Observed vs. Expected
Frequencies
Gender
Hand Preference
Left Right
Female
Observed = 12
Expected = 14.4
Observed = 108
Expected = 105.6
120
Male
Observed = 24
Expected = 21.6
Observed = 156
Expected = 158.4
180
36 264 300
6848
.
0
4
.
158
)
4
.
158
156
(
6
.
21
)
6
.
21
24
(
6
.
105
)
6
.
105
108
(
4
.
14
)
4
.
14
12
( 2
2
2
2
2










Chap 12-31
Contingency Analysis
2
2
.05 = 3.841
Reject H0
= 0.05
Decision Rule:
If 2 > 3.841, reject H0,
otherwise, do not reject H0
1
(1)(1)
1)
-
1)(c
-
(r
d.f.
with
6848
.
0
2





Do not reject H0
Here, 2 = 0.6848
< 3.841, so we
do not reject H0
and conclude that
gender and hand
preference are not
associated
Chap 12-32
Chapter Summary
 Used the chi-square goodness-of-fit test to determine
whether sample data match specified probabilities
 Conducted goodness-of-fit tests when a population
parameter was unknown
 Tested for normality using the Bowman-Shelton test
 Used contingency tables to perform a chi-square test for
association
 Compared observed cell frequencies to expected cell
frequencies

More Related Content

Similar to qm2CHAP12.ppt

Chapter4
Chapter4Chapter4
Chapter4Vu Vo
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testRione Drevale
 
QNT 561 Week 4 Weekly Learning Assessments
QNT 561 Week 4 Weekly Learning Assessments  QNT 561 Week 4 Weekly Learning Assessments
QNT 561 Week 4 Weekly Learning Assessments student ehelp
 
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxPart 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxodiliagilby
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handoutfatima d
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxchristiandean12115
 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handoutfatima d
 
12 ch ken black solution
12 ch ken black solution12 ch ken black solution
12 ch ken black solutionKrunal Shah
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Squareghalan
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxdessiechisomjj4
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-docBookStoreLib
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-docFiras Husseini
 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric testRabin BK
 
Chi square tests
Chi square testsChi square tests
Chi square testswaqole
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarAzmi Mohd Tamil
 

Similar to qm2CHAP12.ppt (20)

ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy
ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh RoyICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy
ICAR-IFPRI: Multiple regressions prof anderson inference lecture - Devesh Roy
 
Chapter4
Chapter4Chapter4
Chapter4
 
statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
 
QNT 561 Week 4 Weekly Learning Assessments
QNT 561 Week 4 Weekly Learning Assessments  QNT 561 Week 4 Weekly Learning Assessments
QNT 561 Week 4 Weekly Learning Assessments
 
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxPart 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handout
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docx
 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handout
 
12 ch ken black solution
12 ch ken black solution12 ch ken black solution
12 ch ken black solution
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Square
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc
 
352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc352735322 rsh-qam11-tif-02-doc
352735322 rsh-qam11-tif-02-doc
 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric test
 
Chi square tests
Chi square testsChi square tests
Chi square tests
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 

Recently uploaded

Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechNewman George Leech
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Timedelhimodelshub1
 
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In.../:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...lizamodels9
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewasmakika9823
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
rishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfrishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfmuskan1121w
 
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...lizamodels9
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts ServiceVip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Serviceankitnayak356677
 

Recently uploaded (20)

Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Best Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting PartnershipBest Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting Partnership
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman Leech
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Time
 
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In.../:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
rishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdfrishikeshgirls.in- Rishikesh call girl.pdf
rishikeshgirls.in- Rishikesh call girl.pdf
 
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts ServiceVip Female Escorts Noida 9711199171 Greater Noida Escorts Service
Vip Female Escorts Noida 9711199171 Greater Noida Escorts Service
 

qm2CHAP12.ppt

  • 1. Chap 12-1 Chapter 12 Tests of Goodness of Fit and Independence BUSINESS STATISTICS
  • 2. Chap 12-2 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  Perform tests for normality  Set up a contingency analysis table and perform a chi-square test of association
  • 3. Chap 12-3  Does sample data conform to a hypothesized distribution?  Examples:  Do sample results conform to specified expected probabilities?  Are technical support calls equal across all days of the week? (i.e., do calls follow a uniform distribution?)  Do measurements from a production process follow a normal distribution? Chi-Square Goodness-of-Fit Test
  • 4. Chap 12-4  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 (continued) = 1722
  • 5. Chap 12-5 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 
  • 6. Chap 12-6 Observed vs. Expected Frequencies Observed Oi Expected Ei Monday Tuesday Wednesday Thursday Friday Saturday Sunday 290 250 238 257 265 230 192 246 246 246 246 246 246 246 TOTAL 1722 1722
  • 7. Chap 12-7 Chi-Square Test Statistic  The test statistic is 1) K d.f. (where E ) E (O K 1 i i 2 i i 2        where: K = number of categories Oi = observed frequency for category i Ei = expected frequency for category i H0: The distribution of calls is uniform over days of the week H1: The distribution of calls is not uniform
  • 8. Chap 12-8 The Rejection Region  Reject H0 if     K 1 i i 2 i i 2 E ) E (O  H0: The distribution of calls is uniform over days of the week H1: The distribution of calls is not uniform 2 α 2    0 2 Reject H0 Do not reject H0 (with k – 1 degrees of freedom) 2
  • 9. Chap 12-9 23.05 246 246) (192 ... 246 246) (250 246 246) (290 2 2 2 2          Chi-Square Test Statistic H0: The distribution of calls is uniform over days of the week H1: 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 = Conclusion: 2 = 23.05 > 2 = 12.5916 so reject H0 and conclude that the distribution is not uniform
  • 10. Chap 12-10 15-10 Chi-Square Test for Goodness-of- Fit • A multinomial distribution is defined by any k probabilities p1, p2, …, pk that sum to unity. • For example, consider the following “official” proportions of M&M colors. Multinomial GOF Test calc
  • 11. Chap 12-11 15-11 Chi-Square Test for Goodness-of-Fit • The hypotheses are H0: p1 = .30, p2 = .20, p3 = .10, p4 = .10, p5 = .10, p6 = .20 H1: At least one of the pj differs from the hypothesized value • No parameters are estimated (m = 0) and there are c = 6 classes, so the degrees of freedom are n = k – 1=5 Multinomial GOF Test
  • 12. Chap 12-12 Goodness-of-Fit Tests, Population Parameters Unknown Idea:  Test whether data follow a specified distribution (such as binomial, Poisson, or normal) . . .  . . . without assuming the parameters of the distribution are known  Use sample data to estimate the unknown population parameters
  • 13. Chap 12-13  Suppose that a null hypothesis specifies category probabilities that depend on the estimation (from the data) of m unknown population parameters  The appropriate goodness-of-fit test is the same as in the previously section . . .  . . . except that the number of degrees of freedom for the chi-square random variable is  Where K is the number of categories     K 1 i i 2 i i 2 E ) E (O  1) m (K Freedom of Degrees    Goodness-of-Fit Tests, Population Parameters Unknown (continued)
  • 14. Chap 12-14 Test of Normality  The assumption that data follow a normal distribution is common in statistics  Normality was assessed in prior chapters  Normal probability plots (Chapter 6)  Normal quintile plots (Chapter 8)  Here, a chi-square test is developed
  • 15. Chap 12-15 Test of Normality  Two population parameters can be estimated using sample data:  For a normal distribution, Skewness = 0 Kurtosis = 3 (continued) 3 n 1 i 3 i ns ) x (x Skewness     4 n 1 i 4 i ns ) x (x Kurtosis    
  • 16. Chap 12-16 Bowman-Shelton Test for Normality  Consider the null hypothesis that the population distribution is normal  The Bowman-Shelton Test for Normality is based on the closeness the sample skewness to 0 and the sample kurtosis to 3  The test statistic is  as the number of sample observations becomes very large, this statistic has a chi-square distribution with 2 degrees of freedom  The null hypothesis is rejected for large values of the test statistic          24 3) (Kurtosis 6 (Skewness) n B 2 2
  • 17. Chap 12-17 Bowman-Shelton Test for Normality  The chi-square approximation is close only for very large sample sizes  If the sample size is not very large, the Bowman- Shelton test statistic is compared to significance points from text Table 16.7 (continued) Sample size N 10% point 5% point Sample size N 10% point 5% point 20 30 40 50 75 100 125 150 2.13 2.49 2.70 2.90 3.09 3.14 3.31 3.43 3.26 3.71 3.99 4.26 4.27 4.29 4.34 4.39 200 250 300 400 500 800 ∞ 3.48 3.54 3.68 3.76 3.91 4.32 4.61 4.43 4.61 4.60 4.74 4.82 5.46 5.99
  • 18. Chap 12-18  The average daily temperature has been recorded for 200 randomly selected days, with sample skewness 0.232 and kurtosis 3.319  Test the null hypothesis that the true distribution is normal  From Table 16.7 the 10% critical value for n = 200 is 3.48, so there is not sufficient evidence to reject that the population is normal 2.642 24 3) (3.319 6 (0.232) 200 24 3) (Kurtosis 6 (Skewness) n B 2 2 2 2                    Example: Bowman-Shelton Test for Normality
  • 19. Chap 12-19 Contingency Tables Contingency Tables  Used to classify sample observations according to a pair of attributes  Also called a cross-classification or cross- tabulation table  Assume r categories for attribute A and c categories for attribute B  Then there are (r x c) possible cross-classifications
  • 20. Chap 12-20 r x c Contingency Table Attribute B Attribute A 1 2 . . . C Totals 1 2 . . . r Totals O11 O21 . . . Or1 C1 O12 O22 . . . Or2 C2 … … … … … … … O1c O2c . . . Orc Cc R1 R2 . . . Rr n
  • 21. Chap 12-21 Test for Independence  Consider n observations tabulated in an r x c contingency table  Denote by Oij the number of observations in the cell that is in the ith row and the jth column  The null hypothesis is  The appropriate test is a chi-square test with (r-1)(c-1) degrees of freedom population the in attributes two the between exists n associatio No : H0
  • 22. Chap 12-22 Test for Independence  Let Ri and Cj be the row and column totals  The expected number of observations in cell row i and column j, given that H0 is true, is  A test of Independence at a significance level  is based on the chi-square distribution and the following decision rule 2 1), 1)c (r r 1 i c 1 j ij 2 ij ij 2 0 E ) E (O if H Reject α χ χ         n C R E j i ij  (continued)
  • 23. Chap 12-23 Contingency Table Example H0: There is the independence between hand preference and gender H1: Hand preference is not independent of gender Left-Handed vs. Gender  Dominant Hand: Left vs. Right  Gender: Male vs. Female
  • 24. Chap 12-24 Contingency Table Example Sample results organized in a contingency table: Gender Hand Preference Left Right Female 12 108 120 Male 24 156 180 36 264 300 120 Females, 12 were left handed 180 Males, 24 were left handed sample size = n = 300: (continued)
  • 25. Chap 12-25 Logic of the Test  If H0 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 H0: There is the independence between hand preference and gender H1: Hand preference is not independent of gender
  • 26. Chap 12-26 Finding Expected Frequencies Overall: P(Left Handed) = 36/300 = .12 120 Females, 12 were left handed 180 Males, 24 were left handed If no association, 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
  • 27. Chap 12-27 Expected Cell Frequencies  Expected cell frequencies: size sample Total total) Column total)(j Row (i n C R E th th j i ij   14.4 300 (120)(36) E11   Example: (continued)
  • 28. Chap 12-28 Observed vs. Expected Frequencies Observed frequencies vs. expected frequencies: Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300
  • 29. Chap 12-29 The Chi-Square Test Statistic  where: Oij = observed frequency in cell (i, j) Eij = expected frequency in cell (i, j) r = number of rows c = number of columns      r 1 i c 1 j ij 2 ij ij 2 E ) E (O  The Chi-square test statistic is: ) 1 c )( 1 r ( . f . d with   
  • 30. Chap 12-30 Observed vs. Expected Frequencies Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300 6848 . 0 4 . 158 ) 4 . 158 156 ( 6 . 21 ) 6 . 21 24 ( 6 . 105 ) 6 . 105 108 ( 4 . 14 ) 4 . 14 12 ( 2 2 2 2 2          
  • 31. Chap 12-31 Contingency Analysis 2 2 .05 = 3.841 Reject H0 = 0.05 Decision Rule: If 2 > 3.841, reject H0, otherwise, do not reject H0 1 (1)(1) 1) - 1)(c - (r d.f. with 6848 . 0 2      Do not reject H0 Here, 2 = 0.6848 < 3.841, so we do not reject H0 and conclude that gender and hand preference are not associated
  • 32. Chap 12-32 Chapter Summary  Used the chi-square goodness-of-fit test to determine whether sample data match specified probabilities  Conducted goodness-of-fit tests when a population parameter was unknown  Tested for normality using the Bowman-Shelton test  Used contingency tables to perform a chi-square test for association  Compared observed cell frequencies to expected cell frequencies