1 / 23

Bayesian Inference I 4/23/12

Bayesian Inference I 4/23/12. Law of total probability Bayes Rule. Section 11.2 ( pdf ). Professor Kari Lock Morgan Duke University. To Do. Project 2 Paper (Wednesday, 4/25) FINAL: Monday, 4/30, 9 – 12. Comments on Projects.

wendi
Télécharger la présentation

Bayesian Inference I 4/23/12

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bayesian Inference I • 4/23/12 • Law of total probability • Bayes Rule Section 11.2 (pdf) Professor Kari Lock Morgan Duke University

  2. To Do • Project 2 Paper (Wednesday, 4/25) • FINAL: Monday, 4/30, 9 – 12

  3. Comments on Projects • Conditions apply to overall model; not each variable individually • R2 is the proportion of variability in the response that is explained by the explanatory variables (not adjusted R2) • Coefficients and significance of categorical variables are in reference to the reference level (the category left out) • Don’t take significant predictors out of your model!

  4. FINAL • MONDAY, APRIL 30th • 9 – 12 pm • Bring: • A calculator • 3 double-sided pages of notes, prepared only by you • The final will cover material from the entire course • The format will be similar to the two in-class exams we’ve had so far, only longer • No make-up exam will be given; 0 if you do not take it • STINFs do NOT apply for the final

  5. Disjoint and Independent Assuming that P(A) > 0 and P(B) > 0, then disjoint events are Independent Not independent Need more information to determine whether the events are also independent

  6. Law of Total Probability • If events B1 through Bk are disjoint and together make up all possibilities, then B1 B3 B2 A

  7. Sexual Orientation P(bisexual) = P(bisexual and male) + P(bisexual and female) = 66/5042 + 92/5042 = 158/5042

  8. Craps • Let’s put it all together! • What’s the probability of winning at Craps?

  9. Craps Rules • Each role consists of rolling two dice • On the first role: • You lose (crap out) if your sum is 2, 3, or 12 • You win if your sum is 7 or 11 • Otherwise, your total is your point and you keep on rolling • On subsequent roles: • You win if the sum equals your point (your total from the first role) • You lose if you role a 7 • Otherwise, you keep rolling Play a game!

  10. Craps Option 1: Simulation Did you win? (a) Yes (b) No Option 2: Probability rules. (see handout) Is it smart to play craps? (a) Yes (b) No

  11. Craps • 1. Find P(win if first role = ___) for each of the possibilities.

  12. Craps • 2. Find P(win and first role = ___) for each of the possibilities.

  13. Craps 3. Use the law of total probability to find P(win). • 4. Assuming you win the same amount you bet, is it smart to play Craps? • No. You are more likely to lose than win.

  14. A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? 9 • Breast Cancer Screening 0-10% 10-25% 25-50% 50-75% 75-100%

  15. Breast Cancer Screening 1% of women at age 40 who participate in routine screening have breast cancer. 80% of women with breast cancer get positive mammographies. 9.6% of women without breast cancer get positive mammographies. A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer?

  16. A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? 9 • Breast Cancer Screening 0-10% 10-25% 25-50% 50-75% 75-100%

  17. Breast Cancer Screening A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? What is this asking for? P(cancer if positive mammography) P(positive mammography if cancer) P(positive mammography if no cancer) P(positive mammography) P(cancer)

  18. Bayes Rule • We know P(positive mammography if cancer)… how do we get to P(cancer if positive mammography)? • How do we go from P(A if B) to P(B if A)?

  19. Bayes Rule <- Bayes Rule

  20. Rev. Thomas Bayes 1702 - 1761

  21. Breast Cancer Screening • 1% of women at age 40 who participate in routine screening have breast cancer. • 80% of women with breast cancer get positive mammographies. • 9.6% of women without breast cancer get positive mammographies.

  22. P(positive) Use the law of total probability to find P(positive). Find P(cancer if positive)

More Related