This Slideshare presentation is a partial preview of the full business document. To view and download the full document, please go here:
http://flevy.com/browse/business-document/056hypothesis-testing-chi-square-1157
DESCRIPTION
The objectives of this module are to: learn how to formulate appropriate hypotheses for Chi-Square tests, apply Chi-Square Goodness-of-Fit Test to problems, apply Chi-Square Tests for Association to problems, and apply Chi-Square Tests for Multiple Proportions.
This material is suitable for independent study or formal classroom training and includes an exercise, list of tools and quiz questions.
2. 4
Two Chi-Square Tests?
• Chi-Square ‘Goodness of Fit Test’
Used to test if a particular distribution (model)
is a good fit for a population. Use with 1
sample.
• Chi-Square ‘Test for Association’
Used to test if a relationship between two
attribute variables exists. Use with 2 samples.
Both of these tests use the
Chi-Square distribution, where
fo is the observed frequency and
fe is the expected frequency.
Note: the sum of the expected
frequencies is always equal to
the sum of the observed
frequencies.
( )
∑=
−
=
g
1j
e
2
eo
f
ff2
χThis document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
3. 7
When to Use Goodness-Of-Fit Test?
The Chi-Square Goodness of fit test compares an
observed frequency to an expected frequency.
Example
A coin is flipped 100 times and 63 heads and 37 tails
are recorded. Could this result have occurred by
chance, or is the coin biased?
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
4. 10
1. State the practical problem:
Is the coin biased?
2. State the Null & Alternate Hypothesis
H0: Probability of Heads = Tails = 0.5
Ha: Probability of Heads ≠ Tails ≠ 0.5
3. Select α = 0.05
4. Create a contingency table
5. Calculate degrees of freedom (df), (# Rows-1) *
(# Columns-1) = (2-1)*(2-1)=1
Goodness of Fit - Example
Observed
( fo )
Expected
( fe )
Head
s 63 50
Tails 37 50
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
5. 13
Test for Association
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
6. 16
Test For Association - Example
1000 Adults were surveyed to determine their political
views:
246 were liberal
405 were moderate
349 were conservative
The split of males and females was also recorded
447 were male
553 were female
Is gender and political view related?
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
7. 19
Test For Association - Example
Liberal Moderate Conservative
Male 73 213 161 447
Female 173 192 188 553
246 405 349 1000
4. Create a contingency table continued:
5. Calculate degrees of freedom (df), (# Rows-1) *
(# Columns-1) = (2-1)*(3-1)=2
6. Calculate the χ2 test statistic - χ2 (calculated), recall:
fo
( )
∑=
−
=
g
1j
e
2
eo
f
ff2
χ
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
8. 22
9. Practical solution:
• Proportion of liberal males is lower than expected; proportion
of females is higher
• Proportion of moderate males somewhat higher; proportion of
moderate females somewhat lower
• Proportion of male to female conservatives are consistent with
expected frequencies
Test For Association - Example
Liberal Moderate Conservative
Male - Obs 73 213 161 447
- Exp 109.96 181.04 156
Female - Obs 173 192 188 553
- Exp 136.04 223.96 193
246 405 349 1000
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
9. 25
Multiple Proportion Comparison
Practical Question : Are all populations’ proportions statistically different?
P1
P2 P3
vs. vs.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
10. 28
1. Practical problem:
Are some shifts producing more defectives than others?
2. Statistical problem:
H0: P1 = P2 = P3
Ha: P1 ≠ P2 ≠ P3
3. α = 0.05:
Test For Multiple Proportions - Example
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
11. 1st Shift 2nd Shift 3rd Shift Total
1 43 56 68 167
60.31 55.89 50.80
4.970 0.000 5.824
2 965 878 781 2624
947.69 878.11 798.20
0.316 0.000 0.371
Total 1008 934 849 2791
Chi-Sq = 11.481, DF = 2, P-Value = 0.003 < α = 0.05, Reject H0
31
Test For Association – Example
Minitab Solution
• Create a table in Minitab:
• Stat > Tables > χ2 Chi Square Test
• Analyze Results:
1st Shift 2nd Shift 3rd Shift
Defectives 43 56 68
Non-Defectives 965 878 781
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
12. Questions
1. Good of Fit and Test for Association are the same test.
2. Chi Square is used to test multiple proportions.
3. Binomial is the underlying distribution.
4. Chi Square critical values are dependant on the degrees of freedom.
5. If Calc > Crit, reject H0.
6. If P < alpha , reject H0.
7. Test for Association can be used to test multiple supplier locations.
8. Reject H0 = accept Ha.
9. Fail to Reject H0 = reject Ha.
10. Confidence Level = 1 – alpha = Confidence Interval.
T F
T F
T F
T F
T F
T F
T F
T F
T F
T F
34
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/056hypothesis-testing-chi-square-1157
13. 1
Flevy (www.flevy.com) is the marketplace
for premium documents. These
documents can range from Business
Frameworks to Financial Models to
PowerPoint Templates.
Flevy was founded under the principle that
companies waste a lot of time and money
recreating the same foundational business
documents. Our vision is for Flevy to
become a comprehensive knowledge base
of business documents. All organizations,
from startups to large enterprises, can use
Flevy— whether it's to jumpstart projects, to
find reference or comparison materials, or
just to learn.
Contact Us
Please contact us with any questions you may have
about our company.
• General Inquiries
support@flevy.com
• Media/PR
press@flevy.com
• Billing
billing@flevy.com