SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
HYPOTHESIS
TESTING
Chi-Square Goodness of Fit Test:
NADEEM UDDIN
ASSOCIATE PROFESSOR
OF STATISTICS
Chi-Square Goodness of Fit Test:
This lesson explains how to conduct a chi-
square goodness of fit test. The test is
applied when you have one categorical
variable from a single population. It is
used to determine whether sample data
are consistent with a hypothesized
distribution.
Procedure Goodness of fit test
1-Hypothesis H0: Fit is good.
H1: Fit is not good.
2-Level of significance  = 1% or 5% or
any given value.
3-Test of statistic 𝜒2 =
𝑜−𝑒 2
𝑒
Where o = observed value
e = estimated value
4-Critical region𝜒2
, 𝑛−1
5- Computation
6-Conclusion
If the calculated value of test
statistic falls in the area of
rejection, we reject the null
hypothesis otherwise accept it.
Example-8:
To investigate whether the following
distribution of grades is uniform at 5%
level of significance.
Grades A B C D E
F 25 30 22 32 15
Solution:
1- Hypothesis H0: Distribution of grades is uniform.
H1:Distribution of grades is not uniform.
2- Level of significance  = 0.05
3- Test of statistic 𝝌 𝟐
=
𝒐−𝒆 𝟐
𝒆
4- Critical region    
 
2 2
, 1 0.05, 5 1
2 2
0.05,4, 1
9.488
n
n


 
 
 


 
9.488
5. Computation
X O P(x) N.P(x)=
e
A 25 1/5 24.8 0.0016
B 30 1/5 24.8 1.0903
C 22 1/5 24.8 0.3161
D 32 1/5 24.8 2.0903
E 15 1/5 24.8 3.8726
124
 
2
o e
e

2
7.371cal 
6. Conclusion: Accept H0.
(Distribution of grades is uniform)
Example-9:
Historical records indicate that in college students
passing in grades A,B,C,D and E are 10,30,40,10
and 10 percent, respectively. For a particular year
grades earned by students with grade A are 8,
17 with B, 20 with C, 3 with D and 2 with E. Using
 = 0.05 test the null hypotheses that
grades do not differ with historical pattern.
Solution:
1. Hypothesis
H0: Grades do not differ with historical pattern.
H1: Grades differ with historical pattern.
2- Level of significance  = 0.05
3- Test of statistic 𝝌 𝟐 =
𝒐−𝒆 𝟐
𝒆
   
 
2 2
, 1 0.05, 5 1
2 2
0.05,4, 1
9.488
n
n


 
 
 


  9.488
4- Critical Region
5. Computation
6. Conclusion: Accept H0.
(Grades do not differ with historical pattern).
X O P(x) N.P(x)=
e
A 8 0.10 5 1.80
B 17 0.30 15 0.27
C 20 0.40 20 0.00
D 3 0.10 5 0.80
E 2 0.10 5 1.80
50
 
2
o e
e

2
4.67cal 
Example-10:
In a survey of 400 infants chosen at random, it is
found that 185 are girls. Are boy and girl births
equally likely at  = 0.05
Solution:
1. Hypothesis
H0:Boy and girl births are equally likely
H1:Boy and girl births are not equally likely
2- Level of significance  = 0.05
3- Test of statistic 𝜒2 =
𝑜−𝑒 2
𝑒
4. Critical Region
2
 α,(n-1) =
2
 0.05,(2-1)
2
 0.05,1 = 3.841
5. Computation
X O P(x) N.P(x)
=e
Girls 185 ½ 200 1.125
Boys 215 ½ 200 1.125
400
 
2
o e
e

2
2.250cal 
6. Conclusion: Accept H0.

More Related Content

PPTX
Chi square test
PPT
LECTURE 1 ONE SAMPLE T TEST.ppt
PPTX
Scaling technique
PPT
Measures of Central Tendency - Biostatstics
PDF
Kolmogorov Smirnov good-of-fit test
PPTX
Statistical modeling in Pharmaceutical research and development.pptx
PPTX
Measurement & scaling ,Research methodology
PPT
HYPOTHESIS TESTING.ppt
Chi square test
LECTURE 1 ONE SAMPLE T TEST.ppt
Scaling technique
Measures of Central Tendency - Biostatstics
Kolmogorov Smirnov good-of-fit test
Statistical modeling in Pharmaceutical research and development.pptx
Measurement & scaling ,Research methodology
HYPOTHESIS TESTING.ppt

What's hot (20)

PPTX
Basics of Hypothesis testing for Pharmacy
PDF
Unit 2 Regression- BSRM.pdf
PPTX
3.1 non parametric test
PDF
Unit 1 Correlation- BSRM.pdf
PPTX
PPTX
Crossover design ppt
PPT
The Kruskal-Wallis H Test
PPTX
non parametric statistics
PPTX
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
PPTX
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
PPTX
Regression ppt
PPTX
Wilcoxon Rank-Sum Test
PPTX
Least Significance Difference:Biostatics and Research Methodology
PPTX
Non parametric test
PPTX
Kruskal Wall Test
PPTX
Goodness Of Fit Test
PPTX
Null hypothesis
PPTX
All non parametric test
PPTX
NON-PARAMETRIC TESTS by Prajakta Sawant
Basics of Hypothesis testing for Pharmacy
Unit 2 Regression- BSRM.pdf
3.1 non parametric test
Unit 1 Correlation- BSRM.pdf
Crossover design ppt
The Kruskal-Wallis H Test
non parametric statistics
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
Regression ppt
Wilcoxon Rank-Sum Test
Least Significance Difference:Biostatics and Research Methodology
Non parametric test
Kruskal Wall Test
Goodness Of Fit Test
Null hypothesis
All non parametric test
NON-PARAMETRIC TESTS by Prajakta Sawant
Ad

Similar to Hypothesis testing chi square goodness of fit test (20)

PPTX
Hypothesis testing part i
PPT
Nonparametric and Distribution- Free Statistics
PPTX
Inferential-Statistics.pptx werfgvqerfwef3e
PPT
Chi square
PPT
Nonparametric and Distribution- Free Statistics _contd
PPT
STATS_Q4_1.powerpoint presentation in....
PPTX
Session 12_Hypothesis Testing-Single Sample Tests.pptx
PDF
Advanced Engineering Mathematics (Statistical Techniques - II)
PPTX
TEST-ON-POPULATION-MEANkjgnkdngjdkr.pptx
PPTX
Goodness of fit (ppt)
PPTX
Test the significant for large sample maths mini project
PPTX
Proportion test using Chi square
PDF
Testing of Hypothesis.pdf
PDF
HypothesisTesting_HANDOUT.pdf
PPTX
3.1 Inference about Two Population Mean_Summer 2025.pptx
PPTX
K.A.Sindhura-t,z,f tests
PPTX
Presentation2 bucks-1
DOC
Significant test using student T test
PPT
Lesson06_static11
PPTX
CHAPETR 5. LESSON 3 CONDUCTING HYPOTHESIS TEST USING THE TRADITIONAL METHOD.pptx
Hypothesis testing part i
Nonparametric and Distribution- Free Statistics
Inferential-Statistics.pptx werfgvqerfwef3e
Chi square
Nonparametric and Distribution- Free Statistics _contd
STATS_Q4_1.powerpoint presentation in....
Session 12_Hypothesis Testing-Single Sample Tests.pptx
Advanced Engineering Mathematics (Statistical Techniques - II)
TEST-ON-POPULATION-MEANkjgnkdngjdkr.pptx
Goodness of fit (ppt)
Test the significant for large sample maths mini project
Proportion test using Chi square
Testing of Hypothesis.pdf
HypothesisTesting_HANDOUT.pdf
3.1 Inference about Two Population Mean_Summer 2025.pptx
K.A.Sindhura-t,z,f tests
Presentation2 bucks-1
Significant test using student T test
Lesson06_static11
CHAPETR 5. LESSON 3 CONDUCTING HYPOTHESIS TEST USING THE TRADITIONAL METHOD.pptx
Ad

More from Nadeem Uddin (20)

PDF
A corporation has 15 salesmen.pdf
DOCX
A question paper is divided into three groups A.docx
DOCX
If on the average the rain falls on twelve days in every thirty day.docx
DOCX
If on the average the rain falls on twelve days in every thirty days.docx
DOCX
If A and B play a game in which the probability that A wins is (2).docx
DOCX
If A and B play a game in which the probability that A wins is.docx
DOCX
Suppose you are eating at cafeteria with two friends.docx
DOCX
Three men toss in succession for a prize to be given to the one.docx
DOCX
Two men A and B toss in succession for a prize to be given to the one.docx
DOCX
For the following venn diagram.docx
DOCX
A group of 50 people was asked of three newspapers.docx
DOCX
In a survey of 100 participants.docx
DOCX
Probability by venn diagram.docx
DOCX
A bag contains 6 red and 4 black balls.docx
DOCX
Suppose that the probability is 0.8 that any given person will believe a tale...
DOCX
A man draws 2 balls from a bag containing 3 white and 5 black balls.docx
DOCX
The probability that a candidate passes a certain professional examination is...
DOCX
The probability that three men hit a target are respectively 1.docx
DOCX
In a survey of a group of people the following results are obtained.docx
DOCX
The probability that a student passes mathematics is 2.docx
A corporation has 15 salesmen.pdf
A question paper is divided into three groups A.docx
If on the average the rain falls on twelve days in every thirty day.docx
If on the average the rain falls on twelve days in every thirty days.docx
If A and B play a game in which the probability that A wins is (2).docx
If A and B play a game in which the probability that A wins is.docx
Suppose you are eating at cafeteria with two friends.docx
Three men toss in succession for a prize to be given to the one.docx
Two men A and B toss in succession for a prize to be given to the one.docx
For the following venn diagram.docx
A group of 50 people was asked of three newspapers.docx
In a survey of 100 participants.docx
Probability by venn diagram.docx
A bag contains 6 red and 4 black balls.docx
Suppose that the probability is 0.8 that any given person will believe a tale...
A man draws 2 balls from a bag containing 3 white and 5 black balls.docx
The probability that a candidate passes a certain professional examination is...
The probability that three men hit a target are respectively 1.docx
In a survey of a group of people the following results are obtained.docx
The probability that a student passes mathematics is 2.docx

Recently uploaded (20)

PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
1_English_Language_Set_2.pdf probationary
PDF
RMMM.pdf make it easy to upload and study
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
IGGE1 Understanding the Self1234567891011
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Introduction to Building Materials
Weekly quiz Compilation Jan -July 25.pdf
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Digestion and Absorption of Carbohydrates, Proteina and Fats
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
LDMMIA Reiki Yoga Finals Review Spring Summer
A systematic review of self-coping strategies used by university students to ...
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
1_English_Language_Set_2.pdf probationary
RMMM.pdf make it easy to upload and study
Orientation - ARALprogram of Deped to the Parents.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
IGGE1 Understanding the Self1234567891011
Practical Manual AGRO-233 Principles and Practices of Natural Farming
What if we spent less time fighting change, and more time building what’s rig...
Introduction to Building Materials

Hypothesis testing chi square goodness of fit test

  • 1. HYPOTHESIS TESTING Chi-Square Goodness of Fit Test: NADEEM UDDIN ASSOCIATE PROFESSOR OF STATISTICS
  • 2. Chi-Square Goodness of Fit Test: This lesson explains how to conduct a chi- square goodness of fit test. The test is applied when you have one categorical variable from a single population. It is used to determine whether sample data are consistent with a hypothesized distribution.
  • 3. Procedure Goodness of fit test 1-Hypothesis H0: Fit is good. H1: Fit is not good. 2-Level of significance  = 1% or 5% or any given value. 3-Test of statistic 𝜒2 = 𝑜−𝑒 2 𝑒 Where o = observed value e = estimated value
  • 4. 4-Critical region𝜒2 , 𝑛−1 5- Computation 6-Conclusion If the calculated value of test statistic falls in the area of rejection, we reject the null hypothesis otherwise accept it.
  • 5. Example-8: To investigate whether the following distribution of grades is uniform at 5% level of significance. Grades A B C D E F 25 30 22 32 15
  • 6. Solution: 1- Hypothesis H0: Distribution of grades is uniform. H1:Distribution of grades is not uniform. 2- Level of significance  = 0.05 3- Test of statistic 𝝌 𝟐 = 𝒐−𝒆 𝟐 𝒆 4- Critical region       2 2 , 1 0.05, 5 1 2 2 0.05,4, 1 9.488 n n             9.488
  • 7. 5. Computation X O P(x) N.P(x)= e A 25 1/5 24.8 0.0016 B 30 1/5 24.8 1.0903 C 22 1/5 24.8 0.3161 D 32 1/5 24.8 2.0903 E 15 1/5 24.8 3.8726 124   2 o e e  2 7.371cal  6. Conclusion: Accept H0. (Distribution of grades is uniform)
  • 8. Example-9: Historical records indicate that in college students passing in grades A,B,C,D and E are 10,30,40,10 and 10 percent, respectively. For a particular year grades earned by students with grade A are 8, 17 with B, 20 with C, 3 with D and 2 with E. Using  = 0.05 test the null hypotheses that grades do not differ with historical pattern.
  • 9. Solution: 1. Hypothesis H0: Grades do not differ with historical pattern. H1: Grades differ with historical pattern. 2- Level of significance  = 0.05 3- Test of statistic 𝝌 𝟐 = 𝒐−𝒆 𝟐 𝒆
  • 10.       2 2 , 1 0.05, 5 1 2 2 0.05,4, 1 9.488 n n             9.488 4- Critical Region 5. Computation 6. Conclusion: Accept H0. (Grades do not differ with historical pattern). X O P(x) N.P(x)= e A 8 0.10 5 1.80 B 17 0.30 15 0.27 C 20 0.40 20 0.00 D 3 0.10 5 0.80 E 2 0.10 5 1.80 50   2 o e e  2 4.67cal 
  • 11. Example-10: In a survey of 400 infants chosen at random, it is found that 185 are girls. Are boy and girl births equally likely at  = 0.05 Solution: 1. Hypothesis H0:Boy and girl births are equally likely H1:Boy and girl births are not equally likely 2- Level of significance  = 0.05 3- Test of statistic 𝜒2 = 𝑜−𝑒 2 𝑒
  • 12. 4. Critical Region 2  α,(n-1) = 2  0.05,(2-1) 2  0.05,1 = 3.841 5. Computation X O P(x) N.P(x) =e Girls 185 ½ 200 1.125 Boys 215 ½ 200 1.125 400   2 o e e  2 2.250cal  6. Conclusion: Accept H0.