SlideShare uma empresa Scribd logo
1 de 15
The Chi Square Test
Muhammad Shahid
Sr. lecturer IIN
Introduction
 We often have occasions to make
comparisons between two characteristics
of something to see if they are linked or
related to each other.
 One way to do this is to work out what we
would expect to find if there was no
relationship between them (the usual null
hypothesis) and what we actually observe.
Introduction
 The test we use to measure the
differences between what is observed
and what is expected according to an
assumed hypothesis is called the chi-
square test.
For Example
 Some null hypotheses may be:
– ‘there is no relationship between the height
of the post RN and Generic BSN students ’.
– ‘there is no connection between the size of
farm and the type of farm’
Important
 The chi square test can only be used on
data that has the following
characteristics:
The data must be in the form
of frequencies
The frequency data must have a
precise numerical value and must be
organised into categories or groups.
The total number of observations must be
greater than 20.
The expected frequency in any one cell
of the table must be greater than 5.
Formula
χ 2 = ∑ (O – E)2
E
χ2 = The value of chi square
O = The observed value
E = The expected value
∑ (O – E)2 = all the values of (O – E) squared then added
together
 Write down the NULL HYPOTHESIS
and ALTERNATIVE HYPOTHESIS
and set the LEVEL OF
SIGNIFICANCE.
 NH ‘ there is no association between gender and
hypertensive status
 AH ‘there is association between gender and
hypertensive status
 We will set the level of significance at 0.05.
Step 01
Construct a table with the information you have observed
or obtained.
Observed Frequencies (O)
HTN
Status
Males Females
N 50 50
PH 20 40
H 10 30
 The number of degrees of freedom to use is: the
number of rows in the table minus 1, multiplied by the
number of columns minus 1. This is (2-1) x (3-1) = 1 x 2 =
2 degrees of freedom.
Critical value X2=5.991
 Look up the significance tables. These will
tell you whether to accept the null
hypothesis or reject it.
Step 02 & 03 significance level
 Step 04 calculation of calculated value
HTN
Status
MALES FEMALES
N E1=40 E2=60
PH E3=24 E4=36
H E5=16 E5=24
Expected frequency = row total x column total
Grand total
Eg: expected frequency for Normal male E1 = (100 x 80) / 200 = 40
HTN
Status
Males Females
Row Total
N 50 50 100
PH 20 40 60
H 10 30 40
Column
total
80 120 200
O E O-E (O-E)2 (O-E)2
E
50 40 10 100 100/40 =2.5
50 60 -10 100 100/60 =1.66
20 24 -4 16 16/24 =0.66
40 36 4 16 16/36 =0.44
10 16 -6 36 36/16 =2.25
30 24 6 36 36/24 =1.5
(X2)=9.01
Add up all of the above numbers to obtain
the value for chi square: χ2 = 9.01
 Comparison of critical and calculated
value
We find that our answer of 9.01 is greater than the
critical value of 5.991 (for 2 degrees of freedom and a
significance level of 0.05) and so we reject the null
hypothesis.
Step Decision
 We reject the null hypotheses because
the calculated value fall into rejection
area
Step 06 conclusion
 There is an association between gender
and hypertensive status at alpha 0.05

Mais conteúdo relacionado

Semelhante a chi square test lecture for nurses in pakistan

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
 
Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776
ohenebabismark508
 
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docxWeek 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
cockekeshia
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
rhetttrevannion
 

Semelhante a chi square test lecture for nurses in pakistan (20)

ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square using excel
Chi square using excelChi square using excel
Chi square using excel
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
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
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
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
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776
 
Test for independence
Test for independence Test for independence
Test for independence
 
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docxWeek 5 Lecture 14 The Chi Square Test Quite often, pat.docx
Week 5 Lecture 14 The Chi Square Test Quite often, pat.docx
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
 
Chi-square test.pptx
Chi-square test.pptxChi-square test.pptx
Chi-square test.pptx
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Chi square[1]
Chi square[1]Chi square[1]
Chi square[1]
 
Ch01_03.ppt
Ch01_03.pptCh01_03.ppt
Ch01_03.ppt
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 

Mais de muhammad shahid (12)

1.1.Introduction to Epidemiology.ppt
1.1.Introduction to Epidemiology.ppt1.1.Introduction to Epidemiology.ppt
1.1.Introduction to Epidemiology.ppt
 
Lecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdfLecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdf
 
Lecture 5 Statistical Power (Handout).ppt
Lecture 5 Statistical Power (Handout).pptLecture 5 Statistical Power (Handout).ppt
Lecture 5 Statistical Power (Handout).ppt
 
MT-Ppt.pptx
MT-Ppt.pptxMT-Ppt.pptx
MT-Ppt.pptx
 
FIRST AID ppt (1).pptx
FIRST AID ppt (1).pptxFIRST AID ppt (1).pptx
FIRST AID ppt (1).pptx
 
Behavoural Psychology curriculum.docx
Behavoural Psychology curriculum.docxBehavoural Psychology curriculum.docx
Behavoural Psychology curriculum.docx
 
Synopsis Writing Guidelines.docx
Synopsis Writing Guidelines.docxSynopsis Writing Guidelines.docx
Synopsis Writing Guidelines.docx
 
cardiac Assessment.ppt
cardiac Assessment.pptcardiac Assessment.ppt
cardiac Assessment.ppt
 
Guess paper biostate
Guess paper biostateGuess paper biostate
Guess paper biostate
 
ENT assessment
ENT assessmentENT assessment
ENT assessment
 
Assignment4 ancova
Assignment4 ancovaAssignment4 ancova
Assignment4 ancova
 
Self directed learning
Self directed learningSelf directed learning
Self directed learning
 

Último

nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetnagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh
 
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetraisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
Call Girls Service Gurgaon
 
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
adityaroy0215
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
mriyagarg453
 
9316020077📞Goa Call Girls Numbers, Call Girls Whatsapp Numbers Goa
9316020077📞Goa  Call Girls  Numbers, Call Girls  Whatsapp Numbers Goa9316020077📞Goa  Call Girls  Numbers, Call Girls  Whatsapp Numbers Goa
9316020077📞Goa Call Girls Numbers, Call Girls Whatsapp Numbers Goa
russian goa call girl and escorts service
 
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near MeRussian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
mriyagarg453
 
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetJalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 

Último (20)

Call Girl Raipur 📲 9999965857 ヅ10k NiGhT Call Girls In Raipur
Call Girl Raipur 📲 9999965857 ヅ10k NiGhT Call Girls In RaipurCall Girl Raipur 📲 9999965857 ヅ10k NiGhT Call Girls In Raipur
Call Girl Raipur 📲 9999965857 ヅ10k NiGhT Call Girls In Raipur
 
nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetnagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
nagpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetraisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
 
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
 
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
 
❤️♀️@ Jaipur Call Girl Agency ❤️♀️@ Manjeet Russian Call Girls Service in Jai...
❤️♀️@ Jaipur Call Girl Agency ❤️♀️@ Manjeet Russian Call Girls Service in Jai...❤️♀️@ Jaipur Call Girl Agency ❤️♀️@ Manjeet Russian Call Girls Service in Jai...
❤️♀️@ Jaipur Call Girl Agency ❤️♀️@ Manjeet Russian Call Girls Service in Jai...
 
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service availableCall Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service available
 
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
VIP Call Girl Sector 88 Gurgaon Delhi Just Call Me 9899900591
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mangalore Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Krishnagiri call girls Tamil aunty 7877702510
Krishnagiri call girls Tamil aunty 7877702510Krishnagiri call girls Tamil aunty 7877702510
Krishnagiri call girls Tamil aunty 7877702510
 
Call Girl Gorakhpur * 8250192130 Service starts from just ₹9999 ✅
Call Girl Gorakhpur * 8250192130 Service starts from just ₹9999 ✅Call Girl Gorakhpur * 8250192130 Service starts from just ₹9999 ✅
Call Girl Gorakhpur * 8250192130 Service starts from just ₹9999 ✅
 
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
 
9316020077📞Goa Call Girls Numbers, Call Girls Whatsapp Numbers Goa
9316020077📞Goa  Call Girls  Numbers, Call Girls  Whatsapp Numbers Goa9316020077📞Goa  Call Girls  Numbers, Call Girls  Whatsapp Numbers Goa
9316020077📞Goa Call Girls Numbers, Call Girls Whatsapp Numbers Goa
 
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near MeRussian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
Russian Call Girls in Noida Pallavi 9711199171 High Class Call Girl Near Me
 
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetJalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Jalna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 

chi square test lecture for nurses in pakistan

  • 1. The Chi Square Test Muhammad Shahid Sr. lecturer IIN
  • 2. Introduction  We often have occasions to make comparisons between two characteristics of something to see if they are linked or related to each other.  One way to do this is to work out what we would expect to find if there was no relationship between them (the usual null hypothesis) and what we actually observe.
  • 3. Introduction  The test we use to measure the differences between what is observed and what is expected according to an assumed hypothesis is called the chi- square test.
  • 4. For Example  Some null hypotheses may be: – ‘there is no relationship between the height of the post RN and Generic BSN students ’. – ‘there is no connection between the size of farm and the type of farm’
  • 5. Important  The chi square test can only be used on data that has the following characteristics: The data must be in the form of frequencies The frequency data must have a precise numerical value and must be organised into categories or groups. The total number of observations must be greater than 20. The expected frequency in any one cell of the table must be greater than 5.
  • 6. Formula χ 2 = ∑ (O – E)2 E χ2 = The value of chi square O = The observed value E = The expected value ∑ (O – E)2 = all the values of (O – E) squared then added together
  • 7.  Write down the NULL HYPOTHESIS and ALTERNATIVE HYPOTHESIS and set the LEVEL OF SIGNIFICANCE.  NH ‘ there is no association between gender and hypertensive status  AH ‘there is association between gender and hypertensive status  We will set the level of significance at 0.05. Step 01
  • 8. Construct a table with the information you have observed or obtained. Observed Frequencies (O) HTN Status Males Females N 50 50 PH 20 40 H 10 30
  • 9.  The number of degrees of freedom to use is: the number of rows in the table minus 1, multiplied by the number of columns minus 1. This is (2-1) x (3-1) = 1 x 2 = 2 degrees of freedom. Critical value X2=5.991  Look up the significance tables. These will tell you whether to accept the null hypothesis or reject it. Step 02 & 03 significance level
  • 10.  Step 04 calculation of calculated value HTN Status MALES FEMALES N E1=40 E2=60 PH E3=24 E4=36 H E5=16 E5=24 Expected frequency = row total x column total Grand total Eg: expected frequency for Normal male E1 = (100 x 80) / 200 = 40
  • 11. HTN Status Males Females Row Total N 50 50 100 PH 20 40 60 H 10 30 40 Column total 80 120 200
  • 12. O E O-E (O-E)2 (O-E)2 E 50 40 10 100 100/40 =2.5 50 60 -10 100 100/60 =1.66 20 24 -4 16 16/24 =0.66 40 36 4 16 16/36 =0.44 10 16 -6 36 36/16 =2.25 30 24 6 36 36/24 =1.5 (X2)=9.01 Add up all of the above numbers to obtain the value for chi square: χ2 = 9.01
  • 13.  Comparison of critical and calculated value We find that our answer of 9.01 is greater than the critical value of 5.991 (for 2 degrees of freedom and a significance level of 0.05) and so we reject the null hypothesis.
  • 14. Step Decision  We reject the null hypotheses because the calculated value fall into rejection area
  • 15. Step 06 conclusion  There is an association between gender and hypertensive status at alpha 0.05