SlideShare a Scribd company logo
1 of 12
Chi Square test
By
Dr Utpal Sharma
Assistant Professor
Department of Community Medicine
SMIMS, Gangtok, Sikkim
What is what….???
Parametric statistics
These significance tests based on assumption
of a normal distribution in a population.
Eg ‘z’ test, ‘t’ test and ‘F’ test
Non parametric statistics
Also called “Distribution free statistics”
The population studied need not fulfill the
criteria of normal distribution
Why non parametric statistics…??
Simple to derive
Ease of application (ranking, counting,
adding..etc)
Rapid in nature
Susceptibility to violation of assumption is less,
even if this happens easy to detect
Ordinal or Nominal data required whereas
parametric statistics requires interval or ratio
Being quick and easy, gives efficient results only
when the sample size is small
Cont….
In large sample non-parametric statistics are less
efficient and laborious
Statistical efficiency where the assumptions of
parametric tests are not met these non-parametric
tests gives superior results
Disadvantage of non parametric statistics
Not useful in large samples
Lower statistical efficiency
Types of non parametric statistics
Nominal data and independent sample
 Chi-square test
 Binomial test
 Fisher exact test
Nominal data and matched samples
 Mc Nemar Chi-square test
Ordinal data and independent sample
 Mann-Whitney ‘U’ test
 Median test
 Kruskal-Wallis test
 Kolmogrov Smirnov test
Ordinal data and matched sample
 Sign test
 Wilcoxan model
Chi square test
Most commonly used non-parametric statistics
Used when data is represented in frequencies
or proportions
Useful in discrete data
Any continuous data can be converted to
categorical data and the statistics can be used
Calculation of Chi-square value
 Make a contingency table
 Note the frequencies observed in the cells (o).
 Calculate the expected value in each cell on assumption
of “null hypothesis”
 Find the difference between observed frequencies and
the expected frequencies in each cell
 Calculate the total chi-square values using formulae
 Find out the degree of freedom
 Look for the p value in the table for the calculated chi-
square value
Example
In a hospital 300 cases of typhoid fever were
admitted in any point of time, 150 cases were
given ciprofloxacin and rest 150 were given
chloramphenicol. Find whether the difference is
significant.
Table : Complete cure after 10 days of treatment
Drug Cured Not cured Total
Ciprofloxacin 143 7 150
Chloromphenicol 137 13 150
Total 280 20 300
cont…
Start calculation with “null hypothesis” that there is
no difference between the cure rate of two drugs
So the cure rate of both the drugs were same is the
expected frequencies (E).
Since the cure rate of both the drugs will be same…
…..percentage of cure rate will be the expected
frequencies (280/300=0.93)
Similarly for the not cured the expected frequencies
will be 20/300=0.07
Cont….
 Now to calculate the expected values when the null
hypothesis is true i.e cure rate of both the drugs were same
For cured
 Ciprofloxacin 150×0.93=139.5
 Chloramphenicol 150×0.93=139.5
For not cured
 Ciprofloxacin 150×0.07=10.5
 Chloramphenicol 150×0.07=10.5
 So, the contingency table of expected values
Expected values
Cured Not cured
Ciprofloxacin 139.5 10.5
Chloramphenicol 139.5 10.5
Cont….
Now we calculate the chi-square value by using the
formula
So, we have
X2
= 0.08+ 0.0448+1.167+0.595
X2
=1.895
 The p value for the calculated chi square is more than 0.1 at a
confidence limit of 95% it is not significant.
Alternate formulae for calculating
Chi square value
We can also use the formulae
Where,
N= a+b+c+d

More Related Content

What's hot

Study design in research
Study design in  research Study design in  research
Study design in research
Kusum Gaur
 
The standard normal curve & its application in biomedical sciences
The standard normal curve & its application in biomedical sciencesThe standard normal curve & its application in biomedical sciences
The standard normal curve & its application in biomedical sciences
Abhi Manu
 

What's hot (20)

Fishers test
Fishers testFishers test
Fishers test
 
Sample Size Determination
Sample Size DeterminationSample Size Determination
Sample Size Determination
 
Sample size determination
Sample size determinationSample size determination
Sample size determination
 
Bias in clinical research
Bias in clinical research Bias in clinical research
Bias in clinical research
 
Study design in research
Study design in  research Study design in  research
Study design in research
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysis
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Chi square
Chi squareChi square
Chi square
 
The standard normal curve & its application in biomedical sciences
The standard normal curve & its application in biomedical sciencesThe standard normal curve & its application in biomedical sciences
The standard normal curve & its application in biomedical sciences
 
Sample and sample size
Sample and sample sizeSample and sample size
Sample and sample size
 
Cohort ppt
Cohort pptCohort ppt
Cohort ppt
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Sample size calculation
Sample size calculationSample size calculation
Sample size calculation
 
Sampling and statistical inference
Sampling and statistical inferenceSampling and statistical inference
Sampling and statistical inference
 
Z-test
Z-testZ-test
Z-test
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Chi square
Chi square Chi square
Chi square
 
What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean? What does an odds ratio or relative risk mean?
What does an odds ratio or relative risk mean?
 

Viewers also liked

The mc nemar test for significance of changes
The mc nemar test for significance of changesThe mc nemar test for significance of changes
The mc nemar test for significance of changes
Zuhdha Basofi Nugroho
 
Abstract algebra
Abstract algebraAbstract algebra
Abstract algebra
brow1067
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
Subhradeep Mitra
 

Viewers also liked (20)

Chi square test
Chi square testChi square test
Chi square test
 
Chisquare
ChisquareChisquare
Chisquare
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square test final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentation
 
Chi square analysis
Chi square analysisChi square analysis
Chi square analysis
 
Chi square test
Chi square test Chi square test
Chi square test
 
Chi square
Chi squareChi square
Chi square
 
uji kolmogorov smirnov
uji kolmogorov smirnovuji kolmogorov smirnov
uji kolmogorov smirnov
 
Testing for normality
Testing for normalityTesting for normality
Testing for normality
 
Non-parametric analysis of models and data
Non-parametric analysis of models and dataNon-parametric analysis of models and data
Non-parametric analysis of models and data
 
The mc nemar test for significance of changes
The mc nemar test for significance of changesThe mc nemar test for significance of changes
The mc nemar test for significance of changes
 
Chi square ppt
Chi square pptChi square ppt
Chi square ppt
 
Abstract algebra
Abstract algebraAbstract algebra
Abstract algebra
 
Non-Parametric Inference : Chi-Square and The Sign Test
Non-Parametric Inference : Chi-Square and The Sign TestNon-Parametric Inference : Chi-Square and The Sign Test
Non-Parametric Inference : Chi-Square and The Sign Test
 
Estudio de brote
Estudio de broteEstudio de brote
Estudio de brote
 
Sign test
Sign testSign test
Sign test
 
Abstract algebra
Abstract algebraAbstract algebra
Abstract algebra
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
 
Chi Squared Test
Chi Squared TestChi Squared Test
Chi Squared Test
 
The Sign Test
The Sign TestThe Sign Test
The Sign Test
 

Similar to Chi square

Choosing statistical tests
Choosing statistical testsChoosing statistical tests
Choosing statistical tests
Akiode Noah
 
What is your question
What is your questionWhat is your question
What is your question
Stephen Senn
 
Research methodology 101
Research methodology 101Research methodology 101
Research methodology 101
Hesham Gaber
 

Similar to Chi square (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
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
Lund 2009
Lund 2009Lund 2009
Lund 2009
 
Parmetric and non parametric statistical test in clinical trails
Parmetric and non parametric statistical test in clinical trailsParmetric and non parametric statistical test in clinical trails
Parmetric and non parametric statistical test in clinical trails
 
Choosing statistical tests
Choosing statistical testsChoosing statistical tests
Choosing statistical tests
 
Sample size- dr dk yadav
Sample size- dr dk yadavSample size- dr dk yadav
Sample size- dr dk yadav
 
What is your question
What is your questionWhat is your question
What is your question
 
What is your question
What is your questionWhat is your question
What is your question
 
Critical Appriaisal Skills Basic 1 | May 4th 2011
Critical Appriaisal Skills Basic 1 | May 4th 2011Critical Appriaisal Skills Basic 1 | May 4th 2011
Critical Appriaisal Skills Basic 1 | May 4th 2011
 
2_5332511410507220042.ppt
2_5332511410507220042.ppt2_5332511410507220042.ppt
2_5332511410507220042.ppt
 
Sample Size Determination.23.11.2021.pdf
Sample Size Determination.23.11.2021.pdfSample Size Determination.23.11.2021.pdf
Sample Size Determination.23.11.2021.pdf
 
Research methodology 101
Research methodology 101Research methodology 101
Research methodology 101
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Hypo
HypoHypo
Hypo
 
Lecture # 10 chi-square test of association
Lecture # 10  chi-square test of associationLecture # 10  chi-square test of association
Lecture # 10 chi-square test of association
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
 
Sampling_Distribution_stat_of_Mean_New.pptx
Sampling_Distribution_stat_of_Mean_New.pptxSampling_Distribution_stat_of_Mean_New.pptx
Sampling_Distribution_stat_of_Mean_New.pptx
 
Displaying your results
Displaying your resultsDisplaying your results
Displaying your results
 

More from utpal sharma

More from utpal sharma (20)

Ticks and mites
Ticks and mitesTicks and mites
Ticks and mites
 
Japanese encephalitis epidemiology
Japanese encephalitis epidemiologyJapanese encephalitis epidemiology
Japanese encephalitis epidemiology
 
Nutrition
NutritionNutrition
Nutrition
 
Culture
CultureCulture
Culture
 
Society
SocietySociety
Society
 
Food safety
Food safetyFood safety
Food safety
 
Biochemical oxygen demand
Biochemical oxygen demandBiochemical oxygen demand
Biochemical oxygen demand
 
Social groups
Social groupsSocial groups
Social groups
 
Family its role functions and responsibilities
Family its role functions and responsibilitiesFamily its role functions and responsibilities
Family its role functions and responsibilities
 
Sociology introduction
Sociology introductionSociology introduction
Sociology introduction
 
Out break investigation
Out break investigationOut break investigation
Out break investigation
 
Health planning
Health planning Health planning
Health planning
 
School health services
School health servicesSchool health services
School health services
 
Child health problems
Child health problemsChild health problems
Child health problems
 
Low birth weight
Low birth weightLow birth weight
Low birth weight
 
Healthcare delivery system in india
Healthcare delivery system in indiaHealthcare delivery system in india
Healthcare delivery system in india
 
Entomology Louse, Bedbugs & Sand fly
Entomology Louse, Bedbugs & Sand flyEntomology Louse, Bedbugs & Sand fly
Entomology Louse, Bedbugs & Sand fly
 
Disaster management
Disaster managementDisaster management
Disaster management
 
ORS
ORSORS
ORS
 
Medical entomology and vector bionomics
Medical entomology and vector bionomicsMedical entomology and vector bionomics
Medical entomology and vector bionomics
 

Recently uploaded

Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls * UPA...
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls  * UPA...Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls  * UPA...
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls * UPA...
mahaiklolahd
 
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 

Recently uploaded (20)

Call Girls Service Jaipur {8445551418} ❤️VVIP BHAWNA Call Girl in Jaipur Raja...
Call Girls Service Jaipur {8445551418} ❤️VVIP BHAWNA Call Girl in Jaipur Raja...Call Girls Service Jaipur {8445551418} ❤️VVIP BHAWNA Call Girl in Jaipur Raja...
Call Girls Service Jaipur {8445551418} ❤️VVIP BHAWNA Call Girl in Jaipur Raja...
 
Call Girls Kakinada Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Kakinada Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Kakinada Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Kakinada Just Call 9907093804 Top Class Call Girl Service Available
 
Premium Call Girls In Jaipur {8445551418} ❤️VVIP SEEMA Call Girl in Jaipur Ra...
Premium Call Girls In Jaipur {8445551418} ❤️VVIP SEEMA Call Girl in Jaipur Ra...Premium Call Girls In Jaipur {8445551418} ❤️VVIP SEEMA Call Girl in Jaipur Ra...
Premium Call Girls In Jaipur {8445551418} ❤️VVIP SEEMA Call Girl in Jaipur Ra...
 
Night 7k to 12k Navi Mumbai Call Girl Photo 👉 BOOK NOW 9833363713 👈 ♀️ night ...
Night 7k to 12k Navi Mumbai Call Girl Photo 👉 BOOK NOW 9833363713 👈 ♀️ night ...Night 7k to 12k Navi Mumbai Call Girl Photo 👉 BOOK NOW 9833363713 👈 ♀️ night ...
Night 7k to 12k Navi Mumbai Call Girl Photo 👉 BOOK NOW 9833363713 👈 ♀️ night ...
 
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
 
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
 
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls * UPA...
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls  * UPA...Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls  * UPA...
Call Girl in Indore 8827247818 {LowPrice} ❤️ (ahana) Indore Call Girls * UPA...
 
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
Best Rate (Patna ) Call Girls Patna ⟟ 8617370543 ⟟ High Class Call Girl In 5 ...
 
Top Rated Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
Top Rated  Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...Top Rated  Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
Top Rated Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
 
Trichy Call Girls Book Now 9630942363 Top Class Trichy Escort Service Available
Trichy Call Girls Book Now 9630942363 Top Class Trichy Escort Service AvailableTrichy Call Girls Book Now 9630942363 Top Class Trichy Escort Service Available
Trichy Call Girls Book Now 9630942363 Top Class Trichy Escort Service Available
 
8980367676 Call Girls In Ahmedabad Escort Service Available 24×7 In Ahmedabad
8980367676 Call Girls In Ahmedabad Escort Service Available 24×7 In Ahmedabad8980367676 Call Girls In Ahmedabad Escort Service Available 24×7 In Ahmedabad
8980367676 Call Girls In Ahmedabad Escort Service Available 24×7 In Ahmedabad
 
Russian Call Girls Service Jaipur {8445551418} ❤️PALLAVI VIP Jaipur Call Gir...
Russian Call Girls Service  Jaipur {8445551418} ❤️PALLAVI VIP Jaipur Call Gir...Russian Call Girls Service  Jaipur {8445551418} ❤️PALLAVI VIP Jaipur Call Gir...
Russian Call Girls Service Jaipur {8445551418} ❤️PALLAVI VIP Jaipur Call Gir...
 
Top Rated Bangalore Call Girls Majestic ⟟ 9332606886 ⟟ Call Me For Genuine S...
Top Rated Bangalore Call Girls Majestic ⟟  9332606886 ⟟ Call Me For Genuine S...Top Rated Bangalore Call Girls Majestic ⟟  9332606886 ⟟ Call Me For Genuine S...
Top Rated Bangalore Call Girls Majestic ⟟ 9332606886 ⟟ Call Me For Genuine S...
 
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
 
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
Premium Bangalore Call Girls Jigani Dail 6378878445 Escort Service For Hot Ma...
 
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service AvailableCall Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
 
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
 
VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
VIP Service Call Girls Sindhi Colony 📳 7877925207 For 18+ VIP Call Girl At Th...
 
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
VIP Hyderabad Call Girls Bahadurpally 7877925207 ₹5000 To 25K With AC Room 💚😋
 
Top Rated Bangalore Call Girls Ramamurthy Nagar ⟟ 9332606886 ⟟ Call Me For G...
Top Rated Bangalore Call Girls Ramamurthy Nagar ⟟  9332606886 ⟟ Call Me For G...Top Rated Bangalore Call Girls Ramamurthy Nagar ⟟  9332606886 ⟟ Call Me For G...
Top Rated Bangalore Call Girls Ramamurthy Nagar ⟟ 9332606886 ⟟ Call Me For G...
 

Chi square

  • 1. Chi Square test By Dr Utpal Sharma Assistant Professor Department of Community Medicine SMIMS, Gangtok, Sikkim
  • 2. What is what….??? Parametric statistics These significance tests based on assumption of a normal distribution in a population. Eg ‘z’ test, ‘t’ test and ‘F’ test Non parametric statistics Also called “Distribution free statistics” The population studied need not fulfill the criteria of normal distribution
  • 3. Why non parametric statistics…?? Simple to derive Ease of application (ranking, counting, adding..etc) Rapid in nature Susceptibility to violation of assumption is less, even if this happens easy to detect Ordinal or Nominal data required whereas parametric statistics requires interval or ratio Being quick and easy, gives efficient results only when the sample size is small
  • 4. Cont…. In large sample non-parametric statistics are less efficient and laborious Statistical efficiency where the assumptions of parametric tests are not met these non-parametric tests gives superior results Disadvantage of non parametric statistics Not useful in large samples Lower statistical efficiency
  • 5. Types of non parametric statistics Nominal data and independent sample  Chi-square test  Binomial test  Fisher exact test Nominal data and matched samples  Mc Nemar Chi-square test Ordinal data and independent sample  Mann-Whitney ‘U’ test  Median test  Kruskal-Wallis test  Kolmogrov Smirnov test Ordinal data and matched sample  Sign test  Wilcoxan model
  • 6. Chi square test Most commonly used non-parametric statistics Used when data is represented in frequencies or proportions Useful in discrete data Any continuous data can be converted to categorical data and the statistics can be used
  • 7. Calculation of Chi-square value  Make a contingency table  Note the frequencies observed in the cells (o).  Calculate the expected value in each cell on assumption of “null hypothesis”  Find the difference between observed frequencies and the expected frequencies in each cell  Calculate the total chi-square values using formulae  Find out the degree of freedom  Look for the p value in the table for the calculated chi- square value
  • 8. Example In a hospital 300 cases of typhoid fever were admitted in any point of time, 150 cases were given ciprofloxacin and rest 150 were given chloramphenicol. Find whether the difference is significant. Table : Complete cure after 10 days of treatment Drug Cured Not cured Total Ciprofloxacin 143 7 150 Chloromphenicol 137 13 150 Total 280 20 300
  • 9. cont… Start calculation with “null hypothesis” that there is no difference between the cure rate of two drugs So the cure rate of both the drugs were same is the expected frequencies (E). Since the cure rate of both the drugs will be same… …..percentage of cure rate will be the expected frequencies (280/300=0.93) Similarly for the not cured the expected frequencies will be 20/300=0.07
  • 10. Cont….  Now to calculate the expected values when the null hypothesis is true i.e cure rate of both the drugs were same For cured  Ciprofloxacin 150×0.93=139.5  Chloramphenicol 150×0.93=139.5 For not cured  Ciprofloxacin 150×0.07=10.5  Chloramphenicol 150×0.07=10.5  So, the contingency table of expected values Expected values Cured Not cured Ciprofloxacin 139.5 10.5 Chloramphenicol 139.5 10.5
  • 11. Cont…. Now we calculate the chi-square value by using the formula So, we have X2 = 0.08+ 0.0448+1.167+0.595 X2 =1.895  The p value for the calculated chi square is more than 0.1 at a confidence limit of 95% it is not significant.
  • 12. Alternate formulae for calculating Chi square value We can also use the formulae Where, N= a+b+c+d