2.8 Bayes’ Rule Theorem of Total Probability(全概率公式)

Slides:



Advertisements
Similar presentations
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
Advertisements

A Survey of Probability Concepts
1 Probability Theory Dr. Deshi Ye
Chapter 4 Probability: Probabilities of Compound Events
COUNTING AND PROBABILITY
NIPRL Chapter 1. Probability Theory 1.1 Probabilities 1.2 Events 1.3 Combinations of Events 1.4 Conditional Probability 1.5 Probabilities of Event Intersections.
Mathematics.
Chapter 7 Probability 7.1 Experiments, Sample Spaces, and Events
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six 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.
Chapter 4: Probability (Cont.) In this handout: Total probability rule Bayes’ rule Random sampling from finite population Rule of combinations.
Bayes’ Theorem.
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. A Survey of Probability Concepts Chapter 5.
Statistics and Probability Theory Lecture 09 Fasih ur Rehman.
The number of experiment outcomes
1 Conditional Probability and Bayes’ Theorem Dr. Jerrell T. Stracener, SAE Fellow EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers.
Probability Chapter 2 Towards a theory of probability… Chapter 2B Will the apple fall? It is a random event.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Independence and Bernoulli.
“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,
1.5 Conditional Probability 1. Conditional Probability 2. The multiplication rule 3. Partition Theorem 4. Bayes’ Rule.
Copyright © Cengage Learning. All rights reserved. Elementary Probability Theory 5.
Lecture 5a: Bayes’ Rule Class web site: DEA in Bioinformatics: Statistics Module Box 1Box 2Box 3.
Chapter 1 Probability Spaces 主講人 : 虞台文. Content Sample Spaces and Events Event Operations Probability Spaces Conditional Probabilities Independence of.
Ch Counting Techniques Product Rule If the first element or object of an ordered pair can be used in n 1 ways, and for each of these n1 ways.
Bayes’ Theorem Bayes’ Theorem allows us to calculate the conditional probability one way (e.g., P(B|A) when we know the conditional probability the other.
Bayes’ Theorem -- Partitions Given two events, R and S, if P(R  S) =1 P(R  S) =0 then we say that R and S partition the sample space. More than 2 events.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Probability 2.0. Independent Events Events can be "Independent", meaning each event is not affected by any other events. Example: Tossing a coin. Each.
Topic 2: Intro to probability CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text, Probability and Statistics for Engineering.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin A Survey of Probability Concepts Chapter 5.
Copyright © Cengage Learning. All rights reserved. Elementary Probability Theory 5.
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
PROBABILITY AND STATISTICS
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:
PROBABILITY AND BAYES THEOREM 1. 2 POPULATION SAMPLE PROBABILITY STATISTICAL INFERENCE.
Copyright © Cengage Learning. All rights reserved. 2 Probability.
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.
Section 3.3 Addition Rule (Venn Diagram). Section 3.3 Objectives Determine if two events are mutually exclusive Use a Venn Diagram to find the probability.
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 1. Basic Terminology 2 Probability 3  Probability is the numerical measure of the likelihood that an event will occur  The probability.
Bayes’ Theorem Suppose we have estimated prior probabilities for events we are concerned with, and then obtain new information. We would like to a sound.
Conditional Probability
Copyright © Cengage Learning. All rights reserved.
Virtual University of Pakistan
Now it’s time to look at…
Bayes’ Theorem.
Probability Axioms and Formulas
Conditional Probability
Example Suppose that a deck of 52 cards containing four aces is shuffled thoroughly and the cards are then distributed among four players so that each.
A Survey of Probability Concepts
Chapter 5 MC Review.
4 Elementary Probability Theory
Chapter 4 Probability.
What is Probability? Quantification of uncertainty.
Probability Theory.
A Survey of Probability Concepts
4 Elementary Probability Theory
Chapter 3 Probability.
Now it’s time to look at…
Lecture 2: Probability.
Section 3.3 Objectives Addition Rule
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
COUNTING AND PROBABILITY
Section 3.3 Addition Rule Larson/Farber 4th ed.
Now it’s time to look at…
Wed + nes + day! Warm-Up… Quickwrite…
Section 4-2 Addition Rules
If A and B are any two events, then: P(AB)= P(A) + P(B)  P(AB)
Chapter 5 – Probability Rules
Chapter 1 Probability Spaces
Presentation transcript:

2.8 Bayes’ Rule Theorem of Total Probability(全概率公式) Let A and B are two events in a sample space S. Then A = (AB)(AB’) P(A) = P(AB) + P(AB’) = P(A|B)P(B) + P(A|B’)P(B’) B B’ AB AB’

In general (Theorem 2.16) If the events B1, B2, …,Bk constitute a partition of the sample space S such that P(Bi)  0 for i = 1, 2, …, k, then for any event A of S,

S A B1 B2 … … Bk AB1 AB2 ABi... ABk Proof:

General Procedure in Computing the Probability of Events Write down events and analyze relations between them. Recall some relevant probability formulas. Input data and find the solutions.

Example 2.38, page 59 In the certain assembly plant, three machines, B1, B2, and B3, make 30%, 45%, and 25%, respectively, of the products. It is known from past experience that 2%, 3%, and 2% of the products made by each machine, respectively, are defective. Suppose that a finished product is randomly selected. What is the probability that it is defective? Solution: D={the product is defective} Bi={the product is made by machine Bi} P(B1)= 30% , P(B2)= 45% , P(B3)= 25% P(D) = P(DB1) + P(DB2) + P(DB3) = P(D|B1)P(B1) + P(D|B2)P(B2) +P(D|B3)P(B3) = 0.02(0.3) + 0.03(0.45) + 0.02(0.25)

Example. Which box? Suppose there are three similar boxes. Box i contains i white balls and one black ball, i = 1, 2, 3.   Suppose I mix up the boxes, and then pick up one at random and show you the ball. I offer you a price if you can guess correctly what box it comes from. Problem: Which box would you guess if the ball drawn is white and what is the chance of your guessing right?

Solution: Find P(Box 3 | white) =   P(Box 3 and white) = P(white| Box 3)P(Box 3)=(3/4)(1/3)=1/4 P(white) = P(white | Box i)P(Box i) (全概率公式) = [ i/(i + 1)](1/3) = (1/3)(1/2+2/3+3/4)=23/36  P(Box 3 | white) = = (1/4)/(23/36)=9/23

In general: Suppose that the events represent n mutually exclusive possible results of the first stage of some procedure and P( ) = 1. Rather, the result A of some second stage has been observed, whose chances depends on which of the B’s has occurred. ((P(A| Bi ) is often known) The general problem is to find the probabilities of the event Bj given the occurrence of A. (P(Bj | A) ) In this example, first, pick a box; then pick a ball from the box.

Bayes’ Rule (Theorem 2.17) If the events constitute a partition of the sample space S, where  0 for i = 1, 2, …, k, then for any event A of S, such that P(A)  0,   for r = 1, 2,…, k. P(Ai) P(Ai/B) B1 B2 … Bk P(A/Bi) B P(Bi)—prior probability P(Bi/A) posterior probability A

Example: False positive(阳性) Suppose that a laboratory test on a blood sample yields one of two results, positive or negative. It is found that 95% of the people with a particular disease will produce a positive result. But 2% of people without disease will also produce a positive result (a false positive). Suppose that 1% of the population actually has the disease. What is the probability that a person chosen at random from the population will have the disease, given that the person’s blood yields a positive result? Test on blood for positive or negative

D ND + _ 0.95 0.05 0.98 0.02 Need to find P(D | +) = ? P(D) = 1% , P(D’) = 99%, P(+ | D) = 95%, P(+ | D’) = 2% P(D | +) = [P(D)P(+ | D)] /[P(+ | D)P(D)+ P(+ | D’)P(D’)] = 95/293

P(10%) = P(10%|best) P(best) + P(10%|not best) P(not best) Example: You have decided to invest in the stock market for the first time and considering three investment strategies. You want to earn at least a 10% return on your money. The probability of a 10% return if you pick the best of the three strategies is 1/3. If you do not pick the best of the three strategies, your chances of a 10% return are 1/5. 1. What is the probability that you will earn a return of 10% if you pick randomly among the three strategies? 2. Given that you find at the end of six months that you have earned a 10% return, what is the probability that you picked best of the three strategies?  P(10%) = P(10%|best) P(best) + P(10%|not best) P(not best) = (1/3)1/3 + 1/5 (2/3) =11/45 P(best|10%) = P(best and 10%)/P(10%) = P(10%|best) P(best) / [P(10%|best)P(best) + P(10%|not best)P(not best)] = (1/9)/[(1/9) + (2/15)]=5/11

Example 1 A bank classifies customers as either good or bad credit risks. On the basis of extensive historical, the bank has observed that 1% of good credit risks and 10% of bad credit risks overdraw their account in any given month. A new customer opens a checking account at this bank. On the basis of a check with a credit bureau, the bank believes that there is a 70% chance the customer will turn out to be a good credit risk. Suppose that this customer’s account is overdrawn in the first month. How does this alter the bank’s opinion of this customer’s creditworthiness?

Solution: Let G: Customer considered a good risk. O: Customer overdraws checking account. From the bank’s historical data, we have On the other hand, the bank’s initial opinion about the customer’s creditworthiness is given by Using Bayes’theorem