SlideShare a Scribd company logo
1 of 29
CHI-SQUARE TESTS
Chi- Square Statistic
If X~𝑁(πœ‡, 𝜎2) then 𝑍 =
π‘‹βˆ’πœ‡
𝜎
~𝑁(0,1) and
𝑍2
=
π‘‹βˆ’πœ‡
𝜎
2
~πœ’2
with 1 d.f. and
π‘‹βˆ’πœ‡
𝜎
2
~πœ’2
with n d.f.
Chi- Square
test
There are three types of chi-square tests.
β€’ A Chi-square goodness of fit test determines if distribution of
sample data matches with the distribution of population.
β€’ A Chi-square test for independence is to test whether two
categorical variables differ from each another.
β€’ A Chi-square test for variance of single sample is to test
whether there is significant difference between sample variance
and population variance
Chi- Square test
– Independence of
Attributes
Chi-Square test is a statistical method to determine if
two categorical variables have a significant
correlation/association between them.
To test independence of attributes
Step 1: H0: Two attributes (categorical variables) are independent
Step 2: H1: Two attributes (categorical variables) are dependent
Step 3: Test statistics: Ο‡2 =
(π‘‚π‘–βˆ’πΈπ‘–)2
𝐸𝑖
where 𝐸𝑖 =
π‘…π‘œπ‘€ π‘‘π‘œπ‘‘π‘Žπ‘™ βˆ—πΆπ‘œπ‘™π‘’π‘šπ‘› π‘‘π‘œπ‘‘π‘Žπ‘™
πΊπ‘Ÿπ‘Žπ‘›π‘‘ π‘‘π‘œπ‘‘π‘Žπ‘™
Step 4: Conclusion
β€’ If p ≀ Level of significance (∝), We Reject Null hypothesis
β€’ If p > Level of significance (∝), We fail to Reject Null hypothesis
[Note: In 2*2 contingency table if expected is less than 5, use Yate’s correction i.e. Continuity
correction in the SPSS output]
Example
A public opinion poll surveyed a simple random sample of 1000 voters. Respondents were
classified by gender (male or female) and by voting preference (Party A, Party B, or Party C).
Results are shown in the contingency table below. Is voting preference affected by gender?
Gender
Voting Preference
Party A Party B Party C
Male 200 150 50
Female 250 300 50
Null & Alternative
Hypothesis
Step 1: H0: Gender and voting preferences are independent.
Step 2: H1: Gender and voting preferences are not independent.
Data in SPSS
Gender
Voting Preference
Party A Party B Party C
Male 200 150 50
Female 250 300 50
Assigning weights
Chi-Square test
Chi-Square test
Chi-Square test
Output
The Chi-square value is 16.204 and p value = 0.000 < 0.05.
We reject the Null hypothesis.
∴ Gender and voting preferences are not independent.
i.e. voting preference is affected by gender
To test goodness of fit
Step 1: H0: There is no significant difference between observed and expected frequencies
Step 2: H1:There is significant difference between observed and expected frequencies
Step 3: Test statistics: Ο‡2 =
(π‘‚π‘–βˆ’πΈπ‘–)2
𝐸𝑖
and p value
Step 4: Conclusion
β€’ If p ≀ Level of significance (∝), We Reject Null hypothesis
β€’ If p > Level of significance (∝), We fail to Reject Null hypothesis
Example1
The number of road accidents on a particular highway during a week is given below. Can it be
concluded that the proportion of accidents are equal for all days?
Day Mon Tue Wed Thu Fri Sat Sun
Accidents 14 16 8 12 11 9 14
Hypothesis
Null Hypothesis: H0: Proportion of accidents are equal for
all days
Alternative Hypothesis: H1: Proportion of accidents are
not equal for all days
Day Accidents
Mon 14
Tue 16
Wed 8
Thu 12
Fri 11
Sat 9
Sun 14
Chi-Square test
Chi-Square test
Output
Chi-Square statistics = 4.167
p value = 0.657 > 0.05
Ho is accepted
So, it can be concluded that the proportion of
accidents are equal for all days
Example 2
Suppose it was suspected an unusual distribution
of blood groups in patients undergoing one type of
surgical procedure. It is known that the expected
distribution for the population served by the
hospital which performs this surgery is 44% group
O, 45% group A, 8% group B and 3% group AB. A
random sample of 187 routine pre-operative blood
grouping results are given below. Do this sample
match with the expected distribution.
Blood
Group
O A B AB
Patients 67 83 29 8
Results for 187 consecutive patients:
Hypothesis
Null Hypothesis: H0: There is no significant difference
between observed and expected distribution of patients
with respect to blood group
[Sample follows expected distribution]
Alternative Hypothesis: H1: There is significant difference
between observed and expected distribution of patients
with respect to blood group
[Sample does not follows expected distribution]
Case Study 1
Blood
Group
Observed
freq.
O 67
A 83
B 29
AB 8
Total N = 187
Case Study 1
Expected distribution for the
population served by the hospital
which performs this surgery is
44% group O,
45% group A,
8% group B and
3% group AB.
Blood
Group
Observed
freq.
Probability Expected freq. =
N*Prob
O 67 0.44 187*0.44 = 82.28
A 83 0.45 187*0.45 = 84.15
B 29 0.08 187*0.08 = 14.96
AB 8 0.03 187*0.03 = 5.61
Total N = 187 1 187
Chi-Square test
Chi-Square test
Chi-Square test
Blood
Group
Observed
freq.
Probability Expected freq. =
N*Prob
O 67 0.44 187*0.44 = 82.28
A 83 0.45 187*0.45 = 84.15
B 29 0.08 187*0.08 = 14.96
AB 8 0.03 187*0.03 = 5.61
Total N = 187 1 187
Output
Chi-Square statistics = 17.048
p value = 0.001 < 0.05
Ho is rejected
So, there is significant difference between observed
and expected distribution of patients with respect to
blood group.
THANK YOU
Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics)
pbshah@hlcollege.edu
www.paragstatistics.wordpress.com

More Related Content

What's hot

Parametric tests
Parametric testsParametric tests
Parametric testsheena45
Β 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testingo_devinyak
Β 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervalsmandalina landy
Β 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpointkellula
Β 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statisticsAnchal Garg
Β 
Statistical inference
Statistical inferenceStatistical inference
Statistical inferenceJags Jagdish
Β 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis TestingKalyan Acharjya
Β 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: EstimationParag Shah
Β 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypothesesRajThakuri
Β 
Confidence interval
Confidence intervalConfidence interval
Confidence intervalDr Renju Ravi
Β 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testingHasnain Baber
Β 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
Β 
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
Β 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06DrZahid Khan
Β 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Ramnath Takiar
Β 

What's hot (20)

Parametric tests
Parametric testsParametric tests
Parametric tests
Β 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
Β 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
Β 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpoint
Β 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Β 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
Β 
Regression ppt
Regression pptRegression ppt
Regression ppt
Β 
Statistical inference
Statistical inferenceStatistical inference
Statistical inference
Β 
T test
T testT test
T test
Β 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
Β 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
Β 
Linear regression
Linear regressionLinear regression
Linear regression
Β 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
Β 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
Β 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testing
Β 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
Β 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Β 
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
Β 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
Β 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)
Β 

Similar to CHI-SQUARE TESTS GUIDE

Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spssParag Shah
Β 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.pptSnehamurali18
Β 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1HanaaBayomy
Β 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesisSanjay Basukala
Β 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisMichael770443
Β 
Testing of Hypothesis
Testing of Hypothesis Testing of Hypothesis
Testing of Hypothesis Chintan Trivedi
Β 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxrjaisankar
Β 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptxSheetalSardhna
Β 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaMuhammad Warraich
Β 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in StatisticsVikash Keshri
Β 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyParag Shah
Β 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inferenceSizwan Ahammed
Β 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxErgin Akalpler
Β 

Similar to CHI-SQUARE TESTS GUIDE (20)

Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
Β 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Β 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
Β 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
Β 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Β 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
Β 
Testing of Hypothesis
Testing of Hypothesis Testing of Hypothesis
Testing of Hypothesis
Β 
Unit 3
Unit 3Unit 3
Unit 3
Β 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
Β 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptx
Β 
Chi square
Chi square Chi square
Chi square
Β 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
Β 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
Β 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
Β 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
Β 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inference
Β 
Chi square
Chi squareChi square
Chi square
Β 
Chisquared test.pptx
Chisquared test.pptxChisquared test.pptx
Chisquared test.pptx
Β 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
Β 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
Β 

More from Parag Shah

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxParag Shah
Β 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric TestsParag Shah
Β 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSSParag Shah
Β 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi squareParag Shah
Β 
t test using spss
t test using spsst test using spss
t test using spssParag Shah
Β 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesParag Shah
Β 
Probability
Probability    Probability
Probability Parag Shah
Β 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excelParag Shah
Β 
Small sample test
Small sample testSmall sample test
Small sample testParag Shah
Β 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAParag Shah
Β 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testParag Shah
Β 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample testParag Shah
Β 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical EducationParag Shah
Β 
Career option for stats
Career option for statsCareer option for stats
Career option for statsParag Shah
Β 

More from Parag Shah (14)

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptx
Β 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric Tests
Β 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSS
Β 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
Β 
t test using spss
t test using spsst test using spss
t test using spss
Β 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Β 
Probability
Probability    Probability
Probability
Β 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excel
Β 
Small sample test
Small sample testSmall sample test
Small sample test
Β 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Β 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square test
Β 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample test
Β 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical Education
Β 
Career option for stats
Career option for statsCareer option for stats
Career option for stats
Β 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
Β 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
Β 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
Β 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
Β 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
Β 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
Β 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
Β 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
Β 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Β 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
Β 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
Β 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Β 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
Β 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
Β 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Β 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
Β 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
Β 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
Β 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Β 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Β 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Β 
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πŸ”
Β 

CHI-SQUARE TESTS GUIDE

  • 2. Chi- Square Statistic If X~𝑁(πœ‡, 𝜎2) then 𝑍 = π‘‹βˆ’πœ‡ 𝜎 ~𝑁(0,1) and 𝑍2 = π‘‹βˆ’πœ‡ 𝜎 2 ~πœ’2 with 1 d.f. and π‘‹βˆ’πœ‡ 𝜎 2 ~πœ’2 with n d.f.
  • 3. Chi- Square test There are three types of chi-square tests. β€’ A Chi-square goodness of fit test determines if distribution of sample data matches with the distribution of population. β€’ A Chi-square test for independence is to test whether two categorical variables differ from each another. β€’ A Chi-square test for variance of single sample is to test whether there is significant difference between sample variance and population variance
  • 4. Chi- Square test – Independence of Attributes Chi-Square test is a statistical method to determine if two categorical variables have a significant correlation/association between them.
  • 5. To test independence of attributes Step 1: H0: Two attributes (categorical variables) are independent Step 2: H1: Two attributes (categorical variables) are dependent Step 3: Test statistics: Ο‡2 = (π‘‚π‘–βˆ’πΈπ‘–)2 𝐸𝑖 where 𝐸𝑖 = π‘…π‘œπ‘€ π‘‘π‘œπ‘‘π‘Žπ‘™ βˆ—πΆπ‘œπ‘™π‘’π‘šπ‘› π‘‘π‘œπ‘‘π‘Žπ‘™ πΊπ‘Ÿπ‘Žπ‘›π‘‘ π‘‘π‘œπ‘‘π‘Žπ‘™ Step 4: Conclusion β€’ If p ≀ Level of significance (∝), We Reject Null hypothesis β€’ If p > Level of significance (∝), We fail to Reject Null hypothesis [Note: In 2*2 contingency table if expected is less than 5, use Yate’s correction i.e. Continuity correction in the SPSS output]
  • 6. Example A public opinion poll surveyed a simple random sample of 1000 voters. Respondents were classified by gender (male or female) and by voting preference (Party A, Party B, or Party C). Results are shown in the contingency table below. Is voting preference affected by gender? Gender Voting Preference Party A Party B Party C Male 200 150 50 Female 250 300 50
  • 7. Null & Alternative Hypothesis Step 1: H0: Gender and voting preferences are independent. Step 2: H1: Gender and voting preferences are not independent.
  • 8. Data in SPSS Gender Voting Preference Party A Party B Party C Male 200 150 50 Female 250 300 50
  • 13. Output The Chi-square value is 16.204 and p value = 0.000 < 0.05. We reject the Null hypothesis. ∴ Gender and voting preferences are not independent. i.e. voting preference is affected by gender
  • 14. To test goodness of fit Step 1: H0: There is no significant difference between observed and expected frequencies Step 2: H1:There is significant difference between observed and expected frequencies Step 3: Test statistics: Ο‡2 = (π‘‚π‘–βˆ’πΈπ‘–)2 𝐸𝑖 and p value Step 4: Conclusion β€’ If p ≀ Level of significance (∝), We Reject Null hypothesis β€’ If p > Level of significance (∝), We fail to Reject Null hypothesis
  • 15. Example1 The number of road accidents on a particular highway during a week is given below. Can it be concluded that the proportion of accidents are equal for all days? Day Mon Tue Wed Thu Fri Sat Sun Accidents 14 16 8 12 11 9 14
  • 16. Hypothesis Null Hypothesis: H0: Proportion of accidents are equal for all days Alternative Hypothesis: H1: Proportion of accidents are not equal for all days
  • 17. Day Accidents Mon 14 Tue 16 Wed 8 Thu 12 Fri 11 Sat 9 Sun 14
  • 20. Output Chi-Square statistics = 4.167 p value = 0.657 > 0.05 Ho is accepted So, it can be concluded that the proportion of accidents are equal for all days
  • 21. Example 2 Suppose it was suspected an unusual distribution of blood groups in patients undergoing one type of surgical procedure. It is known that the expected distribution for the population served by the hospital which performs this surgery is 44% group O, 45% group A, 8% group B and 3% group AB. A random sample of 187 routine pre-operative blood grouping results are given below. Do this sample match with the expected distribution. Blood Group O A B AB Patients 67 83 29 8 Results for 187 consecutive patients:
  • 22. Hypothesis Null Hypothesis: H0: There is no significant difference between observed and expected distribution of patients with respect to blood group [Sample follows expected distribution] Alternative Hypothesis: H1: There is significant difference between observed and expected distribution of patients with respect to blood group [Sample does not follows expected distribution]
  • 23. Case Study 1 Blood Group Observed freq. O 67 A 83 B 29 AB 8 Total N = 187
  • 24. Case Study 1 Expected distribution for the population served by the hospital which performs this surgery is 44% group O, 45% group A, 8% group B and 3% group AB. Blood Group Observed freq. Probability Expected freq. = N*Prob O 67 0.44 187*0.44 = 82.28 A 83 0.45 187*0.45 = 84.15 B 29 0.08 187*0.08 = 14.96 AB 8 0.03 187*0.03 = 5.61 Total N = 187 1 187
  • 27. Chi-Square test Blood Group Observed freq. Probability Expected freq. = N*Prob O 67 0.44 187*0.44 = 82.28 A 83 0.45 187*0.45 = 84.15 B 29 0.08 187*0.08 = 14.96 AB 8 0.03 187*0.03 = 5.61 Total N = 187 1 187
  • 28. Output Chi-Square statistics = 17.048 p value = 0.001 < 0.05 Ho is rejected So, there is significant difference between observed and expected distribution of patients with respect to blood group.
  • 29. THANK YOU Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics) pbshah@hlcollege.edu www.paragstatistics.wordpress.com