SlideShare a Scribd company logo
1 of 25
CHI SQUARE TEST
JOEL V. ROSOS JR.
MBA 102 / 12:30PM – 04:30PM
CONTENTS:
1. Important Terms
2. Introduction
3. Chi Square Distribution
4. Applications of Chi Square Test
5. Example
IMPORTANT TERMS
 HYPOTHESIS – a premise or claim that we want to
test/investigate.
 NULL HYPOTHESIS: (Ho) – States that no association exists
between the two cross-tabulated variables in the population,
and therefore the variables are statistically independent. E.g. if
we want to compare 2 methods method A and method B for its
superiority, and if the assumption is that both methods are
equally good, then this assumption is called as Null Hypothesis.
 ALTERNATIVE HYPOTHESIS: (Ha) – proposes that the two
variable are related in the population. If we assume that from 2
methods, method A is superior than method B, then this
assumption is called as Alternative Hypothesis.
IMPORTANT TERMS
 DEGREE OF FREEDOM – It denotes the extent of
independence (freedom) enjoyed by a given set of observed
frequencies. Suppose we are given a set of n observed
frequencies w/c are subjected to k independent constraints
(restrictions) then,
d.f.=(number of frequencies) – (number of independent
constraints of them)
In other terms,
df = (r-1)(c-1)
where
r = the number of Rows
c = the numbers of column
STUDENT 0-2 HOURS 2-4 HOURS
FRESHMAN
SENIORS
IMPORTANT TERMS
 CONTINGENCY TABLE – When the table is prepared by
enumeration of qualitative data by entering the actual
frequencies, and if that table represents occurance of two
sets of events, that the table is called the contingency
table
For example:
Gender Smoker Non-Smoker Total
Male 72 44 116
Female 34 53 87
Total 106 97 203
INTRODUCTION
The Chi Squared Test
Why we
use it?
What does
it show?
How do we
calculate &
interpret it?
Why we use it?
Chi Square Test
50:50
20 students
12:8
11:9 13:7 14:6
What does it TEST
show us?
Chi Square Test
 Is a statistical hypothesis test that is
valid to perform or evaluates the
inherent variability like comparing the;
Data Collected Data Predicted
Chi-Squared
Value
Sum
Data
Collected
Data
Predicted
How do we calculate & interpret it?
Female Male
Observed Student
Expected Student 10 10
For example (20 students)
13 7
• 1st determine the Null Hypothesis
and Alternative Hypothesis
Ho : Equal frequencies
Ha : Unequal frequencies
Do not
Reject
Region
Ar=0.05(significance
level)
Reject
Region
CV
𝑋2
Value
• 2nd determine the degree of freedom using table
say significance level is 0.05
df = (r-1)
= (2-1)
= 1
=3.84
Critical chi
square value
Female Male
Observed Student 13 7
Expected Student 10 10
For example (20 students)
• 3rd determine the calculated chi square
value
Using the equation:
𝑋2 = (13-10)² + (7-10)²
10 10
= (3)² + (-3)²
10 10
= 0.9 + 0.9
𝑋2 = 1.8
𝑋2
Value
3.84
1.8
Do not
Reject
Region
Reject
Region
Note: if the calculated chi square value lies in
the Reject Region the Ho is Rejected.
Therefore: we cannot reject the possibility that
the school claim is 50% female and
50% male.
Ho: Accepted
 IF X₁, X₂,…….Xn are independent normal variates and each is
distributed normally with mean zero and standard deviation unity,
then X₁² + X₂² + .....+ Xn² = ∑ X₁² is distributed as chi square (X²) with
n degrees of freedom (d.f.) where n is large.
CHI SQUARE DISTRIBUTION:
df=1
1. GOODNESS OF FIT TEST
2. TEST OF HOMOGENEITY
3. TEST OF INDEPENDENCE
APPLICATION OF CHI SQUARE TEST
THREE CHI SQUARE TEST
GOODNESS OF FIT
TEST
Ho=(P₁,P₂)
THREE CHI SQUARE TEST
GOODNESS OF FIT
TEST
Ho=(30%,70%)
n=100
45 SMOKERS
55 NON-SMOKERS
Smoker Non
Smoker
Sample 45 55
THREE CHI SQUARE TEST
GOODNESS OF FIT
TEST
Ho=(30%,70%)
n=100
45 SMOKERS
55 NON-SMOKERS
Smoker Non
Smoker
Sample 45 55
TEST OF HOMOGENEITY
n=100 n=100
45 SMOKERS
55 NON-SMOKERS
50 SMOKERS
50 NON-SMOKERS
Smoker Non
Smoker
Sample A 45 55
Sample B 50 50
THREE CHI SQUARE TEST
GOODNESS OF FIT
TEST
Ho=(30%,70%)
n=100
45 SMOKERS
55 NON-SMOKERS
Smoker Non
Smoker
Sample 45 55
TEST OF HOMOGENEITY
n=100 n=100
45 SMOKERS
55 NON-SMOKERS
50 SMOKERS
50 NON-SMOKERS
Smoker Non
Smoker
Sample A 45 55
Sample B 50 50
TEST OF INDEPENDENCE
n=200
WOMEN
45 SMOKERS
55 NON-SMOKERS
MEN
50 SMOKERS
50 NON-SMOKERS
Smoker Non
Smoker
Women 45 55
Men 50 50
Example of Test of Independence
1. The table below shows the average number of hours students spend studying for classes
each day in a high school. Is the average number of hours dependent on the type of student?
(use a 5% significance level).
Observed Results Expected Results
 1st determine the Null Hypothesis and Alternative Hypothesis
Ho = Independent on the type of students
Ha = Dependent on the type of students
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 76 143 91 310
Seniors 147 109 64 320
Total 223 252 155 630
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman
Seniors
Total
Do not
Reject
Region
Ar=0.05(significance
level)
Reject
Region
CV
𝑋2
Value
Example of Test of Independence
Observed Results Expected Results
 2nd determine the degree of freedom using table
say significance level is 0.05
df = (r-1) (c-1)
= (3-1) (2-1)
= 2
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 76 143 91 310
Seniors 147 109 64 320
Total 223 252 155 630
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman
Seniors
Total
Do not
Reject
Region
Ar=0.05(significance
level)
Reject
Region
CV
𝑋2
Value
=5.99
Critical chi
square value
Example of Test of Independence
Observed Results Expected Results
 3rd determine the Expected Values
E = (Row Total) (Column Total)
TOTAL
E₁,₁ = (310) (223) E₁,₃ = (310) (155) E₂,₁ = (320) (223) E₂,₃ = (320) (155)
630 630 630 630
E₁,₁ = 109.7 SAY 110 E₁,₃ = 76.3 SAY 76 E₂,₁ = 113.27 SAY 113 E₂,₃ = 78.7 SAY 79
E₁,₂ = (310) (252) E₂,₂ = (320) (252)
630 630
E₁,₂ = 124 E₂,₂ = 128
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 76 143 91 310
Seniors 147 109 64 320
Total 223 252 155 630
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 110 124 76 310
Seniors 113 128 79 320
Total 223 252 155 630
Example of Test of Independence
Observed Results Expected Results
 4TH determine the calculated chi square value
Using the equation:
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 76 143 91 310
Seniors 147 109 64 320
Total 223 252 155 630
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 110 124 76 310
Seniors 113 128 79 320
Total 223 252 155 630
𝑋2 = (76-110)² + (143-124)² + (91-76)² + (147-113)² + (109-128)² + (64-79)²
110 124 76 113 128 79
= 10.509 + 2.911 + 2.961 + 10.230 + 2.820 + 2.848
𝑋2 = 32.28
Example of Test of Independence
Observed Results Expected Results
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 76 143 91 310
Seniors 147 109 64 320
Total 223 252 155 630
Student 0-2Hours 2-4Hours 4-6Hours Total
Freshman 110 124 76 310
Seniors 113 128 79 320
Total 223 252 155 630
Do not
Reject
Region
Reject
Region
𝑋2
Value
5.99
32.28
Note: if the calculated chi square value lies in
the Reject Region the Ho is Rejected.
Therefore: The calculated chi square value lies in Reject
Region so we must reject the null hypothesis
Ha: Accepted, that the average of number of hours
dependent of type of student.
THANK YOU AND GOD BLESS!

More Related Content

Similar to CHI-SQUARE-TEST.pptx

Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamBrent Heard
 
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
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data KwambokaLeonidah
 
TESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxTESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxAnchuRNath
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi squareParag Shah
 
Week8 livelecture2010
Week8 livelecture2010Week8 livelecture2010
Week8 livelecture2010Brent Heard
 
Ch6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesCh6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesFarhan Alfin
 
Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Beamsync
 
2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample sizesalummkata1
 
Scientific Method learning for alll.pptx
Scientific Method learning for alll.pptxScientific Method learning for alll.pptx
Scientific Method learning for alll.pptxnurulchalisamajiding
 
MPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxMPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxrodrickrajamanickam
 

Similar to CHI-SQUARE-TEST.pptx (20)

Hypothesis test
Hypothesis testHypothesis test
Hypothesis test
 
Chi-Square test.pptx
Chi-Square test.pptxChi-Square test.pptx
Chi-Square test.pptx
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
 
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
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data Hypothesis testing for nonparametric data
Hypothesis testing for nonparametric data
 
TESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxTESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptx
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
 
Week8 livelecture2010
Week8 livelecture2010Week8 livelecture2010
Week8 livelecture2010
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 
Ch6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesCh6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, Variances
 
Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9
 
Practice test1 solution
Practice test1 solutionPractice test1 solution
Practice test1 solution
 
Chi square test
Chi square testChi square test
Chi square test
 
2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size
 
Stat2013
Stat2013Stat2013
Stat2013
 
Scientific Method learning for alll.pptx
Scientific Method learning for alll.pptxScientific Method learning for alll.pptx
Scientific Method learning for alll.pptx
 
Chi Square & Anova
Chi Square & AnovaChi Square & Anova
Chi Square & Anova
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 
MPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxMPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptx
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
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
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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🔝
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 

CHI-SQUARE-TEST.pptx

  • 1. CHI SQUARE TEST JOEL V. ROSOS JR. MBA 102 / 12:30PM – 04:30PM
  • 2. CONTENTS: 1. Important Terms 2. Introduction 3. Chi Square Distribution 4. Applications of Chi Square Test 5. Example
  • 3. IMPORTANT TERMS  HYPOTHESIS – a premise or claim that we want to test/investigate.  NULL HYPOTHESIS: (Ho) – States that no association exists between the two cross-tabulated variables in the population, and therefore the variables are statistically independent. E.g. if we want to compare 2 methods method A and method B for its superiority, and if the assumption is that both methods are equally good, then this assumption is called as Null Hypothesis.  ALTERNATIVE HYPOTHESIS: (Ha) – proposes that the two variable are related in the population. If we assume that from 2 methods, method A is superior than method B, then this assumption is called as Alternative Hypothesis.
  • 4. IMPORTANT TERMS  DEGREE OF FREEDOM – It denotes the extent of independence (freedom) enjoyed by a given set of observed frequencies. Suppose we are given a set of n observed frequencies w/c are subjected to k independent constraints (restrictions) then, d.f.=(number of frequencies) – (number of independent constraints of them) In other terms, df = (r-1)(c-1) where r = the number of Rows c = the numbers of column STUDENT 0-2 HOURS 2-4 HOURS FRESHMAN SENIORS
  • 5. IMPORTANT TERMS  CONTINGENCY TABLE – When the table is prepared by enumeration of qualitative data by entering the actual frequencies, and if that table represents occurance of two sets of events, that the table is called the contingency table For example: Gender Smoker Non-Smoker Total Male 72 44 116 Female 34 53 87 Total 106 97 203
  • 6. INTRODUCTION The Chi Squared Test Why we use it? What does it show? How do we calculate & interpret it?
  • 8. Chi Square Test 50:50 20 students 12:8 11:9 13:7 14:6
  • 9. What does it TEST show us?
  • 10. Chi Square Test  Is a statistical hypothesis test that is valid to perform or evaluates the inherent variability like comparing the; Data Collected Data Predicted Chi-Squared Value Sum Data Collected Data Predicted
  • 11. How do we calculate & interpret it? Female Male Observed Student Expected Student 10 10 For example (20 students) 13 7 • 1st determine the Null Hypothesis and Alternative Hypothesis Ho : Equal frequencies Ha : Unequal frequencies Do not Reject Region Ar=0.05(significance level) Reject Region CV 𝑋2 Value • 2nd determine the degree of freedom using table say significance level is 0.05 df = (r-1) = (2-1) = 1 =3.84 Critical chi square value
  • 12.
  • 13. Female Male Observed Student 13 7 Expected Student 10 10 For example (20 students) • 3rd determine the calculated chi square value Using the equation: 𝑋2 = (13-10)² + (7-10)² 10 10 = (3)² + (-3)² 10 10 = 0.9 + 0.9 𝑋2 = 1.8 𝑋2 Value 3.84 1.8 Do not Reject Region Reject Region Note: if the calculated chi square value lies in the Reject Region the Ho is Rejected. Therefore: we cannot reject the possibility that the school claim is 50% female and 50% male. Ho: Accepted
  • 14.  IF X₁, X₂,…….Xn are independent normal variates and each is distributed normally with mean zero and standard deviation unity, then X₁² + X₂² + .....+ Xn² = ∑ X₁² is distributed as chi square (X²) with n degrees of freedom (d.f.) where n is large. CHI SQUARE DISTRIBUTION: df=1
  • 15. 1. GOODNESS OF FIT TEST 2. TEST OF HOMOGENEITY 3. TEST OF INDEPENDENCE APPLICATION OF CHI SQUARE TEST
  • 16. THREE CHI SQUARE TEST GOODNESS OF FIT TEST Ho=(P₁,P₂)
  • 17. THREE CHI SQUARE TEST GOODNESS OF FIT TEST Ho=(30%,70%) n=100 45 SMOKERS 55 NON-SMOKERS Smoker Non Smoker Sample 45 55
  • 18. THREE CHI SQUARE TEST GOODNESS OF FIT TEST Ho=(30%,70%) n=100 45 SMOKERS 55 NON-SMOKERS Smoker Non Smoker Sample 45 55 TEST OF HOMOGENEITY n=100 n=100 45 SMOKERS 55 NON-SMOKERS 50 SMOKERS 50 NON-SMOKERS Smoker Non Smoker Sample A 45 55 Sample B 50 50
  • 19. THREE CHI SQUARE TEST GOODNESS OF FIT TEST Ho=(30%,70%) n=100 45 SMOKERS 55 NON-SMOKERS Smoker Non Smoker Sample 45 55 TEST OF HOMOGENEITY n=100 n=100 45 SMOKERS 55 NON-SMOKERS 50 SMOKERS 50 NON-SMOKERS Smoker Non Smoker Sample A 45 55 Sample B 50 50 TEST OF INDEPENDENCE n=200 WOMEN 45 SMOKERS 55 NON-SMOKERS MEN 50 SMOKERS 50 NON-SMOKERS Smoker Non Smoker Women 45 55 Men 50 50
  • 20. Example of Test of Independence 1. The table below shows the average number of hours students spend studying for classes each day in a high school. Is the average number of hours dependent on the type of student? (use a 5% significance level). Observed Results Expected Results  1st determine the Null Hypothesis and Alternative Hypothesis Ho = Independent on the type of students Ha = Dependent on the type of students Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 76 143 91 310 Seniors 147 109 64 320 Total 223 252 155 630 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman Seniors Total Do not Reject Region Ar=0.05(significance level) Reject Region CV 𝑋2 Value
  • 21. Example of Test of Independence Observed Results Expected Results  2nd determine the degree of freedom using table say significance level is 0.05 df = (r-1) (c-1) = (3-1) (2-1) = 2 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 76 143 91 310 Seniors 147 109 64 320 Total 223 252 155 630 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman Seniors Total Do not Reject Region Ar=0.05(significance level) Reject Region CV 𝑋2 Value =5.99 Critical chi square value
  • 22. Example of Test of Independence Observed Results Expected Results  3rd determine the Expected Values E = (Row Total) (Column Total) TOTAL E₁,₁ = (310) (223) E₁,₃ = (310) (155) E₂,₁ = (320) (223) E₂,₃ = (320) (155) 630 630 630 630 E₁,₁ = 109.7 SAY 110 E₁,₃ = 76.3 SAY 76 E₂,₁ = 113.27 SAY 113 E₂,₃ = 78.7 SAY 79 E₁,₂ = (310) (252) E₂,₂ = (320) (252) 630 630 E₁,₂ = 124 E₂,₂ = 128 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 76 143 91 310 Seniors 147 109 64 320 Total 223 252 155 630 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 110 124 76 310 Seniors 113 128 79 320 Total 223 252 155 630
  • 23. Example of Test of Independence Observed Results Expected Results  4TH determine the calculated chi square value Using the equation: Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 76 143 91 310 Seniors 147 109 64 320 Total 223 252 155 630 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 110 124 76 310 Seniors 113 128 79 320 Total 223 252 155 630 𝑋2 = (76-110)² + (143-124)² + (91-76)² + (147-113)² + (109-128)² + (64-79)² 110 124 76 113 128 79 = 10.509 + 2.911 + 2.961 + 10.230 + 2.820 + 2.848 𝑋2 = 32.28
  • 24. Example of Test of Independence Observed Results Expected Results Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 76 143 91 310 Seniors 147 109 64 320 Total 223 252 155 630 Student 0-2Hours 2-4Hours 4-6Hours Total Freshman 110 124 76 310 Seniors 113 128 79 320 Total 223 252 155 630 Do not Reject Region Reject Region 𝑋2 Value 5.99 32.28 Note: if the calculated chi square value lies in the Reject Region the Ho is Rejected. Therefore: The calculated chi square value lies in Reject Region so we must reject the null hypothesis Ha: Accepted, that the average of number of hours dependent of type of student.
  • 25. THANK YOU AND GOD BLESS!