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

More Related Content

What's hot

Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
dineshmeena53
 
Class24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthocClass24 chi squaretestofindependenceposthoc
Class24 chi squaretestofindependenceposthocBetynatha Kb
 
The chi – square test
The chi – square testThe chi – square test
The chi – square test
Majesty Ortiz
 
Goodness Of Fit Test
Goodness Of Fit TestGoodness Of Fit Test
Goodness Of Fit Test
Kishan Kasundra
 
Chi squared test
Chi squared test Chi squared test
Chi squared test
Dr Lipilekha Patnaik
 
Chisquare test
Chisquare  testChisquare  test
Chisquare test
Afra Fathima
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
Azmi Mohd Tamil
 
Two sample t-test
Two sample t-testTwo sample t-test
Two sample t-test
Stephen Lange
 
Chi square test
Chi square testChi square test
Chi square test
rahul kapoliya
 
Aron chpt 11 ed (2)
Aron chpt 11 ed (2)Aron chpt 11 ed (2)
Aron chpt 11 ed (2)Sandra Nicks
 
Chi -square test
Chi -square testChi -square test
Chi -square test
VIVEK KUMAR SINGH
 
Chi squared test
Chi squared testChi squared test
Chi squared test
RabindraAdhikary
 
ANOVA-One Way Classification
ANOVA-One Way ClassificationANOVA-One Way Classification
ANOVA-One Way ClassificationSharlaine Ruth
 
Chi square Test Using SPSS
Chi square Test Using SPSSChi square Test Using SPSS
Chi square Test Using SPSS
Dr Athar Khan
 
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
dr.balan shaikh
 
Chi Square
Chi SquareChi Square
Chi SquareJolie Yu
 

What's hot (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
 

Similar to Chi square(hospital admin)

Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
rodrick koome
 
Unit # 04, chi-square test.ppt
Unit # 04, chi-square test.pptUnit # 04, chi-square test.ppt
Unit # 04, chi-square test.ppt
HarryPuri
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
ChenPalaruan
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
Dalia El-Shafei
 
Chisquare
ChisquareChisquare
Chisquare
keerthi samuel
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Sanjay Basukala
 
Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing Solution
Long Beach City College
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
ANCYBS
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logicghalan
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
BAGARAGAZAROMUALD2
 
SNM-1.pdf
SNM-1.pdfSNM-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
paynetawnya
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
Long Beach City College
 
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
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
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
Sindhura Kopparthi
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
Long Beach City College
 
Testing hypothesis
Testing hypothesisTesting hypothesis
Testing hypothesis
Amit Sharma
 

Similar to 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
 

More from Mmedsc Hahm

Solid waste-management-2858710
Solid waste-management-2858710Solid waste-management-2858710
Solid waste-management-2858710
Mmedsc Hahm
 
Situation analysis
Situation analysisSituation analysis
Situation analysis
Mmedsc Hahm
 
Quantification of medicines need
Quantification of medicines needQuantification of medicines need
Quantification of medicines need
Mmedsc Hahm
 
Quality in hospital
Quality in hospitalQuality in hospital
Quality in hospital
Mmedsc Hahm
 
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
Mmedsc Hahm
 
Organising
OrganisingOrganising
Organising
Mmedsc Hahm
 
Nscbl slide
Nscbl slideNscbl slide
Nscbl slide
Mmedsc Hahm
 
Introduction to hahm 2017
Introduction to hahm 2017Introduction to hahm 2017
Introduction to hahm 2017
Mmedsc Hahm
 
Hss lecture 2016 jan
Hss lecture 2016 janHss lecture 2016 jan
Hss lecture 2016 jan
Mmedsc Hahm
 
Hospital management17
Hospital management17Hospital management17
Hospital management17
Mmedsc Hahm
 
Hopital stat
Hopital statHopital stat
Hopital stat
Mmedsc Hahm
 
Health planning approaches hahm 17
Health planning approaches hahm 17Health planning approaches hahm 17
Health planning approaches hahm 17
Mmedsc Hahm
 
Ephs and nhp
Ephs and nhpEphs and nhp
Ephs and nhp
Mmedsc Hahm
 
Directing and leading 2017
Directing and leading 2017Directing and leading 2017
Directing and leading 2017
Mmedsc Hahm
 
Concepts of em
Concepts of emConcepts of em
Concepts of em
Mmedsc Hahm
 
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
Mmedsc Hahm
 
The dynamics of disease transmission
The dynamics of disease transmissionThe dynamics of disease transmission
The dynamics of disease transmission
Mmedsc Hahm
 
Study designs dr.wah
Study designs dr.wahStudy designs dr.wah
Study designs dr.wah
Mmedsc Hahm
 
Standardization dr.wah
Standardization dr.wahStandardization dr.wah
Standardization dr.wah
Mmedsc Hahm
 

More from 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
 

Recently uploaded

Essential Metrics for Palliative Care Management
Essential Metrics for Palliative Care ManagementEssential Metrics for Palliative Care Management
Essential Metrics for Palliative Care Management
Care Coordinations
 
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdfCHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
Sachin Sharma
 
The Importance of Community Nursing Care.pdf
The Importance of Community Nursing Care.pdfThe Importance of Community Nursing Care.pdf
The Importance of Community Nursing Care.pdf
AD Healthcare
 
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
Kumar Satyam
 
CANCER CANCER CANCER CANCER CANCER CANCER
CANCER  CANCER  CANCER  CANCER  CANCER CANCERCANCER  CANCER  CANCER  CANCER  CANCER CANCER
CANCER CANCER CANCER CANCER CANCER CANCER
KRISTELLEGAMBOA2
 
Health Education on prevention of hypertension
Health Education on prevention of hypertensionHealth Education on prevention of hypertension
Health Education on prevention of hypertension
Radhika kulvi
 
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
rajkumar669520
 
HEAT WAVE presented by priya bhojwani..pptx
HEAT WAVE presented by priya bhojwani..pptxHEAT WAVE presented by priya bhojwani..pptx
HEAT WAVE presented by priya bhojwani..pptx
priyabhojwani1200
 
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICEJaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
ranishasharma67
 
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
ranishasharma67
 
CONSTRUCTION OF TEST IN MANAGEMENT .docx
CONSTRUCTION OF TEST IN MANAGEMENT .docxCONSTRUCTION OF TEST IN MANAGEMENT .docx
CONSTRUCTION OF TEST IN MANAGEMENT .docx
PGIMS Rohtak
 
ABDOMINAL COMPARTMENT SYSNDROME
ABDOMINAL COMPARTMENT SYSNDROMEABDOMINAL COMPARTMENT SYSNDROME
ABDOMINAL COMPARTMENT SYSNDROME
Rommel Luis III Israel
 
Introduction to Forensic Pathology course
Introduction to Forensic Pathology courseIntroduction to Forensic Pathology course
Introduction to Forensic Pathology course
fprxsqvnz5
 
Yemen National Tuberculosis Program .ppt
Yemen National Tuberculosis Program .pptYemen National Tuberculosis Program .ppt
Yemen National Tuberculosis Program .ppt
Esam43
 
How many patients does case series should have In comparison to case reports.pdf
How many patients does case series should have In comparison to case reports.pdfHow many patients does case series should have In comparison to case reports.pdf
How many patients does case series should have In comparison to case reports.pdf
pubrica101
 
ICH Guidelines for Pharmacovigilance.pdf
ICH Guidelines for Pharmacovigilance.pdfICH Guidelines for Pharmacovigilance.pdf
ICH Guidelines for Pharmacovigilance.pdf
NEHA GUPTA
 
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
ranishasharma67
 
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptxBOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
AnushriSrivastav
 
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
Dr. David Greene Arizona
 
ventilator, child on ventilator, newborn
ventilator, child on ventilator, newbornventilator, child on ventilator, newborn
ventilator, child on ventilator, newborn
Pooja Rani
 

Recently uploaded (20)

Essential Metrics for Palliative Care Management
Essential Metrics for Palliative Care ManagementEssential Metrics for Palliative Care Management
Essential Metrics for Palliative Care Management
 
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdfCHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
CHAPTER 1 SEMESTER V PREVENTIVE-PEDIATRICS.pdf
 
The Importance of Community Nursing Care.pdf
The Importance of Community Nursing Care.pdfThe Importance of Community Nursing Care.pdf
The Importance of Community Nursing Care.pdf
 
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
India Clinical Trials Market: Industry Size and Growth Trends [2030] Analyzed...
 
CANCER CANCER CANCER CANCER CANCER CANCER
CANCER  CANCER  CANCER  CANCER  CANCER CANCERCANCER  CANCER  CANCER  CANCER  CANCER CANCER
CANCER CANCER CANCER CANCER CANCER CANCER
 
Health Education on prevention of hypertension
Health Education on prevention of hypertensionHealth Education on prevention of hypertension
Health Education on prevention of hypertension
 
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
VVIP Dehradun Girls 9719300533 Heat-bake { Dehradun } Genteel ℂall Serviℂe By...
 
HEAT WAVE presented by priya bhojwani..pptx
HEAT WAVE presented by priya bhojwani..pptxHEAT WAVE presented by priya bhojwani..pptx
HEAT WAVE presented by priya bhojwani..pptx
 
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICEJaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
Jaipur ❤cALL gIRLS 89O1183002 ❤ℂall Girls IN JaiPuR ESCORT SERVICE
 
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
💘Ludhiana ℂall Girls 📞]][89011★83002][[ 📱 ❤ESCORTS service in Ludhiana💃💦Ludhi...
 
CONSTRUCTION OF TEST IN MANAGEMENT .docx
CONSTRUCTION OF TEST IN MANAGEMENT .docxCONSTRUCTION OF TEST IN MANAGEMENT .docx
CONSTRUCTION OF TEST IN MANAGEMENT .docx
 
ABDOMINAL COMPARTMENT SYSNDROME
ABDOMINAL COMPARTMENT SYSNDROMEABDOMINAL COMPARTMENT SYSNDROME
ABDOMINAL COMPARTMENT SYSNDROME
 
Introduction to Forensic Pathology course
Introduction to Forensic Pathology courseIntroduction to Forensic Pathology course
Introduction to Forensic Pathology course
 
Yemen National Tuberculosis Program .ppt
Yemen National Tuberculosis Program .pptYemen National Tuberculosis Program .ppt
Yemen National Tuberculosis Program .ppt
 
How many patients does case series should have In comparison to case reports.pdf
How many patients does case series should have In comparison to case reports.pdfHow many patients does case series should have In comparison to case reports.pdf
How many patients does case series should have In comparison to case reports.pdf
 
ICH Guidelines for Pharmacovigilance.pdf
ICH Guidelines for Pharmacovigilance.pdfICH Guidelines for Pharmacovigilance.pdf
ICH Guidelines for Pharmacovigilance.pdf
 
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
Contact ME {89011**83002} Haridwar ℂall Girls By Full Service Call Girl In Ha...
 
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptxBOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
BOWEL ELIMINATION BY ANUSHRI SRIVASTAVA.pptx
 
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
Leading the Way in Nephrology: Dr. David Greene's Work with Stem Cells for Ki...
 
ventilator, child on ventilator, newborn
ventilator, child on ventilator, newbornventilator, child on ventilator, newborn
ventilator, child on ventilator, newborn
 

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