S1: Chapter 5 Probability Dr J Frost (jfrost@tiffin.kingston.sch.uk) Last modified: 11th December 2013 Starter Draw a sample space (using a table) for throwing two dice and recording the product of the two values. What is the probability of the value being greater or equal to 24? Die 1 × Die 2 1 2 3 4 5 6 1 1 2 3 4 5 6 2 2 4 6 8 10 12 3 3 6 9 12 15 18 4 4 8 12 16 20 24 5 5 10 15 20 25 30 6 6 12 18 24 30 36 ? ๐ ๐๐๐๐๐ข๐๐ก ≥ ? 24 = 6 1 = 36 6 Some fundamentals An experiment is: A repeatable process that gives rise to a number of ? outcomes. A sample space is: The set of possible outcomes of an experiment. e.g. The sample space ๐ of throwing two coins: ? ๐ = ๐ป๐ป, ๐ป๐,?๐๐ป, ๐๐ Some fundamentals ๐ ๐๐ฃ๐๐๐ก = 0.3 ? An event is a set of (one or more) outcomes. ๐บ ๐จ ๐ = the whole sample space ๐ฉ 3 4 1 2 6 5 ๐ด = even number on a die thrown ๐ต = prime number on a die thrown Some fundamentals ๐บ ๐จ ๐ = the whole sample space ๐ฉ 3 4 1 2 6 5 What does it mean in this context? ๐ด′ ๐ต = prime number on a die thrown What is the resulting set of outcomes? Not A. i.e. Not rolling an even number. ? ๐ด = even number on a die thrown {1, 3,?5} ๐ด∪๐ต A or B. i.e. Rolling an even or prime number. ? {2,3,4,5,6} ? ๐ด∩๐ต A and B. i.e. Rolling a number which is even and prime. {2}? ? Some fundamentals ๐บ ๐จ ๐ = the whole sample space ๐ฉ 3 4 1 2 6 5 What does it mean in this context? ๐ด = even number on a die thrown ๐ต = prime number on a die thrown What is the resulting set of outcomes? ๐ด ∩ ๐ต′ Rolling a number which is even and not prime. {4,6} ? (๐ด ∪ ๐ต)′ Rolling a number which is not [even or prime]. {1}? ′ Rolling a number which is not [even and prime]. {1,3,4,5,6} ? ๐ด∩๐ต ? ? ? What area is indicated? A C B S ๐ด ∩? ๐ต What area is indicated? A C B S ๐ด ∪? ๐ต What area is indicated? A C B S ๐ด ∩ ๐ต? ∩ ๐ถ What area is indicated? A C B S ๐ด ∩? ๐ถ ′ What area is indicated? A C B S ๐ด ∩ ๐ต? ∩ ๐ถ ′ What area is indicated? A C B S ′ ?′ ๐ด ∩๐ต ∩๐ถ ′ or alternatively… ๐ด ∪ ๐ต? ∪ ๐ถ ′ What area is indicated? A C B S ๐ด?′ What area is indicated? A C B S ๐ด ∩ ๐ต? ∩ ๐ถ ′ Solving problems using Venn Diagrams A vet surveys 100 of her clients. She finds that 25 own dogs, 15 own dogs and cats, 11 own dogs and tropical fish, 53 own cats, 10 own cats and tropical fish, 7 own dogs, cats and tropical fish, 40 own tropical fish. Fill in this Venn Diagram, and hence answer the following questions: a) ๐ ๐๐ค๐๐ ๐๐๐ ๐๐๐๐ฆ b) ๐ ๐๐๐๐ ๐๐๐ก ๐๐ค๐ ๐ก๐๐๐๐๐๐๐ ๐๐๐ โ c) ๐(๐๐๐๐ ๐๐๐ก ๐๐ค๐ ๐๐๐๐ , ๐๐๐ก๐ , ๐๐ ๐ก๐๐๐๐๐๐๐ ๐๐๐ โ) ๐บ ๐ช 35 100 11 100 ? 8 100 ? ๐ซ 6 100 ? Dr Frost’s cat “Pippin” 7 100 4 100 ? ? 3 100 ? 26 100 ? ๐ญ Exercises Page 84 Exercise 5B Q6 Recap If ๐ด and ๐ต are mutually exclusive, this means: they can not happen?at the same time. ๐ด ๐ต On a Venn Diagram… the circles appear separately. ? If ๐ด and ๐ต are independent, this means: one does not affect the other. Note that these 2 things are ENTIRELY DIFFERENT, they are not ‘opposites’. If ๐ด and ๐ต are not mutually exclusive, that doesn’t ? necessarily mean they are independent. The Venn Diagram is NOT AFFECTED BY INDEPENDENCE. Recap If events A and B are mutually exclusive, then: ๐ ๐ด ∪ ๐ต = ๐ ๐ด +? ๐(๐ต) ๐ ๐ด∩๐ต =0 ? If events A and B are independent, then: ๐ ๐ด∩๐ต =๐ ๐ด ×๐ ๐ต But we’re interested in how we can calculate probabilities when events are not mutually exclusive, or not independent. Addition Law Mutually Exclusive ๐จ ๐ฉ Think about the areas… ๐ ๐ด ∪ ๐ต = ๐ ๐ด + ?๐(๐ต) Not Mutually Exclusive ๐จ ๐ ๐ด ∪ ๐ต = ๐ ๐ด + ๐ ๐ต? − ๐ ๐ด ∩ ๐ต ๐ฉ Example ๐ด and ๐ต are two events such that ๐ ๐ด = 0.6, ๐ ๐ต = 0.7 and ๐ ๐ด ∪ ๐ต = 0.9. Find: ๐ ๐ด ∩ ๐ต = 0.4? ๐ ๐ด′ = 0.4? ′ ๐ ๐ด ∪ ๐ต = 0.8 ? ๐ ๐ด′ ∩ ๐ต = 0.3 ? Bro Tip: You could use a Venn Diagram here. Check your understanding The events ๐ธ and ๐น are such that ๐ ๐ธ = 0.28 ๐ ๐ธ ∪ ๐น = 0.76 Find a) ๐ ๐ธ ∩ ๐น = 0.17 ? b) ๐ ๐น = 0.65 ? c) ๐ ๐บ ๐ธ′ ๐น′ ๐ฌ = ๐ ๐ธ ′ ∩๐น′ ๐ ๐น′ 0.24 0.35 =? = ๐ ๐ธ ∩ ๐น ′ = 0.11 24 35 ๐ญ Click to0.11 reveal0.17 Venn0.48 Diagram 0.24 Bro Tip: Venn Diagrams can typically be used when you have intersections involving ‘not’s. Exercises Page 86 Exercise 5C Q1, 3, 5 Conditional Probability Think about how we formed a probability tree at GCSE: P ๐ต|๐ด ? ๐ ๐ด ๐ต ๐ ๐ด∩๐ต = ๐ ๐ด ×?๐ ๐ต ๐ด ๐ด ๐ต′ ๐ต ๐ด′ ๐ต′ Alternatively: ๐ ๐ด∩๐ต ? ๐ ๐ต๐ด = ๐ ๐ด Bro Tip: You’re dividing by the event you’re conditioning on. Quickfire Examples Given that P(A) = 0.5 and ๐ ๐ด ∩ ๐ต = 0.3, what is P(B | A)? ๐ท ๐ฉ ๐จ? = ๐ท ๐จ∩๐ฉ ๐. ๐ = = ๐. ๐ ๐ท ๐จ ๐. ๐ Given that P(Y) = 0.6 and ๐ ๐ ∩ ๐ = 0.4, what is ๐ ๐ ′ ๐ ? P(X’ | Z) = 1 – P(X | Z)?= 1 – (0.4/0.6) = 0.33 Given that P(A) = 0.5, P(B) = 0.5 and ๐ ๐ด ∩ ๐ต = 0.4, what is ๐ ๐ต ๐ด′ ? (Hint: you’ll likely need a Venn Diagram for this!) ๐ท ๐ฉ ๐จ′ = ๐ท(๐จ′ ∩ ๐ฉ)/๐ท ๐จ′ = 0.1 / 0.5 ? = 0.2 Bro Tip: Note that P(A | B’) + P(A’ | B’) = 1 It is NOT in general true that: P(A’ | B’) = 1 – P(A | B) Summary so far If events ๐จ and ๐ฉ are independent. P ๐ด ∩ ๐ต = ๐ ๐ด ×? ๐ ๐ต P ๐ด ๐ต = ๐(๐ด) ? If events ๐จ and ๐ฉ are mutually exclusive: ? P ๐ด∩๐ต =0 P ๐ด ∪ ๐ต = ๐ ๐ด +? ๐ ๐ต In general: P ๐ด๐ต = ๐ ๐ด∩๐ต ๐ ๐ต ? P ๐ด ∪ ๐ต = ๐ ๐ด + ๐ ๐ต ?− ๐ ๐ด ∩ ๐ต More difficult Venn Diagrams based on mutual exclusivity (Page 102) Events ๐ด, ๐ต and ๐ถ are defined in the sample space ๐ such that ๐ ๐ด = 0.4, ๐ ๐ต = 0.2, ๐ ๐ด ∩ ๐ถ = 0.04 and ๐ ๐ต ∪ ๐ถ = 0.44. The events ๐ด and ๐ต are mutually exclusive and ๐ต and ๐ถ are independent. a) Draw a Venn Diagram to illustrate the relationship between the three events and the sample space. [We’ll work out the probabilities later] ๐ ๐ด ๐ถ ๐ต ? Key Points: • Recall that only mutual exclusivity affects the Venn Diagram. • You will lose a mark if you forget the outer rectangle. More difficult Venn Diagrams based on mutual exclusivity (Page 102) Events ๐ด, ๐ต and ๐ถ are defined in the sample space ๐ such that ๐ ๐ด = 0.4, ๐ ๐ต = 0.2, ๐ ๐ด ∩ ๐ถ = 0.04 and ๐ ๐ต ∪ ๐ถ = 0.44. The events ๐ด and ๐ต are mutually exclusive and ๐ต and ๐ถ are independent. b) Find ๐ท(๐ฉ|๐ช), ๐ท(๐ช), ๐ท ๐ฉ ∩ ๐ช , ๐ท ๐จ′ ∩ ๐ฉ′ ∩ ๐ช′ , ๐ท ๐ช ∩ ๐ฉ′ ๐ 0.36 ? ๐ ๐ต ๐ถ = 0.2? ๐ต ๐ถ ๐ด ๐ ๐ถ = 0.3 ? 0.04 ? Bro Tip: Use the last sentence about mutual exclusivity/independence to immediately write out some extra information, e.g. ๐ ๐ต ∩ ๐ถ = 0.2๐(๐ถ) 0.2 ? 0.06 ? ๐ ๐ด′ ∩ ๐ต′ ∩ ๐ถ ′ = 0.2? 0.14 ? ๐ ๐ถ ∩ ๐ต′ = 0.24 ? June 2013 Answer to (d): 11 = 20 ? = 3 = 8 ? 99 100 ? ? = 1 4 ? Exercises Provided sheet of past paper questions! Exercises (on worksheet) b P(A u B) = P(A) + P(B) – P(A ? n B) = 0.67 P(A’ | B’) = P(A’ n B’) / P(B’) = 0.33 / 0.55 = 0.6 (We can see that P(A’ n B’) = 1 – P(A u B) ? by a quick sketch of a Venn Diagram) c P(B n C) = P(B)P(C) = 0.09 (we can directly?multiply because they’re independent) a 0.22 d 0.22 A 0.13 0.09 ? 0.23 B e 0.11 C S Using a Venn Diagram, we can see that: ?B’) + P(A’ n B’ n C’) P([B u C]’) = P(A n = 0.22 + 0.22 = 0.44 Exercises (on worksheet) a b c d e B and W, or T and W. Because the circles don’t overlap/the events can’t happen at the same time. ? P(B n T) = 5/25 = 1/5 P(B)P(T) = 9/25 x 8/25 = 72/625 These are not the same so not independent. ? ? P(B n T) = 5/25 ? P(W) = 7/25 P(T | B) = 5 / 9 (either using the Venn Diagram directly, or by using P(T n B) / P(B) ? Probability Trees Trees are useful when you have later events conditioned on earlier ones, or in general when you have lots of conditional probabilities. Example: You have two bags, the first with 5 red balls and 5 blue balls, and the second with 3 red balls and 6 blue balls. You first pick a ball from the first bag, and place it in the second. You then pick a ball from the second bag. Complete the tree diagram. Hence find the probability that: 1st pick ?12 1 2? 2nd pick 4 ? 10 ๐ ๐๐ ๐ ๐๐ a) You pick a red ball on your second pick. ๐ ๐ 2 = ๐ ๐ 1 ∩ ๐ 2 + ๐ ๐ต1 ∩ ๐ 2 1 3 7 = + = 5 20 20 ? 6 ? 10 ๐ต๐๐ข๐ 3 ? 10 ๐ ๐๐ ๐ต๐๐ข๐ 7 ? 10 ๐ต๐๐ข๐ b) Given that your second pick was red, the first pick was also red. ๐ ๐ 1 ∩ ๐ 2 ๐ ๐ 1 ๐ 2 = ๐ ๐ 2 = 1 5 7 20 = 4 7 ? Probability Trees Key Point: When you need to find a probability using a tree, consider all possible paths in which that event is satisfied, and add the probabilities together. ๐ต ๐ถ ๐ถ′ ๐ด ๐ถ ๐ต′ ๐ถ′ ๐ต ๐ด∩๐ต∩๐ถ ๐ด ∩ ๐ต′ ∩ ๐ถ ๐ด′ ∩ ๐ต ∩ ๐ถ ๐ด′ ∩ ๐ต′ ∩ ๐ถ ๐ ๐ต ∩ ๐ถ′ = ๐ ๐ด ∩ ๐ต ∩ ๐ถ′ + ๐ ๐ด′ ∩ ๐ต ∩ ๐ถ ′ ? ? ๐ถ ๐ถ′ ๐ด′ ๐ ๐ถ =๐ +๐ +๐ +๐ ๐ถ ๐ต′ ๐ถ′ ๐ ๐ต ? = ๐ ๐ด ∩ ๐ต + ๐ ๐ด′ ∩ ๐ต (Notice that we can completely ignore C here) ๐ ๐ด′ ∩ ๐ถ = ๐ ๐ด′ ∩ ๐ต ∩ ๐ถ + ๐ ๐ด′ ∩ ๐ต′ ∩ ๐ถ ? Check your understanding Of 120 competitors in a golf tournament, 68 reached the green with their tee shot on the first hole. Of these, 46 completed the hole in 3 shots or less. In total, 49 players took more than 3 shots on the first hole. 68 120 46 68 Find the probability that a player chosen at random: ๐ถ ๐ 22 68 ๐ถ′ 25 Click to reveal Tree Diagram 52 120 52 ๐ถ ๐ ′ 27 52 ๐ถ′ I’ve used ๐ to represent the event “reached the green with tee shot on first hole” and ๐ถ to mean “completed shot in 3 shots or less”. a) Reached the green with his tee shot and took more than 3 shots in total. P R ∩ ๐ถ′ = 68 22 22 × = 120 68 120 ? b) Missed the green on his tee shot and took at most 3 shots. P ๐ ′ ∩ ๐ถ = 52 27 27 × = 120 52 120 ? c) Took 3 shots or less in total, given that he missed the green with his tee shot. 27 ′ ๐ ๐ ∩ ๐ถ 120 = 27 ๐ ๐ถ ๐ ′ = = 52 ๐ ๐ ′ 52 120 ? Exercises (on worksheet) ?23 5 12 ? 7 12 ? ?13 ?12 ?12 b P(H) = (5/12 x 2/3) + (7/12 x ½) =?41/72 c P(R|H) = P(R n H) / P(H) = (5/18) /?(41/72) = 20/41 d P(RR or BB) = (5/12)2 + ? (7/12)2 = 37/72 Classic Conundrum I have two children. One of them is a boy. What is the probability the other is a boy? 1 ๐ด๐๐ ๐ค๐๐ = ? 3 METHOD 1 The ‘restricted sample space’ method BB BG GB GG There’s four possibilities for the sex of the two ? only 3 match the description. children, but In 1 out of the 3 possibilities METHOD 2 Using conditional probability ๐ ๐๐กโ๐๐ ๐๐ ๐๐๐ฆ ๐๐๐ ๐๐ ๐ ๐๐๐ฆ = = 1/4 1 = 3/4 3 ๐ ๐๐๐ ๐๐ ๐ ๐๐๐ฆ ๐ด๐๐ท ๐๐กโ๐๐ ๐๐ ๐ ๐๐๐ฆ ? ๐ ๐๐๐ ๐๐ ๐ ๐๐๐ฆ