SlideShare a Scribd company logo
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

Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt finalpiyushdhaker
 
Non Parametric Tests
Non Parametric TestsNon Parametric Tests
Non Parametric Tests
Zarrin Ansari
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introductionGeetika Gulyani
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Madhuranath R
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student
Dr. Rupendra Bharti
 
Parametric versus non parametric test
Parametric versus non parametric testParametric versus non parametric test
Parametric versus non parametric test
JWANIKA VANSIYA
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
AmitaChaudhary19
 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
o_devinyak
 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpointkellula
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testingjundumaug1
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Hossain Hemel
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
Rai University
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesisJags Jagdish
 
t-TEst. :D
t-TEst. :Dt-TEst. :D
t-TEst. :D
patatas
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesisvikramlawand
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
Avjinder (Avi) Kaler
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
Rohit kumar
 

What's hot (20)

Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 
Non Parametric Tests
Non Parametric TestsNon Parametric Tests
Non Parametric Tests
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introduction
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student
 
Parametric versus non parametric test
Parametric versus non parametric testParametric versus non parametric test
Parametric versus non parametric test
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpoint
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
t-TEst. :D
t-TEst. :Dt-TEst. :D
t-TEst. :D
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
Spss an introduction
Spss  an introductionSpss  an introduction
Spss an introduction
 

Similar to Chi square tests using SPSS

Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
Parag 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.ppt
Snehamurali18
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
HanaaBayomy
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
KavyasriPuttamreddy
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Sanjay Basukala
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
Michael770443
 
Testing of Hypothesis
Testing of Hypothesis Testing of Hypothesis
Testing of Hypothesis
Chintan Trivedi
 
Unit 3
Unit 3Unit 3
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
rjaisankar
 
Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
SheetalSardhna
 
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
Muhammad Warraich
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
Vikash Keshri
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
Parag Shah
 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inferenceSizwan Ahammed
 
Data Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptxData Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptx
subhashchandra197
 
Chi square
Chi squareChi square
Chisquared test.pptx
Chisquared test.pptxChisquared test.pptx
Chisquared test.pptx
Krishna Krish Krish
 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
Ergin Akalpler
 

Similar to Chi square tests using SPSS (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
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
 
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
 
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
 
Data Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptxData Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptx
 
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
 

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.pptx
Parag Shah
 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric Tests
Parag Shah
 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSS
Parag Shah
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
Parag Shah
 
t test using spss
t test using spsst test using spss
t test using spss
Parag 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 Sciences
Parag 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 excel
Parag Shah
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
Parag Shah
 
Small sample test
Small sample testSmall sample test
Small sample test
Parag Shah
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Parag Shah
 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square test
Parag Shah
 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample test
Parag Shah
 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical Education
Parag Shah
 
Career option for stats
Career option for statsCareer option for stats
Career option for stats
Parag Shah
 

More from Parag Shah (15)

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
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
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

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 

Chi square tests using SPSS

  • 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