// Numbas version: finer_feedback_settings {"name": "Probability Two-Way Table Brunel", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Probability Two-Way Table Brunel", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

There are $\\simplify{{n}}$ students on the Maths Foundation Programme at Brunel. Students will then either progress onto the Maths, Computer Science or Economics Department once they complete their Foundation Year. The table below shows the numbers for each:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
MathsComputer ScienceEconomics
Male$\\simplify{{mm}}$$\\simplify{{mc}}$$\\simplify{{me}}$
Female$\\simplify{{fm}}$$\\simplify{{fc}}$$\\simplify{{fe}}$
\n

\n

\n

", "advice": "

(a)

\n

There are $\\simplify{{mc}}$ students that are Male and going to Computer Science. As a probability over the total number of students gives $\\simplify[fractionnumbers]{{mc}/{n}}$

\n

\n

(b)

\n

There are $\\simplify{{totalf}}$ female students, and out of these there are $\\simplify{{fe}}$ that are going to Economics. As a probability this gives $\\simplify[fractionnumbers]{{fe}/{totalf}}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"mm": {"name": "mm", "group": "Ungrouped variables", "definition": "random(5..10)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "mm+fm+mc+fc+me+fe", "description": "", "templateType": "anything", "can_override": false}, "fm": {"name": "fm", "group": "Ungrouped variables", "definition": "random(5..10)", "description": "", "templateType": "anything", "can_override": false}, "mc": {"name": "mc", "group": "Ungrouped variables", "definition": "random(30..40)", "description": "", "templateType": "anything", "can_override": false}, "me": {"name": "me", "group": "Ungrouped variables", "definition": "random(20..30)", "description": "", "templateType": "anything", "can_override": false}, "fc": {"name": "fc", "group": "Ungrouped variables", "definition": "random(30..40)", "description": "", "templateType": "anything", "can_override": false}, "fe": {"name": "fe", "group": "Ungrouped variables", "definition": "random(20..30)", "description": "", "templateType": "anything", "can_override": false}, "totalm": {"name": "totalm", "group": "Ungrouped variables", "definition": "mm+mc+me", "description": "", "templateType": "anything", "can_override": false}, "totalf": {"name": "totalf", "group": "Ungrouped variables", "definition": "fm+fc+fe", "description": "", "templateType": "anything", "can_override": false}, "totalma": {"name": "totalma", "group": "Ungrouped variables", "definition": "mm+fm", "description": "", "templateType": "anything", "can_override": false}, "totalc": {"name": "totalc", "group": "Ungrouped variables", "definition": "mc+fc", "description": "", "templateType": "anything", "can_override": false}, "totale": {"name": "totale", "group": "Ungrouped variables", "definition": "me+fe", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "mm", "fm", "mc", "fc", "me", "fe", "totalm", "totalf", "totalma", "totalc", "totale"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A student is selected at random, what is the probability of them being Male and going to Computer Science?

\n

Ans = [[0]]

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

A Female student is selected at random, what is the probability she is going to Economics?

\n

Ans = [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "fe", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{fe}/{totalf}", "maxValue": "{fe}/{totalf}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": "50", "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Chris Knapp", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14987/"}], "resources": []}]}], "contributors": [{"name": "Chris Knapp", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14987/"}]}