Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 16: Association and Fishers Exact Test Example: Pet ownership depends on gender? Is there an association between gender and pet ownership? Pet.

Similar presentations


Presentation on theme: "Chapter 16: Association and Fishers Exact Test Example: Pet ownership depends on gender? Is there an association between gender and pet ownership? Pet."— Presentation transcript:

1 Chapter 16: Association and Fishers Exact Test Example: Pet ownership depends on gender? Is there an association between gender and pet ownership? Pet OwnerNot a Pet Owner Male19 Female113

2 Chapter 16: Association and Fishers Exact Test P = the person owns M = the person is male Prob(Own Pet given person is Male) = 0.1 Prob(Own Pet given person is Female) = 0.79 This suggests that there is association (dependence) between gender and pet Ownership. Can we generalize this fact for all cases?

3 Chapter 16: Association and Fishers Exact Test Is pet ownership evenly distributed among men and women? Another way to look at this: How likely is it that one gets the above table among all possible tables with the same condition? Hypergeometric distribution helps answers this question.

4 Chapter 16: Association and Fishers Exact Test Note that there are many possibilities for similar situations. To use the hypergeometric distribution, think of the problem as follows: N = 24 people, divided into 2 groups: Men = 10; Women= 14 Note: If pet ownership is evenly distributed among men and women, then we can think of the 12 pet owners to be selected randomly from the group of 24 people. M = 12.

5 Chapter 16: Association and Fishers Exact Test Thus we compute: Prob(1 male pet owner among 24 people if there are 12 pet owners) = There is chance that men and women own pets in about the same proportion. Therefore there is evidence that gender and pet ownership are not independent.

6 EPI809/Spring Fishers Exact Test Fishers Exact Test is a test for independence in a 2 X 2 table. Most useful for small sample size Is based on the hypergeomteric distribution.

7 Chapter 16: Association and Fishers Exact Test Do intramuscular magnesium injections help treatment of chronic fatigue syndrome? MagnesiumPlacebo Felt better123 Did not feel better314 The data come from an RCT comparing intramuscular magnesium injections with placebo for the treatment of chronic fatigue syndrome.3 Of the 15 patients who had the intra-muscular magnesium injections 12 felt better (80 per cent) whereas, of the 17 on placebo, only three felt better (18 per cent). THE ANALYSIS OF CATEGORICAL DATA: FISHERS EXACT TEST Jenny V Freeman and Michael J Campbell (Scope /2007),

8 Chapter 16: Association and Fishers Exact Test Think of the 32 people divided into two groups, those who felt better (n = 15) and those who did not (N-n = 17). Now assume that the 15 who were given magnesium injections are randomly selected out of the 32 (M = 15) and use hypergeometric distr Prob (among the 15 magnesium takers, what is the chance that 12 felt better) =


Download ppt "Chapter 16: Association and Fishers Exact Test Example: Pet ownership depends on gender? Is there an association between gender and pet ownership? Pet."

Similar presentations


Ads by Google