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"}, "functions": {}, "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

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

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

", "templateType": "anything", "name": "blue", "group": "Ungrouped variables", "definition": "random(6,7,11)"}, "total": {"description": "total number of balls in part c

", "templateType": "anything", "name": "total", "group": "Ungrouped variables", "definition": "red+blue+green"}}, "ungrouped_variables": ["red", "blue", "green", "total"], "parts": [{"marks": 0, "variableReplacementStrategy": "originalfirst", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "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?

\nEnter solution as a fraction. Remember to reduce any fractions into their simplest form.

\n[[0]]

", "scripts": {}, "showCorrectAnswer": true, "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "gaps": [{"marks": 0, "variableReplacementStrategy": "originalfirst", "useCustomName": false, "maxMarks": 0, "extendBaseMarkingAlgorithm": true, "displayType": "radiogroup", "matrix": [0, 0, "1", 0, 0], "showFeedbackIcon": true, "shuffleChoices": false, "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}}$

"], "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."], "scripts": {}, "showCorrectAnswer": true, "minMarks": 0, "customName": "", "type": "1_n_2", "customMarkingAlgorithm": "", "showCellAnswerState": true, "displayColumns": 0, "unitTests": [], "variableReplacements": []}], "sortAnswers": false, "unitTests": [], "variableReplacements": []}], "tags": [], "variable_groups": [], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}