3. Conditional probability

Slides:



Advertisements
Similar presentations
1 Press Ctrl-A ©G Dear2009 – Not to be sold/Free to use Tree Diagrams Stage 6 - Year 12 General Mathematic (HSC)
Advertisements

Basic Terms of Probability Section 3.2. Definitions Experiment: A process by which an observation or outcome is obtained. Sample Space: The set S of all.
Section 2 Union, Intersection, and Complement of Events, Odds
Union, Intersection, Complement of an Event, Odds
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Chapter 4 Using Probability and Probability Distributions
Chapter 3 Section 3.3 Basic Rules of Probability.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Conditional probability part two.
Chapter 3 Section 3.6 Conditional Probability. The interesting questions that probability can answer are how much one event will effect another. Does.
Warm-up  Would it be fair to give a report card grade based on 1 test? or 1 assignment?  Would it be accurate to conclude that a coin will always come.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
Chapter 3 Section 3.2 Basic Terms of Probability.
Sample Spaces, Subsets and Basic Probability CCM2 Unit 6: Probability.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Conditional probability.
S.CP.A.1 Probability Basics. Probability - The chance of an event occurring Experiment: Outcome: Sample Space: Event: The process of measuring or observing.
Two way tables and tree diagrams
UNIT 6 – PROBABILITY BASIC PROBABILITY. WARM UP Look through your notes to answer the following questions Define Sample Set and describe the sample set.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
Rules of Probability. Recall: Axioms of Probability 1. P[E] ≥ P[S] = 1 3. Property 3 is called the additive rule for probability if E i ∩ E j =
Section 2 Union, Intersection, and Complement of Events, Odds
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
(c) 2007 IUPUI SPEA K300 (4392) Probability Likelihood (chance) that an event occurs Classical interpretation of probability: all outcomes in the sample.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
Part 1: Theory Ver Chapter 3 Conditional Probability and Independence.
Binomial Distribution
12.1/12.2 Probability Quick Vocab: Random experiment: “random” act, no way of knowing ahead of time Outcome: results of a random experiment Event: a.
Discrete Math Section 16.3 Use the Binomial Probability theorem to find the probability of a given outcome on repeated independent trials. Flip a coin.
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:
Math 145 September 18, Terminologies in Probability  Experiment – Any process that produces an outcome that cannot be predicted with certainty.
Sample Spaces, Subsets and Basic Probability
No Warm-Up today. You have a Quiz Clear your desk of everything but a calculator and something to write with.
Binomial Probability Theorem In a rainy season, there is 60% chance that it will rain on a particular day. What is the probability that there will exactly.
Warm Up 1. Gretchen is making dinner. She has tofu, chicken and beef for an entrée, and French fries, salad and corn for a side. If Ingrid has 6 drinks.
Warm Up 1. Ingrid is making dinner. She has tofu, chicken and beef for an entrée, and French fries, salad and corn for a side. If Ingrid has 6 drinks to.
Chapter 10 PROBABILITY. Probability Terminology  Experiment: take a measurement Like flipping a coin  Outcome: one possible result of an experiment.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Chapter 22 E. Outcomes of Different Events When the outcome of one event affects the outcome of a second event, we say that the events are dependent.
Lesson 10: Using Simulation to Estimate a Probability Simulation is a procedure that will allow you to answer questions about real problems by running.
Terminologies in Probability
2.3 Probability and Odds Objective: Given a description an event, find the probability and/or the odds of the event happening (including replacement and.
Copyright © 2016, 2013, and 2010, Pearson Education, Inc.
Basic Probability CCM2 Unit 6: Probability.
Math 145 September 25, 2006.
Ronald Hui Tak Sun Secondary School
Warm Up 1. Gretchen is making dinner. She has tofu, chicken and beef for an entrée, and French fries, salad and corn for a side. If Ingrid has 6 drinks.
Sample Spaces, Subsets and Basic Probability
Basic Probability CCM2 Unit 6: Probability.
Probability.
Sample Spaces, Subsets and Basic Probability
Chapter 9 Section 1 Probability Review.
Warm Up Which of the following are combinations?
Terminologies in Probability
Lesson 10.1 Sample Spaces and Probability
Terminologies in Probability
Terminologies in Probability
2. Conditional Probability
Combination and Permutations Quiz!
1. Probabilistic Models.
Terminologies in Probability
Basic Probability Unit 6 – probability.
Sample Spaces, Subsets and Basic Probability
Math 145 June 26, 2007.
Terminologies in Probability
Math 145 February 12, 2008.
Sample Spaces, Subsets and Basic Probability
Terminologies in Probability
Presentation transcript:

3. Conditional probability

Coins game Toss 3 coins. You win if at least two come out heads S = { HHH, HHT, HTH, HTT, THH, THT, TTH, TTT } equally likely outcomes W = { HHH, HHT, HTH, THH } P(W) = |W|/|S| = 1/2

Coins game The first coin was just tossed and it came out tails. How does this affect your chances? S = { HHH, HHT, HTH, HTT, THH, THT, TTH, TTT } reduced sample space F equally likely outcomes W = { HHH, HHT, HTH, THH } P(W | F) = |W F|/|F| = 1/4

Problem for you to solve Toss 2 dice. You win if the sum of the outcomes is 8. The first die comes out to a 4. Should you be happy? ? Now suppose you win if the sum is 7. Your first toss is a 4. Should you be happy?

Conditional probability F The conditional probability P(A | F) represents the probability of event A assuming event F happened. S A Conditional probabilities with respect to the reduced sample space F are given by the formula P(A | F) = P(AF) P(F)

Quiz A box contains 3 cards. One is black on both sides. One is red on both sides. One is black on one side and red on the other. You draw a random card and see a black side. What are the chances the other side is red? A: 1/4 B: 1/3 C: 1/2

Solution B1 B2 B3 S = { F1, B1, F2, B2, F3, B3 } F1 F2 F3 equally likely outcomes The event you see a black side is SB = { F1, B1, F3 } The event the other side is red is OR = { F2, B2, F3 } P(OR SB) P(SB) = 1/|S| 3/|S| P(OR | SB) = = 1/3

The multiplication rule P(E2|E1) = P(E1E2) P(E1) Using the formula We can calculate the probability of intersection P(E1E2) = P(E1) P(E2|E1) In general for n events P(E1E2…En) = P(E1) P(E2|E1)…P(En|E1…En-1)

Using conditional probabilities There are 8 red balls and 8 blue balls in an urn. You draw at random without replacement. What is the probability the first two balls are red? Solution 1: without conditional probabilities S = arrangements of r red and b blue balls E = arrangements in which the first two are red |E| |S| 14! / (6! 8!) 16! / (8! 8!) = 8 ∙ 7 16 ∙ 15 = P(E) =

Using conditional probabilities Solution 2: using conditional probabilities R1 = arrangements in which the first ball is red R2 = arrangements in which the second ball is red P(R1R2) = P(R1) P(R2|R1) = (8/16) (7/15) P(R1) = 8/16 Given the first ball is red, we are left with 7 red and 8 blue balls under equally likely outcomes P(R2|R1) = 7/15

P(E) = P(E2) P(E3|E2) P(E|E2E3) Cards You divide 52 cards evenly among 4 people. What is the probability everyone gets an ace? S = all ways to divide 52 cards among 4 people equally likely outcomes E = everyone gets an ace = A♠ A♣ A♥ A♦ are assigned to different people E3 = A♣ A♥ A♦ are all assigned to different people E2 = A♥ A♦ are all assigned to different people P(E) = P(E2) P(E3|E2) P(E|E2E3)

Cards E2 = A♥ A♦ are assigned to different people P(E2) = After assigning A♥ it looks like this: ? A♥ # grey cards # of question marks P(E2) = = 3 ∙ 13/(52 – 1) = 39/51

Cards E3 = A♣ A♥ A♦ are all assigned to different people After E2 it looks like this: ? A♦ A♥ P(E3|E2) = 2 ∙ 13/(52 – 2) = 26/50

Cards E2 = A♥ A♦ are assigned to different people E3 = A♣ A♥ A♦ are all assigned to different people P(E3 | E2) = 2 ∙ 13/(52 – 2) = 26/50 E = A♠ A♣ A♥ A♦ all assigned to different people P(E | E3) = 13/(52 – 3) = 13/49 P(E) = (39/51) (26/50) (13/49) ≈ .105

Rule of average conditional probabilities Fc P(E) = P(EF) + P(EFc) S E = P(E|F)P(F) + P(E|Fc)P(Fc) E F1 F2 F3 F4 F5 More generally, if F1,…, Fn partition S then P(E) = P(E|F1)P(F1) + … + P(E|Fn)P(Fn)

What is the capital of Macedonia? Multiple choice quiz What is the capital of Macedonia? A: Split B: Struga C: Skopje D: Sarajevo Did you know or were you lucky?

Multiple choice test Probability model There are two types of students: Type K: Knows the answer Type Kc: Picks a random answer Event C: Student gives correct answer P(C) = p = fraction of correct answers p = P(C|K)P(K) + P(C|Kc)P(Kc) = 1/4 + 3P(K)/4 1 1/4 1 - P(K) P(K) = (p – ¼) / ¾

Red and blue balls again There are 8 red balls and 6 blue balls in an urn. You draw at random without replacement. What is the probability the first two balls are of the same color? event E Solution: Let R1 be the event “the first ball is red” R2 be “the second ball is red” P(E) = P(E|R1)P(R1) + P(E|R1c)P(R1c) = P(R2|R1)P(R1) + P(R2c|R1c)P(R1c) = 86/182 7/13 8/14 5/13 6/14

Boxes 1 2 3 I choose a cup at random and then a random ball from that cup. The ball is blue. You need to guess where the ball came from. (a) Which cup would you guess? (b) What is the probability you are correct?

Boxes 1 2 3 22 32 11 21 31 34 12 23 33 S = { 11, 12, 21, 22, 23, 31, 32, 33, 34 } outcomes are not equally likely! The events of interest are: BLUE = blue ball = { 11, 21, 22, 31, 32, 33 } CUP1 = first cup = { 11, 12 } CUP2 = { 21, 22, 23 } CUP3 = { 31, 32, 33, 34 }

Boxes 1 2 3 22 32 11 21 31 34 12 23 33 S = { 11, 12, 21, 22, 23, 31, 32, 33, 34 } 1/6 1/9 1/12 P(CUP1|BLUE) = P(CUP1 BLUE) / P(BLUE) = 1 ∙ 1/6 / (3 ∙ 1/12 + 2 ∙ 1/9 + 1 ∙ 1/6) = 6/23 P(CUP2|BLUE) = 8/23 P(CUP3|BLUE) = 9/23

Boxes Another way to present the solution: 1 2 3 22 32 11 21 31 34 12 23 33 P(CUPi|BLUE) = P(CUPi BLUE) / P(BLUE) P(CUPi BLUE) = P(BLUE | CUPi ) P(CUPi) 1 2 3 i 1/3 1/2 2/3 3/4 P(BLUE) = 1/2 1/3 + 2/3 1/3 + 3/4 1/3 = 23/36

Problem for you to solve 1 2 3 Same as before, but now the ball is red. (a) Which cup would you guess it came from? (b) What is the probability you are correct?

Bayes’ rule P(E|F) P(F) P(E|F) P(F) P(F|E) = = P(E) P(E|F) P(F) + P(E|Fc) P(Fc) More generally, if F1,…, Fn partition S then P(E|Fi) P(Fi) P(Fi|E) = P(E|F1) P(F1) + … + P(E|Fn) P(Fn)