Conditional Probability

Similar documents
Independence 1 2 P(H) = 1 4. On the other hand = P(F ) =

20.2 Independent Events

Chapter. Probability

UNIT 5 ~ Probability: What Are the Chances? 1

4.4-Multiplication Rule: Basics

Name: Exam 2 Solutions. March 13, 2017

STAT 516 Answers Homework 2 January 23, 2008 Solutions by Mark Daniel Ward PROBLEMS. = {(a 1, a 2,...) : a i < 6 for all i}

b. Find P(it will rain tomorrow and there will be an accident). Show your work. c. Find P(there will be an accident tomorrow). Show your work.

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

PLEASE MARK YOUR ANSWERS WITH AN X, not a circle! 1. (a) (b) (c) (d) (e) 2. (a) (b) (c) (d) (e) (a) (b) (c) (d) (e) 4. (a) (b) (c) (d) (e)...

Exam III Review Math-132 (Sections 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 8.1, 8.2, 8.3)

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

Chapter 6: Probability The Study of Randomness

Review Basic Probability Concept

3.2 Probability Rules

3 PROBABILITY TOPICS

Problem # Number of points 1 /20 2 /20 3 /20 4 /20 5 /20 6 /20 7 /20 8 /20 Total /150

Probability deals with modeling of random phenomena (phenomena or experiments whose outcomes may vary)

Probability Year 9. Terminology

Probability the chance that an uncertain event will occur (always between 0 and 1)

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010

Math Exam 1 Review. NOTE: For reviews of the other sections on Exam 1, refer to the first page of WIR #1 and #2.

Another name for disjoint events is

Probability Year 10. Terminology

Term Definition Example Random Phenomena

AP Statistics Ch 6 Probability: The Study of Randomness

LECTURE NOTES by DR. J.S.V.R. KRISHNA PRASAD

Topic 5: Probability. 5.4 Combined Events and Conditional Probability Paper 1

2011 Pearson Education, Inc

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

Intermediate Math Circles November 8, 2017 Probability II

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

The set of all outcomes or sample points is called the SAMPLE SPACE of the experiment.

STA 2023 EXAM-2 Practice Problems. Ven Mudunuru. From Chapters 4, 5, & Partly 6. With SOLUTIONS

CHAPTER 3 PROBABILITY TOPICS

4. Conditional Probability

Chapter 15. General Probability Rules /42

Statistics for Managers Using Microsoft Excel (3 rd Edition)

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Econ 113. Lecture Module 2

Tree and Venn Diagrams


(a) Fill in the missing probabilities in the table. (b) Calculate P(F G). (c) Calculate P(E c ). (d) Is this a uniform sample space?

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

an event with one outcome is called a simple event.

What is Probability? Probability. Sample Spaces and Events. Simple Event

Probability Pearson Education, Inc. Slide

Intermediate Math Circles November 15, 2017 Probability III

Chapter 13, Probability from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University, and is

Conditional probability

3 Conditional Probability

Grades 7 & 8, Math Circles 24/25/26 October, Probability

Chapter 3 : Conditional Probability and Independence

Probability. VCE Maths Methods - Unit 2 - Probability

STOR Lecture 4. Axioms of Probability - II

Statistics 1L03 - Midterm #2 Review

A survey of Probability concepts. Chapter 5

Section F Ratio and proportion

Probability 5-4 The Multiplication Rules and Conditional Probability

Senior Math Circles March 3, 2010 Counting Techniques and Probability II

Midterm Review Honors ICM Name: Per: Remember to show work to receive credit! Circle your answers! Sets and Probability

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

STP 226 ELEMENTARY STATISTICS

Conditional Probability, Independence and Bayes Theorem Class 3, Jeremy Orloff and Jonathan Bloom

Conditional Probability. CS231 Dianna Xu

Year 10 Mathematics Probability Practice Test 1

Probability Pr(A) 0, for any event A. 2. Pr(S) = 1, for the sample space S. 3. If A and B are mutually exclusive, Pr(A or B) = Pr(A) + Pr(B).

the yellow gene from each of the two parents he wrote Experiments in Plant

Chapter 4 : Discrete Random Variables

MATH MW Elementary Probability Course Notes Part I: Models and Counting

Motivation. Stat Camp for the MBA Program. Probability. Experiments and Outcomes. Daniel Solow 5/10/2017

Assignment 2 SOLUTIONS

Introduction to Probability 2017/18 Supplementary Problems

Nuevo examen - 02 de Febrero de 2017 [280 marks]

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Introduction to Probability Theory

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 2 MATH00040 SEMESTER / Probability

Chapter 7: Section 7-1 Probability Theory and Counting Principles

STAT509: Probability

Ch 14 Randomness and Probability

From Probability, For the Enthusiastic Beginner (Draft version, March 2016) David Morin,

P (E) = P (A 1 )P (A 2 )... P (A n ).

STAT Chapter 3: Probability

Basic Concepts of Probability. Section 3.1 Basic Concepts of Probability. Probability Experiments. Chapter 3 Probability

Lecture Lecture 5

Stats Review Chapter 6. Mary Stangler Center for Academic Success Revised 8/16

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)

Chapter 4 - Introduction to Probability

STA Module 4 Probability Concepts. Rev.F08 1

Lecture 8: Conditional probability I: definition, independence, the tree method, sampling, chain rule for independent events

PROBABILITY.

Probability and Statistics Notes

5.3 Conditional Probability and Independence

Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

Algebra Quarter 4 Review

Mutually Exclusive Events

Probability and Independence Terri Bittner, Ph.D.

Slide 1 Math 1520, Lecture 21

4. Probability of an event A for equally likely outcomes:

Transcription:

Conditional Probability Sometimes our computation of the probability of an event is changed by the knowledge that a related event has occurred (or is guaranteed to occur) or by some additional conditions imposed on the experiment. For example, based on a.292 batting average for 2016, we might assign probability 29% to Kris ryant having a hit in his first at-bat of 2017. ut suppose (closer to opening day), we learn that the pitcher ryant will be facing in his first at-bat will be left-handed. We might want to (indeed we should) use this new information to re-assign the probability.

Conditional Probability ased on the data that ryant had a.314 batting average against left-handed pitching in 2016, we might now assign probability 31% to him having a hit in his first at-bat of 2017. This new probability is referred to as a conditional probability, because we have some prior information about conditions under which the experiment will be performed. Additional information may change the sample space and the successful event subset.

Conditional Probability Example Let us consider the following experiment: A card is drawn at random from a standard deck of cards. Recall that there are 13 hearts, 13 diamonds, 13 spades and 13 clubs in a standard deck of cards. Let H be the event that a heart is drawn, let R be the event that a red card is drawn and let F be the event that a face card is drawn, where the face cards are the kings, queens and jacks. (a) If I draw a card at random from the deck of 52, what is P(H)? 13 52 = 25%.

Conditional Probability (b) If I draw a card at random, and without showing you the card, I tell you that the card is red, then what are the 13 chances that it is a heart? = 50%. ecause you know 26 that the card drawn is red, the Sample Space of all possible outcomes has size 26 (there are 26 red cards), not 52. Of the 26 red cards, 13 are hearts, so there are 13 successful outcomes. Here we are calculating the probability that the card is a heart given that the card is red. This is denoted by P(H R), where the vertical line is read as given. Notice how the probability changes with the prior information. Note also that we can think of the prior information as restricting the sample space for the experiment in this case. We can think of all red cards or the set R as a reduced sample space.

Conditional Probability (c) If I draw a card at random from the deck of 52, what is P(F )? There are 12 face cards so P(F ) = 12 52 = 3 13 0.23 (d) If I draw a card at random, and without showing you the card, I tell you that the card is red, then what are the chances that it is a face card (i.e. what is P ( F R ) )? There are 6 red face cards and 26 red cards so P ( F ) 6 R = 26 = 3. Notice that in this case, the 13 probability does not change even though both the sample space and the event space do change.

Conditional Probability Recap: the probability that the card is a heart given (the prior information) that the card is red is denoted by P ( H R ) Note that P ( H R ) = n(h R) n(r) = n(h R)/n(S) n(r)/n(s) = P(H R). P(R) This probability is called the conditional probability of H given R.

From our example above, we saw that sometimes P ( A ) = P(A) and sometimes P ( A ) P(A). When P(A ) = P(A), we say that the events A and are independent. We will discuss this in more detail in the next section. Conditional Probability Definition: If A and are events in a sample space S, with P() 0, the conditional probability that an event A will occur, given that the event has occurred is given by P ( A ) P(A ) =. P() If the outcomes of S are equally likely, then P ( A ) n(a ) =. n()

Calculating Conditional Probabilities Example Consider the data, in the following table, recorded over a month with 30 days: M o o d Weather S NS 9 6 N 1 14 On each day I recorded, whether it was sunny, (S), or not, (NS), and whether my mood was good,, or not (N). (a) If I pick a day at random from the 30 days on record, what is the probability that I was in a good mood on that day, P()? The sample space is the 30 days under discussion. I was in a good mood on 9 + 6 = 15 of them so P() = 15 30 = 50%.

Calculating Conditional Probabilities (b) What is the probability that the day chosen was a Sunny day, P(S)? The sample space is still the 30 days under discussion. It was sunny on 9 + 1 = 10 of them so P(S) = 10 30 33%. (c) What is P ( S )? P ( ) P( S) S =. Hence we P(S) need to calculate P( S). Here the sample space is still the 30 days: S consists of sunny days in which I am in a good mood and there were 9 of them. Hence P( S) = 9 30. Therefore P ( ) 9 S = 30 10 = 9 10 = 90%. 30

Calculating Conditional Probabilities (d) What is P ( S )? P ( S ) = P( S) P() = 9 30 15 30 = 9 15 = 3 5 = 60%. In this example, P ( S ) P ( S ). Note that if we discover that P ( A ) P(A), it does not necessarily imply a cause-and-effect relationship. In the example above, the weather might have an effect on my mood, however it is unlikely that my mood would have any effect on the weather.

Calculating Conditional Probabilities Example Of the students at a certain college, 50% regularly attend the football games, 30% are first-year students and 40% are upper-class students (i.e., non-first years) who do not regularly attend football games. (a) What is the probability that a student selected at random is both is a first-year student and regularly attends football games? We could use an algebra approach, or a Venn diagram approach. We ll do the latter. Let R be the set of students who regularly attend football games; let U be the set of upper-class students, and let F be the set of first-year students. Note in this example that U does not stand for the UNIVERSAL SET ( if you want a relevant universal set it is F U). We are given P(R) = 50%; P(F ) = 30%; P(U R ) = 40%.

Calculating Conditional Probabilities We know U F is everybody, U F = and R U F. Therefore we can fill in four 0 s as indicated.

Calculating Conditional Probabilities Next identify what you are given. The yellow region is U R and we know P(U R ) = 40%.

Calculating Conditional Probabilities We also know the values for the disk R and the disk F.

Calculating Conditional Probabilities Since F U is everybody, P(F U) = 100. From the Inclusion- Exclusion Principle we see we can work out the unknown bit of U.

Calculating Conditional Probabilities

Calculating Conditional Probabilities Since P(R) = 50 we can fill in the last bit of R.

Calculating Conditional Probabilities Since P(F ) = 30 we can fill in the last bit of F. Now we can give the answer to part a): P(F R) =.2

Calculating Conditional Probabilities (b) What is the conditional probability that the person chosen attends football games, given that he/she is a first year student? P ( R ) F P(R F ) P(F ) 67%. = = 0.2 0.3

Calculating Conditional Probabilities (c) What is the conditional probability that the person is a first year student given that he/she regularly attends football games? P ( F ) R P(R F ) P(R) 40%. = = 0.2 0.5 =

Calculating Conditional Probabilities Example If S is a sample space, and E and F are events with P(E) =.5, P(F ) =.4 and P(E F ) =.3, (a) What is P ( E F )? P ( E F ) = P(E F ) P(F ) = 0.3 0.4 = 75%. (b) What is P ( F E )? P ( F E ) = P(E F ) P(E) = 0.3 0.5 = 60%.

A formula for P(E F ). We can rearrange the equation to get Also we have or P ( E F ) = P(E F ) P(F ) P(F )P ( E F ) = P(E F ). P ( F ) P(E F ) E =. P(E) P(E)P ( F E ) = P(E F ). This formula gives us a multiplicative formula for P(E F ). In addition to giving a formula for calculating the probability of two events occurring simultaneously, it is very useful in calculating probabilities for sequential events.

P(E F ) = P(E)P ( F E ). The probability that E and then F will occur is the probability of E times the probability that F happens given that E has happened. Example: If P ( E F ) =.2 and P(F ) =.3, find P(E F ). P(E) = P ( E F ) P(F ) = 0.2 0.3 = 0.06 = 6%. Example: The probability that it will be 30 F or below tomorrow morning is 0.5. When the temperature is that low, the probability that my car will not start is 0.7. What is the probability that tomorrow morning it will be 30 F or below and my car will not start? Let N be the event my car will not start and let T be the event the maximum temperature tomorrow will be 30 F or below. Then P(T N) = P(T ) P ( N T ) = 0.5 0.7 = 0.35 = 35%.

Tree Diagrams. Sometimes, if there are sequential steps in an experiment, or repeated trials of the same experiment, or if there are a number of stages of classification for objects sampled, it is very useful to represent the probability/information on a tree diagram. Example iven an bag containing 6 red marbles and 4 blue marbles, I draw a marble at random from the bag and then, without replacing the first marble, I draw a second marble. What is the probability that both marbles are red? We can draw a tree diagram to represent the possible outcomes of the above experiment and label it with the appropriate conditional probabilities as shown (where 1st denotes the first draw and 2nd denotes the second draw):

Tree Diagrams. R P(R on 2nd R on 1st ) R P(R on 1st ) P( on 2nd R on 1st) 0 P( on 1st) P(R on 2nd on 1st) R P( on 2nd on 1st)

Tree Diagrams. (a) Fill in the appropriate probabilities on the tree diagram on the left above (note: the composition of the bag changes when you do not replace the first ball drawn). 6 10 R 5 9 4 9 R P(R) = 6 10 ; P() = 4 10 ; ecause you did not replace the ball, there are only 9 balls at the second step. 0 4 10 3 9 6 9 R If you are at the R node after step 1, there are 5 red balls and 4 black ones. If you are at the node after step 1, there are 6 red balls and 3 black ones.

Tree Diagrams. Note that each path on the tree diagram represents one outcome in the sample space. Outcome Probability RR(red path) R(blue path) R(yellow path) (purple path)

Tree Diagrams. To find the probability of an outcome we multiply probabilities along the paths. Fill in the probabilities for the 4 outcomes in our present example. Note that this is not an equally likely sample space. Outcome Probability RR(red path) R(blue path) R(yellow path) (purple path) 6 10 5 9 = 30 90 6 10 4 9 = 24 90 4 10 6 9 = 24 90 4 10 3 9 = 12 90

Tree Diagrams. To find the probability of an event, we identify the outcomes (paths) in that event and add their probabilities. What is the probability that both marbles are red? 6 10 5 9 = 30 90 33%. What is the probability that the second marble is blue? Note that there are two paths in this event. 6 10 4 9 + 4 10 3 9 = 24 90 + 12 90 = 36 90 = 40%.

Tree Diagrams. Summary of rules for drawing tree diagrams 1. The branches emanating from each point (that is branches on the immediate right) must represent all possible outcomes in the next stage of classification or in the next experiment. 2. The sum of the probabilities on this bunch of branches adds to 1. 3. We label the paths with appropriate conditional probabilities.

Tree Diagrams. Rules for calculation 1. Each path corresponds to some outcome. 2. The probability of that outcome is the product of the probabilities along the path. 3. To calculate the probability of an event E, collect all paths in the event E, calculate the probability for each such path and then add the probabilities of those paths.

Tree Diagrams. Example 1 A box of 20 apples is ready for shipment, four of the apples are defective. An inspector will select at most four apples from the box. He selects each apple randomly, one at a time, inspects it and if it is not defective, sets it aside. The first time he selects a defective apple, he stops the process and the box will not be shipped. If the first four apples selected are good, he replaces the 4 apples and ships the box. (a) Draw a tree diagram representing the outcomes and assign probabilities appropriately. (On the left on the next page: the tree-diagram if inspector examines all four selected apples. On the right, the tree-diagram if he examines until first bad apple found)

Tree Diagrams. 13 17 4 17 14 18 4 18 14 17 3 17 4 19 15 19 14 17 3 17 15 18 3 18 15 17 2 17 0 4 20 16 20 14 17 3 17 15 18 3 18 15 17 2 17 3 19 16 19 15 17 2 17 16 18 2 18 16 17 1 17 13 17 4 17 14 18 4 18 4 19 15 19 0 4 20 16 20

Tree Diagrams. 0 16 20 4 20 15 19 4 19 14 18 4 18 13 17 4 17 (b) What is the probability that the box is shipped? 16 20 15 19 14 18 13 17 = P(16, 4) P(20, 4) 0.37 (c) What is the probability that either the first or second apple selected is bad? 4 20 + 16 20 4 19 0.37.

Tree Diagrams. Example In a certain library, twenty percent of the fiction books are worn and need replacement. Ten percent of the non-fiction books are worn and need replacement. Forty percent of the library s books are fiction and sixty percent are non-fiction. What is the probability that a book chosen at random needs repair? Draw a tree diagram representing the data. Let F be the subset of fiction books and let N be the subset of non-fiction books. Let W be the subset of worn books and let be the subset of non-worn books.

Tree Diagrams. What we are given. 0 0.4 0.6 0.2 F 0.1 N F W F N W N Since the probabilities at each node need to add up to one, we can complete the tree as follows 0 0.4 0.6 F 0.2 0.8 N 0.1 0.9 F W F N W N

Tree Diagrams. Example (enetics) Traits passed from generation to generation are carried by genes. For a certain type of pea plant, the color of the flower produced by the plant (either red or white) is determined by a pair of genes. Each gene is of one of the types C (dominant gene) or c (recessive gene). Plants for which both genes are of type c (said to have genotype cc) produce white flowers. All other plants that is, plants of genotypes CC and Cc produce red flowers. When two plants are crossed, the offspring receives one gene from each parent. If the parent is of type Cc, both genes are equally likely to be passed on.

Tree Diagrams. I. Suppose you cross two pea plants of genotype Cc, I(a) Fill in the probabilities on the tree diagram below. C from Plant 2 C from Plant 1 c from Plant 2 0 c from Plant 1 C from Plant 2 c from Plant 2

Tree Diagrams. C from Plant 1 0.5 0.5 0.5 C from Plant 2 c from Plant 2 0 0.5 c from Plant 1 0.5 0.5 C from Plant 2 c from Plant 2

Tree Diagrams. I(b) What is the probability that the offspring produces white flowers? C from Plant 1 0.5 0.5 0.5 C from Plant 2 c from Plant 2 0 0.5 c from Plant 1 0.5 C from Plant 2 0.5 c from Plant 2 You only get white flowers from path c from Plant 1 to c from Plant 2 so the answer is 0.5 0.5 = 0.25 = 25%.

Tree Diagrams. I(c) What is the probability that the offspring produces red flowers? C from Plant 1 0.5 0.5 0.5 C from Plant 2 c from Plant 2 0 0.5 c from Plant 1 0.5 0.5 C from Plant 2 C from Plant 2 The answer is either 1 P(cc) = 75% or P(cC) + P(Cc) + P(CC) = 75%.

Tree Diagrams. II. Suppose you have a batch of red flowering pea plants, of which 60% have genotype Cc and 40% have genotype CC. You select one of these plants at random and cross it with a white flowering pea plant. II(a) What is the probability that the offspring will produce red flowers (use the tree diagram below to determine the probability). C from Plant 1 c from Plant 2 Select Cc c from Plant 1 c from Plant 2 0 Select CC C from Plant 1 c from Plant 2

Tree Diagrams. 0.5 C from Plant 1 1.0 c from Plant 2 0.6 Select Cc 0.5 c from Plant 1 1.0 c from Plant 2 0 0.4 Select CC C from Plant 1 1.0 c from Plant 2 1.0 You get red flowers unless you get cc: 0.6 0.5 1.0 = 0.3, so the requested probability is 1 0.3 = 0.7. You can also get it as 0.6 0.5 1.0 + 0.4 1.0 1.0 = 0.3 + 0.4 = 0.7