SlideShare a Scribd company logo
1 of 12
NAME: NAYANIKA SENGUPTA
AFFILIATION: BANARAS HINDU
UNIVERSITY
APPLICATION NO. :2ddc6ae1e59611e9a85ed95f3e0d8b9f
CHI SQUARE
PARAMETRIC AND NON
PARAMETRIC STATISTICAL
TESTS
Parametric tests are the ones which specifies certain
conditions about the parameters of the population from
which the sample is taken.
Ex- t test, F ratio
Non parametric tests are the ones which do not specify
any conditions about the parameters of the population
from which the sample has been taken.
Ex Chi Square, Median Test, Kruskal Wallis etc.
CHI SQUARE
• IT INVOLVES NO ASSUMPTION REGARDING THE NORMALCY OF
DISTRIBUTION OR HOMOGENEITY OF VARIANCES.
• CHI SQUARE TESTS ARE USED FOR CATEGORICAL DATA.
• IT CAN BE USED TO ESTIMATE HOW CLOSELY THE DISTRIBUTION
OF A CATEGORICAL VARIABLE MATCHES AN EXPECTED
DISTRIBUTION ( THE GOODNESS-OF-FIT TEST)
• IT IS ALSO USED TO ESTIMATE WHETHER TWO CATEGORICAL
VARIABLES ARE INDEPENDENT OF ONE ANOTHER ( THE TEST OF
INDEPENDENCE)
GOODNESS-OF-FIT TEST
The χ² test formula for goodness of fit is :
χ² =
o − ⅇ 2
ⅇ
Where,
O = observed frequency
e = expected frequency
2 CONDITIONS WHEN NULL HYPOTHESIS IS
REJECTED.
When the probability value ( P value) is lesser than the
specified significance level.
When the χ² value is greater than the critical value of the
specified significance level.
GOODNESS-OF-FIT TEST
In the game rock-paper-scissors, Kenny expects to win, tie and lose
with equal frequency. He plays rock-paper-scissors often, but he
suspected his own game were not following that pattern, so he took a
random sample of 24 games and recorded the outcomes. Here are his
results:
He wants to use these results to carry out a χ² goodness-of-fit test to
determine if the distribution of his outcomes disagrees with an even
distribution.
Outcome Win Loss Tie
Games 4 13 7
HO: ALL OF THE OUTCOMES ARE OF EQUAL PROBABILITY
HA: ALL OF THE OUTCOMES ARE NOT OF EQUAL PROBABILITY
Χ² =
4−8 2
8
+
13−8 2
8
+
7−8 2
8
Χ² = 5.25
df = 2
Probability value = 0.05 < 𝑃 𝑣𝑎𝑙𝑢𝑒 < 0 ⋅ 10
Fails to reject the null hypothesis.
Outcome Win Loss Tie
Games 4 13 7
Expected 8 8 8
TAKING INTO CONSIDERATION
THE SIGNIFICANT DIFFERENCE
BETWEEN THE EXPECTED AND
OBSERVED OUTCOME.
Ho – There is no significant difference between the
expected and observed outcome.
Ha - There is significant difference between the
expected and observed outcome.
α - 0.05
χ² - 5.25 df = 2
At significance level of 0.05 with df of 2, the expected outcome is not
significantly different from the observed outcome. Therefore, the null
hypothesis holds.
TEST OF INDEPENDENCE
THE CHI-SQUARE TEST OF INDEPENDENCE IS USED TO DETERMINE IF THERE IS A
SIGNIFICANT RELATIONSHIP BETWEEN TWO NOMINAL (CATEGORICAL) VARIABLES.
Right foot
longer
Left foot
longer
Both feet
same
Total
Right hand
longer
11 3 8 22
Expected 5.5 5.5 11
Left hand
longer
2 9 14 25
Expected 6.25 6.25 12.5
Both hands
same
12 13 28 53
Expected 13.25 13.25 26.5
Total 25 25 50 100
• Ho = There is no association between hand and foot length.
• Ha = There is association between hand and foot length.
χ² =
11 − 5.5 2
5 ⋅ 5
+
3 − 5 ⋅ 5 2
5.5
+
8 − 11 2
11
+
2 − 6 ⋅ 25 2
6 ⋅ 25
+
9 − 6 ⋅ 25 2
6 ⋅ 25
+
14 − 12 ⋅ 5 2
12 ⋅ 5
+
12 − 13 ⋅ 25 2
13 ⋅ 25
+
13 − 13 ⋅ 25 2
13 ⋅ 25
+
28 − 26 ⋅ 5 2
26 ⋅ 5
= 11.942
df = 4
α - 0.05
There is significant difference between
expected and observed values of foot and hand length.
Thus, the null hypothesis is rejected and concluding that there is association
between hand and foot length.
ACKNOWLEDGEMENT
• Academic Writing Course (SWAYAM)

More Related Content

What's hot (20)

Chi(ki) square test
Chi(ki) square testChi(ki) square test
Chi(ki) square test
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Aron chpt 11 ed (2)
Aron chpt 11 ed (2)Aron chpt 11 ed (2)
Aron chpt 11 ed (2)
 
Chi square test
Chi square testChi square test
Chi square test
 
The Sign Test
The Sign TestThe Sign Test
The Sign Test
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square test
Chi square testChi square test
Chi square test
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Chi square Test
Chi square TestChi square Test
Chi square 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
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A Presentation
 
Chi square & related procedure
Chi square & related procedureChi square & related procedure
Chi square & related procedure
 
Chisquare Test
Chisquare Test Chisquare Test
Chisquare Test
 
Chi square analysis
Chi square analysisChi square analysis
Chi square analysis
 
Goodness Of Fit Test
Goodness Of Fit TestGoodness Of Fit Test
Goodness Of Fit Test
 
Chi square analysis-for_attribute_data_(01-14-06)
Chi square analysis-for_attribute_data_(01-14-06)Chi square analysis-for_attribute_data_(01-14-06)
Chi square analysis-for_attribute_data_(01-14-06)
 

Similar to Chi square

Sample Size And Gpower Module
Sample Size And Gpower ModuleSample Size And Gpower Module
Sample Size And Gpower Modulellalablink
 
sample_size_Determination .pdf
sample_size_Determination .pdfsample_size_Determination .pdf
sample_size_Determination .pdfstatsanjal
 
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 final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentationRitesh Tiwari
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsisKaran Kukreja
 
chi-Square. test-
chi-Square. test-chi-Square. test-
chi-Square. test-shifanaz9
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testdr.balan shaikh
 
Please write a paper on a policy that impacts LGBTQ individuals an.docx
Please write a paper on a policy that impacts LGBTQ individuals an.docxPlease write a paper on a policy that impacts LGBTQ individuals an.docx
Please write a paper on a policy that impacts LGBTQ individuals an.docxstilliegeorgiana
 
Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Drsnehas2
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Dr. Rupendra Bharti
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.pptShivraj Nile
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank testBiswash Sapkota
 
Statistik 1 11 15 edited_chi square
Statistik 1 11 15 edited_chi squareStatistik 1 11 15 edited_chi square
Statistik 1 11 15 edited_chi squareSelvin Hadi
 

Similar to Chi square (20)

Chi square
Chi square Chi square
Chi square
 
Sample Size And Gpower Module
Sample Size And Gpower ModuleSample Size And Gpower Module
Sample Size And Gpower Module
 
sample_size_Determination .pdf
sample_size_Determination .pdfsample_size_Determination .pdf
sample_size_Determination .pdf
 
hypothesis.pptx
hypothesis.pptxhypothesis.pptx
hypothesis.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 final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentation
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsis
 
chi-Square. test-
chi-Square. test-chi-Square. test-
chi-Square. test-
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
 
Please write a paper on a policy that impacts LGBTQ individuals an.docx
Please write a paper on a policy that impacts LGBTQ individuals an.docxPlease write a paper on a policy that impacts LGBTQ individuals an.docx
Please write a paper on a policy that impacts LGBTQ individuals an.docx
 
Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss Tests of statistical significance : chi square and spss
Tests of statistical significance : chi square and spss
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of Dispersion
 
Chisquare
ChisquareChisquare
Chisquare
 
312320.pptx
312320.pptx312320.pptx
312320.pptx
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.ppt
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
 
Statistik 1 11 15 edited_chi square
Statistik 1 11 15 edited_chi squareStatistik 1 11 15 edited_chi square
Statistik 1 11 15 edited_chi square
 
Chisquared test.pptx
Chisquared test.pptxChisquared test.pptx
Chisquared test.pptx
 

Recently uploaded

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Digi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxDigi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxTanveerAhmed817946
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknowmakika9823
 

Recently uploaded (20)

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Digi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptxDigi Khata Problem along complete plan.pptx
Digi Khata Problem along complete plan.pptx
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
 

Chi square

  • 1. NAME: NAYANIKA SENGUPTA AFFILIATION: BANARAS HINDU UNIVERSITY APPLICATION NO. :2ddc6ae1e59611e9a85ed95f3e0d8b9f
  • 3. PARAMETRIC AND NON PARAMETRIC STATISTICAL TESTS Parametric tests are the ones which specifies certain conditions about the parameters of the population from which the sample is taken. Ex- t test, F ratio Non parametric tests are the ones which do not specify any conditions about the parameters of the population from which the sample has been taken. Ex Chi Square, Median Test, Kruskal Wallis etc.
  • 4. CHI SQUARE • IT INVOLVES NO ASSUMPTION REGARDING THE NORMALCY OF DISTRIBUTION OR HOMOGENEITY OF VARIANCES. • CHI SQUARE TESTS ARE USED FOR CATEGORICAL DATA. • IT CAN BE USED TO ESTIMATE HOW CLOSELY THE DISTRIBUTION OF A CATEGORICAL VARIABLE MATCHES AN EXPECTED DISTRIBUTION ( THE GOODNESS-OF-FIT TEST) • IT IS ALSO USED TO ESTIMATE WHETHER TWO CATEGORICAL VARIABLES ARE INDEPENDENT OF ONE ANOTHER ( THE TEST OF INDEPENDENCE)
  • 5. GOODNESS-OF-FIT TEST The χ² test formula for goodness of fit is : χ² = o − ⅇ 2 ⅇ Where, O = observed frequency e = expected frequency
  • 6. 2 CONDITIONS WHEN NULL HYPOTHESIS IS REJECTED. When the probability value ( P value) is lesser than the specified significance level. When the χ² value is greater than the critical value of the specified significance level.
  • 7. GOODNESS-OF-FIT TEST In the game rock-paper-scissors, Kenny expects to win, tie and lose with equal frequency. He plays rock-paper-scissors often, but he suspected his own game were not following that pattern, so he took a random sample of 24 games and recorded the outcomes. Here are his results: He wants to use these results to carry out a χ² goodness-of-fit test to determine if the distribution of his outcomes disagrees with an even distribution. Outcome Win Loss Tie Games 4 13 7
  • 8. HO: ALL OF THE OUTCOMES ARE OF EQUAL PROBABILITY HA: ALL OF THE OUTCOMES ARE NOT OF EQUAL PROBABILITY Χ² = 4−8 2 8 + 13−8 2 8 + 7−8 2 8 Χ² = 5.25 df = 2 Probability value = 0.05 < 𝑃 𝑣𝑎𝑙𝑢𝑒 < 0 ⋅ 10 Fails to reject the null hypothesis. Outcome Win Loss Tie Games 4 13 7 Expected 8 8 8
  • 9. TAKING INTO CONSIDERATION THE SIGNIFICANT DIFFERENCE BETWEEN THE EXPECTED AND OBSERVED OUTCOME. Ho – There is no significant difference between the expected and observed outcome. Ha - There is significant difference between the expected and observed outcome. α - 0.05 χ² - 5.25 df = 2 At significance level of 0.05 with df of 2, the expected outcome is not significantly different from the observed outcome. Therefore, the null hypothesis holds.
  • 10. TEST OF INDEPENDENCE THE CHI-SQUARE TEST OF INDEPENDENCE IS USED TO DETERMINE IF THERE IS A SIGNIFICANT RELATIONSHIP BETWEEN TWO NOMINAL (CATEGORICAL) VARIABLES. Right foot longer Left foot longer Both feet same Total Right hand longer 11 3 8 22 Expected 5.5 5.5 11 Left hand longer 2 9 14 25 Expected 6.25 6.25 12.5 Both hands same 12 13 28 53 Expected 13.25 13.25 26.5 Total 25 25 50 100
  • 11. • Ho = There is no association between hand and foot length. • Ha = There is association between hand and foot length. χ² = 11 − 5.5 2 5 ⋅ 5 + 3 − 5 ⋅ 5 2 5.5 + 8 − 11 2 11 + 2 − 6 ⋅ 25 2 6 ⋅ 25 + 9 − 6 ⋅ 25 2 6 ⋅ 25 + 14 − 12 ⋅ 5 2 12 ⋅ 5 + 12 − 13 ⋅ 25 2 13 ⋅ 25 + 13 − 13 ⋅ 25 2 13 ⋅ 25 + 28 − 26 ⋅ 5 2 26 ⋅ 5 = 11.942 df = 4 α - 0.05 There is significant difference between expected and observed values of foot and hand length. Thus, the null hypothesis is rejected and concluding that there is association between hand and foot length.