// Numbas version: exam_results_page_options {"name": "Simon's copy of Simon's copy of Probability independent", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "parts": [{"strictPrecision": false, "useCustomName": false, "precisionType": "dp", "extendBaseMarkingAlgorithm": true, "allowFractions": false, "unitTests": [], "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precision": "2", "customName": "", "showPrecisionHint": false, "precisionPartialCredit": 0, "marks": "2", "customMarkingAlgorithm": "", "minValue": "{x}*{y}", "variableReplacements": [], "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "prompt": "

What is the probability that both of these events occur?

", "showFeedbackIcon": true, "mustBeReduced": false, "correctAnswerFraction": false, "maxValue": "{x}*{y}"}, {"strictPrecision": false, "useCustomName": false, "precisionType": "dp", "extendBaseMarkingAlgorithm": true, "allowFractions": false, "unitTests": [], "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precision": "2", "customName": "", "showPrecisionHint": false, "precisionPartialCredit": 0, "marks": "2", "customMarkingAlgorithm": "", "minValue": "(1-{x})*(1-{y})", "variableReplacements": [], "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "prompt": "

What is the probability that neither of these events occur?

", "showFeedbackIcon": true, "mustBeReduced": false, "correctAnswerFraction": false, "maxValue": "(1-{x})*(1-{y})"}, {"strictPrecision": false, "useCustomName": false, "precisionType": "dp", "extendBaseMarkingAlgorithm": true, "allowFractions": false, "unitTests": [], "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precision": "2", "customName": "", "showPrecisionHint": false, "precisionPartialCredit": "0", "marks": "2", "customMarkingAlgorithm": "", "minValue": "1-(1-{x})*(1-{y})", "variableReplacements": [], "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "prompt": "

What is the probability that at least one of these two events will occur?

", "showFeedbackIcon": true, "mustBeReduced": false, "correctAnswerFraction": false, "maxValue": "1-(1-{x})*(1-{y})"}, {"strictPrecision": false, "useCustomName": false, "precisionType": "dp", "extendBaseMarkingAlgorithm": true, "allowFractions": false, "unitTests": [], "scripts": {}, "showCorrectAnswer": true, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst", "precision": "2", "customName": "", "showPrecisionHint": false, "precisionPartialCredit": 0, "marks": "2", "customMarkingAlgorithm": "", "minValue": "(1-{x})*{y}+(1-{y})*{x}", "variableReplacements": [], "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "prompt": "

What is the probability that only one of the two events occur?

", "showFeedbackIcon": true, "mustBeReduced": false, "correctAnswerFraction": false, "maxValue": "(1-{x})*{y}+(1-{y})*{x}"}], "ungrouped_variables": ["y", "thing", "x", "a1d", "a2", "a3", "a4", "a1", "a2d", "a3d", "a4d"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

rebelmaths

"}, "name": "Simon's copy of Simon's copy of Probability independent", "rulesets": {}, "statement": "

The probability that {thing[0]} is {x}, while the probability that {thing[1]} is {y}. Assume that these two events are independent. Give all answers correct to two decimal places.

", "variable_groups": [], "advice": "

Let

\n

A = {thing[0]}

\n

and

\n

B = {thing[1]}

\n

\n

(a)

\n

Since the events are independent, we can calculate

\n

P(A and B) = P(A) $\\times$ P(B) = $\\var{x} \\times \\var{y}=\\var{a1}$

\n

Next round to 2 decimal places to get {precround(a1d,2)}

\n

\n

(b)

\n

P(neither A nor B)=P(not A AND not B)= P(not A) $\\times$ P(not B)$=(1-\\var{x})\\times (1-\\var{y})=\\var{a2}$

\n

Next round to 2 decimal places to get {a2d}

\n

\n

(c)

\n

P(at least one of A or B occurs) = 1 -  P(neither A nor B) = 1 - {a2d} = {a3d}         using the answer from part (b)

\n

\n

(d)

\n

P(only one of A or B occurs) = P(A occurs and B doesn't OR B occurs and A doesn't)

\n

= P(A and not B) + P(B and not A)

\n

= $ \\var{x} \\times (1-\\var{y}) + \\var{y} \\times (1-\\var{x})=\\var{a4}$

\n

Next round to 2 decimal places to get {precround(a4d,2)}

\n

", "functions": {}, "variables": {"a3": {"group": "Ungrouped variables", "name": "a3", "definition": "1-a2", "templateType": "anything", "description": ""}, "x": {"group": "Ungrouped variables", "name": "x", "definition": "random(0.01 .. 0.9#0.01)", "templateType": "randrange", "description": ""}, "thing": {"group": "Ungrouped variables", "name": "thing", "definition": "random(['there will be a change in government in Ireland next year ', 'Ireland will win the rugby world cup next year'],['it will rain in Qumar on any given day','it will rain in Timbucktoo on any given day'],['shares in the Bank of Lapland will rise on any given day','shares in the Bank of Never Never Land will rise on any given day'])", "templateType": "anything", "description": ""}, "a4": {"group": "Ungrouped variables", "name": "a4", "definition": "(1-x)*y+(1-y)*x", "templateType": "anything", "description": ""}, "a3d": {"group": "Ungrouped variables", "name": "a3d", "definition": "precround(1-a2,2)", "templateType": "anything", "description": ""}, "a2d": {"group": "Ungrouped variables", "name": "a2d", "definition": "precround((1-x)*(1-y),2)", "templateType": "anything", "description": ""}, "a2": {"group": "Ungrouped variables", "name": "a2", "definition": "(1-x)*(1-y)", "templateType": "anything", "description": ""}, "a1": {"group": "Ungrouped variables", "name": "a1", "definition": "x*y", "templateType": "anything", "description": ""}, "y": {"group": "Ungrouped variables", "name": "y", "definition": "random(0.01 .. 0.99#0.01)", "templateType": "randrange", "description": ""}, "a1d": {"group": "Ungrouped variables", "name": "a1d", "definition": "precround(x*y,2)", "templateType": "anything", "description": ""}, "a4d": {"group": "Ungrouped variables", "name": "a4d", "definition": "precround((1-x)*y+(1-y)*x,2)", "templateType": "anything", "description": ""}}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}