SlideShare a Scribd company logo
1 of 23
Presented by:
Mayank Singhal
(Management Trainee at GLBIMR)
122-11-2016
Chi-Square Test
Karl Pearson introduced a test
to distinguish whether an
observed set of frequencies
differs from a specified frequency
distribution
The chi-square test uses
frequency data to generate a
statistic
Karl Pearson
222-11-2016
• A chi-square test is a statistical test
commonly used for testing independence
and goodness of fit.
• Testing independence determines whether
two or more observations across two
populations are dependent on each other
(that is, whether one variable helps to
estimate the other).
• Testing for goodness of fit determines if an
observed frequency distribution matches a
theoretical frequency distribution. 322-11-2016
Chi-Square Test
Testing
Independence
Test for Goodness
of Fit
Test for
comparing
variance
Non-ParametricParametric
422-11-2016
Conditions for the application of 2 test
Observations recorded and collected are
collected on random basis.
All items in the sample must be independent.
No group should contain very few items, say less
than 10. Some statisticians take this number as 5.
But 10 is regarded as better by most statisticians.
Total number of items should be large, say at
least 50.
522-11-2016
1. Test for comparing variance
2 =
622-11-2016
Chi- Square Test as a Non-Parametric Test
Test of Goodness of Fit.
Test of Independence.
 




 

E
EO 2
2 )(

722-11-2016
 




 

E
EO 2
2 )(

822-11-2016
2. As a Test of Goodness of Fit
It enables us to see how well does the
assumed theoretical distribution(such as
Binomial distribution, Poisson distribution or
Normal distribution) fit to the observed data.
When the calculated value of χ2 is less than the
table value at certain level of significance, the fit
is considered to be good one and if the
calculated value is greater than the table value,
the fit is not considered to be good.
922-11-2016
Example
As personnel director, you want
to test the perception of fairness
of three methods of performance
evaluation. Of 180 employees,
63 rated Method 1 as fair, 45
rated Method 2 as fair, 72 rated
Method 3 as fair. At the 0.05
level of significance, is there a
difference in perceptions?
1022-11-2016
Solution
11
Observed
frequency
Expected
frequency
(O-E) (O-E)2 (O-E)2
E
63 60 3 9 0.15
45 60 -15 225 3.75
72 60 12 144 2.4
6.3
22-11-2016
Test Statistic:
Decision:
Conclusion:
At least 1 proportion is different
2 = 6.3
Reject H0 at sign. level 0.05
12
• H0:
• H1:
•  =
• n1 = n2 = n3 =
• Critical Value(s):
20
Reject H0
p1 = p2 = p3 = 1/3
At least 1 is different
0.05
63 45 72
5.991
 = 0.05
22-11-2016
Critical values of 2
1322-11-2016
3.As a Test of Independence
χ2 test enables us to explain whether or not
two attributes are associated. Testing
independence determines whether two or more
observations across two populations are
dependent on each other (that is, whether one
variable helps to estimate the other. If the
calculated value is less than the table value at
certain level of significance for a given degree of
freedom, we conclude that null hypotheses stands
which means that two attributes are independent
or not associated. If calculated value is greater
than the table value, we reject the null
hypotheses. 1422-11-2016
Steps involved
Determine The Hypothesis:
Ho : The two variables are independent
Ha : The two variables are associated
Calculate Expected frequency
1522-11-2016
Calculate test statistic
 




 

E
EO 2
2 )(

Determine Degrees of Freedom
df = (R-1)(C-1)
1622-11-2016
Compare computed test statistic
against a tabled/critical value
The computed value of the Pearson chi- square
statistic is compared with the critical value to
determine if the computed value is improbable
The critical tabled values are based on sampling
distributions of the Pearson chi-square statistic.
If calculated 2 is greater than 2 table value, reject
Ho
1722-11-2016
2 Test of Independence
You’re a marketing research analyst. You ask a
random sample of 286 consumers if they purchase
Diet Pepsi or Diet Coke. At the 0.05 level of
significance, is there evidence of a relationship?
18
Diet Pepsi
Diet Coke No Yes Total
No 84 32 116
Yes 48 122 170
Total 132 154 286
22-11-2016
Diet Pepsi
No Yes
Diet Coke Obs. Exp. Obs. Exp. Total
No 84 53.5 32 62.5 116
Yes 48 78.5 122 91.5 170
Total 132 132 154 154 286
170·132
286
170·154
286
116·132
286
154·132
286
2 Test of Independence Solution
1922-11-2016
     
     
2
2
all cells
2 2 2
11 11 12 12 22 22
11 12 22
2 2 2
84 53.5 32 62.5 122 91.5
54.29
53.5 62.5 91.5
ij ij
ij
n E
E
n E n E n E
E E E

  
  
   
  
    

2 Test of Independence Solution*
2022-11-2016
21
•H0:
•H1:
•  =
•df =
•Critical Value(s):
Test Statistic:
Decision:
Conclusion:
2 = 54.29
Reject at sign. level 0 .05
20
Reject H0
No Relationship
Relationship
0.05
(2 - 1)(2 - 1) = 1
3.841
 = 0.05 There is evidence of a relationship
22-11-2016
22
Moral of the Story
Numbers don’t
think - People do!
22-11-2016
2322-11-2016

More Related Content

What's hot (18)

Chi square & related procedure
Chi square & related procedureChi square & related procedure
Chi square & related procedure
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A Presentation
 
Hypothesis and Test
Hypothesis and TestHypothesis and Test
Hypothesis and Test
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
Chi square test for homgeneity
Chi square test for homgeneityChi square test for homgeneity
Chi square test for homgeneity
 
Stat 130 chi-square goodnes-of-fit test
Stat 130   chi-square goodnes-of-fit testStat 130   chi-square goodnes-of-fit test
Stat 130 chi-square goodnes-of-fit test
 
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
 
Test of hypothesis test of significance
Test of hypothesis test of significanceTest of hypothesis test of significance
Test of hypothesis test of significance
 
Freq distribution
Freq distributionFreq distribution
Freq distribution
 
Test for proportion
Test for proportionTest for proportion
Test for proportion
 
Chi(ki) square test
Chi(ki) square testChi(ki) square test
Chi(ki) square test
 
Chi Squared Test
Chi Squared TestChi Squared Test
Chi Squared Test
 
Sign Test
Sign TestSign Test
Sign Test
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Linearity cochran test
Linearity cochran testLinearity cochran test
Linearity cochran test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Mc namer test of correlation
Mc namer test of correlationMc namer test of correlation
Mc namer test of correlation
 
Chi square test
Chi square testChi square test
Chi square test
 

Similar to CHI Square

Business Research Methods PPT - III
Business Research Methods PPT - IIIBusiness Research Methods PPT - III
Business Research Methods PPT - IIIRavinder Singh
 
A05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsA05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsLeanleaders.org
 
A05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsA05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsLeanleaders.org
 
TCI in general pracice - reliability (2006)
TCI in general pracice - reliability (2006)TCI in general pracice - reliability (2006)
TCI in general pracice - reliability (2006)Evangelos Kontopantelis
 
Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Beamsync
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantPRAJAKTASAWANT33
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statisticsAnchal Garg
 
Maryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newMaryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newmerlincarterr
 
Maryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newMaryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newuopassignment
 
Hypothesis testing - II.pptx
Hypothesis testing - II.pptxHypothesis testing - II.pptx
Hypothesis testing - II.pptxShashvatSingh12
 
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)Aamir Ijaz Brig
 
49697462-bman12.pptx
49697462-bman12.pptx49697462-bman12.pptx
49697462-bman12.pptxManoloTaquire
 
Topic 10 DATA ANALYSIS TECHNIQUES.pptx
Topic 10 DATA ANALYSIS TECHNIQUES.pptxTopic 10 DATA ANALYSIS TECHNIQUES.pptx
Topic 10 DATA ANALYSIS TECHNIQUES.pptxEdwinDagunot4
 
NON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxNON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxDrLasya
 
Statr session 21 and 22
Statr session 21 and 22Statr session 21 and 22
Statr session 21 and 22Ruru Chowdhury
 
Impact Evaluation: Balancing Rigor with Reality
Impact Evaluation: Balancing Rigor with RealityImpact Evaluation: Balancing Rigor with Reality
Impact Evaluation: Balancing Rigor with RealityDonna Smith-Moncrieffe
 
Meta Analysis in Agriculture by Aman Vasisht
Meta Analysis in Agriculture by Aman VasishtMeta Analysis in Agriculture by Aman Vasisht
Meta Analysis in Agriculture by Aman VasishtAman Vasisht
 

Similar to CHI Square (20)

Business Research Methods PPT - III
Business Research Methods PPT - IIIBusiness Research Methods PPT - III
Business Research Methods PPT - III
 
A05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsA05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat Tests
 
A05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat TestsA05 Continuous One Variable Stat Tests
A05 Continuous One Variable Stat Tests
 
TCI in general pracice - reliability (2006)
TCI in general pracice - reliability (2006)TCI in general pracice - reliability (2006)
TCI in general pracice - reliability (2006)
 
Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta Sawant
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Maryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newMaryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment new
 
Maryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment newMaryland psyc 355 spss cumulative assessment new
Maryland psyc 355 spss cumulative assessment new
 
Friedman's test
Friedman's testFriedman's test
Friedman's test
 
Hypothesis testing - II.pptx
Hypothesis testing - II.pptxHypothesis testing - II.pptx
Hypothesis testing - II.pptx
 
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)
Quality Control for Quantitative Tests by Prof Aamir Ijaz (Pakistan)
 
49697462-bman12.pptx
49697462-bman12.pptx49697462-bman12.pptx
49697462-bman12.pptx
 
Chi sqaure test
Chi sqaure testChi sqaure test
Chi sqaure test
 
Topic 10 DATA ANALYSIS TECHNIQUES.pptx
Topic 10 DATA ANALYSIS TECHNIQUES.pptxTopic 10 DATA ANALYSIS TECHNIQUES.pptx
Topic 10 DATA ANALYSIS TECHNIQUES.pptx
 
NON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxNON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptx
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Statr session 21 and 22
Statr session 21 and 22Statr session 21 and 22
Statr session 21 and 22
 
Impact Evaluation: Balancing Rigor with Reality
Impact Evaluation: Balancing Rigor with RealityImpact Evaluation: Balancing Rigor with Reality
Impact Evaluation: Balancing Rigor with Reality
 
Meta Analysis in Agriculture by Aman Vasisht
Meta Analysis in Agriculture by Aman VasishtMeta Analysis in Agriculture by Aman Vasisht
Meta Analysis in Agriculture by Aman Vasisht
 

CHI Square

  • 1. Presented by: Mayank Singhal (Management Trainee at GLBIMR) 122-11-2016
  • 2. Chi-Square Test Karl Pearson introduced a test to distinguish whether an observed set of frequencies differs from a specified frequency distribution The chi-square test uses frequency data to generate a statistic Karl Pearson 222-11-2016
  • 3. • A chi-square test is a statistical test commonly used for testing independence and goodness of fit. • Testing independence determines whether two or more observations across two populations are dependent on each other (that is, whether one variable helps to estimate the other). • Testing for goodness of fit determines if an observed frequency distribution matches a theoretical frequency distribution. 322-11-2016
  • 4. Chi-Square Test Testing Independence Test for Goodness of Fit Test for comparing variance Non-ParametricParametric 422-11-2016
  • 5. Conditions for the application of 2 test Observations recorded and collected are collected on random basis. All items in the sample must be independent. No group should contain very few items, say less than 10. Some statisticians take this number as 5. But 10 is regarded as better by most statisticians. Total number of items should be large, say at least 50. 522-11-2016
  • 6. 1. Test for comparing variance 2 = 622-11-2016
  • 7. Chi- Square Test as a Non-Parametric Test Test of Goodness of Fit. Test of Independence.          E EO 2 2 )(  722-11-2016
  • 9. 2. As a Test of Goodness of Fit It enables us to see how well does the assumed theoretical distribution(such as Binomial distribution, Poisson distribution or Normal distribution) fit to the observed data. When the calculated value of χ2 is less than the table value at certain level of significance, the fit is considered to be good one and if the calculated value is greater than the table value, the fit is not considered to be good. 922-11-2016
  • 10. Example As personnel director, you want to test the perception of fairness of three methods of performance evaluation. Of 180 employees, 63 rated Method 1 as fair, 45 rated Method 2 as fair, 72 rated Method 3 as fair. At the 0.05 level of significance, is there a difference in perceptions? 1022-11-2016
  • 11. Solution 11 Observed frequency Expected frequency (O-E) (O-E)2 (O-E)2 E 63 60 3 9 0.15 45 60 -15 225 3.75 72 60 12 144 2.4 6.3 22-11-2016
  • 12. Test Statistic: Decision: Conclusion: At least 1 proportion is different 2 = 6.3 Reject H0 at sign. level 0.05 12 • H0: • H1: •  = • n1 = n2 = n3 = • Critical Value(s): 20 Reject H0 p1 = p2 = p3 = 1/3 At least 1 is different 0.05 63 45 72 5.991  = 0.05 22-11-2016
  • 13. Critical values of 2 1322-11-2016
  • 14. 3.As a Test of Independence χ2 test enables us to explain whether or not two attributes are associated. Testing independence determines whether two or more observations across two populations are dependent on each other (that is, whether one variable helps to estimate the other. If the calculated value is less than the table value at certain level of significance for a given degree of freedom, we conclude that null hypotheses stands which means that two attributes are independent or not associated. If calculated value is greater than the table value, we reject the null hypotheses. 1422-11-2016
  • 15. Steps involved Determine The Hypothesis: Ho : The two variables are independent Ha : The two variables are associated Calculate Expected frequency 1522-11-2016
  • 16. Calculate test statistic          E EO 2 2 )(  Determine Degrees of Freedom df = (R-1)(C-1) 1622-11-2016
  • 17. Compare computed test statistic against a tabled/critical value The computed value of the Pearson chi- square statistic is compared with the critical value to determine if the computed value is improbable The critical tabled values are based on sampling distributions of the Pearson chi-square statistic. If calculated 2 is greater than 2 table value, reject Ho 1722-11-2016
  • 18. 2 Test of Independence You’re a marketing research analyst. You ask a random sample of 286 consumers if they purchase Diet Pepsi or Diet Coke. At the 0.05 level of significance, is there evidence of a relationship? 18 Diet Pepsi Diet Coke No Yes Total No 84 32 116 Yes 48 122 170 Total 132 154 286 22-11-2016
  • 19. Diet Pepsi No Yes Diet Coke Obs. Exp. Obs. Exp. Total No 84 53.5 32 62.5 116 Yes 48 78.5 122 91.5 170 Total 132 132 154 154 286 170·132 286 170·154 286 116·132 286 154·132 286 2 Test of Independence Solution 1922-11-2016
  • 20.             2 2 all cells 2 2 2 11 11 12 12 22 22 11 12 22 2 2 2 84 53.5 32 62.5 122 91.5 54.29 53.5 62.5 91.5 ij ij ij n E E n E n E n E E E E                     2 Test of Independence Solution* 2022-11-2016
  • 21. 21 •H0: •H1: •  = •df = •Critical Value(s): Test Statistic: Decision: Conclusion: 2 = 54.29 Reject at sign. level 0 .05 20 Reject H0 No Relationship Relationship 0.05 (2 - 1)(2 - 1) = 1 3.841  = 0.05 There is evidence of a relationship 22-11-2016
  • 22. 22 Moral of the Story Numbers don’t think - People do! 22-11-2016

Editor's Notes

  1. 10
  2. 12
  3. 11
  4. 44
  5. 45
  6. 12
  7. 47
  8. 51