// Numbas version: exam_results_page_options {"name": "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": [{"extensions": [], "parts": [{"customMarkingAlgorithm": "", "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "showPrecisionHint": false, "extendBaseMarkingAlgorithm": true, "precision": "2", "allowFractions": false, "mustBeReduced": false, "correctAnswerFraction": false, "precisionType": "dp", "mustBeReducedPC": 0, "precisionPartialCredit": 0, "scripts": {}, "prompt": "

What is the probabilty that both of these events occur?

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

What is the probabilty that neither of these events occur?

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

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

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

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

", "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "variableReplacements": [], "maxValue": "(1-{x})*{y}+(1-{y})*{x}", "minValue": "(1-{x})*{y}+(1-{y})*{x}", "unitTests": [], "strictPrecision": false, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": "2"}], "functions": {}, "name": "Simon's copy of Probability independent", "metadata": {"description": "

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "variable_groups": [], "ungrouped_variables": ["y", "thing", "x", "a1d", "a2", "a3", "a4", "a1", "a2d", "a3d", "a4d"], "variables": {"a3d": {"name": "a3d", "definition": "precround(1-a2,2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "y": {"name": "y", "definition": "random(0.01..0.99#0.01)", "description": "", "templateType": "randrange", "group": "Ungrouped variables"}, "a3": {"name": "a3", "definition": "1-a2", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a1": {"name": "a1", "definition": "x*y", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a2d": {"name": "a2d", "definition": "precround((1-x)*(1-y),2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a4d": {"name": "a4d", "definition": "precround((1-x)*y+(1-y)*x,2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a4": {"name": "a4", "definition": "(1-x)*y+(1-y)*x", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a1d": {"name": "a1d", "definition": "precround(x*y,2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "x": {"name": "x", "definition": "random(0.01..0.9#0.01)", "description": "", "templateType": "randrange", "group": "Ungrouped variables"}, "a2": {"name": "a2", "definition": "(1-x)*(1-y)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "thing": {"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'])", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "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.

", "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 {a4d}

\n

", "rulesets": {}, "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/"}]}