{"base":{"id":"alcm-35-05","subject":"Combined Maths","title":"Bayes' theorem","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["P(A ∩ B) = P(A | B)P(B) = P(B | A)P(A)",{"t":"P(Aᵢ | B) = P(B | Aᵢ)P(Aᵢ) / Σⱼ P(B | Aⱼ)P(Aⱼ)","note":"general form"},"the denominator is the total probability of B"]},"say":["Tap for the theorem.","Two ways to write \"and\".","General form.","The bottom line."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"The theorem","title":"Turning a condition round","body":"Bayes’ theorem finds P(A | B) from P(B | A): P(A | B) = P(B | A)P(A)/P(B), with P(B) from the law of total probability."},{"mode":"fig","work":{"title":"Write it like this","lines":["P(F) = 0.6 × 0.02 + 0.4 × 0.05","= 0.012 + 0.020 = 0.032",{"t":"P(A | F) = 0.012/0.032 = 0.375","note":"A makes more, yet is less likely to blame"}]},"say":["Tap to solve.","Total faulty.","Add.","Bayes."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Machines","title":"Which machine made the faulty item?","body":"Machine A makes 60% of items with 2% faulty; machine B makes 40% with 5% faulty. An item is faulty. Find the probability A made it."},{"mode":"plot","controls":[{"id":"p","label":"prevalence p","min":0.005,"max":0.3,"step":0.005,"value":0.01},{"id":"f","label":"false positive f","min":0.01,"max":0.2,"step":0.01,"value":0.05}],"view":[0,-0.05,0.31,1.05],"axes":{"xs":0.05,"ys":0.2,"xl":"p","yl":"P"},"fns":[{"e":"0.95*x/(0.95*x+f*(1-x))","col":"b","from":0.001}],"pts":[{"x":"p","y":"0.95*p/(0.95*p+f*(1-p))","col":"r"}],"ptitle":"Bayes for a test","rows":["p = {p|3},  f = {f|2}",["P(+) = {0.95*p+f*(1-p)|4}","k"],["P(disease | +) = {0.95*p/(0.95*p+f*(1-p))|3}","r"],["P(healthy | −) = {0.95*(1-p)/(0.95*(1-p)+0.05*p)|4}","b"]],"note":"With p = 1% and f = 5%, only about 16% of positives have the disease: most positives are false alarms.","st":"P(D | +) = {0.95*p/(0.95*p+f*(1-p))|3}","eyebrow":"Explore","title":"A positive medical test","body":"A disease affects a fraction p of people. The test detects it 95% of the time but wrongly says \"positive\" for f of healthy people. The curve shows P(disease | positive)."},{"mode":"fig","work":{"title":"Write it like this","lines":["P(D ∩ +) = 0.01 × 0.95 = 0.0095","P(D′ ∩ +) = 0.99 × 0.05 = 0.0495","P(+) = 0.059",{"t":"P(D | +) = 0.0095/0.059 ≈ 0.161","note":"about 1 in 6"}]},"say":["Tap to work it out.","True positives.","False positives.","All positives.","Bayes."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Working","title":"The test numbers, step by step","body":"p = 0.01, sensitivity 0.95, false positive rate 0.05. Use a tree, then divide the \"disease and positive\" branch by all positive branches."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"P(A | B) = ?","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Bayes","body":"Divide the branch by the total.","question":"P(A) = 0.5, P(B | A) = 0.6, P(B | A′) = 0.2. P(A | B) = ?","options":["0.6","0.75","0.3"],"answer":1,"right":"Correct. 0.3/0.4.","wrong":"Not quite. P(B) = 0.3 + 0.1 = 0.4."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Bayes in detail","items":[{"tag":"Prior and posterior","title":"Updating beliefs","body":"P(A) is the prior (before the evidence B); P(A | B) is the posterior (after). Bayes’ theorem updates the prior using the evidence."},{"tag":"Many causes","title":"Three machines","body":"With three causes A₁, A₂, A₃, compute each P(B | Aᵢ)P(Aᵢ), add them for P(B), then divide each by the sum. The posteriors add to 1."},{"tag":"Why it surprises","title":"Base rates matter","body":"When the condition is rare, even a good test gives many false positives, because healthy people vastly outnumber sick ones."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Confusing P(A | B) with P(B | A)","body":"P(positive | disease) = 0.95 does not mean P(disease | positive) = 0.95."},{"tag":"Common mistake","title":"Forgetting a branch in P(B)","body":"P(B) must include every route to B, including the A′ branches."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"Bayes' theorem: P(A | B) = ?","options":["P(A)P(B)","P(B | A)P(A)/P(B)","P(B | A)/P(A)"],"answer":1,"right":"Correct. Bayes basics.","wrong":"Not quite. Swap the condition using P(A ∩ B)."},{"level":"easy","question":"The denominator P(B) is found by…","options":["the law of total probability","P(A) alone","subtraction"],"answer":0,"right":"Correct. Bayes basics.","wrong":"Not quite. Swap the condition using P(A ∩ B)."},{"level":"easy","question":"P(A) before evidence is called…","options":["the posterior","the prior","the likelihood"],"answer":1,"right":"Correct. Bayes basics.","wrong":"Not quite. Swap the condition using P(A ∩ B)."},{"level":"easy","question":"P(A | B) after evidence B is…","options":["the prior","zero","the posterior"],"answer":2,"right":"Correct. Bayes basics.","wrong":"Not quite. Swap the condition using P(A ∩ B)."},{"level":"easy","question":"P(B | A) is generally… P(A | B)","options":["equal to","not equal to","double"],"answer":1,"right":"Correct. Bayes basics.","wrong":"Not quite. Swap the condition using P(A ∩ B)."},{"level":"easy","question":"Two boxes chosen with equal chance: box 1 has 3 red, 1 blue; box 2 has 1 red, 3 blue. A red ball is drawn. P(red)?","options":["1/2","3/4","1/4"],"answer":0,"right":"Correct. Branch probability ÷ total probability of the evidence.","wrong":"Not quite. P(red) = ½·¾ + ½·¼."},{"level":"easy","question":"Two boxes chosen with equal chance: box 1 has 3 red, 1 blue; box 2 has 1 red, 3 blue. A red ball is drawn. P(box 1 | red)?","options":["1/2","3/8","3/4"],"answer":2,"right":"Correct. Branch probability ÷ total probability of the evidence.","wrong":"Not quite. P(red) = ½·¾ + ½·¼."},{"level":"easy","question":"Two boxes chosen with equal chance: box 1 has 3 red, 1 blue; box 2 has 1 red, 3 blue. A red ball is drawn. P(box 2 | red)?","options":["1/2","1/8","1/4"],"answer":2,"right":"Correct. Branch probability ÷ total probability of the evidence.","wrong":"Not quite. P(red) = ½·¾ + ½·¼."},{"level":"easy","question":"Two boxes chosen with equal chance: box 1 has 3 red, 1 blue; box 2 has 1 red, 3 blue. A red ball is drawn. P(red ∩ box 1)?","options":["3/8","3/4","1/2"],"answer":0,"right":"Correct. Branch probability ÷ total probability of the evidence.","wrong":"Not quite. P(red) = ½·¾ + ½·¼."},{"level":"easy","question":"Two boxes chosen with equal chance: box 1 has 3 red, 1 blue; box 2 has 1 red, 3 blue. A red ball is drawn. If a blue ball were drawn, P(box 2 | blue)?","options":["1/4","3/4","1/2"],"answer":1,"right":"Correct. Branch probability ÷ total probability of the evidence.","wrong":"Not quite. P(red) = ½·¾ + ½·¼."},{"level":"medium","question":"Machines A, B, C make 50%, 30%, 20% with 1%, 2%, 3% faulty. P(faulty)?","options":["0.017","0.02","0.06"],"answer":0,"right":"Correct. Compute each branch, sum for the denominator.","wrong":"Not quite. P(C | F) = 0.2·0.03/0.017."},{"level":"medium","question":"…P(A | faulty)?","options":["0.5","0.01","0.294"],"answer":2,"right":"Correct. Compute each branch, sum for the denominator.","wrong":"Not quite. P(C | F) = 0.2·0.03/0.017."},{"level":"medium","question":"…P(C | faulty)?","options":["0.2","0.03","0.353"],"answer":2,"right":"Correct. Compute each branch, sum for the denominator.","wrong":"Not quite. P(C | F) = 0.2·0.03/0.017."},{"level":"medium","question":"A disease affects 2%; test detects 90% of cases with 5% false positives. P(positive)?","options":["0.067","0.95","0.018"],"answer":0,"right":"Correct. Compute each branch, sum for the denominator.","wrong":"Not quite. P(C | F) = 0.2·0.03/0.017."},{"level":"medium","question":"…P(disease | positive)?","options":["0.9","0.269","0.02"],"answer":1,"right":"Correct. Compute each branch, sum for the denominator.","wrong":"Not quite. P(C | F) = 0.2·0.03/0.017."},{"level":"medium","question":"P(A) = 0.3, P(B | A) = 0.8, P(B | A′) = 0.4. P(B)?","options":["1.2","0.24","0.52"],"answer":2,"right":"Correct. P(A | B) = P(A ∩ B)/P(B).","wrong":"Not quite. Draw the tree."},{"level":"medium","question":"…P(A | B)?","options":["0.8","0.462","0.3"],"answer":1,"right":"Correct. P(A | B) = P(A ∩ B)/P(B).","wrong":"Not quite. Draw the tree."},{"level":"medium","question":"…P(A | B′)?","options":["0.2","0.125","0.3"],"answer":1,"right":"Correct. P(A | B) = P(A ∩ B)/P(B).","wrong":"Not quite. Draw the tree."},{"level":"medium","question":"A student guesses on a 4-option question with probability 0.4, else knows the answer. Correct answer given. P(guessed)?","options":["0.143","0.4","0.25"],"answer":0,"right":"Correct. P(A | B) = P(A ∩ B)/P(B).","wrong":"Not quite. Draw the tree."},{"level":"medium","question":"In Bayes problems, a tree diagram helps to…","options":["avoid fractions","find every path to the evidence","guess"],"answer":1,"right":"Correct. P(A | B) = P(A ∩ B)/P(B).","wrong":"Not quite. Draw the tree."},{"level":"hard","question":"A test for a disease with prevalence 0.1%: sensitivity 99%, false positive 1%. P(disease | positive) ≈ ?","options":["0.99","0.090","0.5"],"answer":1,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"…after a second independent positive test, P(disease) ≈ ?","options":["0.907","0.99","0.18"],"answer":0,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"Three urns (equal chance): U1 2W 3B, U2 3W 2B, U3 4W 1B. A white is drawn. P(U3 | white)?","options":["1/3","4/5","4/9"],"answer":2,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"A coin is chosen from a fair coin and a coin with P(H) = 3/4; two heads are seen. P(biased coin)?","options":["9/13","3/4","1/2"],"answer":0,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"If P(B | A) = 1 and P(A) = 0.2, P(B) = 0.5, then P(A | B) = ?","options":["0.4","0.2","1"],"answer":0,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"Bayes with equally likely causes reduces to…","options":["equal posteriors","zero","comparing the likelihoods P(B | Aᵢ)"],"answer":2,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"Rain is forecast; P(rain) = 0.3. Forecast is correct 80% of the time either way. Forecast says rain. P(rain)?","options":["0.8","0.632","0.3"],"answer":1,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"The posterior probabilities over all causes sum to…","options":["1","0","P(B)"],"answer":0,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"If evidence B is equally likely under all causes, posteriors equal…","options":["zero","1/2","the priors"],"answer":2,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."},{"level":"hard","question":"P(A | B) > P(A) means B makes A…","options":["less likely","more likely","impossible"],"answer":1,"right":"Correct. Apply Bayes step by step with a tree.","wrong":"Not quite. Base rates strongly affect the answer."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Bayes' theorem","meaning":"P(A | B) = P(B | A)P(A)/P(B)."},{"word":"Prior","meaning":"Probability before evidence."},{"word":"Posterior","meaning":"Probability after evidence."},{"word":"Sensitivity","meaning":"P(positive | disease)."},{"word":"False positive","meaning":"A positive result for a healthy person."},{"word":"Base rate","meaning":"How common a condition is."}]},{"type":"checklist","id":"check","title":"I can…","items":["state and prove Bayes' theorem","find which cause most likely produced an outcome","interpret test results using base rates"]},{"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.5)."]}],"slug":"bayes-theorem"},"overlay":{"title":"බේස්ගේ ප්‍රමේයය","steps":[{"work":{"title":"මෙහෙම ලියන්න","lines":[null,{"note":"සාධාරණ ආකාරය"},null]},"say":["ප්‍රමේයය බලන්න ඔබන්න.","\"සහ\" ලියන ක්‍රම දෙකක්.","සාධාරණ ආකාරය.","හරය."],"actions":[{"label":"ඊළඟ පියවර පෙන්වන්න"}],"eyebrow":"ප්‍රමේයය","title":"කොන්දේසියක් හරවනවා","body":"බේස්ගේ ප්‍රමේයය P(B | A) න් P(A | B) හොයනවා: P(A | B) = P(B | A)P(A)/P(B); P(B) මුළු සම්භාවිතා නියමයෙන්."},{"work":{"title":"මෙහෙම ලියන්න","lines":[null,null,{"note":"A වැඩිපුර හැදුවත් වරද වීමට අඩු ඉඩක්"}]},"say":["විසඳන්න ඔබන්න.","මුළු දෝෂ සහිත.","එකතු කරන්න.","බේස්."],"actions":[{"label":"ඊළඟ පියවර පෙන්වන්න"}],"eyebrow":"යන්ත්‍ර","title":"දෝෂ සහිත අයිතමය හැදුවේ කුමන යන්ත්‍රයද?","body":"A යන්ත්‍රය අයිතමවලින් 60% හදනවා, 2% දෝෂ සහිත; B යන්ත්‍රය 40% හදනවා, 5% දෝෂ සහිත. අයිතමයක් දෝෂ සහිතයි. ඒක A හැදූ සම්භාවිතාව හොයන්න."},{"controls":[{"label":"ව්‍යාප්තිය p"},{"label":"ව්‍යාජ ධන f"}],"ptitle":"පරීක්ෂණයකට බේස්","rows":[null,null,["P(රෝගය | +) = {0.95*p/(0.95*p+f*(1-p))|3}",null],["P(නීරෝගී | −) = {0.95*(1-p)/(0.95*(1-p)+0.05*p)|4}",null]],"note":"p = 1% සහ f = 5% නම් ධන අයගෙන් රෝගය තියෙන්නේ 16% කට විතරයි: බොහෝ ධන ව්‍යාජ අනතුරු ඇඟවීම්.","st":"P(D | +) = {0.95*p/(0.95*p+f*(1-p))|3}","eyebrow":"ගවේෂණය කරන්න","title":"ධනාත්මක වෛද්‍ය පරීක්ෂණයක්","body":"රෝගයක් p කොටසකට බලපානවා. පරීක්ෂණය 95% ක් වාරවල ඒක හඳුනාගන්නවා, ඒත් නීරෝගී අයගෙන් f කොටසකට වැරදියට \"ධන\" කියනවා. වක්‍රය P(රෝගය | ධන) පෙන්වනවා."},{"work":{"title":"මෙහෙම ලියන්න","lines":[null,null,null,{"note":"දළ වශයෙන් 6 න් 1"}]},"say":["ගණනය කරන්න ඔබන්න.","සැබෑ ධන.","ව්‍යාජ ධන.","සියලු ධන.","බේස්."],"actions":[{"label":"ඊළඟ පියවර පෙන්වන්න"}],"eyebrow":"වැඩ","title":"පරීක්ෂණ සංඛ්‍යා පියවරෙන් පියවර","body":"p = 0.01, සංවේදීතාව 0.95, ව්‍යාජ ධන අනුපාතය 0.05. වෘක්ෂයක් පාවිච්චි කරලා, \"රෝගය සහ ධන\" අත්ත සියලු ධන අතුවලින් බෙදන්න."},{"eyebrow":"ඔයාම බලන්න","title":"බේස්","body":"අත්ත මුළු එකතුවෙන් බෙදන්න.","question":"P(A) = 0.5, P(B | A) = 0.6, P(B | A′) = 0.2. P(A | B) = ?","options":["0.6","0.75","0.3"],"right":"හරි. 0.3/0.4.","wrong":"තව ටිකක් හිතන්න. P(B) = 0.3 + 0.1 = 0.4."}],"more":[{"eyebrow":"විස්තර","title":"බේස් විස්තරව","items":[{"tag":"පූර්ව සහ පශ්චාත්","title":"විශ්වාස යාවත්කාලීන කිරීම","body":"P(A) පූර්ව සම්භාවිතාව (B සාක්ෂියට පෙර); P(A | B) පශ්චාත් සම්භාවිතාව (පසු). බේස්ගේ ප්‍රමේයය සාක්ෂිය පාවිච්චි කරලා පූර්වය යාවත්කාලීන කරනවා."},{"tag":"බොහෝ හේතු","title":"යන්ත්‍ර තුනක්","body":"A₁, A₂, A₃ හේතු තුනක් සමඟ හැම P(B | Aᵢ)P(Aᵢ) ගණනය කරලා, P(B) ට එකතු කරලා, එක එකක් එකතුවෙන් බෙදන්න. පශ්චාත් සම්භාවිතාවල එකතුව 1."},{"tag":"ඇයි පුදුම වෙන්නේ","title":"මූලික අනුපාත වැදගත්","body":"කොන්දේසිය දුර්ලභ නම් හොඳ පරීක්ෂණයකුත් බොහෝ ව්‍යාජ ධන දෙනවා; නීරෝගී අය අසනීප අයට වඩා බොහෝ වැඩි නිසා."}]},{"eyebrow":"විභාගෙදි ලකුණු නැති වෙන තැන්","title":"නිතර වෙන වැරදි","items":[{"tag":"නිතර වෙන වැරැද්ද","title":"P(A | B), P(B | A) සමඟ පටලවනවා","body":"P(ධන | රෝගය) = 0.95 කියන්නේ P(රෝගය | ධන) = 0.95 නෙවෙයි."},{"tag":"නිතර වෙන වැරැද්ද","title":"P(B) හි අත්තක් අමතක කරනවා","body":"P(B) ට B ට හැම මාර්ගයක්ම, A′ අතු ඇතුළුව, ඇතුළත් වෙන්න ඕන."}]},{"eyebrow":"තව ඉස්සරහට","title":"ප්‍රශ්න 30ක්: පහසු, මධ්‍යම, අමාරු","questions":[{"question":"බේස්ගේ ප්‍රමේයය: P(A | B) = ?","options":["P(A)P(B)","P(B | A)P(A)/P(B)","P(B | A)/P(A)"],"right":"හරි. බේස් මූලික කරුණු.","wrong":"තව ටිකක් හිතන්න. P(A ∩ B) පාවිච්චියෙන් කොන්දේසිය මාරු කරන්න."},{"question":"හරය P(B) හොයන්නේ…","options":["මුළු සම්භාවිතා නියමයෙන්","P(A) විතරක්","අඩු කිරීමෙන්"],"right":"හරි. බේස් මූලික කරුණු.","wrong":"තව ටිකක් හිතන්න. P(A ∩ B) පාවිච්චියෙන් කොන්දේසිය මාරු කරන්න."},{"question":"සාක්ෂියට පෙර P(A) හඳුන්වන්නේ…","options":["පශ්චාත්","පූර්ව","සම්භාව්‍යතාව"],"right":"හරි. බේස් මූලික කරුණු.","wrong":"තව ටිකක් හිතන්න. P(A ∩ B) පාවිච්චියෙන් කොන්දේසිය මාරු කරන්න."},{"question":"B සාක්ෂියට පසු P(A | B)…","options":["පූර්ව","ශුන්‍ය","පශ්චාත්"],"right":"හරි. බේස් මූලික කරුණු.","wrong":"තව ටිකක් හිතන්න. P(A ∩ B) පාවිච්චියෙන් කොන්දේසිය මාරු කරන්න."},{"question":"P(B | A) සාමාන්‍යයෙන් P(A | B) ට…","options":["සමානයි","සමාන නැහැ","දෙගුණයි"],"right":"හරි. බේස් මූලික කරුණු.","wrong":"තව ටිකක් හිතන්න. P(A ∩ B) පාවිච්චියෙන් කොන්දේසිය මාරු කරන්න."},{"question":"සමාන ඉඩකින් පෙට්ටි දෙකක්: 1 වන පෙට්ටියේ රතු 3, නිල් 1; 2 වන පෙට්ටියේ රතු 1, නිල් 3. රතු බෝලයක් ඇදෙයි. P(රතු)?","options":["1/2","3/4","1/4"],"right":"හරි. අත්තේ සම්භාවිතාව ÷ සාක්ෂියේ මුළු සම්භාවිතාව.","wrong":"තව ටිකක් හිතන්න. P(රතු) = ½·¾ + ½·¼."},{"question":"සමාන ඉඩකින් පෙට්ටි දෙකක්: 1 වන පෙට්ටියේ රතු 3, නිල් 1; 2 වන පෙට්ටියේ රතු 1, නිල් 3. රතු බෝලයක් ඇදෙයි. P(1 වන පෙට්ටිය | රතු)?","options":["1/2","3/8","3/4"],"right":"හරි. අත්තේ සම්භාවිතාව ÷ සාක්ෂියේ මුළු සම්භාවිතාව.","wrong":"තව ටිකක් හිතන්න. P(රතු) = ½·¾ + ½·¼."},{"question":"සමාන ඉඩකින් පෙට්ටි දෙකක්: 1 වන පෙට්ටියේ රතු 3, නිල් 1; 2 වන පෙට්ටියේ රතු 1, නිල් 3. රතු බෝලයක් ඇදෙයි. P(2 වන පෙට්ටිය | රතු)?","options":["1/2","1/8","1/4"],"right":"හරි. අත්තේ සම්භාවිතාව ÷ සාක්ෂියේ මුළු සම්භාවිතාව.","wrong":"තව ටිකක් හිතන්න. P(රතු) = ½·¾ + ½·¼."},{"question":"සමාන ඉඩකින් පෙට්ටි දෙකක්: 1 වන පෙට්ටියේ රතු 3, නිල් 1; 2 වන පෙට්ටියේ රතු 1, නිල් 3. රතු බෝලයක් ඇදෙයි. P(රතු ∩ 1 වන පෙට්ටිය)?","options":["3/8","3/4","1/2"],"right":"හරි. අත්තේ සම්භාවිතාව ÷ සාක්ෂියේ මුළු සම්භාවිතාව.","wrong":"තව ටිකක් හිතන්න. P(රතු) = ½·¾ + ½·¼."},{"question":"සමාන ඉඩකින් පෙට්ටි දෙකක්: 1 වන පෙට්ටියේ රතු 3, නිල් 1; 2 වන පෙට්ටියේ රතු 1, නිල් 3. රතු බෝලයක් ඇදෙයි. නිල් බෝලයක් ඇදුණොත් P(2 වන පෙට්ටිය | නිල්)?","options":["1/4","3/4","1/2"],"right":"හරි. අත්තේ සම්භාවිතාව ÷ සාක්ෂියේ මුළු සම්භාවිතාව.","wrong":"තව ටිකක් හිතන්න. P(රතු) = ½·¾ + ½·¼."},{"question":"A, B, C යන්ත්‍ර 50%, 30%, 20%; දෝෂ 1%, 2%, 3%. P(දෝෂ)?","options":["0.017","0.02","0.06"],"right":"හරි. හැම අත්තක්ම ගණනය කරලා හරයට එකතු කරන්න.","wrong":"තව ටිකක් හිතන්න. P(C | F) = 0.2·0.03/0.017."},{"question":"…P(A | දෝෂ)?","options":["0.5","0.01","0.294"],"right":"හරි. හැම අත්තක්ම ගණනය කරලා හරයට එකතු කරන්න.","wrong":"තව ටිකක් හිතන්න. P(C | F) = 0.2·0.03/0.017."},{"question":"…P(C | දෝෂ)?","options":["0.2","0.03","0.353"],"right":"හරි. හැම අත්තක්ම ගණනය කරලා හරයට එකතු කරන්න.","wrong":"තව ටිකක් හිතන්න. P(C | F) = 0.2·0.03/0.017."},{"question":"රෝගයක් 2% කට; පරීක්ෂණය 90% හඳුනාගනී, ව්‍යාජ ධන 5%. P(ධන)?","options":["0.067","0.95","0.018"],"right":"හරි. හැම අත්තක්ම ගණනය කරලා හරයට එකතු කරන්න.","wrong":"තව ටිකක් හිතන්න. P(C | F) = 0.2·0.03/0.017."},{"question":"…P(රෝගය | ධන)?","options":["0.9","0.269","0.02"],"right":"හරි. හැම අත්තක්ම ගණනය කරලා හරයට එකතු කරන්න.","wrong":"තව ටිකක් හිතන්න. P(C | F) = 0.2·0.03/0.017."},{"question":"P(A) = 0.3, P(B | A) = 0.8, P(B | A′) = 0.4. P(B)?","options":["1.2","0.24","0.52"],"right":"හරි. P(A | B) = P(A ∩ B)/P(B).","wrong":"තව ටිකක් හිතන්න. වෘක්ෂය අඳින්න."},{"question":"…P(A | B)?","options":["0.8","0.462","0.3"],"right":"හරි. P(A | B) = P(A ∩ B)/P(B).","wrong":"තව ටිකක් හිතන්න. වෘක්ෂය අඳින්න."},{"question":"…P(A | B′)?","options":["0.2","0.125","0.3"],"right":"හරි. P(A | B) = P(A ∩ B)/P(B).","wrong":"තව ටිකක් හිතන්න. වෘක්ෂය අඳින්න."},{"question":"4 විකල්ප ප්‍රශ්නයකට සිසුවෙක් 0.4 සම්භාවිතාවෙන් අනුමාන කරයි, නැත්නම් දනී. නිවැරදි උත්තරය. P(අනුමාන කළා)?","options":["0.143","0.4","0.25"],"right":"හරි. P(A | B) = P(A ∩ B)/P(B).","wrong":"තව ටිකක් හිතන්න. වෘක්ෂය අඳින්න."},{"question":"බේස් ගැටලුවල වෘක්ෂ සටහනක් උදව් වෙන්නේ…","options":["භාග වළක්වන්න","සාක්ෂියට හැම මාර්ගයක්ම හොයන්න","අනුමාන කරන්න"],"right":"හරි. P(A | B) = P(A ∩ B)/P(B).","wrong":"තව ටිකක් හිතන්න. වෘක්ෂය අඳින්න."},{"question":"ව්‍යාප්තිය 0.1% රෝගයකට පරීක්ෂණය: සංවේදීතාව 99%, ව්‍යාජ ධන 1%. P(රෝගය | ධන) ≈ ?","options":["0.99","0.090","0.5"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"…දෙවන ස්වාධීන ධන පරීක්ෂණයකට පසු P(රෝගය) ≈ ?","options":["0.907","0.99","0.18"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"පෙට්ටි තුනක් (සමාන ඉඩ): U1 සුදු 2 කළු 3, U2 සුදු 3 කළු 2, U3 සුදු 4 කළු 1. සුදු එකක් ඇදෙයි. P(U3 | සුදු)?","options":["1/3","4/5","4/9"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"සාධාරණ කාසියක් සහ P(H) = 3/4 කාසියක් අතරින් එකක්; හිස් දෙකක්. P(පක්ෂග්‍රාහී කාසිය)?","options":["9/13","3/4","1/2"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"P(B | A) = 1, P(A) = 0.2, P(B) = 0.5 නම් P(A | B) = ?","options":["0.4","0.2","1"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"සමසම්භාවී හේතු සමඟ බේස් අඩු වෙන්නේ…","options":["සමාන පශ්චාත්","ශුන්‍යයට","සම්භාව්‍යතා P(B | Aᵢ) සැසඳීමට"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"වැස්ස අනාවැකිය; P(වැස්ස) = 0.3. අනාවැකිය දෙපැත්තටම 80% නිවැරදියි. අනාවැකිය වැස්ස කියයි. P(වැස්ස)?","options":["0.8","0.632","0.3"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"හැම හේතුවකම පශ්චාත් සම්භාවිතාවල එකතුව…","options":["1","0","P(B)"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"B සාක්ෂිය හැම හේතුවක් යටතේම සමසම්භාවී නම් පශ්චාත් සමානයි…","options":["ශුන්‍යයට","1/2","පූර්වවලට"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."},{"question":"P(A | B) > P(A) කියන්නේ B, A …","options":["අඩු සම්භාවී කරයි","වැඩි සම්භාවී කරයි","අසම්භාව්‍ය කරයි"],"right":"හරි. වෘක්ෂයක් සමඟ පියවරෙන් පියවර බේස් යොදන්න.","wrong":"තව ටිකක් හිතන්න. මූලික අනුපාත උත්තරයට දැඩි ලෙස බලපානවා."}]},{"title":"ප්‍රධාන වචන","items":[{"word":"බේස්ගේ ප්‍රමේයය","meaning":"P(A | B) = P(B | A)P(A)/P(B)."},{"word":"පූර්ව","meaning":"සාක්ෂියට පෙර සම්භාවිතාව."},{"word":"පශ්චාත්","meaning":"සාක්ෂියට පසු සම්භාවිතාව."},{"word":"සංවේදීතාව","meaning":"P(ධන | රෝගය)."},{"word":"ව්‍යාජ ධන","meaning":"නීරෝගී කෙනෙකුට ධන ප්‍රතිඵලයක්."},{"word":"මූලික අනුපාතය","meaning":"කොන්දේසියක් කොච්චර පොදුද."}]},{"title":"මට පුළුවන්…","items":["බේස්ගේ ප්‍රමේයය ප්‍රකාශ කරලා සාධනය කරන්න","ප්‍රතිඵලයක් ඇති කළ වඩාත් සම්භාවී හේතුව හොයන්න","මූලික අනුපාත පාවිච්චි කරලා පරීක්ෂණ ප්‍රතිඵල අර්ථකථනය කරන්න"]},{"title":"මූලාශ්‍ර"}]}}