// Numbas version: exam_results_page_options {"name": "Blathnaid's copy of Roll a pair of dice - find probability at least one die shows a given number.", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "extensions": ["stats"], "type": "question", "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"number": {"description": "", "definition": "random(1..6)", "name": "number", "group": "Ungrouped variables", "templateType": "anything"}}, "metadata": {"description": "

Rolling a pair of dice. Find probability that at least one die shows a given number.

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "tags": ["checked2015", "dice", "die", "elementary probability", "events", "independence", "independent events", "Probability", "probability", "probability dice", "statistics", "tested1"], "advice": "\n \n \n

Let $A$ be the event that first dice shows a $\\var{number}$ $\\Rightarrow P(A)=\\frac{1}{6}$.

\n \n \n \n

Let $B$ be the event that second dice shows a $\\var{number}$ $\\Rightarrow P(B)=\\frac{1}{6}$.

\n \n \n \n

$A$ and $B$ are independent events so $P(A\\cap B) = P(A)\\times P(B)$.

\n \n \n \n

We want the probability $P(A \\cup B)$ of either $A$ or $B$ showing $\\var{number}$ and

\n \n \n \n

\\[\\begin{eqnarray*}\n \n P(A \\cup B) &=& P(A)+P(B)-P(A \\cap B)\\\\\n \n &=& P(A)+P(B)-P(A)P(B)\\\\\n \n &=&\\frac{1}{6}+ \\frac{1}{6}-\\frac{1}{36}\\\\\n \n &=& \\frac{11}{36}\n \n \\end{eqnarray*}\n \n \\]

\n \n \n ", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "name": "Blathnaid's copy of Roll a pair of dice - find probability at least one die shows a given number.", "statement": "

Two fair six-sided dice are rolled.

", "functions": {}, "ungrouped_variables": ["number"], "parts": [{"marks": 0, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "customMarkingAlgorithm": "", "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "gaps": [{"marks": 1, "vsetRange": [0, 1], "checkVariableNames": false, "unitTests": [], "checkingType": "absdiff", "checkingAccuracy": 0.001, "showFeedbackIcon": true, "expectedVariableNames": [], "musthave": {"partialCredit": 0, "message": "

Input as a fraction.

", "strings": ["/", 11, 36], "showStrings": false}, "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "notallowed": {"partialCredit": 0, "message": "

Your answer has to be a fraction and not a decimal.

", "strings": ["."], "showStrings": false}, "answerSimplification": "std, fractionNumbers", "answer": "11/36", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "showCorrectAnswer": true, "scripts": {}, "vsetRangePoints": 5, "variableReplacements": [], "showPreview": true}], "prompt": "

What is the probability of at least one die showing a $\\var{number}$?

\n

Probability = [[0]]

\n

Enter your answer as a fraction and not a decimal.

", "variableReplacements": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}