SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
TESTING OF HYPOTHESIS
CHI-SQUARE TESTS
Chi- Square test
• To test goodness of fit
• To test independence of attributes
• To test a specified value of the population variance
Testing of hypothesis - Chi-Square test
To test goodness of fit
• Step 1: Null hypothesis H0: There is no significant difference between observed
and expected frequencies
• Step 2: Alternative hypothesis H1:There is significant difference between
observed and expected frequencies
• Step 3: Test statistics
χ2 =
(𝑂 𝑖−𝐸 𝑖)2
𝐸 𝑖
• Step 4: Table value of χ2
at 𝛼 % level of significance and 𝑛 − 1 d.f.
• Step 5: If χ2
≤ χ2
table value, H0 is Accepted
If χ2 > χ2 table value, H0 is Rejected
Case Study
Suppose we suspected an unusual distribution of blood groups in patients
undergoing one type of surgical procedure. We know 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. We can take a random sample of
routine pre-operative blood grouping results and compare these with the expected
distribution.
Results for 187 consecutive patients:
Blood
Group
O A B AB
Patients 67 83 29 8
To test independence of attributes
• Step 1: Null hypothesis H0: Two attributes are independent
• Step 2: Alternative hypothesis H1: Two attributes are dependent
• Step 3: Test statistics
χ2
=
(𝑂 𝑖−𝐸 𝑖)2
𝐸 𝑖
where 𝐸𝑖 =
𝑅𝑜𝑤 𝑡𝑜𝑡𝑎𝑙 ∗𝐶𝑜𝑙𝑢𝑚𝑛 𝑡𝑜𝑡𝑎𝑙
𝐺𝑟𝑎𝑛𝑑 𝑡𝑜𝑡𝑎𝑙
• Step 4: Table value of χ2
at 𝛼 % level of significance and (𝑟 − 1)(𝑐 − 1) d.f.
• Step 5: If χ2
≤ χ2
table value, H0 is Accepted
If χ2
> χ2
table value, H0 is Rejected
Case Study
There is a theory that the gender of a baby in the womb is related to the baby’s
heart rate: baby girls tend to have higher heart rates. Suppose we wish to test this
theory. We examine the heart rate records of 40 babies taken during their mothers’
last prenatal check-ups before delivery, and to each of these 40 randomly selected
records we compute the values of two random measures: 1) gender and 2) heart
rate.
Gender Heart rate
Low High
Girl 111 7
Boy 17 5
To test a specified value of the population variance
• Step 1: Null hypothesis H0: 𝜎2
= 𝜎0
2
• Step 2: Alternative hypothesis H1: 𝜎2 ≠ 𝜎0
2
• Step 3: Test statistics
χ2
=
𝑛𝑆2
𝜎2
• Step 4: Table value of χ2
at 𝛼 % level of significance and 𝑛 − 1 d.f.
• Step 5: If χ2
≤ χ2
table value, H0 is Accepted
If χ2
> χ2
table value, H0 is Rejected
Case Study
We have a sample of 41 girl basketball players from Xavier High School with
variance of their as 4. We want to know if their heights are truly a random sample
of the general high school population with respect to variance. We know from a
previous study that the standard deviation of the heights of all high school girls of
that city is 2.2.

More Related Content

PPTX
Two-Way ANOVA Overview & SPSS interpretation
PPTX
Analysis of variance (ANOVA) everything you need to know
PDF
Kendall's ,partial correlation and scatter plot
PPTX
Parametric test
PPTX
PPTX
F test and ANOVA
PDF
Type I and Type II Errors in Research Methodology
PPTX
Logistic regression with SPSS examples
Two-Way ANOVA Overview & SPSS interpretation
Analysis of variance (ANOVA) everything you need to know
Kendall's ,partial correlation and scatter plot
Parametric test
F test and ANOVA
Type I and Type II Errors in Research Methodology
Logistic regression with SPSS examples

What's hot (20)

PPTX
What is a Mann Whitney U?
PPT
Mann Whitney U test
PPTX
non parametric statistics
PPTX
Multivariate data analysis
PDF
Missing data handling
PPTX
Nonparametric tests
PPTX
Parametric Test
PPT
Why we run cronbach’s alpha
PPTX
Small sample test
PDF
Categorical data analysis
PPTX
Sampling Technique - Anish
PPTX
CORRELATION.pptx
PPT
08 test of hypothesis large sample.ppt
PPTX
Correlation analysis
PPTX
Basic Statistics & Data Analysis
PPTX
Spearman's Rank order Correlation
PPT
Paired t Test
PPTX
Reporting pearson correlation in apa
PPT
Research Methology -Factor Analyses
PPT
Multinomial logisticregression basicrelationships
What is a Mann Whitney U?
Mann Whitney U test
non parametric statistics
Multivariate data analysis
Missing data handling
Nonparametric tests
Parametric Test
Why we run cronbach’s alpha
Small sample test
Categorical data analysis
Sampling Technique - Anish
CORRELATION.pptx
08 test of hypothesis large sample.ppt
Correlation analysis
Basic Statistics & Data Analysis
Spearman's Rank order Correlation
Paired t Test
Reporting pearson correlation in apa
Research Methology -Factor Analyses
Multinomial logisticregression basicrelationships
Ad

Similar to Testing of hypothesis - Chi-Square test (20)

PPTX
Biostatistics- lesson is chapter-10.pptx
PPTX
Chi square test final
PPTX
Chi square test
PPTX
Chi Squ.pptx.statisticcs.109876543210987
PDF
Chi sqaure test
PDF
Lect w7 t_test_amp_chi_test
PPT
Chi square mahmoud
PDF
Chisquare Test of Association.pdf in biostatistics
PPTX
Hypothesis testing part i
PDF
Chi square test
PPT
chi square test lecture for nurses in pakistan
PPTX
Chi square test
PDF
Non Parametric Test by Vikramjit Singh
PPTX
Ch 11.2 Chi Squared Test for Independence.pptx
PPTX
Chi square test.pptxthakida thom thakida thom th
PPTX
Chi-Square Test assignment Stat ppt.pptx
DOCX
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
PPTX
Chi-square test.pptx
PDF
Unit-4.-Chi-squjkljl;jj;ljl;jlm;lml;mare.pdf
Biostatistics- lesson is chapter-10.pptx
Chi square test final
Chi square test
Chi Squ.pptx.statisticcs.109876543210987
Chi sqaure test
Lect w7 t_test_amp_chi_test
Chi square mahmoud
Chisquare Test of Association.pdf in biostatistics
Hypothesis testing part i
Chi square test
chi square test lecture for nurses in pakistan
Chi square test
Non Parametric Test by Vikramjit Singh
Ch 11.2 Chi Squared Test for Independence.pptx
Chi square test.pptxthakida thom thakida thom th
Chi-Square Test assignment Stat ppt.pptx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Chi-square test.pptx
Unit-4.-Chi-squjkljl;jj;ljl;jlm;lml;mare.pdf
Ad

More from Parag Shah (15)

PPTX
Basic Statistics in 1 hour.pptx
PPTX
Non- Parametric Tests
PPTX
Correlation & Regression Analysis using SPSS
PPTX
Proportion test using Chi square
PPTX
Chi square tests using spss
PPTX
Chi square tests using SPSS
PPTX
t test using spss
PPTX
Basics of Hypothesis testing for Pharmacy
PPTX
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
PPTX
Probability
PPTX
Basic stat analysis using excel
PPTX
Statistical inference: Estimation
PPTX
Testing of hypothesis - large sample test
PPTX
Statistics for Physical Education
PPTX
Career option for stats
Basic Statistics in 1 hour.pptx
Non- Parametric Tests
Correlation & Regression Analysis using SPSS
Proportion test using Chi square
Chi square tests using spss
Chi square tests using SPSS
t test using spss
Basics of Hypothesis testing for Pharmacy
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Probability
Basic stat analysis using excel
Statistical inference: Estimation
Testing of hypothesis - large sample test
Statistics for Physical Education
Career option for stats

Recently uploaded (20)

PPT
Quality review (1)_presentation of this 21
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Computer network topology notes for revision
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
Introduction to the R Programming Language
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Introduction to machine learning and Linear Models
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Quality review (1)_presentation of this 21
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Miokarditis (Inflamasi pada Otot Jantung)
climate analysis of Dhaka ,Banglades.pptx
Fluorescence-microscope_Botany_detailed content
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Computer network topology notes for revision
Introduction-to-Cloud-ComputingFinal.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Supervised vs unsupervised machine learning algorithms
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
STUDY DESIGN details- Lt Col Maksud (21).pptx
Introduction to the R Programming Language
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Introduction to Knowledge Engineering Part 1
Introduction to machine learning and Linear Models
The THESIS FINAL-DEFENSE-PRESENTATION.pptx

Testing of hypothesis - Chi-Square test

  • 2. Chi- Square test • To test goodness of fit • To test independence of attributes • To test a specified value of the population variance
  • 4. To test goodness of fit • Step 1: Null hypothesis H0: There is no significant difference between observed and expected frequencies • Step 2: Alternative hypothesis H1:There is significant difference between observed and expected frequencies • Step 3: Test statistics χ2 = (𝑂 𝑖−𝐸 𝑖)2 𝐸 𝑖 • Step 4: Table value of χ2 at 𝛼 % level of significance and 𝑛 − 1 d.f. • Step 5: If χ2 ≤ χ2 table value, H0 is Accepted If χ2 > χ2 table value, H0 is Rejected
  • 5. Case Study Suppose we suspected an unusual distribution of blood groups in patients undergoing one type of surgical procedure. We know 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. We can take a random sample of routine pre-operative blood grouping results and compare these with the expected distribution. Results for 187 consecutive patients: Blood Group O A B AB Patients 67 83 29 8
  • 6. To test independence of attributes • Step 1: Null hypothesis H0: Two attributes are independent • Step 2: Alternative hypothesis H1: Two attributes are dependent • Step 3: Test statistics χ2 = (𝑂 𝑖−𝐸 𝑖)2 𝐸 𝑖 where 𝐸𝑖 = 𝑅𝑜𝑤 𝑡𝑜𝑡𝑎𝑙 ∗𝐶𝑜𝑙𝑢𝑚𝑛 𝑡𝑜𝑡𝑎𝑙 𝐺𝑟𝑎𝑛𝑑 𝑡𝑜𝑡𝑎𝑙 • Step 4: Table value of χ2 at 𝛼 % level of significance and (𝑟 − 1)(𝑐 − 1) d.f. • Step 5: If χ2 ≤ χ2 table value, H0 is Accepted If χ2 > χ2 table value, H0 is Rejected
  • 7. Case Study There is a theory that the gender of a baby in the womb is related to the baby’s heart rate: baby girls tend to have higher heart rates. Suppose we wish to test this theory. We examine the heart rate records of 40 babies taken during their mothers’ last prenatal check-ups before delivery, and to each of these 40 randomly selected records we compute the values of two random measures: 1) gender and 2) heart rate. Gender Heart rate Low High Girl 111 7 Boy 17 5
  • 8. To test a specified value of the population variance • Step 1: Null hypothesis H0: 𝜎2 = 𝜎0 2 • Step 2: Alternative hypothesis H1: 𝜎2 ≠ 𝜎0 2 • Step 3: Test statistics χ2 = 𝑛𝑆2 𝜎2 • Step 4: Table value of χ2 at 𝛼 % level of significance and 𝑛 − 1 d.f. • Step 5: If χ2 ≤ χ2 table value, H0 is Accepted If χ2 > χ2 table value, H0 is Rejected
  • 9. Case Study We have a sample of 41 girl basketball players from Xavier High School with variance of their as 4. We want to know if their heights are truly a random sample of the general high school population with respect to variance. We know from a previous study that the standard deviation of the heights of all high school girls of that city is 2.2.