SlideShare a Scribd company logo
CHI SQUARE
BY:
M RS.KEERTHI SAM UEL
ASST.PROFESSOR
VIJAY M ARIE CON
INTRODUCTION TO TERMS
1. PARAMETRIC TEST: The test in which the population constants like mean,
standard deviation, standard error ,correlation coefficient etc. and data tends to follow
one assumed or established distribution such as normal, Poisson etc.
2. NON PARAMETRIC: The test in which no constant of a population is used. Sdata do
not follow any specific distribution and no assumptions are made in these tests. Ex:
classifying good, better best.
3. HYPOTHESIS: it is a definite statement about the population parameters.
INTRODUCTION TO TERMS
4. NULL HYPOTHESIS: states there is no association between two cross tabulated variables in the population
and therefore the variables are statistically independent.
Ex: if we want to compare 2 methods A and B and if the assumption is that both the methods are
equally good is null hypothesis.
5. ALTERNATIVE /RESEARCH HYPOTHESIS: proposes that the two variables are related in the population. If
we assume that from 2 methods , method A is superior than method B , then this assumption is called Alternative
hypothesis.
6.CONTINGENCY TABLE: when the table is prepared by enumeration of qualitative data by entering the actual
frequencies , an if the table represents occurrence of two sets of events , the table is called contingency table. It
is also called association table.
INTRODUCTION TO TERMS
7. DEGREES OF FREEDOM: it denotes to the extent of independence (freedom) enjoyed by a
given set od observed frequencies . Suppose we are given a set of n observed frequencies which
are subjected to k independent constraints ( restrictions) then,
df=(number of frequencies)-(number of independent constraints on them)
In other terms df=(r-1)(C-1)
WHERE r= no of rows
c=no of columns
INTRODUCTION TO CHISQUARE
•The chi-square test is an important test amongst the several tests of significance developed by
statisticians.
•It was developed by Karl Pearson in 1990.
•It is a non parametric test not based on any assumption or distribution of any variable.
•This statistical test follows a specific distribution known as chi-square distribution.
•In general the test we use to measure the differences between what is observed and what is
expected according to an assumed hypothesis is called chi-square test.
CHARACTERISTICS
•The test is based on frequencies and not on the parameters like mean and SD.
•The test is used for testing the hypothesis and is not useful for estimation
•Applied to a complex contingency table with several classes and such a very useful test in
research work.
•This test is an important non parametric test as no rigid assumptions are necessary in regard to
the type of population , no need of parameter values and relatively less mathematical details are
involved.
Chi square distribution
•If 𝑥1 , 𝑥2 …. Are independent normal variates and each is
distributed normally with a mean zero and SD as unity , then
X12+X22+…….Xn2 = ∑Xi2 is distributed as chi-square with n
degrees of freedom when n is large. The chi-square curve for df
N=1,5 and 9 is as follows
• if DF >2: distribution is bell shaped
•if DF =2: distribution is L shaped with maximum ordinate 0
•if DF >2: distribution is L shaped with infinite ordinate at the origin
APPLICATIONS
•Goodness of fit of distributions
•Test of independence attributes
•Test of homogeneity
TEST OF GOODNESS OF FIT
•This test enables us to see how well does the assumed theoretical distribution ( such as
binomial or normal distribution) fit to the observed data.
•Formula 𝑥2
=
𝑜−𝑒 2
𝑒
•Where o= observed frequency and e=expected frequency
•If 𝑥2caluculated is > than table value then null hypothesis is rejected
TEST OF independence of attributes
•Test enables us to explain whether or not two attributes are associated.
•For instance, we may be interested in knowing whether a new medicine is effective in controlling fever or not, 𝑥2
test
is useful.
•In such situation we proceed with the null hypothesis that the 2 attributes ( new medicine and control of fever) are
independent which means the new medicine is not effective in controlling fever.
•The calculated value is greater than table value at a certain level of significance for a given df the H0 is rejected and
viceversa.
•When H0 is rejected it can be concluded that there is a significant association between 2 attributes.
TEST OF HOMOGENITY
•This test can also be used to test whether the occurance of events follow uniformity or not
• Ex: admission of patients in govt hospital in all days of week is uniform or not
• Chisquare less than tabulated value then null hypothesis is accepted , and it can be concluded that there is a uniformity in the
occurance of the events ( uniformity of patients getting admitted throughout the week)
calculation
• 𝑥2 =
𝑜−𝑒 2
𝑒
• Where o= observed frequency and e=expected frequency
• If 𝑥2
calculated is > than table value then null hypothesis is rejected
•If two distributions are exactly alike chisquare is zero which is mostly due to sampling error.
• generally it is not equal to zero
Steps in calculation
1. Calculate the expected frequencies and the observed frequencies
2. Expected frequencies: the cell frequencies that would be expected in a contingency table if the two variables
were statistically independent.
3. OBSERVED FREQUENCIES: the cell frequencies actually observed in a contingency table.
𝑓𝑒= (column total)(row total)
N
To obtain the expected value for nay cell in any cross tabulation in which the 2 variables are assumed independent ,
multiply the row and column totals for that cell and divide the product by the total number of cases in the table.
CONDITIONS FOR APPLICATION
1. The data must be in the form of frequencies
2. The frequency data must have a precise numerical value and must be organized into categories or groups
3. Observations recorded and used are collected on a random basis.
4. All the items in the samples must be independent.
5. No group should contain very few items, say less than 10. in case where the frequencies are less than 10,
regrouping is done by combining the frequencies of adjoining groups so that the new frequencies become
greater than 10.
6. The overall number of items must be reasonably high . It should be generally be at least 50.
Yates correction
If the 2x2 contingency table , the expected frequencies are small say less than 5 , the chi-square test cant be used .
In that case the direct formula of the test cant be used . So we can use yates correction formula.
LIMITATIONS
◦ The data is from a random sample
◦ This test is applied in four fold table , will not give a reliable result with one degree of freedom if the expected value
in any cell is less than 5. in such case yates correction is necessary.
◦ Even if yates correction, the test may be misleading if any expected frequency is much below than 5. in that case
another appropriate test should be applied
◦ In contingency tables larger than 2X2. yates correction cannot be applied.
◦ Interpret this test with caution if sample total or total of values in all cells is less than 50.
Problem-1
◦ In an antimalarial camp ,in a certain area chloroquine was administered to 812 people out of the population of
3248. The number of fever cases shown are:
TREATMENT FEVER NO FEVER
CHLOROQUIN 20 792
NO CHLOROQUIN 220 2216
Problem-1
◦ 1. Formulate the null and alternate hypothesis
◦ H0: chloroquine is not effective against malaria
◦ H1: chloroquine is effective against malaria
◦ 2. Make contingency table
Treatment Fever No fever Total
Chloroquin 20 792 812
No chloroquin 220 2216 2436
Total 240 3008 3248
Problem-1
◦ Find out the expected frequencies
◦ E=RTXCT/ Grand total
E1=240X812/3248 =60
E2=240X2436/3248 = 180
E3=3008X812/3248 = 752
E4 = 3008 X 2436 / 3248 =2256
Problem-1
o e O-e (O-e)2 (O-e)2/e
20 60 -40 1600 1600/60=26.6
220 180 +40 1600 1600/180=8.8
792 752 +40 1600 1600/752=2.12
2216 2256 -40 1600 1600/2256=0.7
38.39
Df=(2-1)(2-1)=1
At 5% level of significance with1 as df the table value of 𝑋2 is 3.84 which is less than the calculated value .
Hence the hypothesis H0 is rejected and H1 is accepted.
Problem-II
◦ The table shown is given the data during the epidemic of cholera. Check the effect of inoculation on cholera.
TREATMENT ATTACKED NOT ATTACKED
Inoculated 31 469
Not Inoculated 185 1315
Problem-II
◦ 1. Formulate the null and alternate hypothesis
◦ H0: there will be no effect of inoculation in preventing the attack of cholera
◦ H1: there will be some effect of inoculation on cholera
2. Make contingency table
TREATMENT ATTACKED NOT ATTACKED TOTAL
Inoculated 31 469 500
Not Inoculated 185 1315 1500
Total 216 1784 2000
Problem-II
◦ Find out the expected frequencies
◦ E=RTXCT/ Grand total
E1=500X216/2000 =54
E2=216X1500 / 2000 = 162
E3=500X1784 / 2000= 446
E4 = 1500 X 1784 / 2000 =1338
TREATMENT ATTACKED NOT
ATTACKED
TOTAL
Inoculated 31 469 500
Not Inoculated 185 1315 1500
Total 216 1784 2000
Problem-II
o e O-e (O-e)2 (O-e)2/e
31 54 -23 529 9.79
185 162 23 529 3.26
469 446 23 529 1.18
1315 1338 23 529 0.39
14.62
Df=(2-1)(2-1)=1
At 5% level of significance with1 as df the table value of 𝑋2 is 3.84 which is less than the calculated value .
Hence the hypothesis H0 is rejected and H1 is accepted.

More Related Content

What's hot

Chi square
Chi squareChi square
Chi square
PoojaVishnoi7
 
Epidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notesEpidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notes
Charles Ntwale
 
Nonparametric tests
Nonparametric testsNonparametric tests
Nonparametric testsArun Kumar
 
Chi squared test
Chi squared testChi squared test
Chi squared test
Ramakanth Gadepalli
 
Coefficient of correlation...ppt
Coefficient of correlation...pptCoefficient of correlation...ppt
Coefficient of correlation...ppt
Rahul Dhaker
 
coefficient correlation
 coefficient correlation coefficient correlation
coefficient correlation
irshad narejo
 
Chi squared test
Chi squared testChi squared test
Chi squared test
Dhruv Patel
 
Normal and standard normal distribution
Normal and standard normal distributionNormal and standard normal distribution
Normal and standard normal distribution
Avjinder (Avi) Kaler
 
Chi – square test
Chi – square testChi – square test
Chi – square test
Dr.M.Prasad Naidu
 
Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric test
Ajay Malpani
 
Chi square test
Chi square testChi square test
Chi square test
Nayna Azad
 
Sd,t test
Sd,t testSd,t test
Sd,t test
keerthi samuel
 
What is chi square test
What  is  chi square testWhat  is  chi square test
What is chi square test
Talent Corner HR Services Pvt Ltd.
 
Measures of association 2013
Measures of association 2013Measures of association 2013
Measures of association 2013dinahoefer11
 

What's hot (20)

Chi square
Chi squareChi square
Chi square
 
Survival analysis
Survival  analysisSurvival  analysis
Survival analysis
 
Epidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notesEpidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notes
 
Nonparametric tests
Nonparametric testsNonparametric tests
Nonparametric tests
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Coefficient of correlation...ppt
Coefficient of correlation...pptCoefficient of correlation...ppt
Coefficient of correlation...ppt
 
coefficient correlation
 coefficient correlation coefficient correlation
coefficient correlation
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Chi square test
Chi square test Chi square test
Chi square test
 
Normal and standard normal distribution
Normal and standard normal distributionNormal and standard normal distribution
Normal and standard normal distribution
 
Central tendency
Central tendencyCentral tendency
Central tendency
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Chi square
Chi square Chi square
Chi square
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric test
 
Chi square test
Chi square testChi square test
Chi square test
 
Sd,t test
Sd,t testSd,t test
Sd,t test
 
What is chi square test
What  is  chi square testWhat  is  chi square test
What is chi square test
 
Measures of association 2013
Measures of association 2013Measures of association 2013
Measures of association 2013
 

Similar to Chisquare

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
muhammadahmad00495
 
Busniess stats
Busniess statsBusniess stats
Busniess stats
VishalHotchandani2
 
Chi square test
Chi square testChi square test
Chi square test
AmanRathore54
 
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
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
ANCYBS
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
rodrick koome
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
ShifnaRahman
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
BAGARAGAZAROMUALD2
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
Rione Drevale
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
jennytuazon01630
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
Long Beach City College
 
Non Parametric Test by Vikramjit Singh
Non Parametric Test by  Vikramjit SinghNon Parametric Test by  Vikramjit Singh
Non Parametric Test by Vikramjit Singh
Vikramjit Singh
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
Subodh Khanal
 
Design of experiments(
Design of experiments(Design of experiments(
Design of experiments(
Nugurusaichandan
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
KavyasriPuttamreddy
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
Muhammad Warraich
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
Chinna Chadayan
 

Similar to Chisquare (20)

Chi square test
Chi square testChi square test
Chi square test
 
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
 
Busniess stats
Busniess statsBusniess stats
Busniess stats
 
Chi square test
Chi square testChi square test
Chi square test
 
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
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Test of significance
Test of significanceTest of significance
Test of significance
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 
Non Parametric Test by Vikramjit Singh
Non Parametric Test by  Vikramjit SinghNon Parametric Test by  Vikramjit Singh
Non Parametric Test by Vikramjit Singh
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Design of experiments(
Design of experiments(Design of experiments(
Design of experiments(
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
 

More from keerthi samuel

pannel.pptx
pannel.pptxpannel.pptx
pannel.pptx
keerthi samuel
 
EUGENIC MOVEMENT.pptx
EUGENIC MOVEMENT.pptxEUGENIC MOVEMENT.pptx
EUGENIC MOVEMENT.pptx
keerthi samuel
 
urine formation.pptx
urine formation.pptxurine formation.pptx
urine formation.pptx
keerthi samuel
 
Human genome project [autosaved]
Human genome project [autosaved]Human genome project [autosaved]
Human genome project [autosaved]
keerthi samuel
 
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETIONGLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
keerthi samuel
 
Meningitis
MeningitisMeningitis
Meningitis
keerthi samuel
 
Urinary system
Urinary systemUrinary system
Urinary system
keerthi samuel
 
Patterns of inheritance
Patterns of inheritancePatterns of inheritance
Patterns of inheritance
keerthi samuel
 
Mendels theory
Mendels theoryMendels theory
Mendels theory
keerthi samuel
 
Dna
DnaDna
Mechanical ventilation
Mechanical ventilationMechanical ventilation
Mechanical ventilation
keerthi samuel
 
Infection control in critical care units
Infection control in critical care unitsInfection control in critical care units
Infection control in critical care units
keerthi samuel
 
CCU
CCUCCU
Correlation
CorrelationCorrelation
Correlation
keerthi samuel
 
Central tendency
Central tendencyCentral tendency
Central tendency
keerthi samuel
 
PRESENTATION OF STATISTICAL DATA
PRESENTATION OF STATISTICAL DATAPRESENTATION OF STATISTICAL DATA
PRESENTATION OF STATISTICAL DATA
keerthi samuel
 
Septic arthritis
Septic arthritisSeptic arthritis
Septic arthritis
keerthi samuel
 
LUNG VOLUMES AND CAPACITIES
LUNG VOLUMES AND CAPACITIESLUNG VOLUMES AND CAPACITIES
LUNG VOLUMES AND CAPACITIES
keerthi samuel
 
New microsoft power point presentation
New microsoft power point presentationNew microsoft power point presentation
New microsoft power point presentation
keerthi samuel
 
Gouty arthritis
Gouty arthritisGouty arthritis
Gouty arthritis
keerthi samuel
 

More from keerthi samuel (20)

pannel.pptx
pannel.pptxpannel.pptx
pannel.pptx
 
EUGENIC MOVEMENT.pptx
EUGENIC MOVEMENT.pptxEUGENIC MOVEMENT.pptx
EUGENIC MOVEMENT.pptx
 
urine formation.pptx
urine formation.pptxurine formation.pptx
urine formation.pptx
 
Human genome project [autosaved]
Human genome project [autosaved]Human genome project [autosaved]
Human genome project [autosaved]
 
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETIONGLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
GLOMERULAR FILTRATION /TUBULAR REABSORPTION AND SECRETION
 
Meningitis
MeningitisMeningitis
Meningitis
 
Urinary system
Urinary systemUrinary system
Urinary system
 
Patterns of inheritance
Patterns of inheritancePatterns of inheritance
Patterns of inheritance
 
Mendels theory
Mendels theoryMendels theory
Mendels theory
 
Dna
DnaDna
Dna
 
Mechanical ventilation
Mechanical ventilationMechanical ventilation
Mechanical ventilation
 
Infection control in critical care units
Infection control in critical care unitsInfection control in critical care units
Infection control in critical care units
 
CCU
CCUCCU
CCU
 
Correlation
CorrelationCorrelation
Correlation
 
Central tendency
Central tendencyCentral tendency
Central tendency
 
PRESENTATION OF STATISTICAL DATA
PRESENTATION OF STATISTICAL DATAPRESENTATION OF STATISTICAL DATA
PRESENTATION OF STATISTICAL DATA
 
Septic arthritis
Septic arthritisSeptic arthritis
Septic arthritis
 
LUNG VOLUMES AND CAPACITIES
LUNG VOLUMES AND CAPACITIESLUNG VOLUMES AND CAPACITIES
LUNG VOLUMES AND CAPACITIES
 
New microsoft power point presentation
New microsoft power point presentationNew microsoft power point presentation
New microsoft power point presentation
 
Gouty arthritis
Gouty arthritisGouty arthritis
Gouty arthritis
 

Recently uploaded

Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyayaCharaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
Dr KHALID B.M
 
How to Give Better Lectures: Some Tips for Doctors
How to Give Better Lectures: Some Tips for DoctorsHow to Give Better Lectures: Some Tips for Doctors
How to Give Better Lectures: Some Tips for Doctors
LanceCatedral
 
The hemodynamic and autonomic determinants of elevated blood pressure in obes...
The hemodynamic and autonomic determinants of elevated blood pressure in obes...The hemodynamic and autonomic determinants of elevated blood pressure in obes...
The hemodynamic and autonomic determinants of elevated blood pressure in obes...
Catherine Liao
 
Superficial & Deep Fascia of the NECK.pptx
Superficial & Deep Fascia of the NECK.pptxSuperficial & Deep Fascia of the NECK.pptx
Superficial & Deep Fascia of the NECK.pptx
Dr. Rabia Inam Gandapore
 
24 Upakrama.pptx class ppt useful in all
24 Upakrama.pptx class ppt useful in all24 Upakrama.pptx class ppt useful in all
24 Upakrama.pptx class ppt useful in all
DrSathishMS1
 
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
bkling
 
Surgical Site Infections, pathophysiology, and prevention.pptx
Surgical Site Infections, pathophysiology, and prevention.pptxSurgical Site Infections, pathophysiology, and prevention.pptx
Surgical Site Infections, pathophysiology, and prevention.pptx
jval Landero
 
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
kevinkariuki227
 
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
i3 Health
 
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.GawadHemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
NephroTube - Dr.Gawad
 
Flu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore KarnatakaFlu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore Karnataka
addon Scans
 
Couples presenting to the infertility clinic- Do they really have infertility...
Couples presenting to the infertility clinic- Do they really have infertility...Couples presenting to the infertility clinic- Do they really have infertility...
Couples presenting to the infertility clinic- Do they really have infertility...
Sujoy Dasgupta
 
Are There Any Natural Remedies To Treat Syphilis.pdf
Are There Any Natural Remedies To Treat Syphilis.pdfAre There Any Natural Remedies To Treat Syphilis.pdf
Are There Any Natural Remedies To Treat Syphilis.pdf
Little Cross Family Clinic
 
KDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologistsKDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologists
د.محمود نجيب
 
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
GL Anaacs
 
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Oleg Kshivets
 
Ocular injury ppt Upendra pal optometrist upums saifai etawah
Ocular injury  ppt  Upendra pal  optometrist upums saifai etawahOcular injury  ppt  Upendra pal  optometrist upums saifai etawah
Ocular injury ppt Upendra pal optometrist upums saifai etawah
pal078100
 
Evaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animalsEvaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animals
Shweta
 
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists  Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Saeid Safari
 
Antiulcer drugs Advance Pharmacology .pptx
Antiulcer drugs Advance Pharmacology .pptxAntiulcer drugs Advance Pharmacology .pptx
Antiulcer drugs Advance Pharmacology .pptx
Rohit chaurpagar
 

Recently uploaded (20)

Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyayaCharaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
Charaka Samhita Sutra Sthana 9 Chapter khuddakachatuspadadhyaya
 
How to Give Better Lectures: Some Tips for Doctors
How to Give Better Lectures: Some Tips for DoctorsHow to Give Better Lectures: Some Tips for Doctors
How to Give Better Lectures: Some Tips for Doctors
 
The hemodynamic and autonomic determinants of elevated blood pressure in obes...
The hemodynamic and autonomic determinants of elevated blood pressure in obes...The hemodynamic and autonomic determinants of elevated blood pressure in obes...
The hemodynamic and autonomic determinants of elevated blood pressure in obes...
 
Superficial & Deep Fascia of the NECK.pptx
Superficial & Deep Fascia of the NECK.pptxSuperficial & Deep Fascia of the NECK.pptx
Superficial & Deep Fascia of the NECK.pptx
 
24 Upakrama.pptx class ppt useful in all
24 Upakrama.pptx class ppt useful in all24 Upakrama.pptx class ppt useful in all
24 Upakrama.pptx class ppt useful in all
 
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
 
Surgical Site Infections, pathophysiology, and prevention.pptx
Surgical Site Infections, pathophysiology, and prevention.pptxSurgical Site Infections, pathophysiology, and prevention.pptx
Surgical Site Infections, pathophysiology, and prevention.pptx
 
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
 
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
 
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.GawadHemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
 
Flu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore KarnatakaFlu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore Karnataka
 
Couples presenting to the infertility clinic- Do they really have infertility...
Couples presenting to the infertility clinic- Do they really have infertility...Couples presenting to the infertility clinic- Do they really have infertility...
Couples presenting to the infertility clinic- Do they really have infertility...
 
Are There Any Natural Remedies To Treat Syphilis.pdf
Are There Any Natural Remedies To Treat Syphilis.pdfAre There Any Natural Remedies To Treat Syphilis.pdf
Are There Any Natural Remedies To Treat Syphilis.pdf
 
KDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologistsKDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologists
 
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
HOT NEW PRODUCT! BIG SALES FAST SHIPPING NOW FROM CHINA!! EU KU DB BK substit...
 
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
 
Ocular injury ppt Upendra pal optometrist upums saifai etawah
Ocular injury  ppt  Upendra pal  optometrist upums saifai etawahOcular injury  ppt  Upendra pal  optometrist upums saifai etawah
Ocular injury ppt Upendra pal optometrist upums saifai etawah
 
Evaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animalsEvaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animals
 
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists  Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
 
Antiulcer drugs Advance Pharmacology .pptx
Antiulcer drugs Advance Pharmacology .pptxAntiulcer drugs Advance Pharmacology .pptx
Antiulcer drugs Advance Pharmacology .pptx
 

Chisquare

  • 1. CHI SQUARE BY: M RS.KEERTHI SAM UEL ASST.PROFESSOR VIJAY M ARIE CON
  • 2. INTRODUCTION TO TERMS 1. PARAMETRIC TEST: The test in which the population constants like mean, standard deviation, standard error ,correlation coefficient etc. and data tends to follow one assumed or established distribution such as normal, Poisson etc. 2. NON PARAMETRIC: The test in which no constant of a population is used. Sdata do not follow any specific distribution and no assumptions are made in these tests. Ex: classifying good, better best. 3. HYPOTHESIS: it is a definite statement about the population parameters.
  • 3. INTRODUCTION TO TERMS 4. NULL HYPOTHESIS: states there is no association between two cross tabulated variables in the population and therefore the variables are statistically independent. Ex: if we want to compare 2 methods A and B and if the assumption is that both the methods are equally good is null hypothesis. 5. ALTERNATIVE /RESEARCH HYPOTHESIS: proposes that the two variables are related in the population. If we assume that from 2 methods , method A is superior than method B , then this assumption is called Alternative hypothesis. 6.CONTINGENCY TABLE: when the table is prepared by enumeration of qualitative data by entering the actual frequencies , an if the table represents occurrence of two sets of events , the table is called contingency table. It is also called association table.
  • 4. INTRODUCTION TO TERMS 7. DEGREES OF FREEDOM: it denotes to the extent of independence (freedom) enjoyed by a given set od observed frequencies . Suppose we are given a set of n observed frequencies which are subjected to k independent constraints ( restrictions) then, df=(number of frequencies)-(number of independent constraints on them) In other terms df=(r-1)(C-1) WHERE r= no of rows c=no of columns
  • 5. INTRODUCTION TO CHISQUARE •The chi-square test is an important test amongst the several tests of significance developed by statisticians. •It was developed by Karl Pearson in 1990. •It is a non parametric test not based on any assumption or distribution of any variable. •This statistical test follows a specific distribution known as chi-square distribution. •In general the test we use to measure the differences between what is observed and what is expected according to an assumed hypothesis is called chi-square test.
  • 6. CHARACTERISTICS •The test is based on frequencies and not on the parameters like mean and SD. •The test is used for testing the hypothesis and is not useful for estimation •Applied to a complex contingency table with several classes and such a very useful test in research work. •This test is an important non parametric test as no rigid assumptions are necessary in regard to the type of population , no need of parameter values and relatively less mathematical details are involved.
  • 7. Chi square distribution •If 𝑥1 , 𝑥2 …. Are independent normal variates and each is distributed normally with a mean zero and SD as unity , then X12+X22+…….Xn2 = ∑Xi2 is distributed as chi-square with n degrees of freedom when n is large. The chi-square curve for df N=1,5 and 9 is as follows • if DF >2: distribution is bell shaped •if DF =2: distribution is L shaped with maximum ordinate 0 •if DF >2: distribution is L shaped with infinite ordinate at the origin
  • 8. APPLICATIONS •Goodness of fit of distributions •Test of independence attributes •Test of homogeneity
  • 9. TEST OF GOODNESS OF FIT •This test enables us to see how well does the assumed theoretical distribution ( such as binomial or normal distribution) fit to the observed data. •Formula 𝑥2 = 𝑜−𝑒 2 𝑒 •Where o= observed frequency and e=expected frequency •If 𝑥2caluculated is > than table value then null hypothesis is rejected
  • 10. TEST OF independence of attributes •Test enables us to explain whether or not two attributes are associated. •For instance, we may be interested in knowing whether a new medicine is effective in controlling fever or not, 𝑥2 test is useful. •In such situation we proceed with the null hypothesis that the 2 attributes ( new medicine and control of fever) are independent which means the new medicine is not effective in controlling fever. •The calculated value is greater than table value at a certain level of significance for a given df the H0 is rejected and viceversa. •When H0 is rejected it can be concluded that there is a significant association between 2 attributes.
  • 11. TEST OF HOMOGENITY •This test can also be used to test whether the occurance of events follow uniformity or not • Ex: admission of patients in govt hospital in all days of week is uniform or not • Chisquare less than tabulated value then null hypothesis is accepted , and it can be concluded that there is a uniformity in the occurance of the events ( uniformity of patients getting admitted throughout the week)
  • 12. calculation • 𝑥2 = 𝑜−𝑒 2 𝑒 • Where o= observed frequency and e=expected frequency • If 𝑥2 calculated is > than table value then null hypothesis is rejected •If two distributions are exactly alike chisquare is zero which is mostly due to sampling error. • generally it is not equal to zero
  • 13. Steps in calculation 1. Calculate the expected frequencies and the observed frequencies 2. Expected frequencies: the cell frequencies that would be expected in a contingency table if the two variables were statistically independent. 3. OBSERVED FREQUENCIES: the cell frequencies actually observed in a contingency table. 𝑓𝑒= (column total)(row total) N To obtain the expected value for nay cell in any cross tabulation in which the 2 variables are assumed independent , multiply the row and column totals for that cell and divide the product by the total number of cases in the table.
  • 14. CONDITIONS FOR APPLICATION 1. The data must be in the form of frequencies 2. The frequency data must have a precise numerical value and must be organized into categories or groups 3. Observations recorded and used are collected on a random basis. 4. All the items in the samples must be independent. 5. No group should contain very few items, say less than 10. in case where the frequencies are less than 10, regrouping is done by combining the frequencies of adjoining groups so that the new frequencies become greater than 10. 6. The overall number of items must be reasonably high . It should be generally be at least 50.
  • 15. Yates correction If the 2x2 contingency table , the expected frequencies are small say less than 5 , the chi-square test cant be used . In that case the direct formula of the test cant be used . So we can use yates correction formula.
  • 16. LIMITATIONS ◦ The data is from a random sample ◦ This test is applied in four fold table , will not give a reliable result with one degree of freedom if the expected value in any cell is less than 5. in such case yates correction is necessary. ◦ Even if yates correction, the test may be misleading if any expected frequency is much below than 5. in that case another appropriate test should be applied ◦ In contingency tables larger than 2X2. yates correction cannot be applied. ◦ Interpret this test with caution if sample total or total of values in all cells is less than 50.
  • 17. Problem-1 ◦ In an antimalarial camp ,in a certain area chloroquine was administered to 812 people out of the population of 3248. The number of fever cases shown are: TREATMENT FEVER NO FEVER CHLOROQUIN 20 792 NO CHLOROQUIN 220 2216
  • 18. Problem-1 ◦ 1. Formulate the null and alternate hypothesis ◦ H0: chloroquine is not effective against malaria ◦ H1: chloroquine is effective against malaria ◦ 2. Make contingency table Treatment Fever No fever Total Chloroquin 20 792 812 No chloroquin 220 2216 2436 Total 240 3008 3248
  • 19. Problem-1 ◦ Find out the expected frequencies ◦ E=RTXCT/ Grand total E1=240X812/3248 =60 E2=240X2436/3248 = 180 E3=3008X812/3248 = 752 E4 = 3008 X 2436 / 3248 =2256
  • 20. Problem-1 o e O-e (O-e)2 (O-e)2/e 20 60 -40 1600 1600/60=26.6 220 180 +40 1600 1600/180=8.8 792 752 +40 1600 1600/752=2.12 2216 2256 -40 1600 1600/2256=0.7 38.39 Df=(2-1)(2-1)=1 At 5% level of significance with1 as df the table value of 𝑋2 is 3.84 which is less than the calculated value . Hence the hypothesis H0 is rejected and H1 is accepted.
  • 21. Problem-II ◦ The table shown is given the data during the epidemic of cholera. Check the effect of inoculation on cholera. TREATMENT ATTACKED NOT ATTACKED Inoculated 31 469 Not Inoculated 185 1315
  • 22. Problem-II ◦ 1. Formulate the null and alternate hypothesis ◦ H0: there will be no effect of inoculation in preventing the attack of cholera ◦ H1: there will be some effect of inoculation on cholera 2. Make contingency table TREATMENT ATTACKED NOT ATTACKED TOTAL Inoculated 31 469 500 Not Inoculated 185 1315 1500 Total 216 1784 2000
  • 23. Problem-II ◦ Find out the expected frequencies ◦ E=RTXCT/ Grand total E1=500X216/2000 =54 E2=216X1500 / 2000 = 162 E3=500X1784 / 2000= 446 E4 = 1500 X 1784 / 2000 =1338 TREATMENT ATTACKED NOT ATTACKED TOTAL Inoculated 31 469 500 Not Inoculated 185 1315 1500 Total 216 1784 2000
  • 24. Problem-II o e O-e (O-e)2 (O-e)2/e 31 54 -23 529 9.79 185 162 23 529 3.26 469 446 23 529 1.18 1315 1338 23 529 0.39 14.62 Df=(2-1)(2-1)=1 At 5% level of significance with1 as df the table value of 𝑋2 is 3.84 which is less than the calculated value . Hence the hypothesis H0 is rejected and H1 is accepted.