// Numbas version: exam_results_page_options {"name": "Probability of picking a particular colour ball from a bag", "extensions": [], "custom_part_types": [], "resources": [["question-resources/dice.svg", "/srv/numbas/media/question-resources/dice.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

For equally likely outcomes, you can calculate the probability of a particular event occurring by using the formula

\n

$\\text{Probability of an event} = \\displaystyle\\frac{\\text{number of favourable outcomes}}{\\text{total number of outcomes}}$.

\n

\n

We are told that the bag contains $\\var{red}$ red balls, $\\var{blue}$ blue balls and $\\var{green}$ green balls and that one ball is removed from the bag at random.

\n

The total number of balls in the bag before the chosen ball is removed is

\n

\$\\var{red}+\\var{blue}+\\var{green} = \\var{total}.\$

\n

As the ball is being removed randomly from the bag, there is an equal probability of selecting any one of the $\\var{total}$ balls.

\n

Therefore, the probability of the chosen ball being blue is

\n

\$P(\\text{blue}) = \\displaystyle\\frac{\\text{number of favourable outcomes}}{\\text{total number of outcomes}} = \\displaystyle\\frac{\\var{blue}}{\\var{total}} \$

", "variable_groups": [], "ungrouped_variables": ["red", "blue", "green", "total"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": "100"}, "type": "question", "statement": "", "preamble": {"js": "", "css": ""}, "tags": ["taxonomy"], "parts": [{"showFeedbackIcon": true, "marks": 0, "scripts": {}, "showCorrectAnswer": true, "prompt": "

A bag contains $\\var{red}$ red balls, $\\var{blue}$ blue balls and $\\var{green}$ green balls. One ball is removed from the bag at random. What is the probability that the chosen ball will be blue? Remember to reduce any fractions into their simplest form.

\n

[]

", "gaps": [{"choices": ["

$\\displaystyle\\frac{\\var{red+green}}{\\var{total}}$

", "

$\\displaystyle\\frac{\\var{blue}}{\\var{green+red}}$

", "

$\\displaystyle\\frac{\\var{blue}}{\\var{total}}$

", "

$\\displaystyle\\frac{1}{\\var{blue}}$

", "

$\\displaystyle\\frac{1}{\\var{total}}$

"], "maxMarks": 0, "scripts": {}, "minMarks": 0, "displayType": "radiogroup", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "shuffleChoices": false, "showFeedbackIcon": true, "marks": 0, "displayColumns": 0, "matrix": [0, 0, "1", 0, 0], "distractors": ["This is the probability of not picking a blue ball.", "Divide by the total number of outcomes, not the number of unfavourable outcomes.", "", "Divide the number of favourable outcomes by the total number of outcomes.", "There's more than one blue ball."], "variableReplacements": []}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "rulesets": {}, "variables": {"green": {"templateType": "anything", "definition": "random(4,8,10)", "description": "

number of green balls in part c.

", "group": "Ungrouped variables", "name": "green"}, "blue": {"templateType": "anything", "definition": "random(6,7,11)", "description": "

number of blue balls in part c

", "group": "Ungrouped variables", "name": "blue"}, "total": {"templateType": "anything", "definition": "red+blue+green", "description": "

total number of balls in part c

", "group": "Ungrouped variables", "name": "total"}, "red": {"templateType": "anything", "definition": "random(15,19)", "description": "

number of red balls in part c

", "group": "Ungrouped variables", "name": "red"}}, "metadata": {"description": "

A bag contains balls of three different colours. You're told how many there are of each, and asked the probability of picking a ball of a particular colour.

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Probability of picking a particular colour ball from a bag", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}