SlideShare a Scribd company logo
Chapter 11: Chi-Square Tests and ANOVA
359
Chapter 11: Chi-Square and ANOVA Tests
This chapter presents material on three more hypothesis tests.
One is used to determine
significant relationship between two qualitative variables, the
second is used to determine
if the sample data has a particular distribution, and the last is
used to determine
significant relationships between means of 3 or more samples.
Section 11.1: Chi-Square Test for Independence
Remember, qualitative data is where you collect data on
individuals that are categories or
names. Then you would count how many of the individuals had
particular qualities. An
example is that there is a theory that there is a relationship
between breastfeeding and
autism. To determine if there is a relationship, researchers
could collect the time period
that a mother breastfed her child and if that child was diagnosed
with autism. Then you
would have a table containing this information. Now you want
to know if each cell is
independent of each other cell. Remember, independence says
that one event does not
affect another event. Here it means that having autism is
independent of being breastfed.
What you really want is to see if they are not independent. In
other words, does one
affect the other? If you were to do a hypothesis test, this is
your alternative hypothesis
and the null hypothesis is that they are independent. There is a
hypothesis test for this
and it is called the Chi-Square Test for Independence.
Technically it should be called
the Chi-Square Test for Dependence, but for historical reasons
it is known as the test for
independence. Just as with previous hypothesis tests, all the
steps are the same except for
the assumptions and the test statistic.
Hypothesis Test for Chi-Square Test
1. State the null and alternative hypotheses and the level of
significance
Ho : the two variables are independent (this means that the one
variable is not
affected by the other)
HA : the two variables are dependent (this means that the one
variable is affected
by the other)
Also, state your α level here.
2. State and check the assumptions for the hypothesis test
a. A random sample is taken.
b. Expected frequencies for each cell are greater than or equal
to 5 (The expected
frequencies, E, will be calculated later, and this assumption
means E ≥ 5 ).
3. Find the test statistic and p-value
Finding the test statistic involves several steps. First the data is
collected and
counted, and then it is organized into a table (in a table each
entry is called a cell).
These values are known as the observed frequencies, which the
symbol for an
observed frequency is O. Each table is made up of rows and
columns. Then each
row is totaled to give a row total and each column is totaled to
give a column
total.
Chapter 11: Chi-Squared Tests and ANOVA
360
The null hypothesis is that the variables are independent. Using
the multiplication
rule for independent events you can calculate the probability of
being one value of
the first variable, A, and one value of the second variable, B
(the probability of a
particular cell P A and B( ) ). Remember in a hypothesis test,
you assume that H0
is true, the two variables are assumed to be independent.
P A and B( ) = P A( ) ⋅ P B( ) if A and B are independent
= number of ways A can happen
total number of individuals
⋅ number of ways B can happen
total number of individuals
= row total
n
*
column total
n
Now you want to find out how many individuals you expect to
be in a certain cell.
To find the expected frequencies, you just need to multiply the
probability of that
cell times the total number of individuals. Do not round the
expected frequencies.
Expected frequency cell A and B( ) = E A and B( )
= n row total
n
⋅ column total
n
⎛
⎝⎜
⎞
⎠⎟
= row total ⋅ column total
n
If the variables are independent the expected frequencies and
the observed
frequencies should be the same. The test statistic here will
involve looking at the
difference between the expected frequency and the observed
frequency for each
cell. Then you want to find the “total difference” of all of these
differences. The
larger the total, the smaller the chances that you could find that
test statistic given
that the assumption of independence is true. That means that
the assumption of
independence is not true. How do you find the test statistic?
First find the
differences between the observed and expected frequencies.
Because some of
these differences will be positive and some will be negative,
you need to square
these differences. These squares could be large just because the
frequencies are
large, you need to divide by the expected frequencies to scale
them. Then finally
add up all of these fractional values. This is the test statistic.
Test Statistic:
The symbol for Chi-Square is χ
2
χ 2 =
O − E( )2
E∑
where O is the observed frequency and E is the expected
frequency
Chapter 11: Chi-Square Tests and ANOVA
361
Distribution of Chi-Square
χ
2 has different curves depending on the degrees of freedom. It
is skewed to the
right for small degrees of freedom and gets more symmetric as
the degrees of
freedom increases (see figure #11.1.1). Since the test statistic
involves squaring
the differences, the test statistics are all positive. A chi-
squared test for
independence is always right tailed.
Figure #11.1.1: Chi-Square Distribution
p-value:
Use χcdf lower limit,1E99, df( )
Where the degrees of freedom is df = # of rows−1( )* # of
columns−1( )
4. Conclusion
This is where you write reject Ho or fail to reject Ho . The
rule is: if the p-value
< α , then reject Ho . If the p-value ≥α , then fail to reject Ho
5. Interpretation
This is where you interpret in real world terms the conclusion to
the test. The
conclusion for a hypothesis test is that you either have enough
evidence to show
HA is true, or you do not have enough evidence to show HA is
true.
Example #11.1.1: Hypothesis Test with Chi-Square Test Using
Formula
Is there a relationship between autism and breastfeeding? To
determine if there
is, a researcher asked mothers of autistic and non-autistic
children to say what
time period they breastfed their children. The data is in table
#11.1.1 (Schultz,
Klonoff-Cohen, Wingard, Askhoomoff, Macera, Ji & Bacher,
2006). Do the data
provide enough evidence to show that that breastfeeding and
autism are
independent? Test at the1% level.
Chapter 11: Chi-Squared Tests and ANOVA
362
Table #11.1.1: Autism Versus Breastfeeding
Autism
Breast Feeding Timelines
Row
Total
None Less
than 2
months
2 to 6
months
More
than 6
months
Yes 241 198 164 215 818
No 20 25 27 44 116
Column Total 261 223 191 259 934
Solution
:
1. State the null and alternative hypotheses and the level of
significance
Ho : Breastfeeding and autism are independent
HA : Breastfeeding and autism are dependent
α = 0.01
2. State and check the assumptions for the hypothesis test
a. A random sample of breastfeeding time frames and autism
incidence was
taken.
b. Expected frequencies for each cell are greater than or equal
to 5 (ie. E ≥ 5 ).
See step 3. All expected frequencies are more than 5.
3. Find the test statistic and p-value
Test statistic:
First find the expected frequencies for each cell.
E Autism and no breastfeeding( ) = 818 *261
934
≈ 228.585
E Autism and < 2 months( ) = 818 *223
934
≈195.304
E Autism and 2 to 6 months( ) = 818 *191
934
≈167.278
E Autism and more than 6 months( ) = 818 *259
934
≈ 226.833
Others are done similarly. It is easier to do the calculations for
the test statistic
with a table, the others are in table #11.1.2 along with the
calculation for the test
statistic. (Note: the column of O − E should add to 0 or close
to 0.)
Chapter 11: Chi-Square Tests and ANOVA
363
Table #11.1.2: Calculations for Chi-Square Test Statistic
O E O − E O − E( )2 O − E( )2 E
241 228.585 12.415 154.132225 0.674288448
198 195.304 2.696 7.268416 0.03721591
164 167.278 -3.278 10.745284 0.064236086
215 226.833 -11.833 140.019889 0.617281828
20 32.4154 -12.4154 154.1421572 4.755213792
25 27.6959 -2.6959 7.26787681 0.262417066
27 23.7216 3.2784 10.74790656 0.453085229
44 32.167 11.833 140.019889 4.352904809
Total 0.0001 11.2166432= χ 2
The test statistic formula is
χ 2 =
O − E( )2
E∑ , which is the total of the last
column in table #11.1.2.
p-value:
df = 2 −1( )* 4 −1( ) = 3
χcdf 11.2166432,1E99,3( ) ≈ 0.01061
4. Conclusion
Fail to reject Ho since the p-value is more than 0.01.
5. Interpretation
There is not enough evidence to show that breastfeeding and
autism are
dependent. This means that you cannot say that the whether a
child is breastfed or
not will indicate if that the child will be diagnosed with autism.
Example #11.1.2: Hypothesis Test with Chi-Square Test Using
TI-83/84 Calculator
Is there a relationship between autism and breastfeeding? To
determine if there
is, a researcher asked mothers of autistic and non-autistic
children to say what
time period they breastfed their children. The data is in table
#11.1.1 (Schultz,
Klonoff-Cohen, Wingard, Askhoomoff, Macera, Ji & Bacher,
2006). Do the data
provide enough evidence to show that that breastfeeding and
autism are
independent? Test at the1% level.
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx

More Related Content

Similar to Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx

Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
Long Beach City College
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Long Beach City College
 
Goodness of-fit
Goodness of-fit  Goodness of-fit
Goodness of-fit
Long Beach City College
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
Michael770443
 
Chi-Square test.pptx
Chi-Square test.pptxChi-Square test.pptx
Chi-Square test.pptx
Ravindra Nath Shukla
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Snehamurali18
 
Chi square
Chi squareChi square
Chi square
PoojaVishnoi7
 
Chi square test presentation
Chi square test presentationChi square test presentation
Chi square test presentation
MD ASADUZZAMAN
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
Ergin Akalpler
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
College of Medicine(University of Malawi)
 
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docxHypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
licensedtutor
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
BAGARAGAZAROMUALD2
 
Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data
KwambokaLeonidah
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.ppt
Shivraj Nile
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
HelpWithAssignment.com
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
jennytuazon01630
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
Muhammad Warraich
 

Similar to Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx (20)

Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Goodness of-fit
Goodness of-fit  Goodness of-fit
Goodness of-fit
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 
Chi-Square test.pptx
Chi-Square test.pptxChi-Square test.pptx
Chi-Square test.pptx
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 
Chi square
Chi squareChi square
Chi square
 
Chi square test presentation
Chi square test presentationChi square test presentation
Chi square test presentation
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
 
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docxHypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
Hypothesis-Testing-to-STATISTICAL-TESTS1-1 (1).docx
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.ppt
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
 
Chi square test
Chi square testChi square test
Chi square test
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
 
Ad test
Ad testAd test
Ad test
 

More from bartholomeocoombs

CompetencyAnalyze how human resource standards and practices.docx
CompetencyAnalyze how human resource standards and practices.docxCompetencyAnalyze how human resource standards and practices.docx
CompetencyAnalyze how human resource standards and practices.docx
bartholomeocoombs
 
CompetencyAnalyze financial statements to assess performance.docx
CompetencyAnalyze financial statements to assess performance.docxCompetencyAnalyze financial statements to assess performance.docx
CompetencyAnalyze financial statements to assess performance.docx
bartholomeocoombs
 
CompetencyAnalyze ethical and legal dilemmas that healthcare.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare.docxCompetencyAnalyze ethical and legal dilemmas that healthcare.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare.docx
bartholomeocoombs
 
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docxCompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
bartholomeocoombs
 
CompetencyAnalyze collaboration tools to support organizatio.docx
CompetencyAnalyze collaboration tools to support organizatio.docxCompetencyAnalyze collaboration tools to support organizatio.docx
CompetencyAnalyze collaboration tools to support organizatio.docx
bartholomeocoombs
 
Competency Checklist and Professional Development Resources .docx
Competency Checklist and Professional Development Resources .docxCompetency Checklist and Professional Development Resources .docx
Competency Checklist and Professional Development Resources .docx
bartholomeocoombs
 
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docxCompetency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
bartholomeocoombs
 
Competency 2 Examine the organizational behavior within busines.docx
Competency 2 Examine the organizational behavior within busines.docxCompetency 2 Examine the organizational behavior within busines.docx
Competency 2 Examine the organizational behavior within busines.docx
bartholomeocoombs
 
CompetenciesEvaluate the challenges and benefits of employ.docx
CompetenciesEvaluate the challenges and benefits of employ.docxCompetenciesEvaluate the challenges and benefits of employ.docx
CompetenciesEvaluate the challenges and benefits of employ.docx
bartholomeocoombs
 
CompetenciesDescribe the supply chain management principle.docx
CompetenciesDescribe the supply chain management principle.docxCompetenciesDescribe the supply chain management principle.docx
CompetenciesDescribe the supply chain management principle.docx
bartholomeocoombs
 
CompetenciesABCDF1.1 Create oral, written, or visual .docx
CompetenciesABCDF1.1 Create oral, written, or visual .docxCompetenciesABCDF1.1 Create oral, written, or visual .docx
CompetenciesABCDF1.1 Create oral, written, or visual .docx
bartholomeocoombs
 
COMPETENCIES734.3.4 Healthcare Utilization and Finance.docx
COMPETENCIES734.3.4  Healthcare Utilization and Finance.docxCOMPETENCIES734.3.4  Healthcare Utilization and Finance.docx
COMPETENCIES734.3.4 Healthcare Utilization and Finance.docx
bartholomeocoombs
 
Competencies and KnowledgeWhat competencies were you able to dev.docx
Competencies and KnowledgeWhat competencies were you able to dev.docxCompetencies and KnowledgeWhat competencies were you able to dev.docx
Competencies and KnowledgeWhat competencies were you able to dev.docx
bartholomeocoombs
 
Competencies and KnowledgeThis assignment has 2 parts.docx
Competencies and KnowledgeThis assignment has 2 parts.docxCompetencies and KnowledgeThis assignment has 2 parts.docx
Competencies and KnowledgeThis assignment has 2 parts.docx
bartholomeocoombs
 
Competencies and KnowledgeThis assignment has 2 partsWhat.docx
Competencies and KnowledgeThis assignment has 2 partsWhat.docxCompetencies and KnowledgeThis assignment has 2 partsWhat.docx
Competencies and KnowledgeThis assignment has 2 partsWhat.docx
bartholomeocoombs
 
Competences, Learning Theories and MOOCsRecent Developments.docx
Competences, Learning Theories and MOOCsRecent Developments.docxCompetences, Learning Theories and MOOCsRecent Developments.docx
Competences, Learning Theories and MOOCsRecent Developments.docx
bartholomeocoombs
 
Compensation  & Benefits Class 700 words with referencesA stra.docx
Compensation  & Benefits Class 700 words with referencesA stra.docxCompensation  & Benefits Class 700 words with referencesA stra.docx
Compensation  & Benefits Class 700 words with referencesA stra.docx
bartholomeocoombs
 
Compensation, Benefits, Reward & Recognition Plan for V..docx
Compensation, Benefits, Reward & Recognition Plan for V..docxCompensation, Benefits, Reward & Recognition Plan for V..docx
Compensation, Benefits, Reward & Recognition Plan for V..docx
bartholomeocoombs
 
Compete the following tablesTheoryKey figuresKey concepts o.docx
Compete the following tablesTheoryKey figuresKey concepts o.docxCompete the following tablesTheoryKey figuresKey concepts o.docx
Compete the following tablesTheoryKey figuresKey concepts o.docx
bartholomeocoombs
 
Compensation Strategy for Knowledge WorkersTo prepare for this a.docx
Compensation Strategy for Knowledge WorkersTo prepare for this a.docxCompensation Strategy for Knowledge WorkersTo prepare for this a.docx
Compensation Strategy for Knowledge WorkersTo prepare for this a.docx
bartholomeocoombs
 

More from bartholomeocoombs (20)

CompetencyAnalyze how human resource standards and practices.docx
CompetencyAnalyze how human resource standards and practices.docxCompetencyAnalyze how human resource standards and practices.docx
CompetencyAnalyze how human resource standards and practices.docx
 
CompetencyAnalyze financial statements to assess performance.docx
CompetencyAnalyze financial statements to assess performance.docxCompetencyAnalyze financial statements to assess performance.docx
CompetencyAnalyze financial statements to assess performance.docx
 
CompetencyAnalyze ethical and legal dilemmas that healthcare.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare.docxCompetencyAnalyze ethical and legal dilemmas that healthcare.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare.docx
 
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docxCompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
CompetencyAnalyze ethical and legal dilemmas that healthcare wor.docx
 
CompetencyAnalyze collaboration tools to support organizatio.docx
CompetencyAnalyze collaboration tools to support organizatio.docxCompetencyAnalyze collaboration tools to support organizatio.docx
CompetencyAnalyze collaboration tools to support organizatio.docx
 
Competency Checklist and Professional Development Resources .docx
Competency Checklist and Professional Development Resources .docxCompetency Checklist and Professional Development Resources .docx
Competency Checklist and Professional Development Resources .docx
 
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docxCompetency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
Competency 6 Enagage with Communities and Organizations (3 hrs) (1 .docx
 
Competency 2 Examine the organizational behavior within busines.docx
Competency 2 Examine the organizational behavior within busines.docxCompetency 2 Examine the organizational behavior within busines.docx
Competency 2 Examine the organizational behavior within busines.docx
 
CompetenciesEvaluate the challenges and benefits of employ.docx
CompetenciesEvaluate the challenges and benefits of employ.docxCompetenciesEvaluate the challenges and benefits of employ.docx
CompetenciesEvaluate the challenges and benefits of employ.docx
 
CompetenciesDescribe the supply chain management principle.docx
CompetenciesDescribe the supply chain management principle.docxCompetenciesDescribe the supply chain management principle.docx
CompetenciesDescribe the supply chain management principle.docx
 
CompetenciesABCDF1.1 Create oral, written, or visual .docx
CompetenciesABCDF1.1 Create oral, written, or visual .docxCompetenciesABCDF1.1 Create oral, written, or visual .docx
CompetenciesABCDF1.1 Create oral, written, or visual .docx
 
COMPETENCIES734.3.4 Healthcare Utilization and Finance.docx
COMPETENCIES734.3.4  Healthcare Utilization and Finance.docxCOMPETENCIES734.3.4  Healthcare Utilization and Finance.docx
COMPETENCIES734.3.4 Healthcare Utilization and Finance.docx
 
Competencies and KnowledgeWhat competencies were you able to dev.docx
Competencies and KnowledgeWhat competencies were you able to dev.docxCompetencies and KnowledgeWhat competencies were you able to dev.docx
Competencies and KnowledgeWhat competencies were you able to dev.docx
 
Competencies and KnowledgeThis assignment has 2 parts.docx
Competencies and KnowledgeThis assignment has 2 parts.docxCompetencies and KnowledgeThis assignment has 2 parts.docx
Competencies and KnowledgeThis assignment has 2 parts.docx
 
Competencies and KnowledgeThis assignment has 2 partsWhat.docx
Competencies and KnowledgeThis assignment has 2 partsWhat.docxCompetencies and KnowledgeThis assignment has 2 partsWhat.docx
Competencies and KnowledgeThis assignment has 2 partsWhat.docx
 
Competences, Learning Theories and MOOCsRecent Developments.docx
Competences, Learning Theories and MOOCsRecent Developments.docxCompetences, Learning Theories and MOOCsRecent Developments.docx
Competences, Learning Theories and MOOCsRecent Developments.docx
 
Compensation  & Benefits Class 700 words with referencesA stra.docx
Compensation  & Benefits Class 700 words with referencesA stra.docxCompensation  & Benefits Class 700 words with referencesA stra.docx
Compensation  & Benefits Class 700 words with referencesA stra.docx
 
Compensation, Benefits, Reward & Recognition Plan for V..docx
Compensation, Benefits, Reward & Recognition Plan for V..docxCompensation, Benefits, Reward & Recognition Plan for V..docx
Compensation, Benefits, Reward & Recognition Plan for V..docx
 
Compete the following tablesTheoryKey figuresKey concepts o.docx
Compete the following tablesTheoryKey figuresKey concepts o.docxCompete the following tablesTheoryKey figuresKey concepts o.docx
Compete the following tablesTheoryKey figuresKey concepts o.docx
 
Compensation Strategy for Knowledge WorkersTo prepare for this a.docx
Compensation Strategy for Knowledge WorkersTo prepare for this a.docxCompensation Strategy for Knowledge WorkersTo prepare for this a.docx
Compensation Strategy for Knowledge WorkersTo prepare for this a.docx
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx

  • 1. Chapter 11: Chi-Square Tests and ANOVA 359 Chapter 11: Chi-Square and ANOVA Tests This chapter presents material on three more hypothesis tests. One is used to determine significant relationship between two qualitative variables, the second is used to determine if the sample data has a particular distribution, and the last is used to determine significant relationships between means of 3 or more samples. Section 11.1: Chi-Square Test for Independence Remember, qualitative data is where you collect data on individuals that are categories or names. Then you would count how many of the individuals had particular qualities. An example is that there is a theory that there is a relationship between breastfeeding and autism. To determine if there is a relationship, researchers could collect the time period that a mother breastfed her child and if that child was diagnosed with autism. Then you would have a table containing this information. Now you want to know if each cell is independent of each other cell. Remember, independence says that one event does not affect another event. Here it means that having autism is independent of being breastfed.
  • 2. What you really want is to see if they are not independent. In other words, does one affect the other? If you were to do a hypothesis test, this is your alternative hypothesis and the null hypothesis is that they are independent. There is a hypothesis test for this and it is called the Chi-Square Test for Independence. Technically it should be called the Chi-Square Test for Dependence, but for historical reasons it is known as the test for independence. Just as with previous hypothesis tests, all the steps are the same except for the assumptions and the test statistic. Hypothesis Test for Chi-Square Test 1. State the null and alternative hypotheses and the level of significance Ho : the two variables are independent (this means that the one variable is not affected by the other) HA : the two variables are dependent (this means that the one variable is affected by the other) Also, state your α level here. 2. State and check the assumptions for the hypothesis test a. A random sample is taken. b. Expected frequencies for each cell are greater than or equal to 5 (The expected frequencies, E, will be calculated later, and this assumption means E ≥ 5 ).
  • 3. 3. Find the test statistic and p-value Finding the test statistic involves several steps. First the data is collected and counted, and then it is organized into a table (in a table each entry is called a cell). These values are known as the observed frequencies, which the symbol for an observed frequency is O. Each table is made up of rows and columns. Then each row is totaled to give a row total and each column is totaled to give a column total. Chapter 11: Chi-Squared Tests and ANOVA 360 The null hypothesis is that the variables are independent. Using the multiplication rule for independent events you can calculate the probability of being one value of the first variable, A, and one value of the second variable, B (the probability of a particular cell P A and B( ) ). Remember in a hypothesis test, you assume that H0 is true, the two variables are assumed to be independent. P A and B( ) = P A( ) ⋅ P B( ) if A and B are independent = number of ways A can happen
  • 4. total number of individuals ⋅ number of ways B can happen total number of individuals = row total n * column total n Now you want to find out how many individuals you expect to be in a certain cell. To find the expected frequencies, you just need to multiply the probability of that cell times the total number of individuals. Do not round the expected frequencies. Expected frequency cell A and B( ) = E A and B( ) = n row total n ⋅ column total n ⎛ ⎝⎜ ⎞ ⎠⎟
  • 5. = row total ⋅ column total n If the variables are independent the expected frequencies and the observed frequencies should be the same. The test statistic here will involve looking at the difference between the expected frequency and the observed frequency for each cell. Then you want to find the “total difference” of all of these differences. The larger the total, the smaller the chances that you could find that test statistic given that the assumption of independence is true. That means that the assumption of independence is not true. How do you find the test statistic? First find the differences between the observed and expected frequencies. Because some of these differences will be positive and some will be negative, you need to square these differences. These squares could be large just because the frequencies are large, you need to divide by the expected frequencies to scale them. Then finally add up all of these fractional values. This is the test statistic. Test Statistic: The symbol for Chi-Square is χ 2
  • 6. χ 2 = O − E( )2 E∑ where O is the observed frequency and E is the expected frequency Chapter 11: Chi-Square Tests and ANOVA 361 Distribution of Chi-Square χ 2 has different curves depending on the degrees of freedom. It is skewed to the right for small degrees of freedom and gets more symmetric as the degrees of freedom increases (see figure #11.1.1). Since the test statistic involves squaring the differences, the test statistics are all positive. A chi- squared test for independence is always right tailed. Figure #11.1.1: Chi-Square Distribution
  • 7. p-value: Use χcdf lower limit,1E99, df( ) Where the degrees of freedom is df = # of rows−1( )* # of columns−1( ) 4. Conclusion This is where you write reject Ho or fail to reject Ho . The rule is: if the p-value < α , then reject Ho . If the p-value ≥α , then fail to reject Ho 5. Interpretation This is where you interpret in real world terms the conclusion to the test. The conclusion for a hypothesis test is that you either have enough evidence to show HA is true, or you do not have enough evidence to show HA is true. Example #11.1.1: Hypothesis Test with Chi-Square Test Using Formula Is there a relationship between autism and breastfeeding? To determine if there is, a researcher asked mothers of autistic and non-autistic children to say what time period they breastfed their children. The data is in table #11.1.1 (Schultz, Klonoff-Cohen, Wingard, Askhoomoff, Macera, Ji & Bacher, 2006). Do the data
  • 8. provide enough evidence to show that that breastfeeding and autism are independent? Test at the1% level. Chapter 11: Chi-Squared Tests and ANOVA 362 Table #11.1.1: Autism Versus Breastfeeding Autism Breast Feeding Timelines Row Total None Less than 2 months 2 to 6 months More than 6 months
  • 9. Yes 241 198 164 215 818 No 20 25 27 44 116 Column Total 261 223 191 259 934 Solution : 1. State the null and alternative hypotheses and the level of significance Ho : Breastfeeding and autism are independent HA : Breastfeeding and autism are dependent α = 0.01 2. State and check the assumptions for the hypothesis test a. A random sample of breastfeeding time frames and autism incidence was taken. b. Expected frequencies for each cell are greater than or equal to 5 (ie. E ≥ 5 ).
  • 10. See step 3. All expected frequencies are more than 5. 3. Find the test statistic and p-value Test statistic: First find the expected frequencies for each cell. E Autism and no breastfeeding( ) = 818 *261 934 ≈ 228.585 E Autism and < 2 months( ) = 818 *223 934 ≈195.304 E Autism and 2 to 6 months( ) = 818 *191 934 ≈167.278 E Autism and more than 6 months( ) = 818 *259 934
  • 11. ≈ 226.833 Others are done similarly. It is easier to do the calculations for the test statistic with a table, the others are in table #11.1.2 along with the calculation for the test statistic. (Note: the column of O − E should add to 0 or close to 0.) Chapter 11: Chi-Square Tests and ANOVA 363 Table #11.1.2: Calculations for Chi-Square Test Statistic O E O − E O − E( )2 O − E( )2 E 241 228.585 12.415 154.132225 0.674288448 198 195.304 2.696 7.268416 0.03721591 164 167.278 -3.278 10.745284 0.064236086
  • 12. 215 226.833 -11.833 140.019889 0.617281828 20 32.4154 -12.4154 154.1421572 4.755213792 25 27.6959 -2.6959 7.26787681 0.262417066 27 23.7216 3.2784 10.74790656 0.453085229 44 32.167 11.833 140.019889 4.352904809 Total 0.0001 11.2166432= χ 2 The test statistic formula is χ 2 = O − E( )2 E∑ , which is the total of the last column in table #11.1.2. p-value: df = 2 −1( )* 4 −1( ) = 3 χcdf 11.2166432,1E99,3( ) ≈ 0.01061 4. Conclusion
  • 13. Fail to reject Ho since the p-value is more than 0.01. 5. Interpretation There is not enough evidence to show that breastfeeding and autism are dependent. This means that you cannot say that the whether a child is breastfed or not will indicate if that the child will be diagnosed with autism. Example #11.1.2: Hypothesis Test with Chi-Square Test Using TI-83/84 Calculator Is there a relationship between autism and breastfeeding? To determine if there is, a researcher asked mothers of autistic and non-autistic children to say what time period they breastfed their children. The data is in table #11.1.1 (Schultz, Klonoff-Cohen, Wingard, Askhoomoff, Macera, Ji & Bacher, 2006). Do the data provide enough evidence to show that that breastfeeding and autism are independent? Test at the1% level.