SlideShare a Scribd company logo
1 of 16
Download to read offline
CHI-SQUARED
TEST
Dr Lipilekha Patnaik
Professor, Community Medicine
Institute of Medical Sciences & SUM Hospital
Siksha ‘O’Anusandhan deemed to be University
Bhubaneswar, Odisha, India
Email: drlipilekha@yahoo.co.in
Pearson’s chi-squared test
• Chi- Square test is method of testing the significance of difference
between two proportions.
• It has the advantage that at can also be used when more than two
groups are to be compared.
• Commonly applied in biomedical research
2
• Used to test categorical Data
Especially when the outcomes are in counts or frequency
• Nominal variables
Sex, Blood group
• Ordinal Variables
Birth order
Severity of disease (absent, mild, moderate, severe)
3
Applications of chi-squared test
• This test is used as
• for finding difference in proportions
• for finding association between variables
4
Example
• In a prevalence study of Hypertension, we found that
Hypertension No Hypertension
Non smokers 10 (10%) 90
Smokers 26 (26%) 74
• It is visible from the table that the proportion of HTN was higher
among smokers . The question that arises is whether HTN was really
higher among smokers or the difference was merely due to chance.
5
Group
Result
Total
Hypertension No HTN
Non smokers 10 (a) 90 (b) 100
(a+b)
Smokers 26 (c) 74 (d) 100
(c+d)
Total 36 (a+c) 164 (b+d) 200 (N)
6
Steps
• Null hypothesis
• Calculation of expected values
• Calculation of Chi-square value
• Calculation of degrees of freedom
• Conclusion
7
Null hypothesis
• No significant difference in the proportions
• Alternate- significant difference in the proportions
8
Calculation of expected values
• Expected	value	in	any	cell	=
totalGrand
totalRowXtotalColumn
9
Expected	value	of	each	cell	should	be	more	than	5	in	
each	cell.
Expected values in cells
Thus expected value in each cell is
• First cell: 36 X 100 / 200 = 18
• Second cell: 164 X 100 / 200 = 82
• Third cell: 36 X 100 / 200 = 18
• Fourth cell: 164 X 100 / 200 = 82
10
Chi squared value
∑
−
=
E
EO 2
2 )(
χ
11
df =		(c	-1)	(r-1)	
where	c	and	r	stand	for	number	of	columns	and	
number	of	rows	respectively.
P	<	0.05	– Significant	difference	between	2	proportions
P	>	0.05	– No	significant	difference	between	2	
proportions
Calculation of Chi-squared value
12
82
)8274(
18
)1826(
82
)8290(
18
)1810( 2222
−
+
−
+
−
+
−
82
)8(
18
)8(
82
)8(
18
)8( 2222
+
−
++
−
=
78.056.378.056.3 +++=
82
64
18
64
82
64
18
64
+++=
68.8=
Calculation of degrees of freedom
df = (c -1) (r-1)
where c and r stand for number of columns and number of rows
respectively.
Thus df = (2 -1) X (2 – 1) = (1) X (1) = 1.
13
14
Conclusion
• As the Chi-square value is more than the table value for 5%
level of significance at 1 df (3.84), we reject the null hypothesis
and state that there is a statistically significant difference of
proportions of hypertension between smokers and nonsmokers
(P < 0.05).
• Smoking is associated with hypertension.
15
16

More Related Content

What's hot (20)

Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
 
Z test
Z testZ test
Z test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Kruskal wallis test
Kruskal wallis testKruskal wallis test
Kruskal wallis test
 
One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Test
 
Karl pearson's correlation
Karl pearson's correlationKarl pearson's correlation
Karl pearson's correlation
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Kruskal Wall Test
Kruskal Wall TestKruskal Wall Test
Kruskal Wall Test
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Correlation
CorrelationCorrelation
Correlation
 
What is chi square test
What  is  chi square testWhat  is  chi square test
What is chi square test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Z-test
Z-testZ-test
Z-test
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 

Similar to Chi squared test

Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testdr.balan shaikh
 
Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Drsnehas2
 
Chisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatisticsChisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatisticsmuhammadahmad00495
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
CHI SQUARE biostat easy explained .pptx
CHI SQUARE biostat easy explained    .pptxCHI SQUARE biostat easy explained    .pptx
CHI SQUARE biostat easy explained .pptxDrDeveshPandey1
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptBAGARAGAZAROMUALD2
 
Lecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxLecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxshakirRahman10
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptxssuser504dda
 
Chapter 4Summarizing Data Collected in the Sample.docx
Chapter 4Summarizing Data Collected in the Sample.docxChapter 4Summarizing Data Collected in the Sample.docx
Chapter 4Summarizing Data Collected in the Sample.docxketurahhazelhurst
 

Similar to Chi squared test (20)

Test of significance
Test of significanceTest of significance
Test of significance
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
 
Chi square
Chi square Chi square
Chi square
 
Chi square test
Chi square testChi square test
Chi square test
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss
 
Chisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatisticsChisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatistics
 
Statistics
StatisticsStatistics
Statistics
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
CHI SQUARE biostat easy explained .pptx
CHI SQUARE biostat easy explained    .pptxCHI SQUARE biostat easy explained    .pptx
CHI SQUARE biostat easy explained .pptx
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Lecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptxLecture 7 Hypothesis testing.pptx
Lecture 7 Hypothesis testing.pptx
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptx
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Chapter 4Summarizing Data Collected in the Sample.docx
Chapter 4Summarizing Data Collected in the Sample.docxChapter 4Summarizing Data Collected in the Sample.docx
Chapter 4Summarizing Data Collected in the Sample.docx
 
Chi square test
Chi square test Chi square test
Chi square test
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 

More from Dr Lipilekha Patnaik

More from Dr Lipilekha Patnaik (20)

Health Programmes in India.pdf
Health Programmes in India.pdfHealth Programmes in India.pdf
Health Programmes in India.pdf
 
Concept of public health.pdf
Concept of public health.pdfConcept of public health.pdf
Concept of public health.pdf
 
Demographic profile of india
Demographic profile of indiaDemographic profile of india
Demographic profile of india
 
Indicators of health
Indicators of healthIndicators of health
Indicators of health
 
Immunization
ImmunizationImmunization
Immunization
 
Epidemic investigation
Epidemic investigationEpidemic investigation
Epidemic investigation
 
Study designs
Study designsStudy designs
Study designs
 
Cross sectional study
Cross sectional studyCross sectional study
Cross sectional study
 
Descriptive epidemiology
Descriptive epidemiologyDescriptive epidemiology
Descriptive epidemiology
 
Rate, ratio, proportion
Rate, ratio, proportionRate, ratio, proportion
Rate, ratio, proportion
 
Introduction to epidemiology
Introduction to epidemiologyIntroduction to epidemiology
Introduction to epidemiology
 
Health planning in india
Health planning in indiaHealth planning in india
Health planning in india
 
12th five year plan and NITI ayog
12th five year plan and NITI ayog12th five year plan and NITI ayog
12th five year plan and NITI ayog
 
National programme for prevention and control of cancer, diabetes, CVDs and s...
National programme for prevention and control of cancer, diabetes, CVDs and s...National programme for prevention and control of cancer, diabetes, CVDs and s...
National programme for prevention and control of cancer, diabetes, CVDs and s...
 
Universal immunization programme
Universal immunization programmeUniversal immunization programme
Universal immunization programme
 
Health education
Health educationHealth education
Health education
 
National AIDS Control Programme
National AIDS Control ProgrammeNational AIDS Control Programme
National AIDS Control Programme
 
ICD and ICF
ICD and ICFICD and ICF
ICD and ICF
 
Nutrition programmes in india
Nutrition programmes in indiaNutrition programmes in india
Nutrition programmes in india
 
Normality tests
Normality testsNormality tests
Normality tests
 

Recently uploaded

Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...narwatsonia7
 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowNehru place Escorts
 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknownarwatsonia7
 
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safenarwatsonia7
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photosnarwatsonia7
 
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbai
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service MumbaiLow Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbai
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbaisonalikaur4
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...narwatsonia7
 
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiCall Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiNehru place Escorts
 
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Miss joya
 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipurparulsinha
 
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment BookingCall Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Bookingnarwatsonia7
 
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfHemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfMedicoseAcademics
 
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Aspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliAspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliRewAs ALI
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...narwatsonia7
 
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.MiadAlsulami
 
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000aliya bhat
 
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 

Recently uploaded (20)

Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
 
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Servicesauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
 
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Marathahalli 📞 9907093804 High Profile Service 100% Safe
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
 
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbai
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service MumbaiLow Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbai
Low Rate Call Girls Mumbai Suman 9910780858 Independent Escort Service Mumbai
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
 
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiCall Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
 
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
 
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment BookingCall Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
 
Russian Call Girls in Delhi Tanvi ➡️ 9711199012 💋📞 Independent Escort Service...
Russian Call Girls in Delhi Tanvi ➡️ 9711199012 💋📞 Independent Escort Service...Russian Call Girls in Delhi Tanvi ➡️ 9711199012 💋📞 Independent Escort Service...
Russian Call Girls in Delhi Tanvi ➡️ 9711199012 💋📞 Independent Escort Service...
 
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdfHemostasis Physiology and Clinical correlations by Dr Faiza.pdf
Hemostasis Physiology and Clinical correlations by Dr Faiza.pdf
 
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
 
Aspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliAspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas Ali
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
 
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
 
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
 
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
 

Chi squared test

  • 1. CHI-SQUARED TEST Dr Lipilekha Patnaik Professor, Community Medicine Institute of Medical Sciences & SUM Hospital Siksha ‘O’Anusandhan deemed to be University Bhubaneswar, Odisha, India Email: drlipilekha@yahoo.co.in
  • 2. Pearson’s chi-squared test • Chi- Square test is method of testing the significance of difference between two proportions. • It has the advantage that at can also be used when more than two groups are to be compared. • Commonly applied in biomedical research 2
  • 3. • Used to test categorical Data Especially when the outcomes are in counts or frequency • Nominal variables Sex, Blood group • Ordinal Variables Birth order Severity of disease (absent, mild, moderate, severe) 3
  • 4. Applications of chi-squared test • This test is used as • for finding difference in proportions • for finding association between variables 4
  • 5. Example • In a prevalence study of Hypertension, we found that Hypertension No Hypertension Non smokers 10 (10%) 90 Smokers 26 (26%) 74 • It is visible from the table that the proportion of HTN was higher among smokers . The question that arises is whether HTN was really higher among smokers or the difference was merely due to chance. 5
  • 6. Group Result Total Hypertension No HTN Non smokers 10 (a) 90 (b) 100 (a+b) Smokers 26 (c) 74 (d) 100 (c+d) Total 36 (a+c) 164 (b+d) 200 (N) 6
  • 7. Steps • Null hypothesis • Calculation of expected values • Calculation of Chi-square value • Calculation of degrees of freedom • Conclusion 7
  • 8. Null hypothesis • No significant difference in the proportions • Alternate- significant difference in the proportions 8
  • 9. Calculation of expected values • Expected value in any cell = totalGrand totalRowXtotalColumn 9 Expected value of each cell should be more than 5 in each cell.
  • 10. Expected values in cells Thus expected value in each cell is • First cell: 36 X 100 / 200 = 18 • Second cell: 164 X 100 / 200 = 82 • Third cell: 36 X 100 / 200 = 18 • Fourth cell: 164 X 100 / 200 = 82 10
  • 11. Chi squared value ∑ − = E EO 2 2 )( χ 11 df = (c -1) (r-1) where c and r stand for number of columns and number of rows respectively. P < 0.05 – Significant difference between 2 proportions P > 0.05 – No significant difference between 2 proportions
  • 12. Calculation of Chi-squared value 12 82 )8274( 18 )1826( 82 )8290( 18 )1810( 2222 − + − + − + − 82 )8( 18 )8( 82 )8( 18 )8( 2222 + − ++ − = 78.056.378.056.3 +++= 82 64 18 64 82 64 18 64 +++= 68.8=
  • 13. Calculation of degrees of freedom df = (c -1) (r-1) where c and r stand for number of columns and number of rows respectively. Thus df = (2 -1) X (2 – 1) = (1) X (1) = 1. 13
  • 14. 14
  • 15. Conclusion • As the Chi-square value is more than the table value for 5% level of significance at 1 df (3.84), we reject the null hypothesis and state that there is a statistically significant difference of proportions of hypertension between smokers and nonsmokers (P < 0.05). • Smoking is associated with hypertension. 15
  • 16. 16