SlideShare uma empresa Scribd logo
1 de 19
Chi Square distribution and
analysis of frequency
Dr Inn Kynn Khaing
M.B.,B.S, MPH, MSc (Healthcare Administration) (Japan)
Lecturer, Department of Biostatistics
Outline
 Fisher exact test
 McNemar’s test
2
 The chi-square test is not an appropriate method of analysis if minimum
expected frequency requirements are not met.
 For example : if n is less than 20 or if n is between 20 and 40 and one of the
expected frequencies is less than 5, the chi-square test should be avoided.
 It is called exact because, if desired, it permits us to calculate the exact
probability of obtaining the observed results or results that are more
extreme.
 Assumptions
1. The data consist of A sample observations from population 1 and B
sample observations from population 2.
2. The samples are random and independent.
3. Each observation can be categorized as one of two mutually exclusive
types.
3
Data Arrangement
 When we use the Fisher exact test, we arrange the data in the form of a
2 x 2 contingency table.
 We arrange the frequencies in such a way that A > B and choose the
characteristic of interest so that a/A > b/B. Some theorists believe that
Fisher’s exact test is appropriate only when both marginal totals of Table
are fixed by the experiment.
4
5
Hypotheses
Two-sided
 H0: The proportion with the characteristic of interest is the same in
both populations; i.e, p1 = p2
 HA: The proportion with the characteristic of interest is not the same
in both populations; p1 ≠ p2
One-sided
 H0: The proportion with the characteristic of interest in population 1
is less than or the same as the proportion in population 2; p1 ≤ p2.
 HA: The proportion with the characteristic of interest is greater in
population 1 than in population 2; p1 > p2.
6
Test Statistic
 The test statistic is b, the number in sample 2 with the characteristic of
interest.
Decision Rule
Two-sided test
 If the observed value of b is ≤ the integer in a given column, reject H0 at a
level of significance equal to twice the significance level shown at the top
of that column.
 For example, suppose A = 8, B = 7, a = 7, and the observed value of b is 1.
We can reject the null hypothesis at the 2(.05)=.10, the 2(0.025)= 0.05, and
the 2 (0.01)=0.02 levels of significance, but not at the 2 (0.005)=.01 level
7
Decision Rule
2. One-sided test
 If the observed value of b is less than or equal to the integer in a given
column, reject H0 at the level of significance shown at the top of that
column.
 For example, suppose A = 16, B = 8, a = 4, and the observed value of b is 3.
We can reject the null hypothesis at the .05 and .025 levels of significance,
but not at the .01 or .005 levels.
The purpose of a study was to evaluate the long-term efficacy of taking
indinavir/ritonavir twice a day in combination with two nucleoside reverse
transcriptase inhibitors among HIV-positive subjects who were divided into two
groups. Group 1 consisted of patients who had no history of taking protease
inhibitors. Group 2 consisted of patients who had a previous history taking a
protease inhibitor. Table shows whether these subjects remained on the
regimen for the 120 weeks of follow-up.
We wish to know if we may conclude that patients classified as group 1 have a
lower probability than subjects in group 2 of remaining on the regimen for 120
weeks.
8
Solution:
1. Data. The data are rearranged to conform to the layout of given table.
Remaining on the regimen is the characteristic of interest.
2. Assumptions. We presume that the assumptions for application of the Fisher
exact test are met.
9
We arrange the frequencies in such a way that A > B and
choose the characteristic of interest so that a/A > b/B.
Solution:
3. Hypotheses.
H0: The proportion of subjects remaining 120 weeks on the regimen in a
population of patients classified as group 2 is the same as or less than the
proportion of subjects remaining on the regimen 120 weeks in a population
classified as group 1.
HA: Group 2 patients have a higher rate than group 1 patients of remaining
on the regimen for 120 weeks.
4. Test statistic. The test statistic is the observed value of b as shown in table.
5. Distribution of test statistic. We determine the significance of b by
consulting Appendix Table J.
6. Decision rule. Suppose we let α=.05. The decision rule, then, is to reject H0 if
the observed value of b is equal to or less than 1, the value of b in Table J for
A = 12, B = 9, a = 8, and α=.05.
10
Solution:
7. Calculation of test statistic. The observed value of b, as shown in table is 2.
8. Statistical decision. Since 2 > 1, we fail to reject H0.
9. Conclusion. Since we fail to reject H0, we conclude that the null hypothesis
may be true. That is, it may be true that the rate of remaining on the
regimen for 120 weeks is the same or less for the PI experienced group
compared to the PI naive group.
10. p value. We see in Table J that when A = 12, B = 9, a = 8, the value of b = 2
has an exact probability of occurring by chance alone, when H0 is true,
greater than .05. p>0.05
11
Test for paired nominal data
 When categorical data are paired, the McNemar test is the appropriate test
 When data are paired and the outcome of interest is a proportion, the
McNemar Test is used to evaluate hypotheses about the data.
 Developed by Quinn McNemar in 1947
 Sometimes called the McNemar Chi-square test because the test statistic
has a Chi-square distribution
1st subject of pair
Variable 1
Variable 2 0 1 Total
2nd subject of pair
0 e f
e + f
1 g h
g + h
Total e + g f + h n 12
Example:
Over a period of a 6 months the registrar selected every patient with this
disorder and paired them off as far as possible by reference to age, sex,
and frequency of ulceration. Finally she had 108 patients in 54 pairs. To
one member of each pair, chosen by the toss of coin, she gave treatment
A, which she and her colleagues in the unit had hitherto regarded as the
best; to the other member she gave the new treatment, B. Both forms of
treatments are local applications, and they cannot be made to look alike.
Consequently to avoid bias in the assessment of the results a colleague
recorded the results of treatment without knowing which patient in each
pair had which treatment.
13
Member of pair
receiving treatment A
Member of pair
receiving treatment B
Pairs of patients
Responded Responded 16
Responded Did not respond 23
Did not respond Responded 10
Did not respond Did not respond 5
Total 54
1st subject of pair
Responded Did not respond
2nd subject of
pair
Responded 16 10
Did not respond 23 5
Total e + g f + h 14
1st subject of pair
Responded Did not respond
2nd subject of
pair
Responded 16 (e) 10 (f)
Did not respond 23 (g) 5 (h)
X2 = (f-g)2/ (f + g) with 1 d.f
X2 = (10-23)2/ (10 + 23) = 5.12
Or with a continuity correction
X2 = ( ǀf-gǀ -1 )2/ (f + g) with 1 d.f
X2 = ( ǀ10-23ǀ -1 )2/ (10 + 23) = 4.36
Both X2 values 0.02 < P < 0.05
Conclusion:
Treatment A gave significantly
better results than treatment B.
15
 The sampling distribution of the McNemar statistic is a Chi-square distribution.
 For a test with alpha = 0.05, the critical value for the McNemar statistic = 3.84.
 The null hypothesis is not rejected if the McNemar statistic < 3.84.
 The null hypothesis is rejected if the McNemar statistic > 3.84.
16
For ( r x 1) or (1 x c) table : df = k-1 where k = number of categories
For many assumptions : df = k=r where r = number of restrictions
For (r x c) table : df = (r-1) (c-1) where r = rows, c = column
The most simple and commonly applied table is 2 x 2 table which has two rows
and columns.
17
18
4. In a study of relationship between gender and smoking habit, 100 couples had been
interviewed. After controlling age and socioeconomic status, it was found that
Both male and female smokers 24 couples
Neither male nor female smokers 40 couples
Male but Not female smokers 26 couples
Not male but female smokers 10 couples
Construct a cross-table from the above data.
Analyze these data by using McNemar’s test.
Find 95% confidence limits of the difference in proportions.
19

Mais conteúdo relacionado

Mais procurados

Class24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthocClass24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthoc
Betynatha Kb
 
Aron chpt 11 ed (2)
Aron chpt 11 ed (2)Aron chpt 11 ed (2)
Aron chpt 11 ed (2)
Sandra Nicks
 
ANOVA-One Way Classification
ANOVA-One Way ClassificationANOVA-One Way Classification
ANOVA-One Way Classification
Sharlaine Ruth
 
Chi Square
Chi SquareChi Square
Chi Square
Jolie Yu
 

Mais procurados (20)

Chi square
Chi square Chi square
Chi square
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Class24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthocClass24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthoc
 
Chapter12
Chapter12Chapter12
Chapter12
 
The chi – square test
The chi – square testThe chi – square test
The chi – square test
 
Goodness Of Fit Test
Goodness Of Fit TestGoodness Of Fit Test
Goodness Of Fit Test
 
Chi squared test
Chi squared test Chi squared test
Chi squared test
 
Freq distribution
Freq distributionFreq distribution
Freq distribution
 
Chisquare test
Chisquare  testChisquare  test
Chisquare test
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
Two sample t-test
Two sample t-testTwo sample t-test
Two sample t-test
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Aron chpt 11 ed (2)
Aron chpt 11 ed (2)Aron chpt 11 ed (2)
Aron chpt 11 ed (2)
 
Chi -square test
Chi -square testChi -square test
Chi -square test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
ANOVA-One Way Classification
ANOVA-One Way ClassificationANOVA-One Way Classification
ANOVA-One Way Classification
 
Chi square Test Using SPSS
Chi square Test Using SPSSChi square Test Using SPSS
Chi square Test Using SPSS
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
 
Chi Square
Chi SquareChi Square
Chi Square
 

Semelhante a Chi square(hospital admin)

Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Sumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
Sumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
ghalan
 
1. The standard deviation of the diameter at breast height, or DBH.docx
1. The standard deviation of the diameter at breast height, or DBH.docx1. The standard deviation of the diameter at breast height, or DBH.docx
1. The standard deviation of the diameter at breast height, or DBH.docx
paynetawnya
 
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(hospital admin) (20)

Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Unit # 04, chi-square test.ppt
Unit # 04, chi-square test.pptUnit # 04, chi-square test.ppt
Unit # 04, chi-square test.ppt
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Chisquare
ChisquareChisquare
Chisquare
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing Solution
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
SNM-1.pdf
SNM-1.pdfSNM-1.pdf
SNM-1.pdf
 
1. The standard deviation of the diameter at breast height, or DBH.docx
1. The standard deviation of the diameter at breast height, or DBH.docx1. The standard deviation of the diameter at breast height, or DBH.docx
1. The standard deviation of the diameter at breast height, or DBH.docx
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 
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
 
Test of significance
Test of significanceTest of significance
Test of significance
 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Testing hypothesis
Testing hypothesisTesting hypothesis
Testing hypothesis
 

Mais de Mmedsc Hahm

Mais de Mmedsc Hahm (20)

Solid waste-management-2858710
Solid waste-management-2858710Solid waste-management-2858710
Solid waste-management-2858710
 
Situation analysis
Situation analysisSituation analysis
Situation analysis
 
Quantification of medicines need
Quantification of medicines needQuantification of medicines need
Quantification of medicines need
 
Quality in hospital
Quality in hospitalQuality in hospital
Quality in hospital
 
Patient satisfaction &amp; quality in health care (16.3.2016) dr.nyunt nyunt wai
Patient satisfaction &amp; quality in health care (16.3.2016) dr.nyunt nyunt waiPatient satisfaction &amp; quality in health care (16.3.2016) dr.nyunt nyunt wai
Patient satisfaction &amp; quality in health care (16.3.2016) dr.nyunt nyunt wai
 
Organising
OrganisingOrganising
Organising
 
Nscbl slide
Nscbl slideNscbl slide
Nscbl slide
 
Introduction to hahm 2017
Introduction to hahm 2017Introduction to hahm 2017
Introduction to hahm 2017
 
Hss lecture 2016 jan
Hss lecture 2016 janHss lecture 2016 jan
Hss lecture 2016 jan
 
Hospital management17
Hospital management17Hospital management17
Hospital management17
 
Hopital stat
Hopital statHopital stat
Hopital stat
 
Health planning approaches hahm 17
Health planning approaches hahm 17Health planning approaches hahm 17
Health planning approaches hahm 17
 
Ephs and nhp
Ephs and nhpEphs and nhp
Ephs and nhp
 
Directing and leading 2017
Directing and leading 2017Directing and leading 2017
Directing and leading 2017
 
Concepts of em
Concepts of emConcepts of em
Concepts of em
 
Access to medicines p pt 17 10-2015
Access to medicines p pt 17 10-2015Access to medicines p pt 17 10-2015
Access to medicines p pt 17 10-2015
 
The dynamics of disease transmission
The dynamics of disease transmissionThe dynamics of disease transmission
The dynamics of disease transmission
 
Study designs dr.wah
Study designs dr.wahStudy designs dr.wah
Study designs dr.wah
 
Standardization dr.wah
Standardization dr.wahStandardization dr.wah
Standardization dr.wah
 
Sdg
SdgSdg
Sdg
 

Último

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
 
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
mahaiklolahd
 
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetPatna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call GirlsPunjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetSangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMuzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Service
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024
Sheetaleventcompany
 
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
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Sheetaleventcompany
 
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
Sheetaleventcompany
 

Último (20)

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 Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
 
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetPatna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Patna Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bihar Sharif Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali PunjabCall Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
 
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thrissur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real MeetVip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
 
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call GirlsPunjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
 
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetThoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Thoothukudi Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Mathura Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort ServiceSexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
 
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetSangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Sangli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetMuzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Muzaffarpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetBhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Bhagalpur Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024
 
Independent Call Girls Hyderabad 💋 9352988975 💋 Genuine WhatsApp Number for R...
Independent Call Girls Hyderabad 💋 9352988975 💋 Genuine WhatsApp Number for R...Independent Call Girls Hyderabad 💋 9352988975 💋 Genuine WhatsApp Number for R...
Independent Call Girls Hyderabad 💋 9352988975 💋 Genuine WhatsApp Number for R...
 
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
 
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlKolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
 
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
💚 Punjabi Call Girls In Chandigarh 💯Lucky 🔝8868886958🔝Call Girl In Chandigarh
 

Chi square(hospital admin)

  • 1. Chi Square distribution and analysis of frequency Dr Inn Kynn Khaing M.B.,B.S, MPH, MSc (Healthcare Administration) (Japan) Lecturer, Department of Biostatistics
  • 2. Outline  Fisher exact test  McNemar’s test 2
  • 3.  The chi-square test is not an appropriate method of analysis if minimum expected frequency requirements are not met.  For example : if n is less than 20 or if n is between 20 and 40 and one of the expected frequencies is less than 5, the chi-square test should be avoided.  It is called exact because, if desired, it permits us to calculate the exact probability of obtaining the observed results or results that are more extreme.  Assumptions 1. The data consist of A sample observations from population 1 and B sample observations from population 2. 2. The samples are random and independent. 3. Each observation can be categorized as one of two mutually exclusive types. 3
  • 4. Data Arrangement  When we use the Fisher exact test, we arrange the data in the form of a 2 x 2 contingency table.  We arrange the frequencies in such a way that A > B and choose the characteristic of interest so that a/A > b/B. Some theorists believe that Fisher’s exact test is appropriate only when both marginal totals of Table are fixed by the experiment. 4
  • 5. 5 Hypotheses Two-sided  H0: The proportion with the characteristic of interest is the same in both populations; i.e, p1 = p2  HA: The proportion with the characteristic of interest is not the same in both populations; p1 ≠ p2 One-sided  H0: The proportion with the characteristic of interest in population 1 is less than or the same as the proportion in population 2; p1 ≤ p2.  HA: The proportion with the characteristic of interest is greater in population 1 than in population 2; p1 > p2.
  • 6. 6 Test Statistic  The test statistic is b, the number in sample 2 with the characteristic of interest. Decision Rule Two-sided test  If the observed value of b is ≤ the integer in a given column, reject H0 at a level of significance equal to twice the significance level shown at the top of that column.  For example, suppose A = 8, B = 7, a = 7, and the observed value of b is 1. We can reject the null hypothesis at the 2(.05)=.10, the 2(0.025)= 0.05, and the 2 (0.01)=0.02 levels of significance, but not at the 2 (0.005)=.01 level
  • 7. 7 Decision Rule 2. One-sided test  If the observed value of b is less than or equal to the integer in a given column, reject H0 at the level of significance shown at the top of that column.  For example, suppose A = 16, B = 8, a = 4, and the observed value of b is 3. We can reject the null hypothesis at the .05 and .025 levels of significance, but not at the .01 or .005 levels.
  • 8. The purpose of a study was to evaluate the long-term efficacy of taking indinavir/ritonavir twice a day in combination with two nucleoside reverse transcriptase inhibitors among HIV-positive subjects who were divided into two groups. Group 1 consisted of patients who had no history of taking protease inhibitors. Group 2 consisted of patients who had a previous history taking a protease inhibitor. Table shows whether these subjects remained on the regimen for the 120 weeks of follow-up. We wish to know if we may conclude that patients classified as group 1 have a lower probability than subjects in group 2 of remaining on the regimen for 120 weeks. 8
  • 9. Solution: 1. Data. The data are rearranged to conform to the layout of given table. Remaining on the regimen is the characteristic of interest. 2. Assumptions. We presume that the assumptions for application of the Fisher exact test are met. 9 We arrange the frequencies in such a way that A > B and choose the characteristic of interest so that a/A > b/B.
  • 10. Solution: 3. Hypotheses. H0: The proportion of subjects remaining 120 weeks on the regimen in a population of patients classified as group 2 is the same as or less than the proportion of subjects remaining on the regimen 120 weeks in a population classified as group 1. HA: Group 2 patients have a higher rate than group 1 patients of remaining on the regimen for 120 weeks. 4. Test statistic. The test statistic is the observed value of b as shown in table. 5. Distribution of test statistic. We determine the significance of b by consulting Appendix Table J. 6. Decision rule. Suppose we let α=.05. The decision rule, then, is to reject H0 if the observed value of b is equal to or less than 1, the value of b in Table J for A = 12, B = 9, a = 8, and α=.05. 10
  • 11. Solution: 7. Calculation of test statistic. The observed value of b, as shown in table is 2. 8. Statistical decision. Since 2 > 1, we fail to reject H0. 9. Conclusion. Since we fail to reject H0, we conclude that the null hypothesis may be true. That is, it may be true that the rate of remaining on the regimen for 120 weeks is the same or less for the PI experienced group compared to the PI naive group. 10. p value. We see in Table J that when A = 12, B = 9, a = 8, the value of b = 2 has an exact probability of occurring by chance alone, when H0 is true, greater than .05. p>0.05 11
  • 12. Test for paired nominal data  When categorical data are paired, the McNemar test is the appropriate test  When data are paired and the outcome of interest is a proportion, the McNemar Test is used to evaluate hypotheses about the data.  Developed by Quinn McNemar in 1947  Sometimes called the McNemar Chi-square test because the test statistic has a Chi-square distribution 1st subject of pair Variable 1 Variable 2 0 1 Total 2nd subject of pair 0 e f e + f 1 g h g + h Total e + g f + h n 12
  • 13. Example: Over a period of a 6 months the registrar selected every patient with this disorder and paired them off as far as possible by reference to age, sex, and frequency of ulceration. Finally she had 108 patients in 54 pairs. To one member of each pair, chosen by the toss of coin, she gave treatment A, which she and her colleagues in the unit had hitherto regarded as the best; to the other member she gave the new treatment, B. Both forms of treatments are local applications, and they cannot be made to look alike. Consequently to avoid bias in the assessment of the results a colleague recorded the results of treatment without knowing which patient in each pair had which treatment. 13
  • 14. Member of pair receiving treatment A Member of pair receiving treatment B Pairs of patients Responded Responded 16 Responded Did not respond 23 Did not respond Responded 10 Did not respond Did not respond 5 Total 54 1st subject of pair Responded Did not respond 2nd subject of pair Responded 16 10 Did not respond 23 5 Total e + g f + h 14
  • 15. 1st subject of pair Responded Did not respond 2nd subject of pair Responded 16 (e) 10 (f) Did not respond 23 (g) 5 (h) X2 = (f-g)2/ (f + g) with 1 d.f X2 = (10-23)2/ (10 + 23) = 5.12 Or with a continuity correction X2 = ( ǀf-gǀ -1 )2/ (f + g) with 1 d.f X2 = ( ǀ10-23ǀ -1 )2/ (10 + 23) = 4.36 Both X2 values 0.02 < P < 0.05 Conclusion: Treatment A gave significantly better results than treatment B. 15
  • 16.  The sampling distribution of the McNemar statistic is a Chi-square distribution.  For a test with alpha = 0.05, the critical value for the McNemar statistic = 3.84.  The null hypothesis is not rejected if the McNemar statistic < 3.84.  The null hypothesis is rejected if the McNemar statistic > 3.84. 16
  • 17. For ( r x 1) or (1 x c) table : df = k-1 where k = number of categories For many assumptions : df = k=r where r = number of restrictions For (r x c) table : df = (r-1) (c-1) where r = rows, c = column The most simple and commonly applied table is 2 x 2 table which has two rows and columns. 17
  • 18. 18
  • 19. 4. In a study of relationship between gender and smoking habit, 100 couples had been interviewed. After controlling age and socioeconomic status, it was found that Both male and female smokers 24 couples Neither male nor female smokers 40 couples Male but Not female smokers 26 couples Not male but female smokers 10 couples Construct a cross-table from the above data. Analyze these data by using McNemar’s test. Find 95% confidence limits of the difference in proportions. 19