Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Conditional Probability and Bayes’ Theorem Dr. Jerrell T. Stracener, SAE Fellow EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers.

Similar presentations


Presentation on theme: "1 Conditional Probability and Bayes’ Theorem Dr. Jerrell T. Stracener, SAE Fellow EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers."— Presentation transcript:

1 1 Conditional Probability and Bayes’ Theorem Dr. Jerrell T. Stracener, SAE Fellow EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers Leadership in Engineering Department of Engineering Management, Information and Systems

2 2 Basic Concept Definition Reduced Sample Space Rules Bayes’ Rule Conditional Probability

3 3 If A and B are any events in S and P(B)  0, the conditional probability of A, given that B has occurred is denoted by P(A | B), and Note: The given event is called the reduced sample space. Conditional Probability

4 4 Rule If A and B are any events in S, then P(A  B) = P(A)P(B|A)if P(A)  0 = P(B)P(A|B) if P(B)  0 Rule Two events A and B are independent if P(A|B) = P(A), and are dependent otherwise. Conditional Probability: Rules

5 5 Rule If A, B and C are events in S for which P(A) > 0, P(B) > 0, and P(C) > 0, then P(A  B  C) = P(A)P(B|A)P(C|A  B) Rule For events A 1, A 2,... A n in S, can occur, then P(A 1  A 2 ...  A n ) = P(A 1 )P(A 2 |A 1 )P(A 3 |A 1  A 2 )… P(A n |A 1 ...  A n-1 ) Product Rule continued

6 6 Let {B 1, B 2,..., B n } be a set of events forming a partition of the sample space S, where P(B i )  0, for i = 1, 2,..., n. Let A be any event of S such that P(A)  0. Then, for k = 1, 2,..., n, Bayes Theorem

7 7 In a sense, Bayes’ Rule is updating or revising the prior probability P(B) by incorporating the observed information contained within event A into the model.

8 8 A chain of video stores sells three different brands of VCR’s. Of its VCR sales, 50% are Brand 1 (the least expensive), 30% are Brand 2, and 20% are Brand 3. Each manufacturer offers a 1-year warranty on parts and labor. It is known that 25% of Brand 1’s VCR’s require warranty repair work, whereas the corresponding percentages for Brands 2 and 3 are 20% and 10% respectively. 1. What is the probability that a randomly selected purchaser has bought a Brand 1 VCR that will need repair while under warranty? 2. What is the probability that a randomly selected purchaser has a VCR that will need repair while under warranty? 3. If a customer returns to the store with a VCR that needs warranty repair work, what is the probability that it is a Brand 1 VCR? A Brand 2 VCR? A Brand 3 VCR? Example

9 9 The probability that a VCR sold will be Brand 1 is P(B 1 ) = 0.50, the probability it will be Brand 2 is P(B 2 ) = 0.30, and the probability that it will be Brand 3 P(B 3 ) = 0.20. Once a Brand of VCR has been selected R represents that the VCR needs repair R’ represents that the VCR does not need repair The probability that a Brand 1 VCR needs repair, P(R|B 1 ) = 0.25 The probability that a Brand 2 VCR needs repair, P(R|B 2 ) = 0.20 The probability that a Brand 3 VCR needs repair, P(R|B 3 ) = 0.10 Example: solution

10 10 Outcome Probability B 1 R0.125 B 1 R' 0.375 B 2 R 0.060 B 2 R' 0.240 B 3 R 0.020 B 3 R'0.180 1.000  Brand 1 Brand 2 Brand 3 repair no repair repair no repair repair no repair 0.50 0.30 0.20 0.90 0.10 0.80 0.20 0.75 0.25 Example: solution

11 11 1. P(B 1 and R) = P(B 1  R) = P(B 1 )P(R|B 1 ) = (0.50)(0.25) = 0.125 or, by inspection from the tree diagram P(B 1 and R) = 0.125 2. Since R = (B 1  R)  (B 2  R)  (B 3  R), P(R)= P(B 1  R) + P(B 2  R) + P(B 3  R) = 0.125 + 0.060 + 0.020 = 0.205 Example: solution

12 12 3. P(B 1 |R) = P(B 1  R)/P(R) = 0.125/0.205 = 0.61 P(B 2 |R) = P(B 2  R)/P(R) = 0.060/0.205 = 0.29 P(B 3 |R) = P(B 2  R)/P(R) = 0.020/0.205 = 0.1 Note: P(B 3 |R) = 1 - P(B 1 |R) - P(B 2 |R) = 0. 10 Example: solution

13 13 Example An electrical system consists of four components whose reliability configuration is AB C D The system works if components A and B work and either of the components C or D work. The reliability (probability of working) of each component is 0.9.

14 14 Find the probability that: (a)The entire system works (b)The component C does not work, given that the entire system works. Assume that four components work independently.

15 15 Solution In this configuration of the system, A, B, and the subsystem C and D constitute a serial circuit system, whereas the subsystem C and D itself is a parallel circuit system. (a)Clearly the probability that the entire system works can be calculated as the following: The equalities above hold because of the independence among the four components

16 16 (b) To calculate the conditional probability in this case, notice that P= P(the system works but C does not work ) P(the system works) = = (0.9)(0.9)(1-0.9)(0.9) 0.8019 =0.090909


Download ppt "1 Conditional Probability and Bayes’ Theorem Dr. Jerrell T. Stracener, SAE Fellow EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers."

Similar presentations


Ads by Google