c Math 141, Spring 2014, Benjamin Aurispa 7.4 Use of Counting Techniques in Probability Recall from if S is a uniform sample space, then for any event E, P (E) = n(E) n(S) . We are just adding one extra step to the previous two sections. We don’t want just the number of ways for something to happen, we want the probability it happens, so we must divide by the total number of possibilities. 1. Three cards are selected at random from a standard deck of cards. Find the probability that (a) All the cards are red or exactly one is a spade. (b) All three cards are the same suit. (c) At least 1 Ace is drawn. 2. If 4 couples go to the movies together and randomly sit in a row of 8 seats, what is the probability that each couple will be sitting next to each other? 1 c Math 141, Spring 2014, Benjamin Aurispa 3. A desk contains 4 paper clips, 6 rubber bands, and 3 erasers. Suppose I pick 5 objects at random from the desk. Find the probability that (a) Exactly 4 of the same item are selected? (b) More than 3 rubber bands are selected? 4. A computer store contains 80 colored ink cartridges for an ink-jet printer, of which 6 are defective. If a customer selects 4 of these cartridges at random from the shelf, what is the probability that fewer than 2 of them are defective? 5. A candy store has 100 jolly ranchers, of which 20 are green apple. What is the probability that a bag of 10 jolly ranchers contains at least 2 green apples? 2 c Math 141, Spring 2014, Benjamin Aurispa 7.5 Conditional Probability and Independent Events Sometimes, the probability of an event is affected by events that have already occurred. Introductory Example: I have a jar of 10 marbles: 4 red and 6 green. Suppose I pick 2 marbles from the jar one at a time without replacement and observe the color of each marble. • What is the probability that the first marble picked is green? • What is the probability that the second marble picked is green given that the first one was red? • What is the probability that the second marble picked is green given that the first one was green? The second two probabilites above are called conditional probabilities. P (B|A) stands for the probability of the event B given that the event A has already occurred. It is the conditional probability of B given A. Conditional Probability of an Event If A and B are events in an experiment and P (A) 6= 0, then the conditional probability that the event B will occur given that A has already occurred is P (B|A) = P (A ∩ B) P (A) Example: A pair of fair dice is rolled. What is the probability that the sum is more than 9, given that a 5 is rolled? Example: What is the probability that a 5 is rolled given that the sum is more than 9? 3 c Math 141, Spring 2014, Benjamin Aurispa Example: (modified from Finite Mathematics by Long/Graening) In a survey, 100 adults were asked their political party and whether they live in an urban, suburban, or rural area. The results are given in the table: Democrat Republican Independent Total Urban 20 17 5 42 Suburban 18 21 1 40 Rural 7 8 3 18 Total 45 46 9 100 Find the probability that: • a person from this group is a Democrat given that they live in an urban area. • a person who lives in a suburban area is a Republican. • an Independent lives in a rural area. • If a person is a Democrat, what is the probability they live in an urban or suburban area? We can now write probabilities on the branches of tree diagrams to illustrate conditional probability. Example: Draw a tree diagram for the introductory example above involving marbles: I have a jar of 10 marbles: 4 red and 6 green. Suppose I pick 2 marbles in succession out of the jar at random without replacement and observe the color of each marble. Product Rule: Note that this is just a rearrangement of the formula for conditional probability. P (A ∩ B) = P (A) · P (B|A) 4 c Math 141, Spring 2014, Benjamin Aurispa Example: In a survey of 1000 eligible voters selected at random, it was found that 80 had a college degree. Additionally, it was found that 80% of those who had a college degree voted in the last presidential election, whereas 55% of the people who did not have a college degree voted in the last presidential election. Assuming the poll is representative of all eligible voters, find the probability that an eligible voter selected at random • Had a college degree and voted in the last presidential election. • Did not have a college degree and did not vote in the last presidential election. • Voted in the last presidential election. Example: A city police department reported that, of all vehicles stolen, 64% were stolen by professionals, whereas 36% were stolen by amateurs. Of those vehicles stolen by professionals, 24% were recovered within 48 hrs, 16% were recovered after 48 hrs, and 60% were never recovered. Of those vehicles stolen by amateurs, 38% were recovered within 48 hrs, 58% were recovered after 48 hrs, and 4% were never recovered. • Draw a tree diagram for this data. 5 c Math 141, Spring 2014, Benjamin Aurispa • What is the probability that a vehicle was stolen by an amateur and will be recovered after 48 hrs? • What is the probability that a vehicle stolen by a professional will be recovered within 48 hrs? • What is the probability that a vehicle will never be recovered? • What is the probability that a vehicle will be recovered if it was stolen by an amateur? • What is the probability that a vehicle was stolen by an amateur or will be recovered within 48 hours? Independence Two events A and B are called independent events if the outcome of one event does not affect the outcome of the other. In mathematical terms, if A and B are independent, then P (A|B) = P (A) and P (B|A) = P (B) To test for independence of events, use the following: Two events A and B are independent if and only if P (A ∩ B) = P (A) · P (B) An example of independent events is tossing a coin twice. Whether the second toss is heads or tails is not affected by whether the first toss is heads or tails. Example: Suppose A and B are independent events with P (Ac ) = 0.7 and P (B) = 0.6. What are P (A ∩ B) and P (A ∪ B)? 6 c Math 141, Spring 2014, Benjamin Aurispa Do not confuse independence with two events being mutually exclusive. Example: Recall the example from before: Democrat Republican Independent Total Urban 20 17 5 42 Suburban 18 21 1 40 Rural 7 8 3 18 Total 45 46 9 100 • Are being an Independent and living in an urban area independent events for this group of people? • Are being a Democrat and living in a suburban area independent events for this group of people? Example: Kristina, Carlos, and Ben live in 3 different cities. The probability that Kristina goes to the store on a given day is 0.23, the probability that Carlos goes to the store on a given day is 0.15, and the probability that Ben goes to the store on a given day is 0.03. What is the probability that: (a) All 3 will go to the store on a given day? (b) None of them will go to the store? (c) Exactly one of them will go to the store? 7 c Math 141, Spring 2014, Benjamin Aurispa 7.6 Bayes’ Theorem Probabilities are sometimes calculated after the outcomes of an experiment have been observed. To find these kinds of probabilities, we still just use the conditional probability formula. P (A|B) = P (A ∩ B) P (B) Example: Research determined that 42% of 12-yr-olds have never had a cavity, 24% of 13-yr-olds have never had a cavity, and 28% of 14-yr-olds have never had a cavity. A child is selected at random from a group of 24 junior high school students made up of 6 12-yr-olds, 8 13-yr-olds, and 10 14-yr-olds. If this child does not have a cavity, what is the probability that he/she is 14 years old? Example: A poll was conducted among 255 men and 245 women in a certain area regarding their position on a national lottery to raise revenue for the government. The results are in the following table: Draw a tree diagram for this data. Answer Favor Do Not Favor No Opinion Males, % 62 32 6 Females, % 68 28 4 • What is the probability that a male voter did not favor a national lottery? • What is the probability that a voter who favored a national lottery was a female? 8 c Math 141, Spring 2014, Benjamin Aurispa Example: Suppose you are given the following information about adults 21 and over in a large city. Age 21-35 36-50 Over 50 % of Adults this Age 25 35 40 % of Age Group Under 5 ft Tall 3 3 3 % of Age Group 5-6 ft Tall 55 47 51 % of Age Group Over 6 ft Tall 42 50 46 • What is the probability that an adult over 50 is under 5 ft or over 6 ft tall? • What is the probability that an adult is 21-35 if they are 5-6 ft tall? • Are being 36-50 and over 6-ft tall independent events for this city? • Are being 36-50 and under 5 ft tall independent events for this city? 9 c Math 141, Spring 2014, Benjamin Aurispa Example: I have 2 bags of marbles. Bag A has 4 reds, 3 blues, and 6 greens. Bag B has 5 reds, 2 blues, and 3 greens. An experiment consists of first selecting a marble from Bag A. If the marble is red, it is transferred to Bag B and then a second marble is picked from Bag B. If the first marble is blue, it is set aside and a second marble is picked from Bag A. If the first marble is green, it is set aside and a second marble is picked from Bag B. Draw a tree diagram for this experiment. • Find the probability that the second marble was red given that the first marble is green. • If it is known that the second marble is blue, find the probability that the first marble was green. Trees for medical tests: 10