Presentation is loading. Please wait.

Presentation is loading. Please wait.

Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company.

Similar presentations


Presentation on theme: "Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company."— Presentation transcript:

1 Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company

2 Objectives (IPS chapter 4.5) General probability rules  General addition rules  Conditional probability  General multiplication rules  Probability trees  Bayes’s rule

3 General addition rules General addition rule for any two events A and B: The probability that A occurs, or B occurs, or both events occur is: P(A or B) = P(A) + P(B) – P(A and B) Disjoint => P(A and B) = 0 What is the probability of randomly drawing either an ace or a heart from a deck of 52 playing cards? There are 4 aces in the pack and 13 hearts. However, 1 card is both an ace and a heart. Thus: P(ace or heart)= P(ace) + P(heart) – P(ace and heart) = 4/52 + 13/52 - 1/52 = 16/52 ≈.3

4 Conditional probability Conditional probabilities reflect how the probability of an event can change if we know that some other event has occurred/is occurring.  Example: The probability of rain is different if you live in Los Angeles than if you live in Seattle.  Our brains calculate conditional probabilities, updating our sense of chance with each new piece of evidence. The conditional probability of event B given event A is: (provided that P(A) ≠ 0)

5 General multiplication rules  The probability that any two events, A and B, both occur is: P(A and B) = P(A)P(B|A) This is the general multiplication rule.  If A and B are independent, then P(A and B) = P(A)P(B) (If A and B are independent then P(B|A) is just P(B).) What is the probability of randomly drawing either an ace of heart from a deck of 52 playing cards? There are 4 aces in the pack and 13 hearts. P(heart|ace)= 1/4P(ace) = 4/52  P(ace and heart) = P(ace)* P(heart|ace) = (4/52)*(1/4) = 1/52 Notice that heart and ace are independent events.

6 Probability trees Conditional probability calculations can get complex, and it is often a good strategy to build a probability tree that represents all possible outcomes graphically and assigns conditional probabilities to subsets of events. 0.47 Internet user Tree diagram for chat room habits for three adult age groups P(chatting)= 0.136 + 0.099 + 0.017 = 0.252 About 25% of all adult Internet users visit chat rooms.

7 Breast cancer screening Cancer No cancer Mammography Positive Negative Positive Negative Disease incidence Diagnosis sensitivity Diagnosis specificity False negative False positive 0.0004 0.9996 0.8 0.2 0.1 0.9 Incidence of breast cancer among women ages 20–30 Mammography performance If a woman gets screened for breast cancer and receives a positive test result, what is the probability that she does have breast cancer? She could either have a positive test and have breast cancer or have a positive test but not have cancer (false positive).

8 Cancer No cancer Mammography Positive Negative Positive Negative Disease incidence Diagnosis sensitivity Diagnosis specificity False negative False positive 0.0004 0.9996 0.8 0.2 0.1 0.9 Incidence of breast cancer among women ages 20–30 Mammography performance Possible outcomes given the positive diagnosis: positive test and breast cancer or positive test but no cancer (false positive). This value is called the positive predictive value, or PV+. It is an important piece of information but, unfortunately, is rarely communicated to patients.

9 Bayes’s rule One application of the previous result is known as Bayes’ rule. If a sample space may be partitioned into k disjoint events, A 1, A 2, …, A k — P(A 1 ) + P(A 2 ) + … + P(A k ) = 1, However, it is often much easier to work out answers with a probability tree than with the formula above.

10 If a woman gets screened for breast cancer and receives a positive test result. What is the probability that she actually does have cancer? Cancer No cancer Mammography Positive Negative Positive Negative Disease incidence Diagnosis sensitivity Diagnosis specificity False negative False positive 0.0004 0.9996 0.8 0.2 0.1 0.9 Incidence of breast cancer among women ages 20–30 Mammography performance This time, we use Bayes’s rule: A1 is cancer, A2 is no cancer, C is a positive test result.


Download ppt "Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company."

Similar presentations


Ads by Google