Bayesian Models. Agenda Project WebCT Late HW Math –Independence –Conditional Probability –Bayes Formula & Theorem Steyvers, et al 2003.

Slides:



Advertisements
Similar presentations
A Survey of Probability Concepts
Advertisements

Multiplication Rule: Basics
Chapter 6: Probability : The Study of Randomness “We figured the odds as best we could, and then we rolled the dice.” US President Jimmy Carter June 10,
Quiz 3a  Probability. 1. What is the probability of selecting a spade from a deck of 52 cards? a) 1/4 b) 1/2 c) 10/52 d) 1/13.
Statistics Review! Basic Probabilit y Venn Diagrams Tree Diagrams Conditional Probability Some formulas Lattice Diagrams Let’s play cards
PROBABILITY Probability is represented as a ratio of the number of ways an event actually occurs compared to the number of possible outcomes.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
Dependent and Independent Events. If you have events that occur together or in a row, they are considered to be compound events (involve two or more separate.
Chapter 2: The Next Step… Conditional Probability.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Probability Probability Principles of EngineeringTM
CONDITIONAL PROBABILITY and INDEPENDENCE In many experiments we have partial information about the outcome, when we use this info the sample space becomes.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 4-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Chap 4-1 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 4 Probability.
The probability of an event based on the fact that some other event has occurred, will occur, or is occurring. P(B/A) = Conditional Probability The probability.
EXAMPLE 1 Find probability of disjoint events
Conditional Probability. Conditional Probability of an Event Illustrating Example (1): Consider the experiment of guessing the answer to a multiple choice.
“PROBABILITY” Some important terms Event: An event is one or more of the possible outcomes of an activity. When we toss a coin there are two possibilities,
Chapter 12 – Probability and Statistics 12.5 – Adding Probabilities.
AP STATISTICS Section 6.2 Probability Models. Objective: To be able to understand and apply the rules for probability. Random: refers to the type of order.
PROBABILITY Basic Concepts So simple.... Figure these out Take a blank piece of paper and write down your own answers before they show up on the slides.
1 Copyright © Cengage Learning. All rights reserved. 4 Probability.
Chapter 1:Independent and Dependent Events
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,
Warm-Up 1. Expand (x 2 – 4) 7 1. Find the 8 th term of (2x + 3) 10.
Topic 4A: Independent and Dependent Events Using the Product Rule
Chapter 12 – Probability and Statistics 12.4 – Multiplying Probabilities.
Dr. Omar Al Jadaan Probability. Simple Probability Possibilities and Outcomes Expressed in the form of a fraction A/B Where A is the occurrence B is possible.
 P(A c ∩ B) + P(A ∩ B)=P(B)  P(A c ∩ B) and P(A ∩ B) are called joint probability.  P(A) and P(B) are called marginal probability.  P(A|B) and P(B|A)
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
Warm-up A statistical report states that 68% of adult males in China smoke. What is the probability that five randomly selected adult males from China.
Probability – the likelihood that an event will occur. Probability is usually expressed as a real number from 0 to 1. The probability of an impossible.
1 Chapter 4, Part 1 Repeated Observations Independent Events The Multiplication Rule Conditional Probability.
SECTION 11-3 Conditional Probability; Events Involving “And” Slide
Rules of Probability. Recall: Axioms of Probability 1. P[E] ≥ P[S] = 1 3. Property 3 is called the additive rule for probability if E i ∩ E j =
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
13.3 Conditional Probability and Intersections of Events Understand how to compute conditional probability. Calculate the probability of the intersection.
Dr. Fowler AFM Unit 7-8 Probability. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall.
Probability Rules In the following sections, we will transition from looking at the probability of one event to the probability of multiple events (compound.
EXAMPLE 1 Find probability of disjoint events A card is randomly selected from a standard deck of 52 cards. What is the probability that it is a 10 or.
Probability Rules.  P and 44  P ,48,51  P ,57,60.
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
Chapter 10 – Data Analysis and Probability 10.8 – Probability of Independent and Dependent Events.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Conditional Probability and the Multiplication Rule NOTES Coach Bridges.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds.
Stat 13, Thu 4/19/ Hand in HW2! 1. Resistance. 2. n-1 in sample sd formula, and parameters and statistics. 3. Probability basic terminology. 4. Probability.
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:
Section 5.3 Independence and the Multiplication Rule.
Independent and Dependent Events Lesson 6.6. Getting Started… You roll one die and then flip one coin. What is the probability of : P(3, tails) = 2. P(less.
2-7 Probability of Compound Events. Independent Events – events that do not effect each other To calculate the probability of 2 independent events: Find.
8.7 – Probability. Probability Probability = the likelihood that an event will occur Outcomes = possible results of an event Probability formula: P(event)
§12.4 Multiplying Probabilities Algebra II Honors.
Statistics for Managers 5th Edition
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Aim: What is the multiplication rule?
Chapter 4 Probability.
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
Independent and Dependent Events
Combining Probabilities
Warm up #3 3/24 – even 3/27 - odd 7/20 3/5 3/20 3/4
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
10.1 Notes: Theoretical and experimental probability
Section 6.2 Probability Models
Probability: Living with the Odds
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
Independent and Dependent Events
Conditional Probability
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
Warm up The following table shows the number of people that like a particular fast food restaurant. McD’s BK Wendy’s Male Female What is.
Presentation transcript:

Bayesian Models

Agenda Project WebCT Late HW Math –Independence –Conditional Probability –Bayes Formula & Theorem Steyvers, et al 2003

Independence Two events A and B are independent if the occurrence of A has no influence on the probability of the occurrence of B. –Independent: “It doesn’t matter who is elected president, the world will still be a mess.” –Not independent: “If candidate B is elected president, the probability that the world will be a mess is 99%. If candidate A is elected, the probability that the world will be a mess will be lowered to 98%.”

Independence A and B are independent if P(A  B) = P(A) x P(B). – Independent: Pick a card from a deck. A = “The card is an ace”, P(A) = 1/13. B = “The card is a spade”, P(B) = 1/4 P(A  B) = 1/13 x 1/4 = 1/52. –Not independent: Draw two cards from a deck without replacement. A = “The first card is a space”, P(A) = 1/4 B = “The second card is a spade”, P(B) = 1/4 P(A  B) = (13 x 12) / (52 x 51) < 1/4 x 1/4.

Conditional Probability Example: –What is the probability that a husband will vote Democrat given that his wife does? – P(Husband Democrat |Wife Democrat ) –This is different from: What is the probability that a husband will vote democrat? What is the probability that a hustband and wife will vote democrat?

All possible events Conditional Probability P(B|A) is the conditional probability that B will occur given that A has occurred: P(B|A) = P(B  A) / P(A). P(A) = A occurs P(B) = B occurs P(B  A) = A and B occur

Conditional Probability Suppose we roll two dice –A = “The sum is 8” A = {(2,6), (3,5), (4,4), (5,3), (6,2)} P(A) = 5/36 –B = “The first die is 3” B = {(3,1), (3,2), (3,3), (3,4), (3,5), (3,6)} P(B) = 6/36 –A  B = {(3,5)} –P(B|A) = (1/36)/(5/36) = 1/5.

Conditional Probability P(A) = 5/36 P(B) = 6/36 P(B  A) = 1/36 P(B|A) = (1/36)/(5/36) = 1/5 P(B|A) = P(B  A)/P(A)

Bayes Formula Suppose families have 1, 2, or 3 children with 1/3 probability each. Bobby has no brothers. What is the probability he is an only child?

Bayes Formula Suppose families have 1, 2, or 3 children with 1/3 probability each. Bobby has no brothers. What is the probability he is an only child? Let child 1, child 2, and child 3 be the events that A family has 1, 2, or 3 children, respectively. Let boy 1 be the event that a family has only 1 boy. Want to compute P(child 1 |boy 1 ) = P(child 1  boy 1 )/P(boy 1 )

Bayes Formula Suppose families have 1, 2, or 3 children with 1/3 probability each. Bobby has no brothers. What is the probability he is an only child? Want to compute P(child 1 |boy 1 ) = P(child 1  boy 1 )/P(boy 1 ) We need to compute P(child 1  boy 1 ) and P(boy 1 )

Bayes Formula We need to compute P(child 1  boy 1 ) and P(boy 1 ) Because P(B|C) = P(C  B) / P(C), we can write: P(C  B) = P(C) P(B|C). So, P(child 1  boy 1 ) = P(child 1 )P(boy 1 | child 1 ) = 1/3 x 1/2 = 1/6.

Bayes Formula We need to compute P(child 1  boy 1 ) and P(boy 1 ) P(boy 1 ) = P(child 1  boy 1 ) + P(child 2  boy 1 ) + P(child 3  boy 1 ) We know P(child 1  boy 1 ) = 1/6. Likewise, P(child 2  boy 1 ) = 1/6 P(child 3  boy 1 ) = 1/8 P(boy 1 ) = 1/6 + 1/6 + 1/8

Bayes Formula Suppose families have 1, 2, or 3 children with 1/3 probability each. Bobby has no brothers. What is the probability he is an only child? P(child 1 |boy 1 ) = P(child 1  boy 1 )/P(boy 1 ) = (1/6) / (1/6 + 1/6 + 1/8) = 4/11

Bayes Formula 1 Child Children Children 120 Suppose families have 1, 2, or 3 children with 1/3 probability each. Bobby has no brothers. What is the probability he is an only child? 1 boy 60 1 boy 60 1 boy 45

Bayes Formula 1 Child Children Children boy 60 1 boy 60 1 boy 45 P(child 1 |boy 1 ) = P(child 1  boy 1 )/P(boy 1 ) = (60/360) / (( )/360) = 60/165 = 4/11

Bayes Formula Event 1 Event 2 Event n Sub- event Sub- event Sub- event … Known: P(Event i ),  P(Event i ) = 1, and P(Subevent|Event i ) Compute: P(Event 1 |Subevent)

Bayes Formula Event 1 Event 2 Event n Sub- event Sub- event Sub- event … P(Event 1 |Subevent) = P(Event 1  Subevent) / P(Subevent) P(Event i  Subevent) = P(Event i )P(Subevent|Event i ) P(Subevent) =  P(Event i  Subevent) =  P(Event i )P(Subevent|Event i )

Bayes Formula Event 1 Event 2 Event n Sub- event Sub- event Sub- event … P(Event 1 )P(Subevent|Event 1 ) P(Event 1 |Subevent) =  P(Event i )P(Subevent|Event i )

Bayes Formula 1% of the population has a disease. 99% of the people who have the disease have the symptoms. 10% who don’t have the disease have the symptoms. Let D = “A person has the disease”. Let S = “A person has the symptoms”. P(D) =.01 and so P(~D) =.99 P(S|D) =.99 and P(S|~D) =.10 What is P(D|S)?

Bayes Formula P(D) P(S|D) P(D|S) = P(D) P(S|D) + P(~D) P(S|~D) = (.01 x.99) / (.01 x x.10) =.091

Bayes Formula P(Event 1 )P(Subevent|Event 1 ) P(Event 1 |Subevent) =  P(Event i )P(Subevent|Event i ) If there are a very large portion of events, the denominator may be very hard to calculate. If, however, you are only interested in relative probabilities…

Bayes Formula P(Event 1 )P(Subevent|Event 1 ) P(Event 1 |Subevent) =  P(Event i )P(Subevent|Event i )  P(Event 1 |Subevent) P(Event 1 )P(Subevent|Event 1 ) = P(Event 2 |Subevent) P(Event 2 )P(Subevent|Event 2 ) This is called the “odds”.

Bayes Formula Let’s say you have 2 hypotheses (or models), H 1 and H 2, under consideration. The log odds of these two hypotheses given experimental data, D, is:

Bayes Formula Posterior odds = Relative belief in 2 hypotheses given the data. Quantity of interest.

Bayes Formula Prior odds = Relative belief in 2 hypotheses Before observing any data. Often assumed to be 1 (0 in log odds).

Bayes Formula Likelihoods = Relative probability of the data, given the two hypotheses. Usually computed from your models…