// Numbas version: exam_results_page_options {"name": "Ioannis's copy of Lois's copy of Single ball from box", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "showQuestionGroupNames": false, "preamble": {"css": "", "js": ""}, "tags": ["probability", "Probability", "probability of single event"], "functions": {}, "parts": [{"showCorrectAnswer": true, "scripts": {}, "gaps": [{"showCorrectAnswer": true, "scripts": {}, "maxValue": "{answernum}/({m}+{n})", "correctAnswerFraction": true, "minValue": "{answernum}/({m}+{n})", "showPrecisionHint": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "marks": 1, "allowFractions": true, "variableReplacements": []}], "type": "gapfill", "prompt": "

What is the probability that the ball is $\\var{colour}$?

\n

Give your answer as a fraction.

\n

[[0]]

", "variableReplacementStrategy": "originalfirst", "marks": 0, "variableReplacements": []}], "ungrouped_variables": ["m", "n", "colour", "AnswerNum"], "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "pickQuestions": 0, "questions": []}], "variables": {"AnswerNum": {"definition": "if(colour = 'white',m,n)", "templateType": "anything", "name": "AnswerNum", "group": "Ungrouped variables", "description": ""}, "m": {"definition": "random(3..7)", "templateType": "anything", "name": "m", "group": "Ungrouped variables", "description": "

The number of white balls in the box.

"}, "colour": {"definition": "random('black', 'white')", "templateType": "anything", "name": "colour", "group": "Ungrouped variables", "description": "

The colour asked for in the question.

"}, "n": {"definition": "random(3..13)", "templateType": "anything", "name": "n", "group": "Ungrouped variables", "description": "

The number of black balls in the box.

"}}, "rulesets": {}, "name": "Ioannis's copy of Lois's copy of Single ball from box", "statement": "

A box contains $\\var{m} $ white balls and $\\var{n} $ black balls. A ball is drawn out of the box at random. 

", "type": "question", "variable_groups": [], "advice": "

For any event $A$ 

\n

Probability of $A$ = $\\frac{\\text{Number of outcomes for which A happens}} {\\text{Total number of outcomes (sample space)}}$.

\n

\n

Let $A$ represent the outcome that the ball selected is $\\var{colour}$, then $P(A) =\\frac{\\var{answernum}}{\\var{m}+\\var{n}}$.

\n

See https://www.mathsisfun.com/data/probability.html for more information about the topic of probability.

\n

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

A box contains $m$ white balls and $n$ black balls. A ball is drawn out of the box at random. What is the probability that the ball is black/white?

"}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}