SlideShare a Scribd company logo
1 of 18
The Chi-Square test of
Indep of Categorical
Variables
DESMOND AYIM-ABOAGYE, PHD
Categorical Variables
 When there are two categorical variables, researchers are often interested in knowing
whether these variables are independent of one another or dependent on each other.
 By independent, each of the variables – and its influence– can be understood in
isolation from the other. Is more of a story revealed, however, when the association
between the two variables is examined? In other words, perhaps, understanding one of
the variables really depends on being aware of its relationship to the other.
 Thus, is the size of first-graders’ vocabularies at all related to whether their parents
read to them daily? Put another way, is the size of a child’s vocabulary independent of
being read to, or does verbal fluency depend on regular activity?
The Chi-square test for independence
 The Chi-square test for independence indicates whether the frequencies
associated with two variables (with two or more categories each) are statistically
independent of or dependent upon one another.
News Sources
Educational Status Television Newspapers Row Totals
College 47 62 109
High School 58 39 97
Column Totals 105 101 206
The specialist randomly samples 206 adult residents from a community, asking them to indicate their
educational status (i.e., high school diploma or college diploma) and their source of news (i.e., television or
the newspaper)
Observation
 A glance at the cell entries inside the table suggests that college graduates are
more likely to rely on the newspaper as their source for news, where high school
graduates tend to use the television predominantly for gathering information.
 Note that the row totals and their column totals representing the respective
variables are very similar in magnitude.
 The chi-square test for independence will real whether this apparent relationship
between the two categorical variables is a dependent one—that is, both variables
need to be considered simultaneously – or whether they are actually independent
of one another.
Step 1
 Determine whether the data was based on Nominal scale
Null and Alternative hypotheses (Step2)
 Alternative hypothesis:
 Whether a dependent relationship exists
between education and mode of news
gathering.
 Null hypothesis is that:
 Participants’ level of education is
independent of their mode of news
acquisition
Step 3
 Select a significance level (p value or a level) for the nonparametric test)
Step 4
 Step 4 entails the actual calculation of the nonparametric statistic, and here is the formula for
doing so:
 χ² = ∑ ∑= Σ (fo- fE)²
 fE
 ∑ (r =1) ∑ (c=1)
 r= number of rows, c= number of columns, fo and fe refer to observed and expected frequencies,
respectively.
 If the chi-square equals (χ²) or exceeds a critical value, (eg., P= 0.05 or P > 0.05) then the null hypothesis of
independence is rejected and the two variables are said to be in a dependent relationship with one another.
Calculating the χ²
 Please, note that because there are two variables, the expected frequencies cannot
be identified by simply dividing the number of participants by the number of cells
available.
 Instead, we use a simple procedure called the “cell A” strategy to calculate the
expected frequencies for the four cells. By cell A, we refer to the somewhat
arbitrary identification of the upper left cell in any 2 x 2 table (see below)
 Television Newspaper
 College A B
 High School C D
Calculating χ²
 The remaining three cells are labeled B, C, and D, accordingly. Our goal is to
calculate the expected frequency corresponding to each of these four cells.
 Cell A = column total x row total
 N
 Cell A = 105 x 109
 206
 Cell A = 55.56
Calculating X²
 Cell B = column total x row total
 N
 Cell A = 101 x 109
 206
 Cell A = 53.44
Calculating X²
Television Newspaper Television Newspaper
College A B College 55.56 53.44
High Sch C D High Sch 49.44 47.56
When computing X² test for independence, be certain that the row totals and the column totals each sum to N– any
discrepancy from N indicates that a math error is present.
Formula:
 χ² = ∑∑ (fo – fe)²
 r=1c=1
 fe
 χ² = (47 – 55.56)² + (62- 53.44)²
 55.6 53.44
 χ² = 5.71.
 Dfx = (r=1) (c-1)
 Dfx = (2-1) (2-1)
 Dfx = (1)(1)
 Dfx = 1.
APA Style
 χ² (1, N = 206) = 5.71
 TABLE B.7 in Appendix B (check df 1 and under .05 find 3.841
 χ² (1) = 5.71 ≥ χ² critical (1) = 3.84 – Reject H0.
 The significant χ² statistic is then reported as:
 χ² (1, N = 206) = 5.71, p < .05.
 Please, check DATA BOX 14B (p.538)
Phi (Ø) Coefficient
 The phi coefficient can be calculated when an investigator is performing a chi-square analysis on a
2 x 2 contingency table. In a manner similar to the Pearson r, the phi coefficient provides a
measure of association between two dichotomous variables. The formula for this supporting
statistic is:
 Ø = √χ²/N
 Using the data from the education and news acquisition, we find that:
 Ø = √5.71
 206
 Ø = √.0277
 Ø = .17.
 The value of the phi coefficient can range between 0 and 1, where higher values indicate a greater degree of
association between the variables.
Cramer’s V statistic
 Cramer’s V statistic is used only when a contingency table is larger than the
standard 2 x 2 size.
 The formula for Cramer's V is:
 V =
χ²
𝑁 (𝑛−1)
Statistically significant
 Where n refers to the smallest number of rows or columns present in a
contingency table. If the table were a 3 x 4 design, then n would be equal to 3.
One last suggestion: Neither the phi coefficient nor Cramer’s V should be
calculated unless the χ² is statistically significant.

More Related Content

What's hot

Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression pptSantosh Bhaskar
 
Correlation- an introduction and application of spearman rank correlation by...
Correlation- an introduction and application of spearman rank correlation  by...Correlation- an introduction and application of spearman rank correlation  by...
Correlation- an introduction and application of spearman rank correlation by...Gunjan Verma
 
PROBABILITY AND IT'S TYPES WITH RULES
PROBABILITY AND IT'S TYPES WITH RULESPROBABILITY AND IT'S TYPES WITH RULES
PROBABILITY AND IT'S TYPES WITH RULESBhargavi Bhanu
 
Contingency table
Contingency tableContingency table
Contingency tableWeam Banjar
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentationcae_021
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distributionswarna dey
 
Weighted arithmetic mean
Weighted arithmetic meanWeighted arithmetic mean
Weighted arithmetic meanNadeem Uddin
 
Statistics: Probability
Statistics: ProbabilityStatistics: Probability
Statistics: ProbabilitySultan Mahmood
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation Remyagharishs
 
The chi – square test
The chi – square testThe chi – square test
The chi – square testMajesty Ortiz
 

What's hot (20)

Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Correlation- an introduction and application of spearman rank correlation by...
Correlation- an introduction and application of spearman rank correlation  by...Correlation- an introduction and application of spearman rank correlation  by...
Correlation- an introduction and application of spearman rank correlation by...
 
PROBABILITY AND IT'S TYPES WITH RULES
PROBABILITY AND IT'S TYPES WITH RULESPROBABILITY AND IT'S TYPES WITH RULES
PROBABILITY AND IT'S TYPES WITH RULES
 
Contingency table
Contingency tableContingency table
Contingency table
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Correlation and partial correlation
Correlation and partial correlationCorrelation and partial correlation
Correlation and partial correlation
 
Measures of dispersion
Measures  of  dispersionMeasures  of  dispersion
Measures of dispersion
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Weighted arithmetic mean
Weighted arithmetic meanWeighted arithmetic mean
Weighted arithmetic mean
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Statistics: Probability
Statistics: ProbabilityStatistics: Probability
Statistics: Probability
 
Statistical Distributions
Statistical DistributionsStatistical Distributions
Statistical Distributions
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation
 
The chi – square test
The chi – square testThe chi – square test
The chi – square test
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
T distribution | Statistics
T distribution | StatisticsT distribution | Statistics
T distribution | Statistics
 
One sample runs test
One sample runs testOne sample runs test
One sample runs test
 

Similar to The chi square test of indep of categorical variables

marketing research & applications on SPSS
marketing research & applications on SPSSmarketing research & applications on SPSS
marketing research & applications on SPSSANSHU TIWARI
 
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.pptSnehamurali18
 
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxPampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxbunyansaturnina
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docxrhetttrevannion
 
Overview of Advance Marketing Research
Overview of Advance Marketing ResearchOverview of Advance Marketing Research
Overview of Advance Marketing ResearchEnamul Islam
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametricANCYBS
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.pptShivraj Nile
 
QNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.comQNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.comBromleyz33
 
QNT 275 Exceptional Education - snaptutorial.com
QNT 275   Exceptional Education - snaptutorial.comQNT 275   Exceptional Education - snaptutorial.com
QNT 275 Exceptional Education - snaptutorial.comDavisMurphyB22
 
Qnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comQnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comBaileya33
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxErgin Akalpler
 
TTests.ppt
TTests.pptTTests.ppt
TTests.pptMUzair21
 
Module-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data scienceModule-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data sciencepujashri1975
 

Similar to The chi square test of indep of categorical variables (20)

archana1099.pptx
archana1099.pptxarchana1099.pptx
archana1099.pptx
 
marketing research & applications on SPSS
marketing research & applications on SPSSmarketing research & applications on SPSS
marketing research & applications on SPSS
 
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
 
Chapter12
Chapter12Chapter12
Chapter12
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi2 Anova
Chi2 AnovaChi2 Anova
Chi2 Anova
 
Chi-square test.pptx
Chi-square test.pptxChi-square test.pptx
Chi-square test.pptx
 
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxPampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
 
Overview of Advance Marketing Research
Overview of Advance Marketing ResearchOverview of Advance Marketing Research
Overview of Advance Marketing Research
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.ppt
 
Chi square
Chi squareChi square
Chi square
 
QNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.comQNT 275 Inspiring Innovation / tutorialrank.com
QNT 275 Inspiring Innovation / tutorialrank.com
 
QNT 275 Exceptional Education - snaptutorial.com
QNT 275   Exceptional Education - snaptutorial.comQNT 275   Exceptional Education - snaptutorial.com
QNT 275 Exceptional Education - snaptutorial.com
 
Qnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.comQnt 275 Enhance teaching / snaptutorial.com
Qnt 275 Enhance teaching / snaptutorial.com
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 
TTests.ppt
TTests.pptTTests.ppt
TTests.ppt
 
Chi square
Chi square Chi square
Chi square
 
Module-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data scienceModule-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data science
 

More from Regent University

EYEWITNESS TESTIMONY.ppt criminal psychol
EYEWITNESS TESTIMONY.ppt criminal psycholEYEWITNESS TESTIMONY.ppt criminal psychol
EYEWITNESS TESTIMONY.ppt criminal psycholRegent University
 
Interviewing Suspects in Criminal Cases.ppt
Interviewing Suspects in Criminal Cases.pptInterviewing Suspects in Criminal Cases.ppt
Interviewing Suspects in Criminal Cases.pptRegent University
 
DETECTING DECEPTION.ppt psychology crimi
DETECTING DECEPTION.ppt psychology crimiDETECTING DECEPTION.ppt psychology crimi
DETECTING DECEPTION.ppt psychology crimiRegent University
 
MedicalResearcher.edited.docx in Sweden,
MedicalResearcher.edited.docx in Sweden,MedicalResearcher.edited.docx in Sweden,
MedicalResearcher.edited.docx in Sweden,Regent University
 
Policing.ppt criminal psychology in introduction
Policing.ppt criminal psychology in introductionPolicing.ppt criminal psychology in introduction
Policing.ppt criminal psychology in introductionRegent University
 
Offender Profiling and Linking Crime.ppt
Offender Profiling and Linking Crime.pptOffender Profiling and Linking Crime.ppt
Offender Profiling and Linking Crime.pptRegent University
 
Definitions and Historical Background.ppt
Definitions and Historical Background.pptDefinitions and Historical Background.ppt
Definitions and Historical Background.pptRegent University
 
Zero State Theorem of Medical Science.ppt
Zero State Theorem of Medical Science.pptZero State Theorem of Medical Science.ppt
Zero State Theorem of Medical Science.pptRegent University
 
Swedish Prisons Presentation1.ppt
Swedish Prisons Presentation1.pptSwedish Prisons Presentation1.ppt
Swedish Prisons Presentation1.pptRegent University
 
Three Fundamental Theorems in Medicine
Three Fundamental Theorems in MedicineThree Fundamental Theorems in Medicine
Three Fundamental Theorems in MedicineRegent University
 
Ancient Egyptians,Ancient Persians
Ancient Egyptians,Ancient Persians Ancient Egyptians,Ancient Persians
Ancient Egyptians,Ancient Persians Regent University
 
Historical Data on Prof. Desmond Ayim-Aboagye
Historical Data on Prof. Desmond Ayim-AboagyeHistorical Data on Prof. Desmond Ayim-Aboagye
Historical Data on Prof. Desmond Ayim-AboagyeRegent University
 
Biography of desmond ayim aboagye cur
Biography of desmond ayim aboagye curBiography of desmond ayim aboagye cur
Biography of desmond ayim aboagye curRegent University
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagyeRegent University
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagyeRegent University
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagyeRegent University
 
Professor ayim aboagye's profile
Professor ayim aboagye's profileProfessor ayim aboagye's profile
Professor ayim aboagye's profileRegent University
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagyeRegent University
 

More from Regent University (20)

EYEWITNESS TESTIMONY.ppt criminal psychol
EYEWITNESS TESTIMONY.ppt criminal psycholEYEWITNESS TESTIMONY.ppt criminal psychol
EYEWITNESS TESTIMONY.ppt criminal psychol
 
Interviewing Suspects in Criminal Cases.ppt
Interviewing Suspects in Criminal Cases.pptInterviewing Suspects in Criminal Cases.ppt
Interviewing Suspects in Criminal Cases.ppt
 
DETECTING DECEPTION.ppt psychology crimi
DETECTING DECEPTION.ppt psychology crimiDETECTING DECEPTION.ppt psychology crimi
DETECTING DECEPTION.ppt psychology crimi
 
MedicalResearcher.edited.docx in Sweden,
MedicalResearcher.edited.docx in Sweden,MedicalResearcher.edited.docx in Sweden,
MedicalResearcher.edited.docx in Sweden,
 
Policing.ppt criminal psychology in introduction
Policing.ppt criminal psychology in introductionPolicing.ppt criminal psychology in introduction
Policing.ppt criminal psychology in introduction
 
Offender Profiling and Linking Crime.ppt
Offender Profiling and Linking Crime.pptOffender Profiling and Linking Crime.ppt
Offender Profiling and Linking Crime.ppt
 
Definitions and Historical Background.ppt
Definitions and Historical Background.pptDefinitions and Historical Background.ppt
Definitions and Historical Background.ppt
 
Zero State Theorem of Medical Science.ppt
Zero State Theorem of Medical Science.pptZero State Theorem of Medical Science.ppt
Zero State Theorem of Medical Science.ppt
 
Swedish Prisons Presentation1.ppt
Swedish Prisons Presentation1.pptSwedish Prisons Presentation1.ppt
Swedish Prisons Presentation1.ppt
 
What about the 80% (Farmers)
What about the 80% (Farmers)What about the 80% (Farmers)
What about the 80% (Farmers)
 
Theorems in Medicine
Theorems in MedicineTheorems in Medicine
Theorems in Medicine
 
Three Fundamental Theorems in Medicine
Three Fundamental Theorems in MedicineThree Fundamental Theorems in Medicine
Three Fundamental Theorems in Medicine
 
Ancient Egyptians,Ancient Persians
Ancient Egyptians,Ancient Persians Ancient Egyptians,Ancient Persians
Ancient Egyptians,Ancient Persians
 
Historical Data on Prof. Desmond Ayim-Aboagye
Historical Data on Prof. Desmond Ayim-AboagyeHistorical Data on Prof. Desmond Ayim-Aboagye
Historical Data on Prof. Desmond Ayim-Aboagye
 
Biography of desmond ayim aboagye cur
Biography of desmond ayim aboagye curBiography of desmond ayim aboagye cur
Biography of desmond ayim aboagye cur
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagye
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagye
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagye
 
Professor ayim aboagye's profile
Professor ayim aboagye's profileProfessor ayim aboagye's profile
Professor ayim aboagye's profile
 
Biography of desmond ayim aboagye
Biography of desmond ayim aboagyeBiography of desmond ayim aboagye
Biography of desmond ayim aboagye
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

The chi square test of indep of categorical variables

  • 1. The Chi-Square test of Indep of Categorical Variables DESMOND AYIM-ABOAGYE, PHD
  • 2. Categorical Variables  When there are two categorical variables, researchers are often interested in knowing whether these variables are independent of one another or dependent on each other.  By independent, each of the variables – and its influence– can be understood in isolation from the other. Is more of a story revealed, however, when the association between the two variables is examined? In other words, perhaps, understanding one of the variables really depends on being aware of its relationship to the other.  Thus, is the size of first-graders’ vocabularies at all related to whether their parents read to them daily? Put another way, is the size of a child’s vocabulary independent of being read to, or does verbal fluency depend on regular activity?
  • 3. The Chi-square test for independence  The Chi-square test for independence indicates whether the frequencies associated with two variables (with two or more categories each) are statistically independent of or dependent upon one another.
  • 4. News Sources Educational Status Television Newspapers Row Totals College 47 62 109 High School 58 39 97 Column Totals 105 101 206 The specialist randomly samples 206 adult residents from a community, asking them to indicate their educational status (i.e., high school diploma or college diploma) and their source of news (i.e., television or the newspaper)
  • 5. Observation  A glance at the cell entries inside the table suggests that college graduates are more likely to rely on the newspaper as their source for news, where high school graduates tend to use the television predominantly for gathering information.  Note that the row totals and their column totals representing the respective variables are very similar in magnitude.  The chi-square test for independence will real whether this apparent relationship between the two categorical variables is a dependent one—that is, both variables need to be considered simultaneously – or whether they are actually independent of one another.
  • 6. Step 1  Determine whether the data was based on Nominal scale
  • 7. Null and Alternative hypotheses (Step2)  Alternative hypothesis:  Whether a dependent relationship exists between education and mode of news gathering.  Null hypothesis is that:  Participants’ level of education is independent of their mode of news acquisition
  • 8. Step 3  Select a significance level (p value or a level) for the nonparametric test)
  • 9. Step 4  Step 4 entails the actual calculation of the nonparametric statistic, and here is the formula for doing so:  χ² = ∑ ∑= Σ (fo- fE)²  fE  ∑ (r =1) ∑ (c=1)  r= number of rows, c= number of columns, fo and fe refer to observed and expected frequencies, respectively.  If the chi-square equals (χ²) or exceeds a critical value, (eg., P= 0.05 or P > 0.05) then the null hypothesis of independence is rejected and the two variables are said to be in a dependent relationship with one another.
  • 10. Calculating the χ²  Please, note that because there are two variables, the expected frequencies cannot be identified by simply dividing the number of participants by the number of cells available.  Instead, we use a simple procedure called the “cell A” strategy to calculate the expected frequencies for the four cells. By cell A, we refer to the somewhat arbitrary identification of the upper left cell in any 2 x 2 table (see below)  Television Newspaper  College A B  High School C D
  • 11. Calculating χ²  The remaining three cells are labeled B, C, and D, accordingly. Our goal is to calculate the expected frequency corresponding to each of these four cells.  Cell A = column total x row total  N  Cell A = 105 x 109  206  Cell A = 55.56
  • 12. Calculating X²  Cell B = column total x row total  N  Cell A = 101 x 109  206  Cell A = 53.44
  • 13. Calculating X² Television Newspaper Television Newspaper College A B College 55.56 53.44 High Sch C D High Sch 49.44 47.56 When computing X² test for independence, be certain that the row totals and the column totals each sum to N– any discrepancy from N indicates that a math error is present.
  • 14. Formula:  χ² = ∑∑ (fo – fe)²  r=1c=1  fe  χ² = (47 – 55.56)² + (62- 53.44)²  55.6 53.44  χ² = 5.71.  Dfx = (r=1) (c-1)  Dfx = (2-1) (2-1)  Dfx = (1)(1)  Dfx = 1.
  • 15. APA Style  χ² (1, N = 206) = 5.71  TABLE B.7 in Appendix B (check df 1 and under .05 find 3.841  χ² (1) = 5.71 ≥ χ² critical (1) = 3.84 – Reject H0.  The significant χ² statistic is then reported as:  χ² (1, N = 206) = 5.71, p < .05.  Please, check DATA BOX 14B (p.538)
  • 16. Phi (Ø) Coefficient  The phi coefficient can be calculated when an investigator is performing a chi-square analysis on a 2 x 2 contingency table. In a manner similar to the Pearson r, the phi coefficient provides a measure of association between two dichotomous variables. The formula for this supporting statistic is:  Ø = √χ²/N  Using the data from the education and news acquisition, we find that:  Ø = √5.71  206  Ø = √.0277  Ø = .17.  The value of the phi coefficient can range between 0 and 1, where higher values indicate a greater degree of association between the variables.
  • 17. Cramer’s V statistic  Cramer’s V statistic is used only when a contingency table is larger than the standard 2 x 2 size.  The formula for Cramer's V is:  V = χ² 𝑁 (𝑛−1)
  • 18. Statistically significant  Where n refers to the smallest number of rows or columns present in a contingency table. If the table were a 3 x 4 design, then n would be equal to 3. One last suggestion: Neither the phi coefficient nor Cramer’s V should be calculated unless the χ² is statistically significant.