// Numbas version: exam_results_page_options {"name": "Probability: from a Venn diagram", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Probability: from a Venn diagram", "tags": [], "metadata": {"description": "

Calculating probability from a given Venn diagram.  Includes complement, union, intersection.

", "licence": "None specified"}, "statement": "

{geogebra_applet('https://www.geogebra.org/m/rudd6jns',[a:{neither}, b:{A}, c:{both},d:{B}])}

", "advice": "

It is important to remember that the sum of all independent probabilities is $1$, i.e. the total for the rectangle on the Venn diagram is $1$.  Also remember that probabilities must take a value between $0$ and $1$, where $0$ is impossible and $1$ is certain.

\n

{geogebra_applet('https://www.geogebra.org/m/rudd6jns',[a:{neither}, b:{A}, c:{both},d:{B}])}

\n

a) $P(A')$ is the probability of 'not $A$', i.e the probability that $A$ doesn't happen.

\n

You can use the Venn diagram to verify the formula $P(A') = 1 - P(A)$.

\n

Therefore $P(A') = 1 - \\var{A} = \\var{1-A}$.

\n

\n

b) $P(A \\cup B)$ is the probability of \"$A$ union $B$\" i.e. the probability of either $A$, or $B$, or both.

You can use the Venn diagram to verify the formula $P(A \\cup B) = P(A) + P(B) - P(A \\cap B)$.

Therefore $P(A \\cup B) = P(A) + P(B) - P(A \\cap B) = \\var{A} + \\var{B} - \\var{both} = \\var{A+B-both}$.

\n

\n

c) $P(A \\cap B')$ is the probability of \"$A$ intersection not $B$\" i.e. the probability of both $A$ and $B'$, or 'just $A$'.

\n

You can use the Venn diagram to confirm that $P(A \\cap B') = P(A) - P(A \\cap B) = \\var{A} - \\var{both} = \\var{A-both}$.

\n



\n

\n

", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "random(0.01 .. 0.99#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "random(0.01 .. 0.99#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "justA": {"name": "justA", "group": "Ungrouped variables", "definition": "A-both", "description": "", "templateType": "anything", "can_override": false}, "justB": {"name": "justB", "group": "Ungrouped variables", "definition": "B-both", "description": "", "templateType": "anything", "can_override": false}, "both": {"name": "both", "group": "Ungrouped variables", "definition": "A+B-AuB", "description": "", "templateType": "anything", "can_override": false}, "AuB": {"name": "AuB", "group": "Ungrouped variables", "definition": "1-neither", "description": "", "templateType": "anything", "can_override": false}, "neither": {"name": "neither", "group": "Ungrouped variables", "definition": "1-random(max(A,B)..1 #0.01)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "both>0", "maxRuns": 100}, "ungrouped_variables": ["A", "B", "justA", "justB", "both", "AuB", "neither"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate $P(A')$

", "minValue": "1-{A}", "maxValue": "1-{A}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate $P(A\\cup B)$

", "minValue": "{AuB}", "maxValue": "{AuB}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate $P(A \\cap B')$

", "minValue": "{justA}", "maxValue": "{justA}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}