STAT 203 Tree Diagrams and Bayes’ Rule

Slides:



Advertisements
Similar presentations
© 2003 Prentice-Hall, Inc.Chap 4-1 Basic Probability IE 440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping Li University of Tennessee.
Advertisements

1 Chapter 3 Probability 3.1 Terminology 3.2 Assign Probability 3.3 Compound Events 3.4 Conditional Probability 3.5 Rules of Computing Probabilities 3.6.
© 2011 Pearson Education, Inc
Probability Theory and Statistics
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
Probability Notation Review Prior (unconditional) probability is before evidence is obtained, after is posterior or conditional probability P(A) – Prior.
Chapter 4 Probability.
Bayes Theorem Mutually exclusive events A collection of events (B1, B2, …, Bk) is said to be mutually exclusive if no two of them overlap. If mutually.
Probability Rules l Rule 1. The probability of any event (A) is a number between zero and one. 0 < P(A) < 1.
Statistics Chapter 3: Probability.
1 NA387 Lecture 6: Bayes’ Theorem, Independence Devore, Sections: 2.4 – 2.5.
CHAPTER 5 Probability: Review of Basic Concepts
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
AP Statistics Chapter 6 Notes. Probability Terms Random: Individual outcomes are uncertain, but there is a predictable distribution of outcomes in the.
BA 201 Lecture 6 Basic Probability Concepts. Topics Basic Probability Concepts Approaches to probability Sample spaces Events and special events Using.
Probability & Statistics I IE 254 Exam I - Reminder  Reminder: Test 1 - June 21 (see syllabus) Chapters 1, 2, Appendix BI  HW Chapter 1 due Monday at.
Jerry Post Copyright © Database Management Systems: Data Mining Statistics Review.
Slide 15-1 Copyright © 2004 Pearson Education, Inc.
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
AP STATISTICS LESSON 6.3 (DAY 1) GENERAL PROBABILITY RULES.
Probability The Language of Sets
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
2. Introduction to Probability. What is a Probability?
1 Probability: Liklihood of occurrence; we know the population, and we predict the outcome or the sample. Statistics: We observe the sample and use the.
Probability. Rules  0 ≤ P(A) ≤ 1 for any event A.  P(S) = 1  Complement: P(A c ) = 1 – P(A)  Addition: If A and B are disjoint events, P(A or B) =
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved. Essentials of Business Statistics: Communicating with Numbers By Sanjiv Jaggia and.
Psychology 202a Advanced Psychological Statistics September 24, 2015.
1 Chapter 15 Probability Rules. 2 Recall That… For any random phenomenon, each trial generates an outcome. An event is any set or collection of outcomes.
PROBABILITY AND BAYES THEOREM 1. 2 POPULATION SAMPLE PROBABILITY STATISTICAL INFERENCE.
STATISTICS 6.0 Conditional Probabilities “Conditional Probabilities”
BUSA Probability. Probability – the bedrock of randomness Definitions Random experiment – observing the close of the NYSE and the Nasdaq Sample.
Conditional Probability If two events are not mutually exclusive, the fact that we know that B has happened will have an effect on the probability of A.
Review Conditional Probability –Denoted P(A|B), it represents the probability that A will occur given that B occurred. Independent events –Two events A.
Probability – the bedrock of randomness Definitions Random experiment – observing the close of the NYSE and the Nasdaq Sample space = {NYSE+Nasdaq+, NYSE+Nasdaq-,
Chapter 15: Probability Rules! Ryan Vu and Erick Li Period 2.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 4-1 Chapter 4 Basic Probability Business Statistics: A First Course 5 th Edition.
Key Concepts of the Probability Unit Simulation Probability rules Counting and tree diagrams Intersection (“and”): the multiplication rule, and independent.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Chapter 15 Probability Rules!.
Lecture Slides Elementary Statistics Twelfth Edition
Chapter 15 Probability Rules!
Chapter 15 Probability Rules!.
CHAPTER 5 Probability: What Are the Chances?
Chapter 3 Probability.
Chapter 4 Probability.
Chapter 4 Basic Probability.
The study of randomness
Quick Review Probability Theory
Quick Review Probability Theory
Statistics 300: Introduction to Probability and Statistics
MEGN 537 – Probabilistic Biomechanics Ch. 1 – Introduction Ch
Statistics for 8th Edition Chapter 3 Probability
2. Introduction to Probability
Chapter 14 Probability Rules!.
Chapter 4 Basic Probability.
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Chapter 2: Probability CIS Computational Probability and.
Honors Statistics From Randomness to Probability
Introduction to Probability & Statistics Expectations
Chapter 15 Probability Rules! Copyright © 2010 Pearson Education, Inc.
From Randomness to Probability
Mutually Exclusive Events
Chapter 6: Probability: What are the Chances?
Chapter 15 Probability Rules!.
Probability Notes Math 309.
Chapter 15 Probability Rules! Copyright © 2010 Pearson Education, Inc.
QUANTITATIVE METHODS 1 SAMIR K. SRIVASTAVA.
General Probability Rules
Probability Rules Rule 1.
Notes 13-4: Probabilities of Compound Events
Chapter 5 – Probability Rules
Presentation transcript:

STAT 203 Tree Diagrams and Bayes’ Rule Dr. Bruce Dunham Department of Statistics UBC Lecture 24

Introduction We have defined rules for probability, including generalized additive and multiplicative rules. The latter gives probabilities for compound (or joint) events: P(A and B) = P(A) P(B|A) = P(B) P(A|B). We see how to apply this rule and also discuss “reversing” a conditional probability.

Tree Diagrams Some situations require repeated applications of the generalized multiplicative rule. Given “past” events, the probability of “future” events must sum to one. In visualizing what is happening, a tree diagram may help.

Example 1% of a population have condition X. A test exists, but is fallible: 98% with condition X give a positive result, while 5% without it test positive. You choose someone at random from the population. What is the chance they have X and test positive?

For instance, 0.98 is the probability of testing +ve given that you have condition X. By the generalised rule, the probability of having condition X and testing +ve is 0.0098.

Reversing Conditioning In the given example, we know that P(Test +ve | Have X) is 0.98. But that is not of direct interest to a patient who has a +ve test result. They want to know P(Have X | Test +ve). In general P(A|B) ≠ P(B|A).

Using the tree … We could find the probability in question using the tree diagram and the conditional probability rule: P(Have X | Test +ve) = P(Have X and Test +ve)/ P(Test +ve). From the tree, we see the above is 0.0098/(0.0098 + 0.0495) = 0.165.

Bayes’ Rule More formally, a rule exists for reversing conditional probabilities. When we consider the case with just two alternatives (B or Bc ) the rule states P(B | A) = P(A | B)P(B) /(P(A|B)P(B) + P(A| Bc )P(Bc)) The rule allows us to “flip” conditional probabilities.

Remarks on Bayes’ Theorem The result is attributed to Rev Thomas Bayes (1702? – 1761), published posthumously. A more general form exists for when we consider multiple alternative “causes” of event A. (Say B1, B2, … , Bk ). For cases here, you may find using tree diagrams easier.

1. For the scenario in Q1, what is the probability a chip chosen at random is defective and came from factory F1? 0.21 0.31 0.35 0.50 0.71 Ans: A From tree diagram or otherwise, P(D and F1) = P(D|F1)P(F1) = 0.35 × 0.10 = 0.21. 11

2. For the scenario in Q1, what is the probability a chip chosen at random is defective? 0.25 0.31 0.35 0.50 0.60 Ans: B The event {D} can be split into two mutually exclusive events: {D and F1} and {D and F2}. We can use the multiplicative rule to find the probabilities of these events. E.g., P(D and F1) = P(D|F1)P(F1). 12

Note that {D} is the union of two mutually exclusive events.

P(D and F1) = P(D|F1)P(F1) and P(D and F2) = P(D|F2)P(F2). The event {D} can be split into two mutually exclusive events: {D and F1} and {D and F2}. We can use the multiplicative rule to find the probabilities of these events. Specifically, P(D and F1) = P(D|F1)P(F1) and P(D and F2) = P(D|F2)P(F2). Drawing a Venn diagram helps!

3. For the scenario in Q1, what is the probability a chip came from factory F1 given that it is defective? 0.21 0.31 0.35 0.39 0.68 Ans: E Use tree diagram or Bayes’ rule. 15

Before the next class: Visit www.slate.stat.ubc.ca Review today’s activity. Read chapter 15 of text on sampling distributions. Don’t forget on-line homework!