Lecture 4 Lecture 4: Conditional Probability 1 Conditional Probability, Total Probability Rule Instructor: Kaveh Zamani Course material mainly developed.

Slides:



Advertisements
Similar presentations
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.
Advertisements

COUNTING AND PROBABILITY
1 1 PRESENTED BY E. G. GASCON Introduction to Probability Section 7.3, 7.4, 7.5.
For Thursday, Feb. 20 Bring Conditional Probability Worksheet to class Exam #1:March 4 Project Presentations Start March 6 Team Homework #4 due Feb. 25.
Section 3 Conditional Probability, Intersection, and Independence
Chapter 4 Probability.
Chapter 2: Probability.
2-1 Sample Spaces and Events Conducting an experiment, in day-to-day repetitions of the measurement the results can differ slightly because of small.
Conditional Probability
Engineering Probability and Statistics - SE-205 -Chap 2 By S. O. Duffuaa.
Chap 4-1 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 4 Probability.
PROBABILITY (6MTCOAE205) Chapter 2 Probability.
Chapter 4 Probability Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
AP Statistics Notes Chapter 14 and 15.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Probability: What are the Chances? Section 6.3 Conditional Probability.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
Sample space The set of all possible outcomes of a chance experiment –Roll a dieS={1,2,3,4,5,6} –Pick a cardS={A-K for ♠, ♥, ♣ & ♦} We want to know the.
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Section 5.3 Conditional Probability and Independence
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.
2-1 Sample Spaces and Events Random Experiments Figure 2-1 Continuous iteration between model and physical system.
2-1 Sample Spaces and Events Random Experiments Figure 2-1 Continuous iteration between model and physical system.
CHAPTER 12: General Rules of Probability Lecture PowerPoint Slides The Basic Practice of Statistics 6 th Edition Moore / Notz / Fligner.
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.
Computer Performance Modeling Dirk Grunwald Spring ‘96 Jain, Chapter 12 Summarizing Data With Statistics.
Computing Fundamentals 2 Lecture 6 Probability Lecturer: Patrick Browne
Copyright © 2010 Pearson Education, Inc. Chapter 6 Probability.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
Probability You’ll probably like it!. Probability Definitions Probability assignment Complement, union, intersection of events Conditional probability.
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
1 Probability Chapter Assigning probabilities to Events Random experiment –a random experiment is a process or course of action, whose outcome.
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) =
EMIS 7300 SYSTEMS ANALYSIS METHODS Spring 2006 Dr. John Lipp Copyright © Dr. John Lipp.
AP Statistics Notes Chapter 14 and 15.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Stat 1510: General Rules of Probability. Agenda 2  Independence and the Multiplication Rule  The General Addition Rule  Conditional Probability  The.
Chapter 4 Probability Concepts Events and Probability Three Helpful Concepts in Understanding Probability: Experiment Sample Space Event Experiment.
Probability. Randomness When we produce data by randomized procedures, the laws of probability answer the question, “What would happen if we did this.
PROBABILITY AND BAYES THEOREM 1. 2 POPULATION SAMPLE PROBABILITY STATISTICAL INFERENCE.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
LBSRE1021 Data Interpretation Lecture 4 Probability.
STATISTICS 6.0 Conditional Probabilities “Conditional Probabilities”
2.5 Additive Rules: Theorem 2.10: If A and B are any two events, then: P(A  B)= P(A) + P(B)  P(A  B) Corollary 1: If A and B are mutually exclusive.
Copyright ©2004 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4-1 Probability and Counting Rules CHAPTER 4.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Chapter 8 Probability Section 3 Conditional Probability, Intersection, and Independence.
PROBABILITY 1. Basic Terminology 2 Probability 3  Probability is the numerical measure of the likelihood that an event will occur  The probability.
Lecture Slides Elementary Statistics Twelfth Edition
Virtual University of Pakistan
CHAPTER 5 Probability: What Are the Chances?
Warm-up How many digits do you need to simulate heads or tails (or even or odd)? 2) To simulate an integer % probability of passing or failing?
Chapter 3: Probability Topics
Chapter 3 Probability.
Chapter 4 Probability.
CHAPTER 5 Probability: What Are the Chances?
MEGN 537 – Probabilistic Biomechanics Ch
CHAPTER 5 Probability: What Are the Chances?
How to Interpret Probability Mathematically, the probability that an event will occur is expressed as a number between 0 and 1. Notationally, the.
Chapter 6: Probability: What are the Chances?
CHAPTER 5 Probability: What Are the Chances?
LESSON 5: PROBABILITY Outline Probability Events
CHAPTER 5 Probability: What Are the Chances?
Click the mouse button or press the Space Bar to display the answers.
If A and B are any two events, then: P(AB)= P(A) + P(B)  P(AB)
Probability Multiplication law for dependent events
CHAPTER 5 Probability: What Are the Chances?
CHAPTER 5 Probability: What Are the Chances?
Chapter 5 – Probability Rules
Presentation transcript:

Lecture 4 Lecture 4: Conditional Probability 1 Conditional Probability, Total Probability Rule Instructor: Kaveh Zamani Course material mainly developed by previous instructors: Profs. Mokhtarian and Kendall, Ms. Reardon

Reminder Lecture 4: Conditional Probability 2 Previous Lecture: - Axioms of probability P(S) =1 0  P(A)  1 A 1 and A 2 with A 1 ∩ A 2 = ∅ P(A 1 ∪ A 2 ) = P(A 1 ) + P(A 2 ) - Probability of multiplication - Mutually exclusive events Next session:  Reading: section 2.7 text book  HW #2: posted on SmartSite problems:

Definition Lecture 4: Conditional Probability 3  Sometimes probabilities need to be reevaluated as additional information becomes available  The probability of an event B under the knowledge that the outcome will be in event A is denoted as: P(B|A)  This is called the conditional probability of B given A

Example 1,2 Lecture 4: Conditional Probability 4  A: event of rainy day in May B: event of day colder than 40 °F in May P(A|B) > P(A) Chance of rain in a cold weather is higher than the average chance of rain!  A: event of certain heart disease in people older than 60 B: event of abdominal obesity in people older than 60 P(A)= 10% Probability of the heart disease P(B)= 30% Probability of abdominal obesity P(B’)=1-P(B) Probability of being slim P(A|B)= 20% probability of the heart disease given that the person is fat P(A|B) > P(A), P(A|B’)< P(A)

Example 3: Welding (Page 41) Lecture 4: Conditional Probability 5  Automatic welding devices have error rates of 1/1000  Errors are rare, but when they occur, because of wearing of the device, they tend to occur in groups that affect many consecutive welds  If a single weld is performed, we might assume the probability of an error as 1/1000  However, if the previous welding was wrong, because of the wearing, we might believe that the probability that the next welding is wrong is greater than 1/1000, [P(W i+1 |W i )>1/1000]

Example 4: Manufacturing (Page 42) Lecture 4: Conditional Probability 6 D : a part of a steel column is defective F : a part of a steel column has a surface defect, P(F) = 0.10, P(D|F) = 0.25 and P(D|F’) = 0.05

Conditional Probability Lecture 4: Conditional Probability 7 The conditional probability of an event B given an event A, denoted as P(B|A), is P(B|A) = P(B ∩ A) / P(A) for P(A)>0 Therefore, P(B|A) can be interpreted as the relative frequency of event B among the trials that produce an outcome in event A It is like scaling down to a smaller sample space

Example 4 Lecture 4: Conditional Probability 8 D = a part is defective F = a part has a surface flaw [ P(F) = 0.10 ] P(D|F) = 0.25 and P(D|F’) = 0.05 P(D|F) = P(D ∩ F) / P(F) = / 0.1 = 0.25

Example 5: (2-78, Page 45) Lecture 4: Conditional Probability samples of a cast aluminum part are summarized as: P(A) = 82/100 = 0.82 P(B) = 90/100 = 0.90 P(B|A)= 80/82 = P(A|C)= 2/10 = 0.2 P(A|B)= 80/90 = 0.889

Exercise 2-85 (Page 46) Lecture 4: Conditional Probability 10  A batch of 350 steel bars contains 8 that are defective, 2 are selected, at random, without replacement from the batch  What is the probability that … : 1) both are defective? P(D 1 ∩ D 2 ) = P(D 1 |D 2 ) P(D 2 ) = P(D 1 ) P(D 2 ) = 8/350 ⋅ 7/349 = ) the second one selected is defective given that the first one was defective? P(D 2 |D 1 ) = P(D 2 ∩ D 1 ) / P(D 1 ) = /(8/350) = = (7/349) 3) both are acceptable? P(D 1 ’ ∩ D 2 ’) = P(D1’|D2’) P(D2’) = P(D1’) P(D2’)= 342/350 ⋅ 341/349 =

Exercise 2-85 (Cont.) Lecture 4: Conditional Probability 11 Reminder: De Morgan’s rule P(A’)=1-P(A)  The probability that both are acceptable can also be found as follows: P(D 2 ∩ D 1 )=P[(D 2 ∪ D 1 )’]=1-P(D 2 ∪ D 1 ) =1-[P(D 1 )+P(D 2 )-P(P(D 2 ∩ D 1 )] = 1-[8/350+8/ ]=  We are looking at the event (D1 or D2), so P(D2) depends on the outcome of the first selection, which can be either defective or acceptable  Therefore, we can use the TOTAL PROBABILITY RULE, to obtain: P(D 2 )=P(D 2 |D 1 )P(D 1 )+P(D 2 |D’ 1 )P(D’ 1 ) =7/349.8/350+8/ /350=8/350

Multiplication Rule Lecture 4: Conditional Probability 12  When the probability of the intersection is needed: P(A ∩ B) = P(B|A) P(A) = P(A|B) P(B)  Example: a concrete batch passes compressive tests with P(A) = 0.90; a second concrete batch is known to pass the tests if the first already does, with P(B|A) = 0.95 What is the probability P(A ∩ B) that both pass the tests? Ans: P(A ∩ B) = P(B|A) P(A) = 0.95 ⋅ 0.90 = Note: it is also true that P(A ∩ B) = P(A|B) P(B), but the Information provided in the question does not match this second formulation

Total Probability Rule Lecture 4: Conditional Probability 13  Sometimes, the probability of an event can be recovered by summing up a series of conditional probabilities.  Everyday life example: If a student is undergrad there is 60% chance he/she passes ECI- 114, and if he/she is a grad student there is 70% chance he/she passes Eci-114. P(A): Student is undergrad (55%) P(A’): Student is grad (45%) P(B): he/she passes ECI-114 P(B)= P(B ∩ A) + P(B ∩ A’)= P(B|A) P(A) + P(B|A’) P(A’) = 60/100.55/100+70/100.45/100 = 33/ /100=64.5/100

Total Probability Rule Lecture 4: Conditional Probability 14 For two events we have: P(B) = P(B ∩ A) + P(B ∩ A’) = P(B|A) P(A) + P(B|A’) P(A’)

Total Probability Rule for Multiple Events Lecture 4: Conditional Probability 15 For several mutually exclusive and exhaustive events we have: P(B) = P(B ∩ E 1 ) + P(B ∩ E 2 ) P(B ∩ E k ) = P(B|E 1 )P(E 1 ) + P(B|E 2 ) P(E 2 ) + … + P(B|E k ) P(E k )  Exhaustive Events: E 1 ∪ E 2 ∪ … ∪ E k = S  Mutually Exclusive Event: can NOT happen at the same time P(E i ∩ E j )=0 (i ≠ j)

Example 1 (Page 48) Lecture 4: Conditional Probability 16  A member fails when subjected to various stress levels, with the following probability Probability of Failure Level of stressProbability of stress level 0.1High Not high0.8  Let F: Failure and H: member has high stress level  What is the probability of failure of the member? Ans. P(F) = P(F|H) P(H) + P(F|H’) P(H’) = 0.10 ⋅ ⋅ 0.80 = Sum is 1

Example 2 (Page 48) Lecture 4: Conditional Probability 17  A water treatment unit fails when subjected to various contamination levels, with the following probability Probability of Failure Contamination Level Probability of Level 0.1High Medium Low0.5  Let H, M, L = member has high/medium/low contamination level Ans. P(F) = P(F|H) P(H) + P(F|M) P(M) + P(F|L) P(L) = 0.10 ⋅ ⋅ ⋅ 0.50 =

Example 2 (Cont.) Lecture 4: Conditional Probability 18  Tree diagram for the same example can be used too:

Exercise 2-96 (Page 50) Lecture 4: Conditional Probability 19  Building failures are due to either natural actions N (87%) or M man-made causes (13%)  Natural actions include: earthquakes E (56%), wind W (27%), and snow S (17%)  Man-made causes include: construction errors C (73%) or design errors D (27%) 1)What is the probability of failure due to construction errors? Ans. P(F) = P(C|M) P(M) = 0.73 ⋅ 0.13 = ) What is the probability of failure due to wind or snow? Ans. P(F) = [P(W|N) + P(S|N)] P(N) = [ ] ⋅ 0.87 =

Monday before class Lecture 4: Conditional Probability 20  Problems HW set 2  2-51  2-62  2-68  2-69  2-75  2-88  2-95  Reading Bayes’ Theorem (Pages 55-59)