SlideShare a Scribd company logo
5
Most read
10
Most read
14
Most read
Chi square test and its variations
Dr. S. A. Rizwan, M.D.
Public Health Specialist
SBCM, Joint Program – Riyadh
Ministry of Health, Kingdom of Saudi Arabia
Learning objectives
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Describe the conditions in which this test is used
• Describe the assumptions for this test
• Describe the steps involved in calculating this test
• Interpret the test result
• Describe the types of this test χ2
Introduction
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Chi square test, also called Pearson’s chi
square test
• First investigated by Karl Pearson in 1900
Applications of chi square test
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Goodness of fit - whether an observed frequency
distribution differs from a theoretical distribution.
• Homogeneity - compares the distribution of counts for
two or more groups using the same categorical variable
• Independence (most commonly used) - assesses
whether unpaired observations on two variables are
independent of each other
• Others
Applications – example 1
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• A 6-sided die is thrown 60 times. The
number of times it lands with 1, 2, 3,
4, 5 and 6 face up is 5, 8, 9, 8, 10 and
20, respectively. Is the die biased,
according to the Pearson's chi-squared
test at a significance level of 95%
Applications – example 2
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• A random sample of 100 people has
been drawn from a population in
which men and women are equal in
frequency, the observed number of
men and women would be compared
to the theoretical frequencies of 50
men and 50 women
Applications – example 2.1
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• A random sample of 100 persons
been drawn from men and 100
persons from among women. They
were asked about smoking habits.
Compare the percentage of smokers
among men and women.
Men Women Total
Smoker 40 20 60
Non-
smoker 60 80 140
Total 100 100 200
Applications – example 3
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• A city of 1 million residents with four
neighborhoods: A, B, C, and D. A random
sample of 650 residents of the city is taken
and their occupation is recorded as "white
collar", "blue collar", or "no collar". The null
hypothesis is that each person's
neighborhood of residence is independent of
the person's occupational classification
Types / variations
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Test for goodness of fit
• Test for Homogeneity
• Test of Independence
• Cochran–Mantel–Haenszel test
• Test for Trend
* Advanced learning: What is Yate’s correction?
Assumptions
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Simple random sample
• Data in the cells should be frequencies, or counts
of cases
• Categories of the variables are mutually exclusive
• Study groups must be independent
• Value of cell expecteds should be 5 or more in at
least 80% of the cells
• No cell should have an expected of less than one
Steps in Chi square test for independence
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Recall the general steps
1. Null hypothesis
2. Alternative hypothesis
3. Level of significance
4. Test statistic
5. Critical value
6. Decision & interpretation
Steps in Chi square test for independence
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Draw the contingency table
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Calculate totals for each row and column
Steps in Chi square test for independence
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Calculated expected frequencies for each cell
Steps in Chi square test for independence
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Calculate Chi square value using the formula and degree of freedom
Steps in Chi square test for independence
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Look at a chi-square table, for a 0.05 level of significance & 2 df, what is
the critical chi-square value and make the conclusion
Steps in Chi square test for independence
Summary
Demystifying statistics! – Lecture 7 SBCM, Joint Program – Riyadh
• With computers, these tests are performed easily
• There are many situations where chi square is
incorrectly applied
• It is important to know when to and when not to
use them
Take home messages
Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh
• Chi square is one of the most used statistical tests
• Remember the different types of tests and their
applications
• Remember the assumptions and always check for
violations before interpreting the results
Thank you!
Email your queries to sarizwan1986@outlook.com

More Related Content

PPT
Probability.ppt
PPSX
Chi squared test
PPTX
The mann whitney u test
PDF
Confidence Intervals: Basic concepts and overview
PPTX
PPTX
Frequency Distributions
PPT
Attributable risk and population attributable risk
Probability.ppt
Chi squared test
The mann whitney u test
Confidence Intervals: Basic concepts and overview
Frequency Distributions
Attributable risk and population attributable risk

What's hot (20)

PPTX
ANOVA TEST by shafeek
PPTX
PPTX
Chi square test final
PPTX
Tests of significance
PPTX
Measures of dispersion
PPTX
Chi square test
PPT
Spearman Rank Correlation Presentation
PPTX
Parametric versus non parametric test
PPT
Chi-square, Yates, Fisher & McNemar
PPTX
The standard normal curve & its application in biomedical sciences
PPT
Latin square design
PPTX
Errors and types
PPTX
Regression analysis.
PPTX
Cohort study - basics
PPTX
Sampling and Sample Types
PPT
Standard error-Biostatistics
PPTX
Case control study
PPTX
Analysis of variance
PPTX
Histogram
ANOVA TEST by shafeek
Chi square test final
Tests of significance
Measures of dispersion
Chi square test
Spearman Rank Correlation Presentation
Parametric versus non parametric test
Chi-square, Yates, Fisher & McNemar
The standard normal curve & its application in biomedical sciences
Latin square design
Errors and types
Regression analysis.
Cohort study - basics
Sampling and Sample Types
Standard error-Biostatistics
Case control study
Analysis of variance
Histogram
Ad

Similar to Chi square test and its types (20)

PDF
Student's t test and variations
PDF
Choosing a statistical test
PDF
Sample size in health sciences - Basics and selected examples
PDF
Tests of hypothesis (Statistical testing)
PDF
Statistical tests for categorical data
PDF
East ugm-2012-presentation-east-future-mehta
PDF
Eugm 2012 mehta - future plans for east - 2012 eugm
PPT
Study designs in oncology
PPTX
Big data vs the RCT - Derek Angus - SSAI2017
PDF
Overview of statistical tests: Data handling and data quality (Part II)
DOCX
Chapter 2Study DesignsLearning Objectives•.docx
PPTX
RSS 2012 Sampling Techniques
PPTX
RM MLM PPT March_22nd 2023.pptx
PDF
Evidence based medicine or health practice
PDF
Acmg secondary findings open forum 3 28-12 final
PPTX
Rapid diagnostic tests notes by SANJU SAH.pptx
PDF
Bmgt 311 chapter_9
PPTX
Radiology Cost Effectiveness - By Jeffrey Shyu
PPT
Researchers often use sample survey methodology to obtain information about a...
PPTX
Sampling_and_Data research methodology.pptx
Student's t test and variations
Choosing a statistical test
Sample size in health sciences - Basics and selected examples
Tests of hypothesis (Statistical testing)
Statistical tests for categorical data
East ugm-2012-presentation-east-future-mehta
Eugm 2012 mehta - future plans for east - 2012 eugm
Study designs in oncology
Big data vs the RCT - Derek Angus - SSAI2017
Overview of statistical tests: Data handling and data quality (Part II)
Chapter 2Study DesignsLearning Objectives•.docx
RSS 2012 Sampling Techniques
RM MLM PPT March_22nd 2023.pptx
Evidence based medicine or health practice
Acmg secondary findings open forum 3 28-12 final
Rapid diagnostic tests notes by SANJU SAH.pptx
Bmgt 311 chapter_9
Radiology Cost Effectiveness - By Jeffrey Shyu
Researchers often use sample survey methodology to obtain information about a...
Sampling_and_Data research methodology.pptx
Ad

More from Rizwan S A (20)

PDF
Introduction to scoping reviews
PDF
Sources of demographic data 2019
PDF
Effect sizes in meta-analysis
PDF
Presenting the results of meta-analysis
PDF
Heterogeneity in meta-analysis
PDF
Overview of the systematic review process
PDF
Biases in meta-analysis
PDF
Moderator analysis in meta-analysis
PDF
Fixed-effect and random-effects models in meta-analysis
PDF
Inverse variance method of meta-analysis and Cochran's Q
PDF
Data extraction/coding and database structure in meta-analysis
PDF
Introduction & rationale for meta-analysis
PDF
Types of correlation coefficients
PDF
Checking for normality (Normal distribution)
PDF
Analysis of small datasets
PDF
A introduction to non-parametric tests
PDF
Kruskal Wallis test, Friedman test, Spearman Correlation
PDF
Kolmogorov Smirnov good-of-fit test
PDF
Mantel Haenszel methods in epidemiology (Stratification)
PDF
Use of checklists in critical appraisal of health literature
Introduction to scoping reviews
Sources of demographic data 2019
Effect sizes in meta-analysis
Presenting the results of meta-analysis
Heterogeneity in meta-analysis
Overview of the systematic review process
Biases in meta-analysis
Moderator analysis in meta-analysis
Fixed-effect and random-effects models in meta-analysis
Inverse variance method of meta-analysis and Cochran's Q
Data extraction/coding and database structure in meta-analysis
Introduction & rationale for meta-analysis
Types of correlation coefficients
Checking for normality (Normal distribution)
Analysis of small datasets
A introduction to non-parametric tests
Kruskal Wallis test, Friedman test, Spearman Correlation
Kolmogorov Smirnov good-of-fit test
Mantel Haenszel methods in epidemiology (Stratification)
Use of checklists in critical appraisal of health literature

Recently uploaded (20)

PDF
Intl J Gynecology Obste - 2021 - Melamed - FIGO International Federation o...
PPTX
obstructive neonatal jaundice.pptx yes it is
PPTX
Post Op complications in general surgery
PPT
neurology Member of Royal College of Physicians (MRCP).ppt
PPTX
Human Reproduction: Anatomy, Physiology & Clinical Insights.pptx
PPTX
Morphology of Bacterial Cell for bsc sud
PPTX
CHEM421 - Biochemistry (Chapter 1 - Introduction)
PDF
Cardiology Pearls for Primary Care Providers
PPTX
PRESENTACION DE TRAUMA CRANEAL, CAUSAS, CONSEC, ETC.
PPTX
Neuropathic pain.ppt treatment managment
PDF
Transcultural that can help you someday.
PPTX
surgery guide for USMLE step 2-part 1.pptx
PPT
HIV lecture final - student.pptfghjjkkejjhhge
PPTX
the psycho-oncology for psychiatrists pptx
PPT
Rheumatology Member of Royal College of Physicians.ppt
PPTX
1. Basic chemist of Biomolecule (1).pptx
PPTX
NRPchitwan6ab2802f9.pptxnepalindiaindiaindiapakistan
PPTX
Clinical approach and Radiotherapy principles.pptx
PPTX
Reading between the Rings: Imaging in Brain Infections
PPTX
Anatomy and physiology of the digestive system
Intl J Gynecology Obste - 2021 - Melamed - FIGO International Federation o...
obstructive neonatal jaundice.pptx yes it is
Post Op complications in general surgery
neurology Member of Royal College of Physicians (MRCP).ppt
Human Reproduction: Anatomy, Physiology & Clinical Insights.pptx
Morphology of Bacterial Cell for bsc sud
CHEM421 - Biochemistry (Chapter 1 - Introduction)
Cardiology Pearls for Primary Care Providers
PRESENTACION DE TRAUMA CRANEAL, CAUSAS, CONSEC, ETC.
Neuropathic pain.ppt treatment managment
Transcultural that can help you someday.
surgery guide for USMLE step 2-part 1.pptx
HIV lecture final - student.pptfghjjkkejjhhge
the psycho-oncology for psychiatrists pptx
Rheumatology Member of Royal College of Physicians.ppt
1. Basic chemist of Biomolecule (1).pptx
NRPchitwan6ab2802f9.pptxnepalindiaindiaindiapakistan
Clinical approach and Radiotherapy principles.pptx
Reading between the Rings: Imaging in Brain Infections
Anatomy and physiology of the digestive system

Chi square test and its types

  • 1. Chi square test and its variations Dr. S. A. Rizwan, M.D. Public Health Specialist SBCM, Joint Program – Riyadh Ministry of Health, Kingdom of Saudi Arabia
  • 2. Learning objectives Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Describe the conditions in which this test is used • Describe the assumptions for this test • Describe the steps involved in calculating this test • Interpret the test result • Describe the types of this test χ2
  • 3. Introduction Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Chi square test, also called Pearson’s chi square test • First investigated by Karl Pearson in 1900
  • 4. Applications of chi square test Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Goodness of fit - whether an observed frequency distribution differs from a theoretical distribution. • Homogeneity - compares the distribution of counts for two or more groups using the same categorical variable • Independence (most commonly used) - assesses whether unpaired observations on two variables are independent of each other • Others
  • 5. Applications – example 1 Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • A 6-sided die is thrown 60 times. The number of times it lands with 1, 2, 3, 4, 5 and 6 face up is 5, 8, 9, 8, 10 and 20, respectively. Is the die biased, according to the Pearson's chi-squared test at a significance level of 95%
  • 6. Applications – example 2 Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • A random sample of 100 people has been drawn from a population in which men and women are equal in frequency, the observed number of men and women would be compared to the theoretical frequencies of 50 men and 50 women
  • 7. Applications – example 2.1 Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • A random sample of 100 persons been drawn from men and 100 persons from among women. They were asked about smoking habits. Compare the percentage of smokers among men and women. Men Women Total Smoker 40 20 60 Non- smoker 60 80 140 Total 100 100 200
  • 8. Applications – example 3 Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • A city of 1 million residents with four neighborhoods: A, B, C, and D. A random sample of 650 residents of the city is taken and their occupation is recorded as "white collar", "blue collar", or "no collar". The null hypothesis is that each person's neighborhood of residence is independent of the person's occupational classification
  • 9. Types / variations Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Test for goodness of fit • Test for Homogeneity • Test of Independence • Cochran–Mantel–Haenszel test • Test for Trend * Advanced learning: What is Yate’s correction?
  • 10. Assumptions Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Simple random sample • Data in the cells should be frequencies, or counts of cases • Categories of the variables are mutually exclusive • Study groups must be independent • Value of cell expecteds should be 5 or more in at least 80% of the cells • No cell should have an expected of less than one
  • 11. Steps in Chi square test for independence Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Recall the general steps 1. Null hypothesis 2. Alternative hypothesis 3. Level of significance 4. Test statistic 5. Critical value 6. Decision & interpretation
  • 12. Steps in Chi square test for independence Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Draw the contingency table
  • 13. Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Calculate totals for each row and column Steps in Chi square test for independence
  • 14. Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Calculated expected frequencies for each cell Steps in Chi square test for independence
  • 15. Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Calculate Chi square value using the formula and degree of freedom Steps in Chi square test for independence
  • 16. Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Look at a chi-square table, for a 0.05 level of significance & 2 df, what is the critical chi-square value and make the conclusion Steps in Chi square test for independence
  • 17. Summary Demystifying statistics! – Lecture 7 SBCM, Joint Program – Riyadh • With computers, these tests are performed easily • There are many situations where chi square is incorrectly applied • It is important to know when to and when not to use them
  • 18. Take home messages Demystifying statistics! – Lecture 8 SBCM, Joint Program – Riyadh • Chi square is one of the most used statistical tests • Remember the different types of tests and their applications • Remember the assumptions and always check for violations before interpreting the results
  • 19. Thank you! Email your queries to sarizwan1986@outlook.com