SlideShare a Scribd company logo
1 of 60
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 (20)

Sampling and statistical inference
Sampling and statistical inferenceSampling and statistical inference
Sampling and statistical inference
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Normal and standard normal distribution
Normal and standard normal distributionNormal and standard normal distribution
Normal and standard normal distribution
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
statistic
statisticstatistic
statistic
 
Probability And Probability Distributions
Probability And Probability Distributions Probability And Probability Distributions
Probability And Probability Distributions
 
Chi square
Chi square Chi square
Chi square
 
The Chi Square Test
The Chi Square TestThe Chi Square Test
The Chi Square Test
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Chi square Test Using SPSS
Chi square Test Using SPSSChi square Test Using SPSS
Chi square Test Using SPSS
 
Goodness Of Fit Test
Goodness Of Fit TestGoodness Of Fit Test
Goodness Of Fit Test
 
Statistics2x2'x2'yates 'x'2
Statistics2x2'x2'yates 'x'2Statistics2x2'x2'yates 'x'2
Statistics2x2'x2'yates 'x'2
 
t-TEst. :D
t-TEst. :Dt-TEst. :D
t-TEst. :D
 
Probability concept and Probability distribution
Probability concept and Probability distributionProbability concept and Probability distribution
Probability concept and Probability distribution
 
Hypothesis and Hypothesis Testing
Hypothesis and Hypothesis TestingHypothesis and Hypothesis Testing
Hypothesis and Hypothesis Testing
 

Viewers also liked (14)

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
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
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.pptxZayYa9
 
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_testRione Drevale
 
descriptive statistics.pptx
descriptive statistics.pptxdescriptive statistics.pptx
descriptive statistics.pptxTeddyteddy53
 
Chisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatisticsChisquare Test of Association.pdf in biostatistics
Chisquare Test of Association.pdf in biostatisticsmuhammadahmad00495
 
Chi square test evidence based dentistry
Chi square test evidence based dentistryChi square test evidence based dentistry
Chi square test evidence based dentistryPiyushJain163909
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxrathorebhagwan07
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarAzmi Mohd Tamil
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptBAGARAGAZAROMUALD2
 
Chi square test final
Chi square test finalChi square test final
Chi square test finalHar Jindal
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignmentBrian 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 TaxilaMuhammad Warraich
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisMichael770443
 

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
 
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, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
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
 
Chisquare
ChisquareChisquare
Chisquare
 
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
 
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
 
Ch01 03
Ch01 03Ch01 03
Ch01 03
 

Recently uploaded

(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...indiancallgirl4rent
 
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...narwatsonia7
 
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoybabeytanya
 
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.MiadAlsulami
 
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableVip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableNehru place Escorts
 
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort ServicePremium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Servicevidya singh
 
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual Needs
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual NeedsBangalore Call Girl Whatsapp Number 100% Complete Your Sexual Needs
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual NeedsGfnyt
 
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...narwatsonia7
 
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service Kochi
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service KochiLow Rate Call Girls Kochi Anika 8250192130 Independent Escort Service Kochi
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service KochiSuhani Kapoor
 
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...astropune
 
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...narwatsonia7
 
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipur
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls JaipurCall Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipur
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipurparulsinha
 
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore EscortsCall Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escortsvidya singh
 
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...narwatsonia7
 
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls ServiceKesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Servicemakika9823
 
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...Arohi Goyal
 
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Deliverynehamumbai
 
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service CoimbatoreCall Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatorenarwatsonia7
 

Recently uploaded (20)

(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
 
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
 
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
 
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
Artifacts in Nuclear Medicine with Identifying and resolving artifacts.
 
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableVip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
 
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Darjeeling Just Call 9907093804 Top Class Call Girl Service Available
 
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort ServicePremium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
Premium Call Girls Cottonpet Whatsapp 7001035870 Independent Escort Service
 
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual Needs
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual NeedsBangalore Call Girl Whatsapp Number 100% Complete Your Sexual Needs
Bangalore Call Girl Whatsapp Number 100% Complete Your Sexual Needs
 
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...
Top Rated Bangalore Call Girls Richmond Circle ⟟ 8250192130 ⟟ Call Me For Gen...
 
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service Kochi
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service KochiLow Rate Call Girls Kochi Anika 8250192130 Independent Escort Service Kochi
Low Rate Call Girls Kochi Anika 8250192130 Independent Escort Service Kochi
 
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
Best Rate (Hyderabad) Call Girls Jahanuma ⟟ 8250192130 ⟟ High Class Call Girl...
 
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
 
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipur
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls JaipurCall Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipur
Call Girls Service Jaipur Grishma WhatsApp ❤8445551418 VIP Call Girls Jaipur
 
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore EscortsCall Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
 
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...
Top Rated Bangalore Call Girls Mg Road ⟟ 8250192130 ⟟ Call Me For Genuine Sex...
 
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls ServiceKesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
 
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...
All Time Service Available Call Girls Marine Drive 📳 9820252231 For 18+ VIP C...
 
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
 
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service CoimbatoreCall Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
 
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCREscort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
 

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.