SlideShare a Scribd company logo
1 of 20
HYPOTHESIS TESTING
PART-I
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.
Chi-Square Test for Independence:
This lesson explains how to conduct a chi-
square test for independence. The test is
applied when you have two categorical
variables from a single population. It is
used to determine whether there is a
significant association between the two
variables.
Procedure Test Concerning for independence
1-Hypothesis
H0: The two attributes are not associated.
H1: The two attributes are associated.
2-Level of significance  = 1% or 5% or any given
value.
3-Test of statistic 𝝌 𝟐 =
𝒐−𝒆 𝟐
𝒆
Where o = observed value
e = estimated value
4-Critical region 𝜒2
, 𝑟−1 (𝑐−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.
Weather
Total
Good Bad
Result
Win 12 4 16
Draw 5 8 13
Lose 7 14 21
Total 24 26 50
Example-11:
The members of a sports team are interested in
whether the weather has an effect on their results.
They play 50 matches, with the following results:
Test the claim at 1% significance level that
the result independent of weather.
Solution:
1-Hypothesis
H0: Result independent of weather.
H1: Result dependent of weather.
2- Level of significance  = 0.01
3- Test of statistic 𝜒2
=
𝑜−𝑒 2
𝑒
4. Critical Region
𝜒2
, 𝑟−1 (𝑐−1)
𝜒2
0.01, 3−1 (2−1)
𝜒2
,2 = 9.21 9.21
5. Computation
Good Bad Total
Win 12
24 × 16
50
= 7.68
4
26 × 16
50
= 8.32 16
Dra
w
5
13 × 24
50
= 6.24 8
26 × 13
50
= 6.76 13
Loos
e
7
24 × 21
50
= 10.08
14
26 × 21
50
= 10.92
21
Total 24 26 50
O e
12 7.68 2.43
5 6.24 0.246
7 10.08 0.941
4 8.32 2.243
8 6.76 0.227
14 10.92 0.868
 
2
o e
e

2
6.956cal 
6. Conclusion:
Accept H0.
And conclude that the team’s
result are independent of the weather.

More Related Content

Similar to Chi-Square Goodness of Fit and Independence Tests

Hypothesis testing chi square test for independence
Hypothesis testing chi square test for independenceHypothesis testing chi square test for independence
Hypothesis testing chi square test for independenceNadeem Uddin
 
Test for independence
Test  for independenceTest  for independence
Test for independenceNadeem Uddin
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics testsrodrick koome
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research dataAtula Ahuja
 
Lesson06_static11
Lesson06_static11Lesson06_static11
Lesson06_static11thangv
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research dataAtula Ahuja
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis TestsSr Edith Bogue
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxErgin Akalpler
 
Introduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIntroduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIman Ardekani
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...The Stockker
 
3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptxShriramKargaonkar
 

Similar to Chi-Square Goodness of Fit and Independence Tests (20)

Hypothesis testing chi square test for independence
Hypothesis testing chi square test for independenceHypothesis testing chi square test for independence
Hypothesis testing chi square test for independence
 
Chi square
Chi squareChi square
Chi square
 
Nonparametric and Distribution- Free Statistics _contd
Nonparametric and Distribution- Free Statistics _contdNonparametric and Distribution- Free Statistics _contd
Nonparametric and Distribution- Free Statistics _contd
 
Test for independence
Test  for independenceTest  for independence
Test for independence
 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Testing of Hypothesis.pdf
Testing of Hypothesis.pdfTesting of Hypothesis.pdf
Testing of Hypothesis.pdf
 
Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Lesson06_static11
Lesson06_static11Lesson06_static11
Lesson06_static11
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis Tests
 
Research Procedure
Research ProcedureResearch Procedure
Research Procedure
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 
HypothesisTesting_HANDOUT.pdf
HypothesisTesting_HANDOUT.pdfHypothesisTesting_HANDOUT.pdf
HypothesisTesting_HANDOUT.pdf
 
Introduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIntroduction to Quantitative Research Methods
Introduction to Quantitative Research Methods
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
 
3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx
 

More from Nadeem Uddin

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

More from Nadeem Uddin (20)

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

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 

Chi-Square Goodness of Fit and Independence Tests

  • 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.
  • 13. Chi-Square Test for Independence: This lesson explains how to conduct a chi- square test for independence. The test is applied when you have two categorical variables from a single population. It is used to determine whether there is a significant association between the two variables.
  • 14. Procedure Test Concerning for independence 1-Hypothesis H0: The two attributes are not associated. H1: The two attributes are associated. 2-Level of significance  = 1% or 5% or any given value. 3-Test of statistic 𝝌 𝟐 = 𝒐−𝒆 𝟐 𝒆 Where o = observed value e = estimated value
  • 15. 4-Critical region 𝜒2 , 𝑟−1 (𝑐−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.
  • 16. Weather Total Good Bad Result Win 12 4 16 Draw 5 8 13 Lose 7 14 21 Total 24 26 50 Example-11: The members of a sports team are interested in whether the weather has an effect on their results. They play 50 matches, with the following results: Test the claim at 1% significance level that the result independent of weather.
  • 17. Solution: 1-Hypothesis H0: Result independent of weather. H1: Result dependent of weather. 2- Level of significance  = 0.01 3- Test of statistic 𝜒2 = 𝑜−𝑒 2 𝑒
  • 18. 4. Critical Region 𝜒2 , 𝑟−1 (𝑐−1) 𝜒2 0.01, 3−1 (2−1) 𝜒2 ,2 = 9.21 9.21
  • 19. 5. Computation Good Bad Total Win 12 24 × 16 50 = 7.68 4 26 × 16 50 = 8.32 16 Dra w 5 13 × 24 50 = 6.24 8 26 × 13 50 = 6.76 13 Loos e 7 24 × 21 50 = 10.08 14 26 × 21 50 = 10.92 21 Total 24 26 50
  • 20. O e 12 7.68 2.43 5 6.24 0.246 7 10.08 0.941 4 8.32 2.243 8 6.76 0.227 14 10.92 0.868   2 o e e  2 6.956cal  6. Conclusion: Accept H0. And conclude that the team’s result are independent of the weather.