{"base":{"id":"alcm-35-03","subject":"Combined Maths","title":"Conditional probability","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["two dice: B = \"sum is 8\" = {(2,6), (3,5), (4,4), (5,3), (6,2)}","A = \"a double\"",{"t":"P(A | B) = 1/5","note":"only (4,4)"},"compare P(A) = 6/36 = 1/6"]},"say":["Tap for an example.","The condition.","The event.","Conditional probability.","Without the condition."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Definition","title":"P(A | B) = P(A ∩ B)/P(B)","body":"P(A | B) is the probability of A given that B has happened. Knowing B shrinks the sample space to B."},{"mode":"fig","work":{"title":"Write it like this","lines":["bag: 3 red, 2 blue; take two without replacement","P(red, red) = 3/5 × 2/4 = 3/10",{"t":"P(second red) = 3/5 × 2/4 + 2/5 × 3/4 = 3/5","note":"add the branches"}]},"say":["Tap for a tree.","The bag.","Both red.","Second red."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Multiplication rule","title":"Multiply along the branches","body":"Rearranging the definition gives a rule for \"and\": multiply along the branches of a tree diagram."},{"mode":"plot","controls":[{"id":"r","label":"red r","min":1,"max":8,"step":1,"value":3},{"id":"b","label":"blue b","min":1,"max":8,"step":1,"value":2}],"view":[-0.2,-1.2,4.2,1.2],"equal":true,"axes":{"xs":10,"ys":10,"xl":"","yl":""},"segs":[{"p":["0","0","1.6","0.6"],"col":"r"},{"p":["0","0","1.6","-0.6"],"col":"b"},{"p":["1.8","0.6","3.4","0.9"],"col":"r"},{"p":["1.8","0.6","3.4","0.3"],"col":"b"},{"p":["1.8","-0.6","3.4","-0.3"],"col":"r"},{"p":["1.8","-0.6","3.4","-0.9"],"col":"b"}],"items":[{"k":"txt","p":[0.6,0.55],"t":"R","size":34,"col":"r"},{"k":"txt","p":[0.6,-0.55],"t":"B","size":34,"col":"b"},{"k":"txt","p":[3.7,0.9],"t":"RR","size":30,"col":"k"},{"k":"txt","p":[3.7,0.3],"t":"RB","size":30,"col":"k"},{"k":"txt","p":[3.7,-0.3],"t":"BR","size":30,"col":"k"},{"k":"txt","p":[3.7,-0.9],"t":"BB","size":30,"col":"k"}],"ptitle":"Tree diagram","rows":["{r|0} red, {b|0} blue",["P(RR) = {r*(r-1)/((r+b)*(r+b-1))|3}","r"],["P(one of each) = {2*r*b/((r+b)*(r+b-1))|3}","k"],["P(BB) = {b*(b-1)/((r+b)*(r+b-1))|3}","b"],["P(2nd red) = {r/(r+b)|3} = P(1st red)","g"]],"note":"Surprise: the second ball is red with the same probability as the first, even without replacement.","st":"P(RR) = {r*(r-1)/((r+b)*(r+b-1))|3}","eyebrow":"Explore","title":"Drawing without replacement","body":"A bag has r red and b blue balls. Two are taken without replacement. Change the numbers and compare the branch probabilities."},{"mode":"fig","work":{"title":"Write it like this","lines":["rain tomorrow: 0.3;  late if rain: 0.4;  late if dry: 0.1","P(late) = 0.3 × 0.4 + 0.7 × 0.1","= 0.12 + 0.07 = 0.19"]},"say":["Tap for the rule.","The data.","Two routes.","Total."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Total probability","title":"Add over all routes","body":"If B₁, …, Bₙ are exclusive and exhaustive, then P(A) = Σ P(A | Bᵢ) P(Bᵢ). This is the \"add the branches\" step of a tree."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"P(A ∩ B) = 0.12,  P(B) = 0.4","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Conditional","body":"P(A ∩ B)/P(B).","question":"P(A ∩ B) = 0.12 and P(B) = 0.4. P(A | B) = ?","options":["0.3","0.048","0.52"],"answer":0,"right":"Correct. 0.12/0.4.","wrong":"Not quite. Divide by P(B)."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Conditional probability in detail","items":[{"tag":"Tables","title":"Two-way tables","body":"With a table of counts, P(A | B) = (count in A and B)/(count in B): read only the B row or column."},{"tag":"Order matters","title":"P(A | B) ≠ P(B | A)","body":"P(king | heart) = 1/13 but P(heart | king) = 1/4. Swapping the condition changes the answer (Bayes, Lesson 35-05)."},{"tag":"Trees","title":"Rules for trees","body":"Multiply along branches (and), add between complete paths (or). Probabilities on branches from one point add to 1."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Dividing by P(A)","body":"For P(A | B) divide by the probability of the condition, P(B)."},{"tag":"Common mistake","title":"Same probabilities on the second draw","body":"Without replacement the second-draw probabilities change."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"P(A | B) = ?","options":["P(A ∩ B)/P(A)","P(A)P(B)","P(A ∩ B)/P(B)"],"answer":2,"right":"Correct. Conditional probability basics.","wrong":"Not quite. Restrict to the given event."},{"level":"easy","question":"P(A ∩ B) = ?","options":["P(A) + P(B)","P(B | A)","P(A)P(B | A)"],"answer":2,"right":"Correct. Conditional probability basics.","wrong":"Not quite. Restrict to the given event."},{"level":"easy","question":"A die shows an even number. P(it is 4)?","options":["1/3","1/6","1/2"],"answer":0,"right":"Correct. Conditional probability basics.","wrong":"Not quite. Restrict to the given event."},{"level":"easy","question":"A card is red. P(it is a heart)?","options":["1/2","1/4","1/13"],"answer":0,"right":"Correct. Conditional probability basics.","wrong":"Not quite. Restrict to the given event."},{"level":"easy","question":"Total probability: P(A) = ?","options":["Σ P(Bᵢ)","Σ P(A | Bᵢ)P(Bᵢ)","P(A | B)"],"answer":1,"right":"Correct. Conditional probability basics.","wrong":"Not quite. Restrict to the given event."},{"level":"easy","question":"A bag has 5 red and 3 blue balls; two are drawn without replacement. P(first red)?","options":["3/8","5/8","1/2"],"answer":1,"right":"Correct. Multiply along branches of the tree.","wrong":"Not quite. After one red, 7 balls remain."},{"level":"easy","question":"A bag has 5 red and 3 blue balls; two are drawn without replacement. P(second red | first red)?","options":["4/7","5/8","5/7"],"answer":0,"right":"Correct. Multiply along branches of the tree.","wrong":"Not quite. After one red, 7 balls remain."},{"level":"easy","question":"A bag has 5 red and 3 blue balls; two are drawn without replacement. P(both red)?","options":["5/14","25/64","4/7"],"answer":0,"right":"Correct. Multiply along branches of the tree.","wrong":"Not quite. After one red, 7 balls remain."},{"level":"easy","question":"A bag has 5 red and 3 blue balls; two are drawn without replacement. P(both blue)?","options":["9/64","3/28","1/4"],"answer":1,"right":"Correct. Multiply along branches of the tree.","wrong":"Not quite. After one red, 7 balls remain."},{"level":"easy","question":"A bag has 5 red and 3 blue balls; two are drawn without replacement. P(second blue | first red)?","options":["3/8","2/7","3/7"],"answer":2,"right":"Correct. Multiply along branches of the tree.","wrong":"Not quite. After one red, 7 balls remain."},{"level":"medium","question":"Same bag: P(one of each colour)?","options":["15/64","1/2","15/28"],"answer":2,"right":"Correct. Use the tree or reduce the sample space.","wrong":"Not quite. Sum 6 has 5 outcomes."},{"level":"medium","question":"Same bag: P(second red)?","options":["4/7","5/8","5/14"],"answer":1,"right":"Correct. Use the tree or reduce the sample space.","wrong":"Not quite. Sum 6 has 5 outcomes."},{"level":"medium","question":"Same bag: P(first red | second red)?","options":["5/8","5/14","4/7"],"answer":2,"right":"Correct. Use the tree or reduce the sample space.","wrong":"Not quite. Sum 6 has 5 outcomes."},{"level":"medium","question":"Two dice: P(sum 8 | first die is even)?","options":["1/6","5/36","1/3"],"answer":0,"right":"Correct. Use the tree or reduce the sample space.","wrong":"Not quite. Sum 6 has 5 outcomes."},{"level":"medium","question":"Two dice: P(double | sum is 6)?","options":["1/6","1/36","1/5"],"answer":2,"right":"Correct. Use the tree or reduce the sample space.","wrong":"Not quite. Sum 6 has 5 outcomes."},{"level":"medium","question":"70% of days are dry. A bus is late on 10% of dry days and 40% of wet days. P(late)?","options":["0.19","0.25","0.5"],"answer":0,"right":"Correct. Total probability and the multiplication rule.","wrong":"Not quite. P(B | A) = P(A ∩ B)/P(A)."},{"level":"medium","question":"Factory: A makes 40% (3% faulty), B 60% (2% faulty). P(faulty)?","options":["0.05","0.024","0.025"],"answer":1,"right":"Correct. Total probability and the multiplication rule.","wrong":"Not quite. P(B | A) = P(A ∩ B)/P(A)."},{"level":"medium","question":"P(A) = 0.5, P(B) = 0.4, P(A | B) = 0.6. P(A ∩ B)?","options":["0.24","0.3","0.2"],"answer":0,"right":"Correct. Total probability and the multiplication rule.","wrong":"Not quite. P(B | A) = P(A ∩ B)/P(A)."},{"level":"medium","question":"…P(B | A)?","options":["0.48","0.6","0.4"],"answer":0,"right":"Correct. Total probability and the multiplication rule.","wrong":"Not quite. P(B | A) = P(A ∩ B)/P(A)."},{"level":"medium","question":"…P(A ∪ B)?","options":["0.9","0.66","0.54"],"answer":1,"right":"Correct. Total probability and the multiplication rule.","wrong":"Not quite. P(B | A) = P(A ∩ B)/P(A)."},{"level":"hard","question":"A two-way table: 30 boys (12 wear glasses), 20 girls (10 wear glasses). P(boy | glasses)?","options":["6/11","2/5","12/50"],"answer":0,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"…P(glasses | girl)?","options":["10/22","1/2","1/5"],"answer":1,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"Three cards drawn without replacement. P(all hearts)?","options":["1/64","3/52","11/850"],"answer":2,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"A family has two children; at least one is a boy. P(both boys)?","options":["1/3","1/2","1/4"],"answer":0,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"…the elder is a boy. P(both boys)?","options":["1/3","1/2","1/4"],"answer":1,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"A test: P(pass first attempt) = 0.6; if fail, P(pass second) = 0.8. P(pass within two attempts)?","options":["0.48","0.92","1.4"],"answer":1,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"A box: 2 coins, one fair, one double-headed. One is chosen and tossed: head. P(double-headed)?","options":["1/2","3/4","2/3"],"answer":2,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"P(A | B) = P(A) means A and B are…","options":["exclusive","exhaustive","independent"],"answer":2,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"If P(B) = 0, then P(A | B) is…","options":["undefined","0","1"],"answer":0,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."},{"level":"hard","question":"P(A | B) + P(A′ | B) = ?","options":["P(B)","0","1"],"answer":2,"right":"Correct. Reduce to the given condition; use trees for sequences.","wrong":"Not quite. Two-child problems: list BB, BG, GB, GG."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Conditional probability","meaning":"P(A | B), given B."},{"word":"Multiplication rule","meaning":"P(A ∩ B) = P(A)P(B | A)."},{"word":"Tree diagram","meaning":"Branches showing stages."},{"word":"Without replacement","meaning":"Not put back."},{"word":"Total probability","meaning":"P(A) = Σ P(A | Bᵢ)P(Bᵢ)."},{"word":"Two-way table","meaning":"Counts by two categories."}]},{"type":"checklist","id":"check","title":"I can…","items":["find conditional probabilities","use tree diagrams and the multiplication rule","use the law of total probability"]},{"type":"sources","id":"sources","title":"Sources","items":["NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level II 4.3)."]}],"slug":"conditional-probability"},"overlay":null}