SlideShare a Scribd company logo
CHI-SQUARE TEST
Presenter,
Dr.Syam Chandran.C
Dept of Shalakya Tantra
SDMCAH, Hassan
INTRODUCTION
•Karl Pearson(1880) introduced a test to
distinguish whether an observed set of
frequencies differs from a specified frequency
distribution
•A chi-square test, also referred to as chi-
squared test.
Karl Pearson
• “x” in Greek represents „chi‟ , square of this is „chi
square‟ or „ chi-squared test‟ .
• It is used to check the prevalence among the data.
• The chi-square test uses frequency data to generate
a statistical result
• Pearson's chi-squared test (χ2) is the best-known of
several chi-squared tests.
APPLICATION/UTILITY
• Chi square test is the test which tests
the significant difference between
expected value and observed value
which can be used for categorical data.
• OR, In simple words it is used to test
whether a significant difference exists
between the observed number of
samples and the expected number of
responses.
Parametric and Nonparametric Tests
• The term "non-parametric" refers to the fact that
the chi-square tests do not require assumptions
about population parameters nor do they test
hypotheses about population parameters.
• Some examples of hypothesis tests, such as the t
tests and ANOVA, are parametric tests and they
do include assumptions about parameters and
hypotheses about parameters.
6
Parametric and Nonparametric Tests
• The most obvious difference between the chi-
square tests and the other hypothesis tests we have
considered (t and ANOVA) is the nature of the
data.
• For chi-square, the data are frequencies rather
than numerical scores.
7
The Chi-Square Test for Goodness-of-Fit
• A statistical method used to determine goodness
of fit.
– Goodness of fit refers to how close the
observed data are to those predicted from a
hypothesis
Note:
– The chi square test does not prove that a
hypothesis is correct
• It evaluates to what extent the data and the
hypothesis have a good fit
8
The Chi-Square Test for Goodness-of-Fit
(cont.)
• The chi-square test for goodness-of-fit uses
frequency data from a sample to test hypotheses
about the shape or proportions of a population.
• Each individual in the sample is classified into one
category on the scale of measurement.
• The data, called observed frequencies, simply
count how many individuals from the sample are
in each category.
The Chi-Square Test for Goodness-of-Fit
(cont.)
• The null hypothesis specifies the proportion of the
population that should be in each category.
• The proportions from the null hypothesis are used
to compute expected frequencies that describe how
the sample would appear if it were in perfect
agreement with the null hypothesis.
10
Insight of chi-square Test
 Interpretation
 Rationale for the Chi-Square Test
 The Basics of a Chi-Square Test
 Types of Chi-Square Tests
 One dimensional example
 Two folded example
 Conclusion
INTERPRETATION
• If the difference of Observed value and
Expected value is zero or less, then there is no
significant difference. But, if the difference is
more then, there will be statistically
significant difference.
Rationale for the Chi-Square Test
• Various chi-square tests to deal with cases
involving frequency data
• Enumeration data
• Categorical data
• Qualitative data
• Contingency table
The Basics of A Chi-Square Test
• The chi-square test compares the observed
frequencies with the expected frequencies:
2
2 ( )O E
E


 
• Where
– O = observed data in each category
– E = expected data in each category based on the
experimenter’s hypothesis
– S = Sum of the calculations for each category
Chi Square Calculation
Each entry in the summation can be referred to as
“The observed minus the
expected, squared, divided by the expected”.
The chi square value for the test as a whole is
“The sum of the observed minus the
expected, squared, divided by the expected”
 




 

e
eo
F
FF 2
2 )(

Characteristics of the Chi-Square Distribution
1. It is not symmetric.
Characteristics of the Chi-Square Distribution
1. It is not symmetric.
2. The shape of the chi-square distribution
depends upon the degrees of freedom, just
like Student’s t-distribution.
Characteristics of the Chi-Square Distribution
1. It is not symmetric.
2. The shape of the chi-square distribution
depends upon the degrees of freedom, just
like Student’s t-distribution.
3. As the number of degrees of freedom
increases, the chi-square distribution
becomes more symmetric.
Characteristics of the Chi-Square Distribution
1. It is not symmetric.
2. The shape of the chi-square
distribution depends upon the degrees
of freedom, just like Student’s t-distribution.
3. As the number of degrees of freedom
increases, the chi-square distribution
becomes more symmetric.
4. The values are non-negative. That is, the
values of are greater than or equal to 0.
Example…
Expected Frequency
A
B
Observed Frequency
A
B
Are these
changes
statistically
significant?
The Basics of A Chi-Square Test
The chi-square value can occur easily by chance or
whether it is an unusual event that is unlikely to occur
by chance
The Basics of A Chi-Square Test
The Basics of A Chi-Square Test
Types of Chi-Square Test
Chi-square tests to determine the following:
• Whether the two variables are independent.
• Whether various subgroups are homogeneous.
• Whether there is a significant difference in the
proportions in the subclasses among the subgroups
Assumptions / Limitation in the
Use of Chi-Square
• Data is from a random sample.
• A sufficiently large sample size is required (at least
20)
• Observations must be independent.
• Actual count data (not percentages)
• Does not prove causality.
Determine Degrees of Freedom
df = k – 1
K = No : of categories
EXAMPLE
• In many families where the parents could have
produced children of all four blood groups, the total
number of children with each blood group was :
– Blood group A 26
– Blood group B 31
– Blood group AB 39
– Blood group O 24
– TOTAL 120
Cont…
Those numbers are the results observed and
have been put into the O column in this table
Cont.
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26
B 31
AB 39
O 24
2
2 ( )O E
E


 
Cont…
• Now we need to work out the expected results
• This is done by using the ratio that was described
before 1:1:1:1 ….
Cont…
• We just divide the total amount observed by 4.
120 / 4 = 30
• So we would expect to have 30 people of each
blood group…
Cont…
• Then we need to write that in the E column.
Cont…
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26 30
B 31 30
AB 39 30
O 24 30
2
2 ( )O E
E


 
Cont…
• Next we need to do O-E
Cont…
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26 30 26-30 = -4
B 31 30 31-30 = 1
AB 39 30 39-30 = 9
O 24 30 24-30 = -6
2
2 ( )O E
E


 
Cont…
• Then we square all the ( O – E) results…
Cont…
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26 30 26-30 = -4 - 42 = 16
B 31 30 31-30 = 1 12 = 1
AB 39 30 39-30 = 9 92= 81
O 24 30 24-30 = -6 -62 = 36
2
2 ( )O E
E


 
Cont…
Now, we divide all the ( O – E ) 2 results by E
Cont…
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26 30 26-30 = -4 - 42 = 16 16/30 = 0.53
B 31 30 31-30 = 1 12 = 1 1/30 = 0.03
AB 39 30 39-30 = 9 92= 81 81/30 = 2.7
O 24 30 24-30 = -6 -62 = 36 36/30 = 1.2
2
2 ( )O E
E


 
Cont…
• Finally , we add up the ( O – E)2 / E column…
Cont…
Blood
group
Observed
(o)
Expected
(E)
(O-E) (O-E)2 (O-E)2
E
A 26 30 26-30 = -4 - 42 = 16 16/30 = 0.53
B 31 30 31-30 = 1 12 = 1 1/30 = 0.03
AB 39 30 39-30 = 9 92= 81 81/30 = 2.7
O 24 30 24-30 = -6 -62 = 36 36/30 = 1.2
2
2 ( )O E
E


  4.46
Cont…
• So the result is 4.46
• Then we need to look up this result on
a probability table…
Cont…
• Before that we would have to work out
the degrees of freedom…
Cont…
• Which is always the amount of
possible phenotypes minus one.
So in this case 4 – 1 = 3
Cont…
• Then we find the 3 degrees of freedom row
and read along until we find the number
which is closest to our result…
• Finally we look which column this value is
in…
Cont…
• If its in the 0.05 (or 50 %) column or
any column less than this…
( meaning that the chi squared value is
bigger than the one in the 0.05 column)
• Then any differences are NOT due to
chance…
• Which means that something else is
affecting our results…
cont
So the null hypothesis is rejected…
cont
• But if its in a column above 0.05 (known as
the critical value)…
• (meaning that the chi squared value is
smaller than the one in the 0.05 column)
• Then any differences in our results are due to
chance…
Cont…
• And the null Hypothesis is accepted
• Remember that the critical value is
ALWAYS 0.05…
One-dimensional
• Suppose we want to flip 50 times a coin.
HEAD TAIL
EXPECTED 25 25
OBSERVED 28 22
HEAD TAIL
EXPECTED 25 25
OBSERVED 28 22
Cont…
25
)2528( 2

25
)2522( 2

+
25
9
+
25
18
= 72.0
25
9
• Degree of freedom
K – 1
2 – 1 = 1
Cont…
• In this case the critical value is 3.841
• We got a value 0.72 which is lower than
the critical value, so we accept null
hypothesis.
• If the value is more than the critical value
we got , then we reject the null hypothesis.
SOME AYURVEDIC JOURNALS
USING CHI SQUARE
• Allopathic vs. Ayurvedic practices in tertiary care
institutes of urban North India
(Indian Journal of Pharmacology, Vol. 39, No. 1,
January-February, 2007, pp. 52-54).
• Assessment of oligospermia with special reference to
rakta dusti.
(International research journal of Pharmacy 2012)
• Evaluation of efficacy of karshaneeya yavagu (An
Ayurvedic preparation) in the management of
Obesity.
(International Journal of Research in Ayurveda &
Pharmacy;Mar2012, Vol. 3 Issue 2, p295)
Conclusion
• Note that all we really can conclude is that our data
is different from the expected outcome given a
situation
– Regardless of the position of the frequencies
we’d have come up with the same result
– It is a non-directional test regardless of the
prediction.
Chi square test

More Related Content

What's hot

Chisquare
ChisquareChisquare
Chisquare
keerthi samuel
 
050 sampling theory
050 sampling theory050 sampling theory
050 sampling theory
Raj Teotia
 
Statistics and its application
Statistics and its applicationStatistics and its application
Statistics and its application
gopinathannsriramachandraeduin
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr Bushra Jabeen
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
RajaKrishnan M
 
SIGN TEST SLIDE.ppt
SIGN TEST SLIDE.pptSIGN TEST SLIDE.ppt
SIGN TEST SLIDE.ppt
SikoBikoAreru
 
Measures of central tendency
Measures of central tendency Measures of central tendency
Measures of central tendency
Jagdish Powar
 
Chi – square test
Chi – square testChi – square test
Chi – square test
Dr.M.Prasad Naidu
 
Randomized complete block_design_rcbd_
Randomized complete block_design_rcbd_Randomized complete block_design_rcbd_
Randomized complete block_design_rcbd_
Rione Drevale
 
Chi squared test
Chi squared testChi squared test
Chi squared test
Ramakanth Gadepalli
 
Statistics
StatisticsStatistics
Statistics
monaaboserea
 
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.
 
Hypothesis and Hypothesis Testing
Hypothesis and Hypothesis TestingHypothesis and Hypothesis Testing
Hypothesis and Hypothesis Testing
Naibin
 
Critical Value and The P Value
Critical Value and The P ValueCritical Value and The P Value
Critical Value and The P Value
Pharmacy Universe
 
Fishers test
Fishers testFishers test
Fishers test
Princy Francis M
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
Dr Athar Khan
 
Parametric tests
Parametric testsParametric tests
Parametric tests
Dr. Yash Panchal
 
quartile deviation: An introduction
quartile deviation: An introductionquartile deviation: An introduction
quartile deviation: An introduction
Dr Rajesh Verma
 

What's hot (20)

Chisquare
ChisquareChisquare
Chisquare
 
050 sampling theory
050 sampling theory050 sampling theory
050 sampling theory
 
Statistics and its application
Statistics and its applicationStatistics and its application
Statistics and its application
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
 
SIGN TEST SLIDE.ppt
SIGN TEST SLIDE.pptSIGN TEST SLIDE.ppt
SIGN TEST SLIDE.ppt
 
Measures of central tendency
Measures of central tendency Measures of central tendency
Measures of central tendency
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Randomized complete block_design_rcbd_
Randomized complete block_design_rcbd_Randomized complete block_design_rcbd_
Randomized complete block_design_rcbd_
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Statistics
StatisticsStatistics
Statistics
 
What is chi square test
What  is  chi square testWhat  is  chi square test
What is chi square test
 
Hypothesis and Hypothesis Testing
Hypothesis and Hypothesis TestingHypothesis and Hypothesis Testing
Hypothesis and Hypothesis Testing
 
Critical Value and The P Value
Critical Value and The P ValueCritical Value and The P Value
Critical Value and The P Value
 
The chi square_test
The chi square_testThe chi square_test
The chi square_test
 
Fishers test
Fishers testFishers test
Fishers test
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
quartile deviation: An introduction
quartile deviation: An introductionquartile deviation: An introduction
quartile deviation: An introduction
 
Measures of dispersion
Measures  of  dispersionMeasures  of  dispersion
Measures of dispersion
 

Viewers also liked

Diffusion ppt ak
Diffusion ppt akDiffusion ppt ak
Diffusion ppt ak
Atish khilari
 
Dissolution f1 and f2 Analysis and IVIVC
Dissolution f1 and f2 Analysis and IVIVCDissolution f1 and f2 Analysis and IVIVC
Dissolution f1 and f2 Analysis and IVIVC
Cipla Pharmaceuticals
 
Student's T-Test
Student's T-TestStudent's T-Test
Chi square test
Chi square testChi square test
Sales budget ,forcasting and control
Sales budget ,forcasting and controlSales budget ,forcasting and control
Sales budget ,forcasting and control
jack99
 
Student t-test
Student t-testStudent t-test
Student t-test
Steve Bishop
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
Shubhanshu Gupta
 
Pharmacokinetics ppt
Pharmacokinetics pptPharmacokinetics ppt
Pharmacokinetics ppt
NITISH SHAH
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
Sneh Kumari
 
Industrial relations
Industrial relations Industrial relations
Industrial relations Geeno George
 

Viewers also liked (13)

Pradip ppt
Pradip pptPradip ppt
Pradip ppt
 
Diffusion ppt ak
Diffusion ppt akDiffusion ppt ak
Diffusion ppt ak
 
Dissolution f1 and f2 Analysis and IVIVC
Dissolution f1 and f2 Analysis and IVIVCDissolution f1 and f2 Analysis and IVIVC
Dissolution f1 and f2 Analysis and IVIVC
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
Chi square test
Chi square testChi square test
Chi square test
 
Diffusion
DiffusionDiffusion
Diffusion
 
Sales budget ,forcasting and control
Sales budget ,forcasting and controlSales budget ,forcasting and control
Sales budget ,forcasting and control
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Pharmacokinetics ppt
Pharmacokinetics pptPharmacokinetics ppt
Pharmacokinetics ppt
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Chi square test
Chi square testChi square test
Chi square test
 
Industrial relations
Industrial relations Industrial relations
Industrial relations
 

Similar to Chi square test

Chi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptxChi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptx
ZayYa9
 
Chisquared test.pptx
Chisquared test.pptxChisquared test.pptx
Chisquared test.pptx
Krishna Krish Krish
 
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
 
Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
descriptive statistics.pptx
descriptive statistics.pptxdescriptive statistics.pptx
descriptive statistics.pptx
Teddyteddy53
 
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
 
Chi square test evidence based dentistry
Chi square test evidence based dentistryChi square test evidence based dentistry
Chi square test evidence based dentistry
PiyushJain163909
 
Chi square test
Chi square testChi square test
Chi square test
AmanRathore54
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
rathorebhagwan07
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
BAGARAGAZAROMUALD2
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
Har Jindal
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
SheetalSardhna
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignment
Brian Miles
 
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
 
Testing of Hypothesis.pdf
Testing of Hypothesis.pdfTesting of Hypothesis.pdf
Testing of Hypothesis.pdf
MuhammadFaizan389
 
Chi square
Chi squareChi square
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
Michael770443
 

Similar to Chi square test (20)

Chi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptxChi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptx
 
Chisquared test.pptx
Chisquared test.pptxChisquared test.pptx
Chisquared test.pptx
 
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
 
Chi square
Chi square Chi square
Chi square
 
descriptive statistics.pptx
descriptive statistics.pptxdescriptive statistics.pptx
descriptive statistics.pptx
 
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
 
Chi square test evidence based dentistry
Chi square test evidence based dentistryChi square test evidence based dentistry
Chi square test evidence based dentistry
 
Chi square test
Chi square testChi square test
Chi square test
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 
The Chi Square Test
The Chi Square TestThe Chi Square Test
The Chi Square Test
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignment
 
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
 
Testing of Hypothesis.pdf
Testing of Hypothesis.pdfTesting of Hypothesis.pdf
Testing of Hypothesis.pdf
 
Chi square
Chi squareChi square
Chi square
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 

Recently uploaded

Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdfAlcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
Dr Jeenal Mistry
 
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
 
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model SafeSurat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
Savita Shen $i11
 
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
 
Prix Galien International 2024 Forum Program
Prix Galien International 2024 Forum ProgramPrix Galien International 2024 Forum Program
Prix Galien International 2024 Forum Program
Levi Shapiro
 
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
 
Ophthalmology Clinical Tests for OSCE exam
Ophthalmology Clinical Tests for OSCE examOphthalmology Clinical Tests for OSCE exam
Ophthalmology Clinical Tests for OSCE exam
KafrELShiekh University
 
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
Savita Shen $i11
 
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
 
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in StockFactory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
rebeccabio
 
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptxTriangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Dr. Rabia Inam Gandapore
 
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptxMaxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
Dr. Rabia Inam Gandapore
 
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
 
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 Normal Electrocardiogram - Part I of II
The Normal Electrocardiogram - Part I of IIThe Normal Electrocardiogram - Part I of II
The Normal Electrocardiogram - Part I of II
MedicoseAcademics
 
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
 
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
 
POST OPERATIVE OLIGURIA and its management
POST OPERATIVE OLIGURIA and its managementPOST OPERATIVE OLIGURIA and its management
POST OPERATIVE OLIGURIA and its management
touseefaziz1
 
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdfBENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
DR SETH JOTHAM
 
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTSARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
Dr. Vinay Pareek
 

Recently uploaded (20)

Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdfAlcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
Alcohol_Dr. Jeenal Mistry MD Pharmacology.pdf
 
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
 
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model SafeSurat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
Surat @ℂall @Girls ꧁❤8527049040❤꧂@ℂall @Girls Service Vip Top Model Safe
 
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
 
Prix Galien International 2024 Forum Program
Prix Galien International 2024 Forum ProgramPrix Galien International 2024 Forum Program
Prix Galien International 2024 Forum Program
 
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
 
Ophthalmology Clinical Tests for OSCE exam
Ophthalmology Clinical Tests for OSCE examOphthalmology Clinical Tests for OSCE exam
Ophthalmology Clinical Tests for OSCE exam
 
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
Phone Us ❤85270-49040❤ #ℂall #gIRLS In Surat By Surat @ℂall @Girls Hotel With...
 
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
 
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in StockFactory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
Factory Supply Best Quality Pmk Oil CAS 28578–16–7 PMK Powder in Stock
 
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptxTriangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
 
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptxMaxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
Maxilla, Mandible & Hyoid Bone & Clinical Correlations by Dr. RIG.pptx
 
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?
 
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 Normal Electrocardiogram - Part I of II
The Normal Electrocardiogram - Part I of IIThe Normal Electrocardiogram - Part I of II
The Normal Electrocardiogram - Part I of II
 
Flu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore KarnatakaFlu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore Karnataka
 
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
 
POST OPERATIVE OLIGURIA and its management
POST OPERATIVE OLIGURIA and its managementPOST OPERATIVE OLIGURIA and its management
POST OPERATIVE OLIGURIA and its management
 
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdfBENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
BENIGN PROSTATIC HYPERPLASIA.BPH. BPHpdf
 
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTSARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
ARTHROLOGY PPT NCISM SYLLABUS AYURVEDA STUDENTS
 

Chi square test

  • 1.
  • 2. CHI-SQUARE TEST Presenter, Dr.Syam Chandran.C Dept of Shalakya Tantra SDMCAH, Hassan
  • 3. INTRODUCTION •Karl Pearson(1880) introduced a test to distinguish whether an observed set of frequencies differs from a specified frequency distribution •A chi-square test, also referred to as chi- squared test. Karl Pearson
  • 4. • “x” in Greek represents „chi‟ , square of this is „chi square‟ or „ chi-squared test‟ . • It is used to check the prevalence among the data. • The chi-square test uses frequency data to generate a statistical result • Pearson's chi-squared test (χ2) is the best-known of several chi-squared tests.
  • 5. APPLICATION/UTILITY • Chi square test is the test which tests the significant difference between expected value and observed value which can be used for categorical data. • OR, In simple words it is used to test whether a significant difference exists between the observed number of samples and the expected number of responses.
  • 6. Parametric and Nonparametric Tests • The term "non-parametric" refers to the fact that the chi-square tests do not require assumptions about population parameters nor do they test hypotheses about population parameters. • Some examples of hypothesis tests, such as the t tests and ANOVA, are parametric tests and they do include assumptions about parameters and hypotheses about parameters. 6
  • 7. Parametric and Nonparametric Tests • The most obvious difference between the chi- square tests and the other hypothesis tests we have considered (t and ANOVA) is the nature of the data. • For chi-square, the data are frequencies rather than numerical scores. 7
  • 8. The Chi-Square Test for Goodness-of-Fit • A statistical method used to determine goodness of fit. – Goodness of fit refers to how close the observed data are to those predicted from a hypothesis Note: – The chi square test does not prove that a hypothesis is correct • It evaluates to what extent the data and the hypothesis have a good fit 8
  • 9. The Chi-Square Test for Goodness-of-Fit (cont.) • The chi-square test for goodness-of-fit uses frequency data from a sample to test hypotheses about the shape or proportions of a population. • Each individual in the sample is classified into one category on the scale of measurement. • The data, called observed frequencies, simply count how many individuals from the sample are in each category.
  • 10. The Chi-Square Test for Goodness-of-Fit (cont.) • The null hypothesis specifies the proportion of the population that should be in each category. • The proportions from the null hypothesis are used to compute expected frequencies that describe how the sample would appear if it were in perfect agreement with the null hypothesis. 10
  • 11. Insight of chi-square Test  Interpretation  Rationale for the Chi-Square Test  The Basics of a Chi-Square Test  Types of Chi-Square Tests  One dimensional example  Two folded example  Conclusion
  • 12. INTERPRETATION • If the difference of Observed value and Expected value is zero or less, then there is no significant difference. But, if the difference is more then, there will be statistically significant difference.
  • 13. Rationale for the Chi-Square Test • Various chi-square tests to deal with cases involving frequency data • Enumeration data • Categorical data • Qualitative data • Contingency table
  • 14. The Basics of A Chi-Square Test • The chi-square test compares the observed frequencies with the expected frequencies: 2 2 ( )O E E     • Where – O = observed data in each category – E = expected data in each category based on the experimenter’s hypothesis – S = Sum of the calculations for each category
  • 15. Chi Square Calculation Each entry in the summation can be referred to as “The observed minus the expected, squared, divided by the expected”. The chi square value for the test as a whole is “The sum of the observed minus the expected, squared, divided by the expected”
  • 17. Characteristics of the Chi-Square Distribution 1. It is not symmetric.
  • 18. Characteristics of the Chi-Square Distribution 1. It is not symmetric. 2. The shape of the chi-square distribution depends upon the degrees of freedom, just like Student’s t-distribution.
  • 19. Characteristics of the Chi-Square Distribution 1. It is not symmetric. 2. The shape of the chi-square distribution depends upon the degrees of freedom, just like Student’s t-distribution. 3. As the number of degrees of freedom increases, the chi-square distribution becomes more symmetric.
  • 20. Characteristics of the Chi-Square Distribution 1. It is not symmetric. 2. The shape of the chi-square distribution depends upon the degrees of freedom, just like Student’s t-distribution. 3. As the number of degrees of freedom increases, the chi-square distribution becomes more symmetric. 4. The values are non-negative. That is, the values of are greater than or equal to 0.
  • 21. Example… Expected Frequency A B Observed Frequency A B Are these changes statistically significant?
  • 22. The Basics of A Chi-Square Test The chi-square value can occur easily by chance or whether it is an unusual event that is unlikely to occur by chance
  • 23. The Basics of A Chi-Square Test
  • 24. The Basics of A Chi-Square Test
  • 25. Types of Chi-Square Test Chi-square tests to determine the following: • Whether the two variables are independent. • Whether various subgroups are homogeneous. • Whether there is a significant difference in the proportions in the subclasses among the subgroups
  • 26. Assumptions / Limitation in the Use of Chi-Square • Data is from a random sample. • A sufficiently large sample size is required (at least 20) • Observations must be independent. • Actual count data (not percentages) • Does not prove causality.
  • 27. Determine Degrees of Freedom df = k – 1 K = No : of categories
  • 28. EXAMPLE • In many families where the parents could have produced children of all four blood groups, the total number of children with each blood group was : – Blood group A 26 – Blood group B 31 – Blood group AB 39 – Blood group O 24 – TOTAL 120
  • 29. Cont… Those numbers are the results observed and have been put into the O column in this table
  • 30. Cont. Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 B 31 AB 39 O 24 2 2 ( )O E E    
  • 31. Cont… • Now we need to work out the expected results • This is done by using the ratio that was described before 1:1:1:1 ….
  • 32. Cont… • We just divide the total amount observed by 4. 120 / 4 = 30 • So we would expect to have 30 people of each blood group…
  • 33. Cont… • Then we need to write that in the E column.
  • 34. Cont… Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 30 B 31 30 AB 39 30 O 24 30 2 2 ( )O E E    
  • 35. Cont… • Next we need to do O-E
  • 36. Cont… Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 30 26-30 = -4 B 31 30 31-30 = 1 AB 39 30 39-30 = 9 O 24 30 24-30 = -6 2 2 ( )O E E    
  • 37. Cont… • Then we square all the ( O – E) results…
  • 38. Cont… Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 30 26-30 = -4 - 42 = 16 B 31 30 31-30 = 1 12 = 1 AB 39 30 39-30 = 9 92= 81 O 24 30 24-30 = -6 -62 = 36 2 2 ( )O E E    
  • 39. Cont… Now, we divide all the ( O – E ) 2 results by E
  • 40. Cont… Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 30 26-30 = -4 - 42 = 16 16/30 = 0.53 B 31 30 31-30 = 1 12 = 1 1/30 = 0.03 AB 39 30 39-30 = 9 92= 81 81/30 = 2.7 O 24 30 24-30 = -6 -62 = 36 36/30 = 1.2 2 2 ( )O E E    
  • 41. Cont… • Finally , we add up the ( O – E)2 / E column…
  • 42. Cont… Blood group Observed (o) Expected (E) (O-E) (O-E)2 (O-E)2 E A 26 30 26-30 = -4 - 42 = 16 16/30 = 0.53 B 31 30 31-30 = 1 12 = 1 1/30 = 0.03 AB 39 30 39-30 = 9 92= 81 81/30 = 2.7 O 24 30 24-30 = -6 -62 = 36 36/30 = 1.2 2 2 ( )O E E     4.46
  • 43. Cont… • So the result is 4.46 • Then we need to look up this result on a probability table…
  • 44.
  • 45. Cont… • Before that we would have to work out the degrees of freedom…
  • 46. Cont… • Which is always the amount of possible phenotypes minus one. So in this case 4 – 1 = 3
  • 47. Cont… • Then we find the 3 degrees of freedom row and read along until we find the number which is closest to our result… • Finally we look which column this value is in…
  • 48. Cont… • If its in the 0.05 (or 50 %) column or any column less than this… ( meaning that the chi squared value is bigger than the one in the 0.05 column) • Then any differences are NOT due to chance… • Which means that something else is affecting our results…
  • 49. cont So the null hypothesis is rejected…
  • 50. cont • But if its in a column above 0.05 (known as the critical value)… • (meaning that the chi squared value is smaller than the one in the 0.05 column) • Then any differences in our results are due to chance…
  • 51. Cont… • And the null Hypothesis is accepted • Remember that the critical value is ALWAYS 0.05…
  • 52. One-dimensional • Suppose we want to flip 50 times a coin. HEAD TAIL EXPECTED 25 25 OBSERVED 28 22
  • 53. HEAD TAIL EXPECTED 25 25 OBSERVED 28 22
  • 55. • Degree of freedom K – 1 2 – 1 = 1
  • 56.
  • 57. Cont… • In this case the critical value is 3.841 • We got a value 0.72 which is lower than the critical value, so we accept null hypothesis. • If the value is more than the critical value we got , then we reject the null hypothesis.
  • 58. SOME AYURVEDIC JOURNALS USING CHI SQUARE • Allopathic vs. Ayurvedic practices in tertiary care institutes of urban North India (Indian Journal of Pharmacology, Vol. 39, No. 1, January-February, 2007, pp. 52-54). • Assessment of oligospermia with special reference to rakta dusti. (International research journal of Pharmacy 2012) • Evaluation of efficacy of karshaneeya yavagu (An Ayurvedic preparation) in the management of Obesity. (International Journal of Research in Ayurveda & Pharmacy;Mar2012, Vol. 3 Issue 2, p295)
  • 59. Conclusion • Note that all we really can conclude is that our data is different from the expected outcome given a situation – Regardless of the position of the frequencies we’d have come up with the same result – It is a non-directional test regardless of the prediction.

Editor's Notes

  1. A portmanteau test is a type of statistical hypothesis test in which the null hypothesis is well specified, but the alternative hypothesis is more loosely specified. Tests constructed in this context can have the property of being at least moderately powerful against a wide range of departures from the null hypothesis. Thus, in applied statistics, a portmanteau test provides a reasonable way of proceeding as a general check of a model's match to a dataset where there are many different ways in which the model may depart from the underlying data generating process. Use of such tests avoids having to be very specific about the particular type of departure being tested.
  2. The percentage of various drugs used in both the hospitals was compared using Chi-square test. P -value < 0.001 was considered statistically significant.