// Numbas version: finer_feedback_settings {"name": "SA14 Probability - \"sample space\"", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "SA14 Probability - \"sample space\"", "tags": [], "metadata": {"description": "
Calculate probability of selecting coloured counters from a bag.
", "licence": "None specified"}, "statement": "A bag contains:
$\\var{srn}$ small, red tokens,
$\\var{sbn}$ small, blue tokens,
$\\var{brn}$ large, red tokens, and
$\\var{bbn}$ large, blue tokens.
A probability is a fraction. You can give your answer as a fraction, decimal or percentage as these are all equivalent.
The formula for probability is:
\\[ P(A) = \\frac{\\text{number of possibilities for A}}{\\text{number of total possible outcomes}} \\]
\nFor this question the total possible outcomes are $\\var{srn}+\\var{sbn}+\\var{brn}+\\var{bbn} = \\var{total}$.
Therefore
\\[ P(\\text{A large red token}) = \\frac{\\var{brn}}{\\var{total}} = \\var[fractionnumbers]{brn/total}\\]
\nFor this question we need to know the total number of small tokens, i.e. $\\var{srn}+\\var{sbn} = \\var{srn+sbn}$.
Therefore
\\[ P(\\text{A small token}) = \\frac{\\var{srn+sbn}}{\\var{total}} = \\var[fractionnumbers]{(srn+sbn)/total}\\]
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"srn": {"name": "srn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "brn": {"name": "brn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "sbn": {"name": "sbn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "bbn": {"name": "bbn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "brn+bbn+srn+sbn", "description": "", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "precround(brn/total,2)", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "precround((srn+sbn)/total,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["srn", "brn", "sbn", "bbn", "total", "ans1", "ans2"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "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": "You take a token at random.
What is the probability that it is a large, red token?
Give your answer as a fraction, or a decimal correct to 2dp.
You take a token at random.
What is the probability that it is a small token?
Give your answer as a fraction, or a decimal correct to 2dp.