1. 2 LECTURE 6 OF 6 CONDITIONAL PROBABILITY & BAYES’ THEOREM.

Slides:



Advertisements
Similar presentations
The Law of Total Probability
Advertisements

A Survey of Probability Concepts
A Survey of Probability Concepts
Chapter 4 Probability: Probabilities of Compound Events
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Complimentary Events The complement of event E is the set of all outcomes in a sample space that are not included in event E. The complement of event.
Probability Sample Space Diagrams.
Mathematics.
Statistics Review! Basic Probabilit y Venn Diagrams Tree Diagrams Conditional Probability Some formulas Lattice Diagrams Let’s play cards
“Teach A Level Maths” Statistics 1
Lucy has a box of 30 chocolates. 18 are milk chocolate and the rest are dark chocolate. She takes a chocolate at random from the box and eats it. She then.
Bayes’ Theorem.
Probability (2) Conditional Probability. For these 6 balls, if 2 are chosen randomly …. What is the probability they are a green and a red? P(G) = 2/6.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Independent and 10-7 Dependent Events Warm Up Lesson Presentation
NA387 Lecture 5: Combinatorics, Conditional Probability
“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,
AP Statistics Chapter 6 Notes. Probability Terms Random: Individual outcomes are uncertain, but there is a predictable distribution of outcomes in the.
Conditional Probability Lesson objectives: Work out the probability of combined events when the probabilities change after each event.
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.
Random Experiment Random Variable: Continuous, Discrete Sample Space: S Event: A, B, E Null Event Complement of an Event A’ Union of Events (either, or)
Topic 4A: Independent and Dependent Events Using the Product Rule
Warm Up Find the theoretical probability of each outcome 1. rolling a 6 on a number cube. 2. rolling an odd number on a number cube. 3. flipping two coins.
Tree Diagrams Example Of the total daily output of a specific type of article at a factory, 40% are produced on machine A, 10% on machine B, and 50% on.
Bayes’ Theorem Thomas Bayes was a British mathematician ( ).
Probability 2.0. Independent Events Events can be "Independent", meaning each event is not affected by any other events. Example: Tossing a coin. Each.
Mathematics Conditional Probability Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
Chapter 7 Section 5.  Binomial Distribution required just two outcomes (success or failure).  Multinomial Distribution can be used when there are more.
Stat 1510: General Rules of Probability. Agenda 2  Independence and the Multiplication Rule  The General Addition Rule  Conditional Probability  The.
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.
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.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 8.4 Bayes’ Formula The student will be able to solve problems involving.
MATHPOWER TM 12, WESTERN EDITION Chapter 8 Probability 8.2A 8.2A.1.
Probability Probability Day 4. Independent Practice Topic 3 packet pg
Tree Diagrams Objective: To calculate probability using a tree diagram. Lesley Soar Valley College Five balls are put into a bag. Three are red.
Tree Diagrams Objective: To calculate probability using a tree Lesley Hall Five balls are put into a bag. Three are red. Two are blue.
Probability Lesson 1 Aims:
Classifying Events 8.2A Chapter 8 Probability 8.2A.1
Umm Al-Qura University
Elementary Probability Theory
Bayes’ Theorem.
Probability Using Venn Diagrams
Lecture 5 0f 6 TOPIC 10 Independent Events.
What is Probability? Quantification of uncertainty.
Probability Theory.
Probability of Multiple Events
Chapter 4 Section 4.1 Statistics
Applicable Mathematics “Probability”
Created by Mr Lafferty Maths Dept
P(A and B) = P(A) x P(B) The ‘AND’ Rule
Probability.
Probability Models Section 6.2.
True False True False True False Starter – True or False
Probability Probability underlies statistical inference - the drawing of conclusions from a sample of data. If samples are drawn at random, their characteristics.
no replacement – version 2
If A and B are any two events, then: P(AB)= P(A) + P(B)  P(AB)
the addition law for events that are not mutually exclusive
Probability Tree Diagrams
Independent and 10-7 Dependent Events Warm Up Lesson Presentation
Note 10:Conditional Probability
Tree Diagrams – Conditional – Worksheet
Thursday 05/16 Warm Up 200 people were surveyed about ice cream preferences. 78 people said they prefer chocolate. 65 people said they prefer strawberry.
Tree Diagrams Be able to use a tree diagram to list the possible outcomes from two events. Be able to calculate probabilities from tree diagrams. Understand.
Lesson 56 – Probability of Dependent Events – Conditional Probabilty
Presentation transcript:

1

2 LECTURE 6 OF 6 CONDITIONAL PROBABILITY & BAYES’ THEOREM

3 At the end of the lesson, students should be able to: (a) understand and use Bayes’ Theorem to solve probability problems

4 REMEMBER – THE PREVIOUS LECTURE the conditional probability of A given B is written as P(A | B) The event that has already occurred The event whose probability is to be determined

5 P(B | A) = 0.2 P(A | B) = ? When the condition is reversed, Bayes’ Theorem is used to solve such problems. If you are given How do you find ?

6 A B B B’ A’ P( B | A’ ) P( A) P( B | A ) P( A’) P( B )=P(A) x P( B | A ) +P(A’) x P( B | A’ ) TOTAL PROBABILITY OF EVENT B = P(B)

7 In general, if events A 1,A 2,.……., A n are mutually exclusive and exhaustive events, then the probability of event B is given by : P( B )=P(A 1 ) x P( B | A 1 ) +P(A 2 ) x P( B | A 2 ) + P(A 3 ) x P( B | A 3 )+…..+ P(A n ) x P( B | A n ) TOTAL PROBABILITY OF EVENT B = P(B) THE TOTAL PROBABILITY THEOREM

8 P (A|B) : “the probability of A given B” P (B|A) : “the probability of B given A”

9 BAYES’ THEOREM (2) (1) Substitute (2) into (1), we get :

10 BAYES’ THEOREM where A 1, A 2, ….., A n are n mutually exclusive and exhaustive events so that A 1 A 2 ……. A n = S, the possibility space, and B is an arbitrary event of S ( i = 1,2,3,…..,n ). P(B) is the total probability of event B. Bayes’ Theorem is useful when we have to ‘ reverse the conditions ’ in a problem.

11 Example 1 There are 12 red balls and 8 green balls in a bucket. Two balls are taken out in sequence without replacement. By using a tree diagram, find the probability that (a) the first ball is red (b) the second one is red if the first is red (c) the second one is red if the first is green (d) the second one is red (e) the first one is red if the second is red

12 Solution: 1 st draw R1R1 G1G1 2 nd draw G2G2 R2R2 G2G2 R2R2 R ~ red ball G ~ green ball

13 (a) P( first ball is red) = P(R 1 ) (b) P( R 2 | R 1 ) Direct from the tree diagram Or using the formula of conditional probability P( R 2 | R 1 )

14 (c) P( R 2 | G 1 ) Direct from the tree diagram (d) P( R 2 )= P( R 1 ∩ R 2 ) + P(G 1 ∩ R 2 )

15 (e) P(R 1 | R 2 ) = ‘Reverse condition’ use Bayes’ Theorem |

16 Example 2 I travel to work by route A or route B. The probability that I choose route A is. The probability that I am late for work if I go via route A is and the corresponding probability if I go via route B is. (a)What is the probability that I am late for work on Monday ? (b)Given that I am late for work, what is the probability that I went via route B ?

17 Solution: ROUTE B AL’ (not late) L (late) L’ (not late) L (late) ARRIVE AT WORK P(A) x P(L|A) P(B) x P(L|B)

18 P(A) x P( L | A )(a) P ( L ) =+ P(B) x P( L | B) (b) BAYES’ THEOREM

19 Example 3 Aishah, Siti and Muna pack biscuits in a factory. Aishah packs 55%, Siti 30% and Muna 15% from the batch allotted to them. The probability that Aishah breaks some biscuits in a packet is 0.7, and the respective probabilities for Siti and Muna are 0.2 and 0.1. What is the probability that a packet with broken biscuits found by the checker was packed by Aishah ?

20 Solution: A B B B’ S M B B’ 0.15 A – Aishah, S – Siti, M - Muna B – Broken Biscuits

21 BAYES’ THEOREM

22 Example 4 According to a firm’s internal survey, of those employees living more than 2 miles from work, 90% travel to work by car. Of the remaining employees, only 50% travel to work by car. It is known that 75% of employees live more than 2 miles from work. Determine : (i) the overall proportion of employees who travel to work by car. (ii) the probability that an employee who travels to work by car lives more than 2 miles from work.

23 Define the events C, B 1, B 2 as follows : C : Travels to work by car B 1 : Lives more than 2 miles from work B 2 : Lives not more than 2 miles from work The events B 1 and B 2 are mutually exclusive and exhaustive. P(B 1 ) = 0.75, P(B 2 ) = 0.25 P( C | B 1 ) = 0.9and P( C | B 2 ) = 0.5 Solution:

24 B2B2 B1B1 C’ C C (i) P(C) = P(B 1 ) x P( C | B 1 ) + P(B 2 ) x P( C | B 2 ) = ( 0.75 x 0.9 ) + ( 0.25 x 0.5 ) = 0.8 P( C | B 1 ) = 0.9P( C | B 2 ) = 0.5 P(B1) = 0.75,P(B2) = 0.25 Solution: 80% of employees travel to work by car.

25 BAYES’ THEOREM (ii)

26 BAYES’ THEOREM THE TOTAL PROBABILITY THEOREM P( B )=P(A 1 ) x P( B | A 1 ) +P(A 2 ) x P( B | A 2 ) + P(A 3 ) x P( B | A 3 )+…..+ P(A n ) x P( B | A n ) TOTAL PROBABILITY OF EVENT B = P(B)

27 Exercise : 1.Three children, Azman, Mariam and Nasir, have equal plots in a circular patch of garden. The boundaries are marked out by pebbles, Azman has 80 red and 20 white flowers in her patch, Mariam has 30 red and 40 white flowers and Nasir has 10 red and 60 white flowers. Their young sister, Mumtaz, wants to pick a flower for her teacher. (a) Find the probability that she picks a red flower if she chooses a flower at random from the garden ignoring the boundaries. (b) Find the probability that she picks a red flower if she first chooses a plot at random.

28 (c) If she picks a red flower by the method described in (b), find the probability that it comes from Mariam’s plot. Answer : (a) 0.5(b) (c)