// Numbas version: finer_feedback_settings {"name": "Catherine's copy of Julie's copy of Select a card and roll a dice", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "
Please give your answers to 3 decimal places.
\nA student selects one card at random from a pack of 52 playing cards and then rolls a dice once.
\nLet event $A$ be that the card she picks is a $\\var{suit}$.
\nLet event $B$ be that the number she rolls is greater than $\\var{n}$.
", "name": "Catherine's copy of Julie's copy of Select a card and roll a dice", "rulesets": {}, "metadata": {"description": "A student selects a card from a deck of 52 and rolls a dice once.
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "variable_groups": [], "variables": {"suit": {"description": "suit
", "name": "suit", "definition": "random ('diamond','spade','heart','club')", "templateType": "anything", "group": "Ungrouped variables"}, "n": {"description": "number on dice is greater than n.
", "name": "n", "definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables"}}, "preamble": {"js": "", "css": ""}, "advice": "The outcome of selecting the card is independent of (not effected by) the outcome of rolling the dice.
\nIf two events, $A$ and $B$, are independent then $P(A\\cap B)=P(A)\\times P(B)$.
\nPart a)
\n\nLet $A$ represent the event that a $\\var{suit}$ is selected and let $B$ represent the event that a number greater than $\\var{n}$ is rolled.
\n$P(A)$ is $\\frac{13}{52}=\\frac{1}{4}$ and $P(B)$ is $\\frac{\\var{6-n}}{6}$.
\nTherefore the probability of drawing a $\\var{suit}$ and rolling a number greater than $\\var{n}$ is $ P(A) \\times P(B)=\\frac{1}{4} \\times \\frac{\\var{6-n}}{6}$.
\nPart b)
\n\nThe probability that neither of these events occur is the probability of not drawing a $\\var{suit}$ which is $P(A^c)=\\frac{3}{4}$ mulitiplied by the probability of not rolling a number greater than $\\var{n}$ which is $P(B^c)=\\frac{\\var{n}}{6}$ .
\nPart c)
\nThe probability that only one of these events occur is $P(A ^c\\cap B)+P(A \\cap B^c)=(\\frac{3}{4} \\times \\frac{\\var{6-n}}{6})+(\\frac{1}{4} \\times \\frac{\\var{n}}{6})$.
\nPart d)
\nThe probability that at least one of these two events will occur is $1- P$(neither of the events occur)$=1-(P(A^c)\\times P(B^c))= 1-(\\frac{3}{4}\\times \\frac{\\var{n}}{6})$
", "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "parts": [{"type": "numberentry", "maxValue": "(1/4)*((6-n)/6)", "precisionMessage": "You have not given your answer to the correct precision.", "marks": 1, "allowFractions": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "minValue": "(1/4)*((6-n)/6)", "strictPrecision": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "prompt": "Calculate the probability that the card she picks is a $\\var{suit}$ and the number she rolls is greater than $\\var{n}$.
", "precision": "3", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "scripts": {}, "showPrecisionHint": false, "precisionType": "dp"}, {"type": "numberentry", "maxValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)", "precisionMessage": "You have not given your answer to the correct precision.", "marks": 1, "allowFractions": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "minValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)", "strictPrecision": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "prompt": "Calculate the probability that only one of these two events will occur.
", "precision": "3", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "scripts": {}, "showPrecisionHint": false, "precisionType": "dp"}, {"type": "numberentry", "maxValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6)", "precisionMessage": "You have not given your answer to the correct precision.", "marks": 1, "allowFractions": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "minValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6)", "strictPrecision": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": "0", "prompt": "What is the probability that at least one of these two events will occur?
", "precision": "3", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "scripts": {}, "showPrecisionHint": false, "precisionType": "dp"}], "ungrouped_variables": ["n", "suit"], "extensions": [], "type": "question", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}