$\\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}}$

"], "shuffleChoices": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "marks": 0, "showFeedbackIcon": 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[[0]]

"}], "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\nWe 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.

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

\n\\[\\var{red}+\\var{blue}+\\var{green} = \\var{total}.\\]

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

\nTherefore, 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}}

\\]

number of red balls in part c

", "definition": "random(15,19)", "name": "red", "group": "Ungrouped variables"}, "green": {"templateType": "anything", "description": "number of green balls in part c.

", "definition": "random(4,8,10)", "name": "green", "group": "Ungrouped variables"}, "total": {"templateType": "anything", "description": "total number of balls in part c

", "definition": "red+blue+green", "name": "total", "group": "Ungrouped variables"}, "blue": {"templateType": "anything", "description": "number of blue balls in part c

", "definition": "random(6,7,11)", "name": "blue", "group": "Ungrouped variables"}}, "rulesets": {}, "extensions": [], "functions": {}, "ungrouped_variables": ["red", "blue", "green", "total"], "statement": "", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "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.

"}, "variablesTest": {"condition": "", "maxRuns": "100"}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}