// Numbas version: exam_results_page_options {"name": "Conditional Probability - Venn Diagrams", "extensions": ["eukleides", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Conditional Probability - Venn Diagrams", "extensions": ["eukleides"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "tags": ["category: statistics", "skill: 335, Venn Diagrams (conditional prob.)"], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"groups": {"name": "groups", "group": "Ungrouped variables", "definition": "[\n [25,30,10,35],\n [20,40,25,15],\n [15,50,20,15],\n [20,35,15,30],\n [10,30,15,45]\n]", "description": "", "templateType": "anything"}, "group": {"name": "group", "group": "Ungrouped variables", "definition": "random(groups)", "description": "", "templateType": "anything"}, "justA": {"name": "justA", "group": "Ungrouped variables", "definition": "group[0]", "description": "", "templateType": "anything"}, "justB": {"name": "justB", "group": "Ungrouped variables", "definition": "group[1]", "description": "", "templateType": "anything"}, "both": {"name": "both", "group": "Ungrouped variables", "definition": "group[2]", "description": "", "templateType": "anything"}, "neither": {"name": "neither", "group": "Ungrouped variables", "definition": "group[3]", "description": "", "templateType": "anything"}, "diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "eukleides(\"A Venn diagram with {justA} in just Mathematics, {justB} in just Physics, {both} in both, and {neither} in neither\",\n[\ncircle(point(0,0),2) color1 filled opacity(0.5),\npoint(-1,2) label(\"Mathematics\",deg(180)),\ncircle(point(3,0),2) color2 filled opacity(0.5),\npoint(4,2) label(\"Physics\",deg(0)),\npoint(0,0) label(justA,deg(180)),\npoint(3,0) label(justB,deg(0)),\npoint(1.5,0) label(both,0),\npoint(6,0) label(neither)\n],\n[\"justA\":justA,\"justB\":justB,\"both\":both,\"neither\":neither]\n)", "description": "", "templateType": "anything"}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "both/(both+justB)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["groups", "group", "justA", "justB", "both", "neither", "diagram", "p"], "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": "

The percentage of students on a course with one, both or neither of A-level Mathematics and A-level Physics is shown by the diagram below.

\n

{max_width(30,diagram)}

\n

If a randomly chosen student has A-level Physics, what is the probability he/she also has A-level Mathematics?

", "minValue": "p", "maxValue": "p", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}