MA-250 Probability and Statistics Nazar Khan PUCIT Lecture 21.

Slides:



Advertisements
Similar presentations
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Advertisements

© 2011 Pearson Education, Inc
MA-250 Probability and Statistics Nazar Khan PUCIT Lecture 13.
Probability Sample Space Diagrams.
1 1 PRESENTED BY E. G. GASCON Introduction to Probability Section 7.3, 7.4, 7.5.
Probability Theory and Statistics
8.7 Probability. Ex 1 Find the sample space for each of the following. One coin is tossed. Two coins are tossed. Three coins are tossed.
Chapter 7 Probability 7.1 Experiments, Sample Spaces, and Events
Section 3 Conditional Probability, Intersection, and Independence
Self-Test 5.
Solutions to the HW4 problems (from lecture 5). Problem 1: Box 1 contains 3 red and 5 white balls, while box 2 contains 4 red and 2 white balls. A ball.
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.
© Buddy Freeman, 2015Probability. Segment 2 Outline  Basic Probability  Probability Distributions.
Chapter 6 Probabilit y Vocabulary Probability – the proportion of times the outcome would occur in a very long series of repetitions (likelihood of an.
EXAMPLE 1 Find probability of disjoint events
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Conditional Probability Brian Carrico Nov 5, 2009.
1. P(a red card) 2. P(a ten) Lesson 10.4, For use with pages
12.4 Probability of Compound Events
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,
Compound Probability Pre-AP Geometry. Compound Events are made up of two or more simple events. I. Compound Events may be: A) Independent events - when.
Copyright © Cengage Learning. All rights reserved. 4 Probability.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
Sec 4.4 The multiplication Rule and conditional probability.
Section 1.6 Suppose that S = B 1  B 2  …  B m is an outcome space with B i  B j =  for i  j, that is, B 1, B 2, …, B m are mutually exclusive and.
1 Working with samples The problem of inference How to select cases from a population Probabilities Basic concepts of probability Using probabilities.
Chapter 7 Probability. 7.1 The Nature of Probability.
CHAPTER 12: General Rules of Probability Lecture PowerPoint Slides The Basic Practice of Statistics 6 th Edition Moore / Notz / Fligner.
Probability 2.0. Independent Events Events can be "Independent", meaning each event is not affected by any other events. Example: Tossing a coin. Each.
Warm-up A statistical report states that 68% of adult males in China smoke. What is the probability that five randomly selected adult males from China.
Algebra II 10.4: Find Probabilities of Disjoint and Overlapping Events HW: HW: p.710 (8 – 38 even) Chapter 10 Test: Thursday.
Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics.
Conditional Probability Notes from Stat 391. Conditional Events We want to know P(A) for an experiment Can event B influence P(A)? –Definitely! Assume.
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
Uncertainty ECE457 Applied Artificial Intelligence Spring 2007 Lecture #8.
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.
Chapter Probability 9 9 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
EXAMPLE 1 Find probability of disjoint events A card is randomly selected from a standard deck of 52 cards. What is the probability that it is a 10 or.
Probability A quantitative measure of uncertainty A quantitative measure of uncertainty A measure of degree of belief in a particular statement or problem.
Chapter three Conditional Probability and Independence
PROBABILITY References: Budiyono Statistika untuk Penelitian: Edisi Kedua. Surakarta: UNS Press. Spigel, M. R Probability and Statistics.
Random Variables and Stochastic Processes – Dr. Ghazi Al Sukkar Office Hours: will be.
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. Randomness When we produce data by randomized procedures, the laws of probability answer the question, “What would happen if we did this.
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.
Welcome to MM207 - Statistics! Unit 3 Seminar Good Evening Everyone! To resize your pods: Place your mouse here. Left mouse click and hold. Drag to the.
16.2 Probability of Events Occurring Together
Welcome to MM207 Unit 3 Seminar Dr. Bob Probability and Excel 1.
Chapter 8 Probability Section 3 Conditional Probability, Intersection, and Independence.
Question 1 Q. Four cards are drawn from a pack of 52 cards. Find the probability of, 1. They are King, Queen, Jack, & Ace 2. First is King, then Queen,
Sample Spaces and Probability Addition Rules Multiplication Rules and Conditional Probability Counting Rules Probability and Counting Rules
3-1 Copyright © 2014, 2011, and 2008 Pearson Education, Inc.
MATHPOWER TM 12, WESTERN EDITION Chapter 8 Probability 8.2A 8.2A.1.
Probability II.
Essential Ideas for The Nature of Probability
Classifying Events 8.2A Chapter 8 Probability 8.2A.1
Virtual University of Pakistan
Introduction to probability (5)
Probability.
The Addition Rule.
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Probability Rules Chapter 15.
Probability Rules Chapter 15.
Probability.
Probability.
Lecture 12 Sections 5.3 Objectives: Conditional Probability Definition
If A and B are any two events, then: P(AB)= P(A) + P(B)  P(AB)
Lectures prepared by: Elchanan Mossel Yelena Shvets
Presentation transcript:

MA-250 Probability and Statistics Nazar Khan PUCIT Lecture 21

CONDITIONAL PROBABILITY

Motivation So far, we have studied the probability of events. – P(Pakistan winning a match) What if we have some background information – P(Pakistan winning a match knowing that the main player is injured) Such questions are answered through conditional probability.

Conditional Probability Probability P(point in yellow square) = area(yellow square)/area(S) P(A)=area(A)/area(S) Conditional Probability P(point in yellow square | point is in blue circle) = area(yellow square) / area(blue circle) P(A|B) = area(A ∩B )/area(B) = area(A ∩B )/area(S) / area(B)/area(S) = P(A ∩B )/P(B) Let sample space S be all points in the green rectangle. Let event A be any point in the yellow square Let event B be any point in the blue circle.

Conditional Probability P(A|B)=area(A ∩B )/area(B) Notice that the denominator contains area(B) instead of area(S). So event B is acting as a reduced sample space or a sub-sample space. The basic idea of conditional probability is that the conditioning event serves as a sub- sample space.

Conditional Probability Probability – P(wet ground) – P(it’s raining) Conditional Probability – P(A|B)=P(A ∩B )/P(B) – P(wet ground | it’s raining) = P(W ∩R )/P(R) – P(it’s raining | wet ground) = P(R ∩W )/P(W)

Conditional Probability Example 1 Suppose that out of all fans in Punjab, 20% are manufactured in Lahore, 50% in Gujrat and 30% in Faisalabad. The %age of defective fans in the 3 cities are 5%, 3% and 4% respectively. Let D be the event that a fan is defective. Let L be the event that it was manufactured in Lahore, similarly F for Faisalabad and G for Gujrat. What is P(L), P(F) and P(G)? What is P(D|G)?

Conditional Probability P(L)=P(fan was manufactured in Lahore) = |fans manufactured in Lahore| |fans manufactured in Punjab| = ratio of Lahore fans = 20%. Similarly, P(G)=50% and P(F)=30%.

Conditional Probability P(D|G) =P(fan was defective given that it was manufactured in Gujrat) = |defective fans manufactured in Gujrat| |fans manufactured in Gujrat| = ratio of defective Gujrat fans = 3%.

Conditional Probability Example 2 We draw a card at random from the standard deck of 52 playing cards. A = {card drawn is ace of hearts} B = {card drawn is red }. What is P(A|B)? – Convert to a sentence first. – You cannot solve what you don’t understand! – What is the reduced sample space? Key:  =club (13 in total)  =diamond (13 in total) =heart (13 in total)  =spade (13 in total)

Conditional Probability Using reduced sample space. – There are only 26 red cards and there is only 1 ace of hearts in them. Therefore, P(A|B)=1/26 Using the formula. – P(A|B) = P(A and B)/P(B) = (1/52) / (1/2) = 1/26

Properties P(A c |B) =P(A c ∩ B)/P(B) =(P(B)-P(A ∩ B)) / P(B) =1-P(A|B) AB A∩BA∩B

Properties For disjoint events A and C, P(A ∪ C|B) =P((A ∪ C ) ∩ B)/P(B) =P(( (A ∩ B) ∪ ( C ∩ B) ))/P(B) =(P(A ∩ B) + P(C ∩ B)) / P(B) = P(A ∩ B)/P(B) + P(C ∩ B)/P(B) =P(A|B)+P(C|B) AC B

Properties P(A|B)=P(AB)/P(B) ⇒ P(AB) = P(A|B)P(B) P(B|A)=P(AB)/P(A) ⇒ P(AB) = P(B|A)P(A) So we can write P(ABC) =P(A|BC)P(BC) =P(A|BC)P(B|C)P(C) We can also write P(ABC) =P(C|AB)P(AB) =P(C|AB)P(B|A)P(A)

Properties P(A|B)=P(AB)/P(B) What if A and B are independent? – P(AB)=P(A)P(B) – So P(A|B)=P(A) – Similarly P(B|A)=? What if A and B are mutually exclusive? – P(AB)=0 – So P(A|B)=0 – P(B|A)=0

Properties Probability P(S)=1 P(A c )=1-P(A) P(A ∪ C)=P(A)+P(C) For independent A,B P(AB)=P(A)P(B) Conditional Probability P(S|B)=1 P(A c |B)=1-P(A|B) P(A ∪ C|B)=P(A|B)+P(C|B) For independent A,B – P(A|B)=P(A) – P(B|A)=P(B) P(A ∩ B ∩ C)=P(C|AB)P(B|A)P(A) Conditional probability behaves just like ordinary probability with the conditioning event, B, staying along.

Conditional Probability P(Good GPA)P(Bad GPA)Total P(Athlete) P(Non-athlete) Total.4.61 P(A)=P(Athlete)=.2P(A c )=P(Non-athlete)=.8 P(G)=P(Good GPA)=.4P(G c )=P(Bad GPA)=.6 P(A ∩ G)=.05P(A ∪ G)=.55 P(A|G)=.05/.4P(G|A)=.05/.2 P(A ∪ G|A ∩ G)=1P(A ∩ G|A ∪ G)=.05/.55

THEOREM OF TOTAL PROBABILITY

Theorem of Total Probability Example 1 Revisited Suppose that out of all fans in Punjab, 20% are manufactured in Lahore, 50% in Gujrat and 30% in Faisalabad. The %age of defective fans in the 3 cities are 5%, 3% and 4% respectively. Let D be the event that a fan is defective. Let L be the event that it was manufactured in Lahore, similarly F for Faisalabad and G for Gujrat. Earlier, we found P(L), P(F), P(G) and P(D|G)? What is P(D)?

Theorem of Total Probability Example 1 Revisited P(L)=.2, P(G)=.5, and P(F)=.3. P(D|L)=.05, P(D|G)=.03, P(D|L)=.04 P(D) =P(D ∩ L)+P(D ∩ G)+P(D ∩ F) =P(D|L)P(L)+P(D|G)P(G)+ P(D|F)P(F) = (0.05 x.20) + (0.03 x.50) + (0.04 x.30) =.037 L F G S

Theorem of Total Probability Theorem of Total Probability: If events B 1,B 2,… form a partition of the sample space S, then for any event A, P(A) = P(A|B 1 )P(B 1 ) + P(A|B 2 )P(B 2 ) + … Proof: R.H.S  P(A|B 1 )P(B 1 ) + P(A|B 2 )P(B 2 ) + … =P(AB 1 )/P(B 1 )*P(B 1 ) + P(AB 2 )/P(B 2 )*P(B 2 ) + … =P(AB 1 ) + P(AB 2 ) + … =P(AS)=P(A)  L.H.S

Bayes Theorem P(B|A) =P(AB)/P(A) =P(AB)/P(A) * P(B)/P(B) =P(A|B)P(B)/P(A)since P(AB)/P(B)=P(A|B) This is known as Bayes Theorem. To find the most likely reduced sample space from which a given outcome could have come – P(G|D)=P(Fan was manufactured in Gujrat given that it was defective)

Bayes Theorem P(G|D) =P(DG)/P(D) =P(D|G)P(G)/P(D) =(.03*.5)/.037=.405

Combining Everything Together Bayes Theorem P(B k |A) = P(A|B k )P(B k ) / P(A) = P(A|B k )P(B k ) / ∑ i P(A|B i )P(B i )

Practice Questions 1.Prove or disprove, P(A|B c ) = 1 − P(A|B) when 0 < P(B) < 1. 2.Prove or disprove, P(A|B ∪ C) = P(A|B)+P(A|C)−P(A|B∩C), when P(B ∩ C) > 0. 3.Find P(A|B) when A ⊆ B and P(B) > 0. 4.Let A,B have positive probabilities. If A,B are independent then what are the values of P(A|B) and P(B|A)? 5.Let A,B have positive probabilities. If P(A) ≤ P(A|B) then prove that P(B) ≤ P(B|A). 6.If A,B are independent then find P(A c |B c ). 7.When A,B are disjoint events, with P(B) > 0, what are P(A|B) and P(A|A ∪ B)?

Practice Questions 8.There are three boxes, A, B, C, such that box A has 10 red and 16 green balls, box B has 11 red and 15 green balls, and box C has 12 red and 14 green balls. A box is selected at random and from the selected box a ball is drawn at random. What is the probability that the drawn ball is red?

Practice Questions 9.Three branches (factories) of a firm, A,B,C, respectively produce 50%, 40% and 10% of the total output of the firm. The percentages of the defective output of these factories are respectively 3%, 2% and 1%. An item is selected at random from the pooled output of the three factories and is found to be defective. What is the probability that it was manufactured by factory A?

Practice Questions 10.USB Flash-drives were imported from four countries, C1,C2,C3, C4. The percentage of the total amount imported from the respective countries were 30%, 40%, 20%, 10%. The drives were then packed into small identical looking packages of one hundred drives each. (Each package contained drives from only one country). Certain proportions of the drives were faulty. The percentage of faulty drives from the respective four countries were 3%, 2%, 1%, 1%. Out of one package, five drives were checked and 2 of them turned out to be faulty. What is the probability that the package came from country C1?

Practice Questions 11.A box contains two green and four red balls. Two balls are randomly drawn one after the other without replacement. a)What is the probability that the second ball is red? b)What is the probability that the second ball is red given that the first ball was red? c)What is the probability that the first ball was red given that the second ball drawn was red?