SlideShare uma empresa Scribd logo
1 de 16
Title-Chi-square test
Subject- Zoology
Guided by –Dr. Maya Shedpure
Presented by- Chandrakala Darro
Class-Msc. 2nd sem
Session-2022-23
Introduction
Definition
Degree of Freedom
The contingency table
Types of test
Goodness of fit test
Null and alternate hypothesis
Characteristics of chi-square test
Application of chi-square test
Determination of chi-square test with example
Conclusion
Reference
The Chi-square test is one of the most commonly used non-
parametric test, in which the sampling distribution of the test
statistic is a Chi-square distribution, when the null hypothesis is
true.
Chi-square test is a useful measure of comparing
experimentally obtained result with those expected theoretically
and based on the hypothesis.
It can be applied when there are few or no assumption about
the population parameter.
It can be applied on categorical data or qualitative data using a
contingency table.
A Chi-square statistic is a test that measures how
expectations compare to actual observed to actual
observed data.
Null Hypothesis -Observed=Expected
Alternate Hypothesis- Observed is not equal to Expected
It was first of all used by Karl Pearson in the year 1900.
It is denoted by the Greek sign χ2.
Following is the formula-
It is a mathematical expression, representing the ration between
experimentally obtained result(O) & the theoretically expected
result(E) based on certain hypothesis. It uses data in the form of
frequencies (i.e., the number of occurrence of an event).
Chi-square is calculated by dividing the square of the overall deviation
in the observed and expected frequencies by the expected frequency.
In test, while the comparing the calculated value of with the table
value, we have to calculated the degree of freedom. The degree of
freedom is calculated from the number of classes.
Therefore, the number of degrees of freedom in a test is equal to the
number of classes/categories minus one.
If there are two classes , three classes, & for classes, the degree of
freedom would be 2-1, 3-1, & 4-1, respectively. In a contingency table,
the degree of freedom is calculated in a different manner:
 where r = number of row in table,
c = number of column in a table.
d.f. = (r-1)(c-1)
The term CONTINGENCYTABLE was first used by Karl Pearson.
A contingency table is a type in a matrix format that displays the
frequency distribution of the variables.
They are heavily used in survey research, business intelligence,
engineering & scientific research. They provide a basic picture of the
interrelation between two variables and can help find interactions
between them.
The value depends on the number of classes or in on the number of
degrees of freedom & the critical level of probability.
2-2 table when there are only two sample, each divided into classes &
a 2-2 contingency table is prepared. It is also known as Four fold or Four
cell table.
Column 1 Column 2 Row total
Row 1 + + RT 1
Row 2 + + RT2
Column total CT 1 CT 2
Degree of freedom=
(r-1)(c-1)
=(2-1)(2-1)
=1.1
=1
Chi-square performs two types of test-
1) Goodness of FitTest (single C variables)
2) The test of independence (between multiple C
variables)
The goodness of fit test is a statistical hypothesis test to see how well
sample data fit a distribution from a population with a normal distribution.
 EXAMPLE-
We sample and collected data and its comes out below ratio:
Observed Expected (Observed-
Expected)
(Observed-
Expected)2
(Observed-
Expected)2
/E
MALE 13 10 3 9 0.9
FEMALE 7 10 -3 9 0.9
Null Hypothesis: ratio of 50-50 exists in office
Alternate Hypothesis in office: ratio of 50:50 is not there.
Males employees<Females employees
 Probability of 50:50
Males employees>Female employees
oDegree of freedom in our example => Number of classes/categories – 1
=> 2 – 1 =1
oCalculatedChi-square value = 1.8
oCritical value from the chart = 3.8
oIf calculated Chi-square value </= the value of chart . We can not reject
the null hypothesis.
oNull hypothesis – Observed = Expected
oAlternate hypothesis – Observed is not equal to Expected
The Chi- square distribution has some important characteristics-
i. This test is based on frequencies, whereas, theoretical distribution the
test is based on mean and standard deviation.
ii. The other distribution can be used for testing the significance of the
difference between a single expected value and observed proportion.
However this test can be used for testing difference between the
entire set of the Expected and the Observed frequencies
iii. A new chi- square distribution is formed for every increase in is the
number of Degree of Freedom.
iv. This rest is applied for testing the hypothesis but is not useful for
estimation.
The Chi-square test is applicable for varied problems in agriculture,
biology and medical science-
A. To test the goodness of fit.
B. To test the independence of attributes.
C. To test the homogeneity of independent estimates of the
population variance.
D. To test the detection of linkage.
Example-Two varieties of snapdragon, one with red flower and other with white
flower crossed.The result obtained in F2 generation are: 22 red, 52 pink, and 23
white flower plants. Now it is desired to ascertain these figures shows that
segregation occurs in the simple Mendelian ratio of 1:2:1.
Solution-
Null hypothesis-H0: The genes carrying red colour and white colour
characters are segregating in simple Mendelian ratio of 1:2:1.
Expected frequencies-
Red = ¼ . 97=24.25
Pink = 2/4 . 97=48.50
White = ¼ . 97= 24.25
= 5.06/24.25 + 12.25/48.50
+ 1.56/24.25
= 0.21+0.25+0.06
= 0.53 Ans.
Red Pink White Total
Observed
frequency(O)
22 52 23 97
Expected
frequency(E)
24.25 48.50 24.25 97
Deviation(O-E) -2.25 3.50 -1.25
The calculated Chi square value( 0.53) is less than the tabulated chi-
square value ( 5.99 ) at 5% level of probability for 2 d.f. . The hypothesis
is, in agreement with the recorded facts.
I. Notes provided by subject teacher Mrs. Maya Shedpure.
II. Khan and Khanum, Fundamentals of Biostatistics.
III. Search engine( Google,YouTube, websites )

Mais conteúdo relacionado

Semelhante a Chi-square test.pptx

6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf
MitikuTeka1
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
rathorebhagwan07
 
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docxWeek 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
cockekeshia
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011
Lauren Crosby
 

Semelhante a Chi-square test.pptx (20)

Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf
 
chi-squaretest-170826142554.ppt
chi-squaretest-170826142554.pptchi-squaretest-170826142554.ppt
chi-squaretest-170826142554.ppt
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2
 
Non Parametric Test by Vikramjit Singh
Non Parametric Test by  Vikramjit SinghNon Parametric Test by  Vikramjit Singh
Non Parametric Test by Vikramjit Singh
 
The chi square test of indep of categorical variables
The chi square test of indep of categorical variablesThe chi square test of indep of categorical variables
The chi square test of indep of categorical variables
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & group
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi2 Anova
Chi2 AnovaChi2 Anova
Chi2 Anova
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
 
introduction CDA.pptx
introduction CDA.pptxintroduction CDA.pptx
introduction CDA.pptx
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
 
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docxWeek 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
Week 5 Lecture 14 The Chi Square TestQuite often, patterns of .docx
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
QNT 275 Exceptional Education - snaptutorial.com
QNT 275   Exceptional Education - snaptutorial.comQNT 275   Exceptional Education - snaptutorial.com
QNT 275 Exceptional Education - snaptutorial.com
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011
 
Chi square test
Chi square testChi square test
Chi square test
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 

Último

Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
Sérgio Sacani
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Sérgio Sacani
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
gindu3009
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
RohitNehra6
 

Último (20)

Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 

Chi-square test.pptx

  • 1. Title-Chi-square test Subject- Zoology Guided by –Dr. Maya Shedpure Presented by- Chandrakala Darro Class-Msc. 2nd sem Session-2022-23
  • 2. Introduction Definition Degree of Freedom The contingency table Types of test Goodness of fit test Null and alternate hypothesis Characteristics of chi-square test Application of chi-square test Determination of chi-square test with example Conclusion Reference
  • 3. The Chi-square test is one of the most commonly used non- parametric test, in which the sampling distribution of the test statistic is a Chi-square distribution, when the null hypothesis is true. Chi-square test is a useful measure of comparing experimentally obtained result with those expected theoretically and based on the hypothesis. It can be applied when there are few or no assumption about the population parameter. It can be applied on categorical data or qualitative data using a contingency table.
  • 4. A Chi-square statistic is a test that measures how expectations compare to actual observed to actual observed data. Null Hypothesis -Observed=Expected Alternate Hypothesis- Observed is not equal to Expected It was first of all used by Karl Pearson in the year 1900. It is denoted by the Greek sign χ2.
  • 5. Following is the formula- It is a mathematical expression, representing the ration between experimentally obtained result(O) & the theoretically expected result(E) based on certain hypothesis. It uses data in the form of frequencies (i.e., the number of occurrence of an event). Chi-square is calculated by dividing the square of the overall deviation in the observed and expected frequencies by the expected frequency.
  • 6. In test, while the comparing the calculated value of with the table value, we have to calculated the degree of freedom. The degree of freedom is calculated from the number of classes. Therefore, the number of degrees of freedom in a test is equal to the number of classes/categories minus one. If there are two classes , three classes, & for classes, the degree of freedom would be 2-1, 3-1, & 4-1, respectively. In a contingency table, the degree of freedom is calculated in a different manner:  where r = number of row in table, c = number of column in a table. d.f. = (r-1)(c-1)
  • 7. The term CONTINGENCYTABLE was first used by Karl Pearson. A contingency table is a type in a matrix format that displays the frequency distribution of the variables. They are heavily used in survey research, business intelligence, engineering & scientific research. They provide a basic picture of the interrelation between two variables and can help find interactions between them. The value depends on the number of classes or in on the number of degrees of freedom & the critical level of probability. 2-2 table when there are only two sample, each divided into classes & a 2-2 contingency table is prepared. It is also known as Four fold or Four cell table. Column 1 Column 2 Row total Row 1 + + RT 1 Row 2 + + RT2 Column total CT 1 CT 2 Degree of freedom= (r-1)(c-1) =(2-1)(2-1) =1.1 =1
  • 8. Chi-square performs two types of test- 1) Goodness of FitTest (single C variables) 2) The test of independence (between multiple C variables)
  • 9. The goodness of fit test is a statistical hypothesis test to see how well sample data fit a distribution from a population with a normal distribution.  EXAMPLE- We sample and collected data and its comes out below ratio: Observed Expected (Observed- Expected) (Observed- Expected)2 (Observed- Expected)2 /E MALE 13 10 3 9 0.9 FEMALE 7 10 -3 9 0.9
  • 10. Null Hypothesis: ratio of 50-50 exists in office Alternate Hypothesis in office: ratio of 50:50 is not there. Males employees<Females employees  Probability of 50:50 Males employees>Female employees
  • 11. oDegree of freedom in our example => Number of classes/categories – 1 => 2 – 1 =1 oCalculatedChi-square value = 1.8 oCritical value from the chart = 3.8 oIf calculated Chi-square value </= the value of chart . We can not reject the null hypothesis. oNull hypothesis – Observed = Expected oAlternate hypothesis – Observed is not equal to Expected
  • 12. The Chi- square distribution has some important characteristics- i. This test is based on frequencies, whereas, theoretical distribution the test is based on mean and standard deviation. ii. The other distribution can be used for testing the significance of the difference between a single expected value and observed proportion. However this test can be used for testing difference between the entire set of the Expected and the Observed frequencies iii. A new chi- square distribution is formed for every increase in is the number of Degree of Freedom. iv. This rest is applied for testing the hypothesis but is not useful for estimation.
  • 13. The Chi-square test is applicable for varied problems in agriculture, biology and medical science- A. To test the goodness of fit. B. To test the independence of attributes. C. To test the homogeneity of independent estimates of the population variance. D. To test the detection of linkage.
  • 14. Example-Two varieties of snapdragon, one with red flower and other with white flower crossed.The result obtained in F2 generation are: 22 red, 52 pink, and 23 white flower plants. Now it is desired to ascertain these figures shows that segregation occurs in the simple Mendelian ratio of 1:2:1. Solution- Null hypothesis-H0: The genes carrying red colour and white colour characters are segregating in simple Mendelian ratio of 1:2:1. Expected frequencies- Red = ¼ . 97=24.25 Pink = 2/4 . 97=48.50 White = ¼ . 97= 24.25 = 5.06/24.25 + 12.25/48.50 + 1.56/24.25 = 0.21+0.25+0.06 = 0.53 Ans. Red Pink White Total Observed frequency(O) 22 52 23 97 Expected frequency(E) 24.25 48.50 24.25 97 Deviation(O-E) -2.25 3.50 -1.25
  • 15. The calculated Chi square value( 0.53) is less than the tabulated chi- square value ( 5.99 ) at 5% level of probability for 2 d.f. . The hypothesis is, in agreement with the recorded facts.
  • 16. I. Notes provided by subject teacher Mrs. Maya Shedpure. II. Khan and Khanum, Fundamentals of Biostatistics. III. Search engine( Google,YouTube, websites )