SlideShare a Scribd company logo
1 of 22
Download to read offline
Using SPSS for Chi Square
Dr Athar Khan
MBBS, MCPS, DPH, DCPS-HCSM, DCPS-HPE, MBA,
PGD-Statistics
Associate Professor
Liaquat College of Medicine & Dentistry
Outline
• Introduction
• Dataset
• Chi-square
• Exercise
12/7/2016 2DR ATHAR KHAN - LCMD
Introduction
• The chi-square test for independence, also
called Pearson's chi-square test or the chi-
square test of association, is used to
discover if there is a relationship between
two categorical variables.
12/7/2016 3DR ATHAR KHAN - LCMD
BMI
• Body mass index (BMI) is a measure of body fat
based on height and weight that applies to both
adult men and women.
– Under & normal weight: BMI <25
– Overweight & obesity: BMI ≥ 25
12/7/2016 4DR ATHAR KHAN - LCMD
Question 1
• Is there any association between living in
a suburban area and being overweight?
– Under & normal weight: BMI <25
– Overweight & obese: BMI ≥ 25
Chi Square test
12/7/2016 5DR ATHAR KHAN - LCMD
Dataset
• 30 adults aged 18+ (males and females) were recruited to
study the difference in BMI according to their area of
residence.
• Variables
– Sex (female=1, male=0)
– BMI
– Urban or rural (urban=0, rural=1)
12/7/2016 6DR ATHAR KHAN - LCMD
Area of Residence
Total
Urban Rural
BMI Categories
Normal and
Underweight 7 11 18
Overweight and
Obesity 10 2 12
Total 17 13 30
12/7/2016 7DR ATHAR KHAN - LCMD
Assumptions
• Assumption #1:
• Two variables should be measured at
an ordinal or nominal
level (i.e., categorical data).
12/7/2016 8DR ATHAR KHAN - LCMD
Assumptions
• Assumption #2:
• Two variable should consist of two or more
categorical, independent groups. Example
independent variables that meet this criterion
include gender (2 groups: Males and Females),
ethnicity (e.g., 3 groups: Caucasian, African
American and Hispanic), physical activity level
(e.g., 4 groups: sedentary, low, moderate and
high), profession (e.g., 5 groups: surgeon, doctor,
nurse, dentist, therapist), and so forth.
12/7/2016 9DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 1: Stating the null hypothesis
– H0: Area of residence and BMI categories are
independent
– Ha: Area of residence and BMI categories are
dependent
OR
– H0: There is no association between living in an
urban area and being overweight
– Ha: There is an association between Living in an
urban area and being overweight are dependent
• Step 2: Significance level
– Alpha = 0.05
12/7/2016 10DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 3: Critical value
– Sampling distribution = χ2 distribution
– Df = (r-1)(c-1) = 1 (a 2-by-2 table)
– χ2 (critical) = 3.481
12/7/2016 11DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 4: Calculated Value
– 1. Draw a contingency table.
– 2. Enter the Observed frequencies or counts (O)
– 3. Calculate totals (in the margins).
Area of Residence
Total
Urban Rural
BMI Categories
Normal and
Underweight 7 11 18
Overweight and
Obesity 10 2 12
Total 17 13 30
12/7/2016 12DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 4: Calculated Value
• 4.Calculate the Expected frequencies (E) a. For each cell: Column total x
Row total/N b. Write the Expected frequency into the appropriate box
in the table.
• CHECK: Expected frequencies (E) marginal totals are the same as for
Observed frequencies (O)Eyeball the contingency table, noting where
the differences between O (observed) and E (Expected) values occur. If
they are close to each other, the levels of the independent (predictor) variable are
not having an effect.
Area of Residence
Total
Urban Rural
BMI Categories
Normal and
Underweight 7 11 18
Overweight and
Obesity 10 2 12
Total 17 13 30
10.2 7.8
6.8 5.2
12/7/2016 13DR ATHAR KHAN - LCMD
Important Point:
Chi-square can be used if no more than 20% of
the expected frequencies are less than 5 and none
is less than 1 (see note 'a.' at the bottom of SPSS
output to see if this is a problem).
It is possible to 'pool' or 'collapse' categories into
fewer, but this must only be done if it is meaningful
to group the data in this way.
12/7/2016 14DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
Area of Residence
Total
Urban Rural
BMI Categories
Normal and
Underweight 7 11 18
Overweight and
Obesity 10 2 12
Total 17 13 30
10.2 7.8
6.8 5.2
12/7/2016 15DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
O E O-E (O-E)2
12/7/2016 16DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 5: Decision
• Step 6: Conclusion
12/7/2016 17DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
Step 4: computing the test statistic in SPSS
12/7/2016 18DR ATHAR KHAN - LCMD
Hypothesis Testing– Step by Step
• Step 5: making a decision and interpreting the
results of the test
overweight_1 * urban Crosstabulation
329 468 797
385.7 411.3 797.0
155 48 203
98.3 104.7 203.0
484 516 1000
484.0 516.0 1000.0
Count
Expected Count
Count
Expected Count
Count
Expected Count
0
1
overweight_1
Total
0 1
urban
Total
Chi-Square Tests
79.699b 1 .000
78.301 1 .000
82.696 1 .000
.000 .000
79.619 1 .000
1000
Pearson Chi-Square
Continuity Correctiona
Likelihood Ratio
Fisher's Exact Test
Linear-by-Linear
Association
N of Valid Cases
Value df
Asymp. Sig.
(2-sided)
Exact Sig.
(2-sided)
Exact Sig.
(1-sided)
Computed onlyfor a 2x2 tablea.
0 cells (.0%) have expected count less than 5. The minimum expected count is 98.
25.
b.
Result
(χ2 obtained)12/7/2016 19DR ATHAR KHAN - LCMD
Exercise
• Does a significant relationship exist between
Gender and BMI categories ?
12/7/2016 20DR ATHAR KHAN - LCMD
BMI Categories * Gender Crosstabulation
Gender
TotalMale Female
BMI Categories
<25
Count 7 11 18
Expected Count 7.2 10.8 18.0
% within Gender 58.3% 61.1% 60.0%
>25
Count 5 7 12
Expected Count 4.8 7.2 12.0
% within Gender 41.7% 38.9% 40.0%
Total
Count 12 18 30
Expected Count 12.0 18.0 30.0
% within Gender 100.0% 100.0% 100.0%
12/7/2016 21DR ATHAR KHAN - LCMD
Chi-Square Tests
Value df
Asymp. Sig.
(2-sided)
Exact Sig. (2-
sided)
Exact Sig.
(1-sided)
Pearson Chi-Square .023a 1 .879
Continuity Correctionb
.000 1 1.000
Likelihood Ratio .023 1 .879
Fisher's Exact Test 1.000 .588
Linear-by-Linear
Association .022 1 .881
N of Valid Cases 30
a. 1 cells (25.0%) have expected count less than 5. The minimum expected count is
4.80.
b. Computed only for a 2x2 table
12/7/2016 22DR ATHAR KHAN - LCMD

More Related Content

What's hot

Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1
naranbatn
 

What's hot (20)

Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Confidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewConfidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overview
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
t test using spss
t test using spsst test using spss
t test using spss
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1
 
Unit 3
Unit 3Unit 3
Unit 3
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Introduction to ANOVA
Introduction to ANOVAIntroduction to ANOVA
Introduction to ANOVA
 
Frequency Distributions
Frequency DistributionsFrequency Distributions
Frequency Distributions
 
Statistical tests
Statistical testsStatistical tests
Statistical tests
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Sampling Distributions and Estimators
Sampling Distributions and Estimators Sampling Distributions and Estimators
Sampling Distributions and Estimators
 
Data analysis with spss anova
Data analysis with spss anovaData analysis with spss anova
Data analysis with spss anova
 

Viewers also liked

Introduction To Spss - Opening Data File and Descriptive Analysis
Introduction To Spss - Opening Data File and Descriptive AnalysisIntroduction To Spss - Opening Data File and Descriptive Analysis
Introduction To Spss - Opening Data File and Descriptive Analysis
Dr Ali Yusob Md Zain
 
Aprendiendo estadistica con las tics
Aprendiendo estadistica con las ticsAprendiendo estadistica con las tics
Aprendiendo estadistica con las tics
eubeca
 
Regressão Linear Simples
Regressão Linear SimplesRegressão Linear Simples
Regressão Linear Simples
monica_lima
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
Dr Ali Yusob Md Zain
 

Viewers also liked (20)

Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSS
 
SPSS statistics - how to use SPSS
SPSS statistics - how to use SPSSSPSS statistics - how to use SPSS
SPSS statistics - how to use SPSS
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
Análise de regressão linear
Análise de regressão linearAnálise de regressão linear
Análise de regressão linear
 
Introduction To Spss - Opening Data File and Descriptive Analysis
Introduction To Spss - Opening Data File and Descriptive AnalysisIntroduction To Spss - Opening Data File and Descriptive Analysis
Introduction To Spss - Opening Data File and Descriptive Analysis
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & group
 
Chi square test final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentation
 
Prática de Regressão no SPSS
Prática de Regressão no SPSSPrática de Regressão no SPSS
Prática de Regressão no SPSS
 
SOFTWARE ORIENTADO A REALIZAR ESTADISTICAS DESCRIPTIVAS
SOFTWARE ORIENTADO A REALIZAR ESTADISTICAS DESCRIPTIVASSOFTWARE ORIENTADO A REALIZAR ESTADISTICAS DESCRIPTIVAS
SOFTWARE ORIENTADO A REALIZAR ESTADISTICAS DESCRIPTIVAS
 
Introdução à Regressão Linear Simples e Múltipla
Introdução à Regressão Linear Simples e MúltiplaIntrodução à Regressão Linear Simples e Múltipla
Introdução à Regressão Linear Simples e Múltipla
 
Aprendiendo estadistica con las tics
Aprendiendo estadistica con las ticsAprendiendo estadistica con las tics
Aprendiendo estadistica con las tics
 
T-test (Revised version)
T-test (Revised version)T-test (Revised version)
T-test (Revised version)
 
Regressão Linear Simples
Regressão Linear SimplesRegressão Linear Simples
Regressão Linear Simples
 
Correlation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft ExcelCorrelation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft Excel
 
Mba project guidelines 2016
Mba project guidelines 2016Mba project guidelines 2016
Mba project guidelines 2016
 
Estadística descriptiva con software estadístico
Estadística descriptiva con software estadísticoEstadística descriptiva con software estadístico
Estadística descriptiva con software estadístico
 
Data Analysis Using Spss T Test
Data Analysis Using Spss   T TestData Analysis Using Spss   T Test
Data Analysis Using Spss T Test
 
Reporting point biserial correlation in apa
Reporting point biserial correlation in apaReporting point biserial correlation in apa
Reporting point biserial correlation in apa
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Chi square test
Chi square testChi square test
Chi square test
 

Similar to Chi square Test Using SPSS

This quiz consists of 20 questions most appear to be similar but now.docx
This quiz consists of 20 questions most appear to be similar but now.docxThis quiz consists of 20 questions most appear to be similar but now.docx
This quiz consists of 20 questions most appear to be similar but now.docx
amit657720
 
Team 5 imputing_medical_missing_data_ga approach_preseatation
Team 5 imputing_medical_missing_data_ga approach_preseatationTeam 5 imputing_medical_missing_data_ga approach_preseatation
Team 5 imputing_medical_missing_data_ga approach_preseatation
Nafiz Ishtiaque Ahmed
 
L1 statistics
L1 statisticsL1 statistics
L1 statistics
dapdai
 
East ugm-2012-presentation-east-future-mehta
East ugm-2012-presentation-east-future-mehtaEast ugm-2012-presentation-east-future-mehta
East ugm-2012-presentation-east-future-mehta
Cytel
 
Eugm 2012 mehta - future plans for east - 2012 eugm
Eugm 2012   mehta - future plans for east - 2012 eugmEugm 2012   mehta - future plans for east - 2012 eugm
Eugm 2012 mehta - future plans for east - 2012 eugm
Cytel USA
 

Similar to Chi square Test Using SPSS (20)

Sct2013 boston,randomizationmetricsposter,d6.2
Sct2013 boston,randomizationmetricsposter,d6.2Sct2013 boston,randomizationmetricsposter,d6.2
Sct2013 boston,randomizationmetricsposter,d6.2
 
Affect of Metabolic Obesity and Body Mass Index in Coronary Artery Diseases
Affect of Metabolic Obesity and Body Mass Index in Coronary Artery DiseasesAffect of Metabolic Obesity and Body Mass Index in Coronary Artery Diseases
Affect of Metabolic Obesity and Body Mass Index in Coronary Artery Diseases
 
Nonparametric tests assignment
Nonparametric tests assignmentNonparametric tests assignment
Nonparametric tests assignment
 
Robust Prediction of Cancer Disease Using Pattern Classification of Microarra...
Robust Prediction of Cancer Disease Using Pattern Classification of Microarra...Robust Prediction of Cancer Disease Using Pattern Classification of Microarra...
Robust Prediction of Cancer Disease Using Pattern Classification of Microarra...
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Advanced Biostatistics - Simplified
Advanced Biostatistics - SimplifiedAdvanced Biostatistics - Simplified
Advanced Biostatistics - Simplified
 
This quiz consists of 20 questions most appear to be similar but now.docx
This quiz consists of 20 questions most appear to be similar but now.docxThis quiz consists of 20 questions most appear to be similar but now.docx
This quiz consists of 20 questions most appear to be similar but now.docx
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta Sawant
 
Team 5 imputing_medical_missing_data_ga approach_preseatation
Team 5 imputing_medical_missing_data_ga approach_preseatationTeam 5 imputing_medical_missing_data_ga approach_preseatation
Team 5 imputing_medical_missing_data_ga approach_preseatation
 
Lab manual_statistik
Lab manual_statistikLab manual_statistik
Lab manual_statistik
 
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
 
SNM-1.pdf
SNM-1.pdfSNM-1.pdf
SNM-1.pdf
 
L1 statistics
L1 statisticsL1 statistics
L1 statistics
 
Data analysis
Data analysisData analysis
Data analysis
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysis
 
Data DistributionM (1).pptx
Data DistributionM (1).pptxData DistributionM (1).pptx
Data DistributionM (1).pptx
 
Mammography-a techniques to identifiy breast cancer.ppt
Mammography-a techniques to identifiy breast cancer.pptMammography-a techniques to identifiy breast cancer.ppt
Mammography-a techniques to identifiy breast cancer.ppt
 
East ugm-2012-presentation-east-future-mehta
East ugm-2012-presentation-east-future-mehtaEast ugm-2012-presentation-east-future-mehta
East ugm-2012-presentation-east-future-mehta
 
Eugm 2012 mehta - future plans for east - 2012 eugm
Eugm 2012   mehta - future plans for east - 2012 eugmEugm 2012   mehta - future plans for east - 2012 eugm
Eugm 2012 mehta - future plans for east - 2012 eugm
 
X18125514 ca2-statisticsfor dataanalytics
X18125514 ca2-statisticsfor dataanalyticsX18125514 ca2-statisticsfor dataanalytics
X18125514 ca2-statisticsfor dataanalytics
 

More from Dr Athar Khan

More from Dr Athar Khan (20)

Growth Chart, GROWTH MONITORING, MALNUTRITION
Growth Chart,  GROWTH MONITORING, MALNUTRITIONGrowth Chart,  GROWTH MONITORING, MALNUTRITION
Growth Chart, GROWTH MONITORING, MALNUTRITION
 
Rheumatic heart disease
Rheumatic heart disease Rheumatic heart disease
Rheumatic heart disease
 
Prevention of Hypertension
Prevention of Hypertension Prevention of Hypertension
Prevention of Hypertension
 
Reference writing
Reference writing Reference writing
Reference writing
 
Item Analysis, Difficulty Index, Discrimination Index,ExamAnalysis
Item Analysis, Difficulty Index, Discrimination Index,ExamAnalysisItem Analysis, Difficulty Index, Discrimination Index,ExamAnalysis
Item Analysis, Difficulty Index, Discrimination Index,ExamAnalysis
 
Genomics Genetics Community Public Health
Genomics Genetics Community Public Health Genomics Genetics Community Public Health
Genomics Genetics Community Public Health
 
Ethics Professionalism
Ethics Professionalism Ethics Professionalism
Ethics Professionalism
 
Professionalism Ethics
Professionalism EthicsProfessionalism Ethics
Professionalism Ethics
 
Critical thinking analysis skills
Critical thinking analysis skillsCritical thinking analysis skills
Critical thinking analysis skills
 
Health System
Health SystemHealth System
Health System
 
Causation of Disease
Causation of DiseaseCausation of Disease
Causation of Disease
 
Environmental Health
Environmental HealthEnvironmental Health
Environmental Health
 
Introduction to Environmental Health
Introduction to Environmental HealthIntroduction to Environmental Health
Introduction to Environmental Health
 
Who is an author ? Authorship Criteria
Who is an author ? Authorship CriteriaWho is an author ? Authorship Criteria
Who is an author ? Authorship Criteria
 
Writing Introduction Background Literature Review
Writing Introduction Background Literature ReviewWriting Introduction Background Literature Review
Writing Introduction Background Literature Review
 
Searching for literature review
Searching for literature reviewSearching for literature review
Searching for literature review
 
How to read a scientific paper
How to read a scientific paperHow to read a scientific paper
How to read a scientific paper
 
Selection of Topic for Research
Selection of Topic  for ResearchSelection of Topic  for Research
Selection of Topic for Research
 
Healthcare care waste management
Healthcare care waste managementHealthcare care waste management
Healthcare care waste management
 
Ergonomics
ErgonomicsErgonomics
Ergonomics
 

Recently uploaded

❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
Rashmi Entertainment
 
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service HyderabadHyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
Sheetaleventcompany
 
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
Sheetaleventcompany
 
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
Sheetaleventcompany
 
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Sheetaleventcompany
 
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
Sheetaleventcompany
 
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
Sheetaleventcompany
 

Recently uploaded (20)

💞 Safe And Secure Call Girls Coimbatore🧿 6378878445 🧿 High Class Coimbatore C...
💞 Safe And Secure Call Girls Coimbatore🧿 6378878445 🧿 High Class Coimbatore C...💞 Safe And Secure Call Girls Coimbatore🧿 6378878445 🧿 High Class Coimbatore C...
💞 Safe And Secure Call Girls Coimbatore🧿 6378878445 🧿 High Class Coimbatore C...
 
Circulatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanismsCirculatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanisms
 
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
 
Bhawanipatna Call Girls 📞9332606886 Call Girls in Bhawanipatna Escorts servic...
Bhawanipatna Call Girls 📞9332606886 Call Girls in Bhawanipatna Escorts servic...Bhawanipatna Call Girls 📞9332606886 Call Girls in Bhawanipatna Escorts servic...
Bhawanipatna Call Girls 📞9332606886 Call Girls in Bhawanipatna Escorts servic...
 
❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
❤️ Chandigarh Call Girls☎️98151-579OO☎️ Call Girl service in Chandigarh ☎️ Ch...
 
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
 
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service HyderabadHyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
Hyderabad Call Girls Service ❤️ 7783825323 Independent Escort Service Hyderabad
 
ANATOMY AND PHYSIOLOGY OF RESPIRATORY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF RESPIRATORY SYSTEM.pptxANATOMY AND PHYSIOLOGY OF RESPIRATORY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF RESPIRATORY SYSTEM.pptx
 
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
 
(RIYA)🎄Airhostess Call Girl Jaipur Call Now 8445551418 Premium Collection Of ...
(RIYA)🎄Airhostess Call Girl Jaipur Call Now 8445551418 Premium Collection Of ...(RIYA)🎄Airhostess Call Girl Jaipur Call Now 8445551418 Premium Collection Of ...
(RIYA)🎄Airhostess Call Girl Jaipur Call Now 8445551418 Premium Collection Of ...
 
Call Girls Service Jaipur {9521753030 } ❤️VVIP BHAWNA Call Girl in Jaipur Raj...
Call Girls Service Jaipur {9521753030 } ❤️VVIP BHAWNA Call Girl in Jaipur Raj...Call Girls Service Jaipur {9521753030 } ❤️VVIP BHAWNA Call Girl in Jaipur Raj...
Call Girls Service Jaipur {9521753030 } ❤️VVIP BHAWNA Call Girl in Jaipur Raj...
 
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
🍑👄Hyderabad Escorts Service☎️7783825323🍑👄 Call Girl service in Hyderabad☎️Hyd...
 
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
Call Girls Pune Just Call 9142599079 Top Class Call Girl Service Available
 
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
 
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
 
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
💚Call Girls In Amritsar 💯Anvi 📲🔝8725944379🔝Amritsar Call Girl No💰Advance Cash...
 
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
 
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
 
❤️Panchkula Call Girls☎️9809698092☎️ Call Girl service in Panchkula☎️ Panchku...
❤️Panchkula Call Girls☎️9809698092☎️ Call Girl service in Panchkula☎️ Panchku...❤️Panchkula Call Girls☎️9809698092☎️ Call Girl service in Panchkula☎️ Panchku...
❤️Panchkula Call Girls☎️9809698092☎️ Call Girl service in Panchkula☎️ Panchku...
 
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service AvailableCall Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
 

Chi square Test Using SPSS

  • 1. Using SPSS for Chi Square Dr Athar Khan MBBS, MCPS, DPH, DCPS-HCSM, DCPS-HPE, MBA, PGD-Statistics Associate Professor Liaquat College of Medicine & Dentistry
  • 2. Outline • Introduction • Dataset • Chi-square • Exercise 12/7/2016 2DR ATHAR KHAN - LCMD
  • 3. Introduction • The chi-square test for independence, also called Pearson's chi-square test or the chi- square test of association, is used to discover if there is a relationship between two categorical variables. 12/7/2016 3DR ATHAR KHAN - LCMD
  • 4. BMI • Body mass index (BMI) is a measure of body fat based on height and weight that applies to both adult men and women. – Under & normal weight: BMI <25 – Overweight & obesity: BMI ≥ 25 12/7/2016 4DR ATHAR KHAN - LCMD
  • 5. Question 1 • Is there any association between living in a suburban area and being overweight? – Under & normal weight: BMI <25 – Overweight & obese: BMI ≥ 25 Chi Square test 12/7/2016 5DR ATHAR KHAN - LCMD
  • 6. Dataset • 30 adults aged 18+ (males and females) were recruited to study the difference in BMI according to their area of residence. • Variables – Sex (female=1, male=0) – BMI – Urban or rural (urban=0, rural=1) 12/7/2016 6DR ATHAR KHAN - LCMD
  • 7. Area of Residence Total Urban Rural BMI Categories Normal and Underweight 7 11 18 Overweight and Obesity 10 2 12 Total 17 13 30 12/7/2016 7DR ATHAR KHAN - LCMD
  • 8. Assumptions • Assumption #1: • Two variables should be measured at an ordinal or nominal level (i.e., categorical data). 12/7/2016 8DR ATHAR KHAN - LCMD
  • 9. Assumptions • Assumption #2: • Two variable should consist of two or more categorical, independent groups. Example independent variables that meet this criterion include gender (2 groups: Males and Females), ethnicity (e.g., 3 groups: Caucasian, African American and Hispanic), physical activity level (e.g., 4 groups: sedentary, low, moderate and high), profession (e.g., 5 groups: surgeon, doctor, nurse, dentist, therapist), and so forth. 12/7/2016 9DR ATHAR KHAN - LCMD
  • 10. Hypothesis Testing– Step by Step • Step 1: Stating the null hypothesis – H0: Area of residence and BMI categories are independent – Ha: Area of residence and BMI categories are dependent OR – H0: There is no association between living in an urban area and being overweight – Ha: There is an association between Living in an urban area and being overweight are dependent • Step 2: Significance level – Alpha = 0.05 12/7/2016 10DR ATHAR KHAN - LCMD
  • 11. Hypothesis Testing– Step by Step • Step 3: Critical value – Sampling distribution = χ2 distribution – Df = (r-1)(c-1) = 1 (a 2-by-2 table) – χ2 (critical) = 3.481 12/7/2016 11DR ATHAR KHAN - LCMD
  • 12. Hypothesis Testing– Step by Step • Step 4: Calculated Value – 1. Draw a contingency table. – 2. Enter the Observed frequencies or counts (O) – 3. Calculate totals (in the margins). Area of Residence Total Urban Rural BMI Categories Normal and Underweight 7 11 18 Overweight and Obesity 10 2 12 Total 17 13 30 12/7/2016 12DR ATHAR KHAN - LCMD
  • 13. Hypothesis Testing– Step by Step • Step 4: Calculated Value • 4.Calculate the Expected frequencies (E) a. For each cell: Column total x Row total/N b. Write the Expected frequency into the appropriate box in the table. • CHECK: Expected frequencies (E) marginal totals are the same as for Observed frequencies (O)Eyeball the contingency table, noting where the differences between O (observed) and E (Expected) values occur. If they are close to each other, the levels of the independent (predictor) variable are not having an effect. Area of Residence Total Urban Rural BMI Categories Normal and Underweight 7 11 18 Overweight and Obesity 10 2 12 Total 17 13 30 10.2 7.8 6.8 5.2 12/7/2016 13DR ATHAR KHAN - LCMD
  • 14. Important Point: Chi-square can be used if no more than 20% of the expected frequencies are less than 5 and none is less than 1 (see note 'a.' at the bottom of SPSS output to see if this is a problem). It is possible to 'pool' or 'collapse' categories into fewer, but this must only be done if it is meaningful to group the data in this way. 12/7/2016 14DR ATHAR KHAN - LCMD
  • 15. Hypothesis Testing– Step by Step Area of Residence Total Urban Rural BMI Categories Normal and Underweight 7 11 18 Overweight and Obesity 10 2 12 Total 17 13 30 10.2 7.8 6.8 5.2 12/7/2016 15DR ATHAR KHAN - LCMD
  • 16. Hypothesis Testing– Step by Step O E O-E (O-E)2 12/7/2016 16DR ATHAR KHAN - LCMD
  • 17. Hypothesis Testing– Step by Step • Step 5: Decision • Step 6: Conclusion 12/7/2016 17DR ATHAR KHAN - LCMD
  • 18. Hypothesis Testing– Step by Step Step 4: computing the test statistic in SPSS 12/7/2016 18DR ATHAR KHAN - LCMD
  • 19. Hypothesis Testing– Step by Step • Step 5: making a decision and interpreting the results of the test overweight_1 * urban Crosstabulation 329 468 797 385.7 411.3 797.0 155 48 203 98.3 104.7 203.0 484 516 1000 484.0 516.0 1000.0 Count Expected Count Count Expected Count Count Expected Count 0 1 overweight_1 Total 0 1 urban Total Chi-Square Tests 79.699b 1 .000 78.301 1 .000 82.696 1 .000 .000 .000 79.619 1 .000 1000 Pearson Chi-Square Continuity Correctiona Likelihood Ratio Fisher's Exact Test Linear-by-Linear Association N of Valid Cases Value df Asymp. Sig. (2-sided) Exact Sig. (2-sided) Exact Sig. (1-sided) Computed onlyfor a 2x2 tablea. 0 cells (.0%) have expected count less than 5. The minimum expected count is 98. 25. b. Result (χ2 obtained)12/7/2016 19DR ATHAR KHAN - LCMD
  • 20. Exercise • Does a significant relationship exist between Gender and BMI categories ? 12/7/2016 20DR ATHAR KHAN - LCMD
  • 21. BMI Categories * Gender Crosstabulation Gender TotalMale Female BMI Categories <25 Count 7 11 18 Expected Count 7.2 10.8 18.0 % within Gender 58.3% 61.1% 60.0% >25 Count 5 7 12 Expected Count 4.8 7.2 12.0 % within Gender 41.7% 38.9% 40.0% Total Count 12 18 30 Expected Count 12.0 18.0 30.0 % within Gender 100.0% 100.0% 100.0% 12/7/2016 21DR ATHAR KHAN - LCMD
  • 22. Chi-Square Tests Value df Asymp. Sig. (2-sided) Exact Sig. (2- sided) Exact Sig. (1-sided) Pearson Chi-Square .023a 1 .879 Continuity Correctionb .000 1 1.000 Likelihood Ratio .023 1 .879 Fisher's Exact Test 1.000 .588 Linear-by-Linear Association .022 1 .881 N of Valid Cases 30 a. 1 cells (25.0%) have expected count less than 5. The minimum expected count is 4.80. b. Computed only for a 2x2 table 12/7/2016 22DR ATHAR KHAN - LCMD