SlideShare a Scribd company logo
1 of 22
1
Chapter 18: The Chi-Square
Statistic
2
Parametric and Nonparametric
Tests
• Chapter 18 introduces two non-
parametric hypothesis tests using the
chi-square statistic: the chi-square test for
goodness of fit and the chi-square test for
independence.
3
Parametric and Nonparametric
Tests (cont.)
• The term "non-parametric" refers to the fact that
the chi-square tests do not require assumptions
about population parameters nor do they test
hypotheses about population parameters.
• Previous examples of hypothesis tests, such as
the t tests and analysis of variance, are
parametric tests and they do include
assumptions about parameters and hypotheses
about parameters.
4
Parametric and Nonparametric
Tests (cont.)
• The most obvious difference between the
chi-square tests and the other hypothesis
tests we have considered (t and ANOVA)
is the nature of the data.
• For chi-square, the data are frequencies
rather than numerical scores.
5
The Chi-Square Test for Goodness-
of-Fit
• The chi-square test for goodness-of-fit uses
frequency data from a sample to test hypotheses
about the shape or proportions of a population.
• Each individual in the sample is classified into
one category on the scale of measurement.
• The data, called observed frequencies, simply
count how many individuals from the sample are
in each category.
6
The Chi-Square Test for Goodness-
of-Fit (cont.)
• The null hypothesis specifies the
proportion of the population that should be
in each category.
• The proportions from the null hypothesis
are used to compute expected
frequencies that describe how the sample
would appear if it were in perfect
agreement with the null hypothesis.
8
The Chi-Square Test for
Independence
• The second chi-square test, the chi-
square test for independence, can be
used and interpreted in two different ways:
1. Testing hypotheses about the
relationship between two variables in a
population, or
2. Testing hypotheses about
differences between proportions for two
or more populations.
9
The Chi-Square Test for
Independence (cont.)
• Although the two versions of the test for
independence appear to be different, they
are equivalent and they are
interchangeable.
• The first version of the test emphasizes
the relationship between chi-square and a
correlation, because both procedures
examine the relationship between two
variables.
10
The Chi-Square Test for
Independence (cont.)
• The second version of the test
emphasizes the relationship between chi-
square and an independent-measures t
test (or ANOVA) because both tests use
data from two (or more) samples to test
hypotheses about the difference between
two (or more) populations.
11
The Chi-Square Test for
Independence (cont.)
• The first version of the chi-square test for
independence views the data as one
sample in which each individual is
classified on two different variables.
• The data are usually presented in a matrix
with the categories for one variable
defining the rows and the categories of the
second variable defining the columns.
12
The Chi-Square Test for
Independence (cont.)
• The data, called observed frequencies,
simply show how many individuals from
the sample are in each cell of the matrix.
• The null hypothesis for this test states that
there is no relationship between the two
variables; that is, the two variables are
independent.
13
The Chi-Square Test for
Independence (cont.)
• The second version of the test for independence
views the data as two (or more) separate
samples representing the different populations
being compared.
• The same variable is measured for each sample
by classifying individual subjects into categories
of the variable.
• The data are presented in a matrix with the
different samples defining the rows and the
categories of the variable defining the columns..
14
The Chi-Square Test for
Independence (cont.)
• The data, again called observed
frequencies, show how many individuals
are in each cell of the matrix.
• The null hypothesis for this test states that
the proportions (the distribution across
categories) are the same for all of the
populations
15
The Chi-Square Test for
Independence (cont.)
• Both chi-square tests use the same statistic.
The calculation of the chi-square statistic
requires two steps:
1.The null hypothesis is used to construct an
idealized sample distribution of expected
frequencies that describes how the sample
would look if the data were in perfect agreement
with the null hypothesis.
16
The Chi-Square Test for
Independence (cont.)
For the goodness of fit test, the expected frequency for
each category is obtained by
expected frequency = fe = pn
(p is the proportion from the null hypothesis and n is the
size of the sample)
For the test for independence, the expected frequency for
each cell in the matrix is obtained by
(row total)(column total)
expected frequency = fe = ─────────────────
n
18
The Chi-Square Test for
Independence (cont.)
2. A chi-square statistic is computed to measure
the amount of discrepancy between the ideal
sample (expected frequencies from H0) and the
actual sample data (the observed frequencies =
fo).
A large discrepancy results in a large value for
chi-square and indicates that the data do not fit
the null hypothesis and the hypothesis should be
rejected.
19
The Chi-Square Test for
Independence (cont.)
The calculation of chi-square is the same for all
chi-square tests:
(fo – fe)2
chi-square = χ2 = Σ ─────
fe
The fact that chi-square tests do not require
scores from an interval or ratio scale makes
these tests a valuable alternative to the t tests,
ANOVA, or correlation, because they can be
used with data measured on a nominal or an
ordinal scale.
20
Measuring Effect Size for the Chi-
Square Test for Independence
• When both variables in the chi-square test
for independence consist of exactly two
categories (the data form a 2x2 matrix), it
is possible to re-code the categories as 0
and 1 for each variable and then compute
a correlation known as a phi-coefficient
that measures the strength of the
relationship.
21
Measuring Effect Size for the Chi-
Square Test for Independence (cont.)
• The value of the phi-coefficient, or the
squared value which is equivalent to an r2,
is used to measure the effect size.
• When there are more than two categories
for one (or both) of the variables, then you
can measure effect size using a modified
version of the phi-coefficient known as
Cramér=s V.
• The value of V is evaluated much the
same as a correlation.
chapter18.ppt

More Related Content

Similar to chapter18.ppt

Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisMichael770443
 
Qnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comQnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comBaileya33
 
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOU
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOUInferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOU
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOUEqraBaig
 
Chi square test final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentationRitesh Tiwari
 
Chi-square test.pptx
Chi-square test.pptxChi-square test.pptx
Chi-square test.pptxagtech7
 
Non Parametric Test by Vikramjit Singh
Non Parametric Test by  Vikramjit SinghNon Parametric Test by  Vikramjit Singh
Non Parametric Test by Vikramjit SinghVikramjit Singh
 
Chi square test
Chi square testChi square test
Chi square testNayna Azad
 
Nonparametric tests assignment
Nonparametric tests assignmentNonparametric tests assignment
Nonparametric tests assignmentROOHASHAHID1
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxrathorebhagwan07
 

Similar to chapter18.ppt (20)

Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 
Chi square
Chi squareChi square
Chi square
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Qnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comQnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.com
 
Ad test
Ad testAd test
Ad test
 
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOU
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOUInferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOU
Inferential Statistics: Chi Square (X2) - DAY 6 - B.ED - 8614 - AIOU
 
Chi
ChiChi
Chi
 
Chi square test final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentation
 
Unit 4
Unit 4Unit 4
Unit 4
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 
Chi-square test.pptx
Chi-square test.pptxChi-square test.pptx
Chi-square test.pptx
 
Non Parametric Test by Vikramjit Singh
Non Parametric Test by  Vikramjit SinghNon Parametric Test by  Vikramjit Singh
Non Parametric Test by Vikramjit Singh
 
Chi square test
Chi square testChi square test
Chi square test
 
Nonparametric tests assignment
Nonparametric tests assignmentNonparametric tests assignment
Nonparametric tests assignment
 
Chi square
Chi square Chi square
Chi square
 
One way AVOVA
One way AVOVA  One way AVOVA
One way AVOVA
 
Chi square test
Chi square testChi square test
Chi square test
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
 
Contingency tables
Contingency tables  Contingency tables
Contingency tables
 

Recently uploaded

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 

chapter18.ppt

  • 1. 1 Chapter 18: The Chi-Square Statistic
  • 2. 2 Parametric and Nonparametric Tests • Chapter 18 introduces two non- parametric hypothesis tests using the chi-square statistic: the chi-square test for goodness of fit and the chi-square test for independence.
  • 3. 3 Parametric and Nonparametric Tests (cont.) • The term "non-parametric" refers to the fact that the chi-square tests do not require assumptions about population parameters nor do they test hypotheses about population parameters. • Previous examples of hypothesis tests, such as the t tests and analysis of variance, are parametric tests and they do include assumptions about parameters and hypotheses about parameters.
  • 4. 4 Parametric and Nonparametric Tests (cont.) • The most obvious difference between the chi-square tests and the other hypothesis tests we have considered (t and ANOVA) is the nature of the data. • For chi-square, the data are frequencies rather than numerical scores.
  • 5. 5 The Chi-Square Test for Goodness- of-Fit • The chi-square test for goodness-of-fit uses frequency data from a sample to test hypotheses about the shape or proportions of a population. • Each individual in the sample is classified into one category on the scale of measurement. • The data, called observed frequencies, simply count how many individuals from the sample are in each category.
  • 6. 6 The Chi-Square Test for Goodness- of-Fit (cont.) • The null hypothesis specifies the proportion of the population that should be in each category. • The proportions from the null hypothesis are used to compute expected frequencies that describe how the sample would appear if it were in perfect agreement with the null hypothesis.
  • 7.
  • 8. 8 The Chi-Square Test for Independence • The second chi-square test, the chi- square test for independence, can be used and interpreted in two different ways: 1. Testing hypotheses about the relationship between two variables in a population, or 2. Testing hypotheses about differences between proportions for two or more populations.
  • 9. 9 The Chi-Square Test for Independence (cont.) • Although the two versions of the test for independence appear to be different, they are equivalent and they are interchangeable. • The first version of the test emphasizes the relationship between chi-square and a correlation, because both procedures examine the relationship between two variables.
  • 10. 10 The Chi-Square Test for Independence (cont.) • The second version of the test emphasizes the relationship between chi- square and an independent-measures t test (or ANOVA) because both tests use data from two (or more) samples to test hypotheses about the difference between two (or more) populations.
  • 11. 11 The Chi-Square Test for Independence (cont.) • The first version of the chi-square test for independence views the data as one sample in which each individual is classified on two different variables. • The data are usually presented in a matrix with the categories for one variable defining the rows and the categories of the second variable defining the columns.
  • 12. 12 The Chi-Square Test for Independence (cont.) • The data, called observed frequencies, simply show how many individuals from the sample are in each cell of the matrix. • The null hypothesis for this test states that there is no relationship between the two variables; that is, the two variables are independent.
  • 13. 13 The Chi-Square Test for Independence (cont.) • The second version of the test for independence views the data as two (or more) separate samples representing the different populations being compared. • The same variable is measured for each sample by classifying individual subjects into categories of the variable. • The data are presented in a matrix with the different samples defining the rows and the categories of the variable defining the columns..
  • 14. 14 The Chi-Square Test for Independence (cont.) • The data, again called observed frequencies, show how many individuals are in each cell of the matrix. • The null hypothesis for this test states that the proportions (the distribution across categories) are the same for all of the populations
  • 15. 15 The Chi-Square Test for Independence (cont.) • Both chi-square tests use the same statistic. The calculation of the chi-square statistic requires two steps: 1.The null hypothesis is used to construct an idealized sample distribution of expected frequencies that describes how the sample would look if the data were in perfect agreement with the null hypothesis.
  • 16. 16 The Chi-Square Test for Independence (cont.) For the goodness of fit test, the expected frequency for each category is obtained by expected frequency = fe = pn (p is the proportion from the null hypothesis and n is the size of the sample) For the test for independence, the expected frequency for each cell in the matrix is obtained by (row total)(column total) expected frequency = fe = ───────────────── n
  • 17.
  • 18. 18 The Chi-Square Test for Independence (cont.) 2. A chi-square statistic is computed to measure the amount of discrepancy between the ideal sample (expected frequencies from H0) and the actual sample data (the observed frequencies = fo). A large discrepancy results in a large value for chi-square and indicates that the data do not fit the null hypothesis and the hypothesis should be rejected.
  • 19. 19 The Chi-Square Test for Independence (cont.) The calculation of chi-square is the same for all chi-square tests: (fo – fe)2 chi-square = χ2 = Σ ───── fe The fact that chi-square tests do not require scores from an interval or ratio scale makes these tests a valuable alternative to the t tests, ANOVA, or correlation, because they can be used with data measured on a nominal or an ordinal scale.
  • 20. 20 Measuring Effect Size for the Chi- Square Test for Independence • When both variables in the chi-square test for independence consist of exactly two categories (the data form a 2x2 matrix), it is possible to re-code the categories as 0 and 1 for each variable and then compute a correlation known as a phi-coefficient that measures the strength of the relationship.
  • 21. 21 Measuring Effect Size for the Chi- Square Test for Independence (cont.) • The value of the phi-coefficient, or the squared value which is equivalent to an r2, is used to measure the effect size. • When there are more than two categories for one (or both) of the variables, then you can measure effect size using a modified version of the phi-coefficient known as Cramér=s V. • The value of V is evaluated much the same as a correlation.