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

Slides:



Advertisements
Similar presentations
STAT 101 Dr. Kari Lock Morgan
Advertisements

YOU DONT KNOW CRAPS!!. An Investigation Using Probability, the Geometric Distribution, and Expected Returns for the Game of Craps By Otto Magdanz and.
Probability Monty Hall, Bayes Law, and why Anya probably isn’t autistic Arup Guha 1/14/2013.
Please turn off cell phones, pagers, etc. The lecture will begin shortly.
EGR 141 Computer Problem Solving in Engineering and Computer Science
Bayes’ Rule. Bayes’ Rule - Updating Probabilities Let A 1,…,A k be a set of events that partition a sample space such that (mutually exclusive and exhaustive):
Markov Chains Extra problems
Expected Value, the Law of Averages, and the Central Limit Theorem
Objectives (BPS chapter 12)
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 5: Probability: What are the Chances? Section 5.2 Probability Rules.
Probability. Probability Definitions and Relationships Sample space: All the possible outcomes that can occur. Simple event: one outcome in the sample.
Probability And Expected Value ————————————
 The Law of Large Numbers – Read the preface to Chapter 7 on page 388 and be prepared to summarize the Law of Large Numbers.
Probability (cont.). Assigning Probabilities A probability is a value between 0 and 1 and is written either as a fraction or as a proportion. For the.
Multiple Regression III 4/16/12 More on categorical variables Missing data Variable Selection Stepwise Regression Confounding variables Not in book Professor.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Bayesian Inference SECTION 11.1, 11.2 Bayes rule (11.2) Bayesian inference.
5.2A Probability Rules! AP Statistics.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Probability SECTION 11.1 Events and, or, if Disjoint Independent Law of total.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Probability SECTIONS 11.1 Probability (11.1) Odds, odds ratio (not in book)
ANOVA 3/19/12 Mini Review of simulation versus formulas and theoretical distributions Analysis of Variance (ANOVA) to compare means: testing for a difference.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: Hypotheses STAT 101 Dr. Kari Lock Morgan SECTION 4.1 Statistical test Null and alternative.
Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company.
Synthesis and Review 3/26/12 Multiple Comparisons Review of Concepts Review of Methods - Prezi Essential Synthesis 3 Professor Kari Lock Morgan Duke University.
The game of Craps Rules of play: 1. Played with two dice (six faces to a die – numbers 1-6 per face) 2. Sequence of betting rounds (or just rounds) 3.
5.3A Conditional Probability, General Multiplication Rule and Tree Diagrams AP Statistics.
An Intuitive Explanation of Bayes' Theorem By Eliezer Yudkowsky.
C4, L1, S1 Probabilities and Proportions. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take.
1 Be humble in our attribute, be loving and varying in our attitude, that is the way to live in heaven.
Lecture 5a: Bayes’ Rule Class web site: DEA in Bioinformatics: Statistics Module Box 1Box 2Box 3.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 12/4/12 Bayesian Inference SECTION 11.1, 11.2 More probability rules (11.1)
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Multiple Regression SECTIONS 9.2, 10.1, 10.2 Multiple explanatory variables.
Dependent and Independent Events. Events are said to be independent if the occurrence of one event has no effect on the occurrence of another. For example,
Copyright © 2014 Pearson Education, Inc. All rights reserved Chapter 5 Modeling Variation with Probability.
Multiple Regression I 4/9/12 Transformations The model Individual coefficients R 2 ANOVA for regression Residual standard error Section 9.4, 9.5 Professor.
What is Probability?. The Mathematics of Chance How many possible outcomes are there with a single 6-sided die? What are your “chances” of rolling a 6?
Bayesian Inference, Review 4/25/12 Frequentist inference Bayesian inference Review The Bayesian Heresy (pdf)pdf Professor Kari Lock Morgan Duke University.
Statistics: Unlocking the Power of Data Lock 5 Exam 2 Review STAT 101 Dr. Kari Lock Morgan 11/13/12 Review of Chapters 5-9.
Lecture: Forensic Evidence and Probability Characteristics of evidence Class characteristics Individual characteristics  features that place the item.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 12/6/12 Synthesis Big Picture Essential Synthesis Bayesian Inference (continued)
A psychophysical analysis of the base rate fallacy.
Probability and Simulation Rules in Probability. Probability Rules 1. Any probability is a number between 0 and 1 0 ≤ P[A] ≤ 1 0 ≤ P[A] ≤ 1 2. The sum.
Review: Probability Random variables, events Axioms of probability Atomic events Joint and marginal probability distributions Conditional probability distributions.
Not So Great Expectations! Which game do you think has the highest return per dollar?
Craps Probability Solution Or: More than you ever wanted to know about conditional probability!
Please turn off cell phones, pagers, etc. The lecture will begin shortly. There will be a very easy quiz at the end of today’s lecture.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Probability SECTIONS 11.1, 11.2 Probability (11.1, 11.2) Odds, Odds Ratio.
Conditional Probability. Suppose you roll two dice Does the result of one of the dice affect what the result of the second one will be? No These are independent.
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 11/29/12 Probability SECTION 11.1 Events and, or, if Disjoint Independent.
Independent Events Lesson Starter State in writing whether each of these pairs of events are disjoint. Justify your answer. If the events.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 11/20/12 Multiple Regression SECTIONS 9.2, 10.1, 10.2 Multiple explanatory.
Section Conditional Probability Objectives: 1.Understand the meaning of conditional probability. 2.Learn the general Multiplication Rule:
Binomial Probability Section Starter Here’s a game you will like: Let’s bet a dollar on this proposition: I will roll a fair die once. If.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 5 Probability: What Are the Chances? 5.2.
Synthesis and Review 2/20/12 Hypothesis Tests: the big picture Randomization distributions Connecting intervals and tests Review of major topics Open Q+A.
Probability 4/18/12 Probability Conditional probability Disjoint events Independent events Section 11.1 (pdf)pdf Professor Kari Lock Morgan Duke University.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Probability 5.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds Discussion Paragraph 7B 1 web 59. Lottery Chances 60. HIV Probabilities 1 world.
HL2 Math - Santowski Lesson 93 – Bayes’ Theorem. Bayes’ Theorem  Main theorem: Suppose we know We would like to use this information to find if possible.
Probability Probability Day 3 Introduction to Probability Probability of Independent Events.
+ Section 5.2 Probability Rules After this section, you should be able to… DESCRIBE chance behavior with a probability model DEFINE and APPLY basic rules.
Monday, October 14 Statistical Inference and Probability.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
CHAPTER 5 Probability: What Are the Chances?
Chapter 6 6.1/6.2 Probability Probability is the branch of mathematics that describes the pattern of chance outcomes.
STAT 250 Dr. Kari Lock Morgan
Lecture: Forensic Evidence and Probability Characteristics of evidence
U10D3 Have out: Bellwork: Work on the Probability Practice Worksheet.
Presentation transcript:

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

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

Conditions apply to overall model; not each variable individually R 2 is the proportion of variability in the response that is explained by the explanatory variables (not adjusted R 2 ) 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! Comments on Projects

FINAL MONDAY, APRIL 30 th 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

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

Law of Total Probability If events B 1 through B k are disjoint and together make up all possibilities, then A B1B1 B2B2 B3B3

Sexual Orientation P(bisexual) = P(bisexual and male) + P(bisexual and female) = 66/ /5042 = 158/5042 MaleFemaleTotal Heterosexual Homosexual Bisexual Other Total

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

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!

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

Craps First Role P(Win if first role = ___)003/94/105/111 4/103/ Find P(win if first role = ___) for each of the possibilities.

Craps First Role P(Win and first role = ___) Find P(win and first role = ___) for each of the possibilities.

Craps First Role P(Win and first role = ___) 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.

15 A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? a)0-10% b)10-25% c)25-50% d)50-75% e)75-100% Breast Cancer Screening

16 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? Breast Cancer Screening

17 A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? a)0-10% b)10-25% c)25-50% d)50-75% e)75-100% 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? a)P(cancer if positive mammography) b)P(positive mammography if cancer) c)P(positive mammography if no cancer) d)P(positive mammography) e)P(cancer)

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)?

Bayes Rule <- Bayes Rule 20

Rev. Thomas Bayes

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.

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