To see if event A and event B are independent of each other, test if P(A|B) =
Question:
To see if event A and event B are independent of each other, test if P(A|B) = P(A) or if P(B|A) = P(B). If the two sides of the equation(s) are equal, then the two events are independent. That is, the occurrence of event B does not influence the probability of the occurrence of event A, or the occurrence of event A does not influence the probability of the occurrence of event B; if not equal, then not independent. That is, the occurrence of event A / event B influences the probability of the occurrence of the other event.
Suppose you have data of gender and pet ownership presented as below:
Own a Pet | Don’t Own a Pet | |
Female | 60 | 30 |
Male | 80 | 40 |
Based on the data, prove whether gender is related to pet ownership.
Hint: We want to see if gender and pet ownership are independent of each other. Note that each of the two variables (gender and ownership) has two categories (female and male; pet and no pet). All we need to do is to pick (any) one category from each variable and test if P(A|B) = P(A). You will first need to convert the frequencies in the above table into probabilities. Refer to sections 5 and 6 in the text.
Probability And Statistics For Engineers And Scientists
ISBN: 9780495107576
3rd Edition
Authors: Anthony Hayter