// Numbas version: exam_results_page_options {"name": "Simon'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": [{"variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

A student selects a card from a deck of 52 and rolls a dice once.

\n

rebelmaths

"}, "advice": "

The outcome of selecting the card is independent of (not effected by) the outcome of rolling the dice.

\n

If two events, $A$ and $B$, are independent then $P(A\\cap B)=P(A)\\times P(B)$.

\n

\n

(a)

\n
\n

Let $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}$.

\n

Therefore 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}$. 

\n

\n

(b)

\n

The probability that neither of these events occur is the probability of not drawing a $\\var{suit}$ mulitiplied by the probability of not rolling a number greater than $\\var{n}$

\n

\n

This can be written as

\n

$P(A^c \\cap B^c) =P(A^c) \\times P(B^c)= \\frac{3}{4} \\times \\frac{\\var{n}}{6} = \\frac{\\var{n}}{8}$

\n

\n

(c)

\n

The 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})=\\frac{\\var{9-n}}{12}$.

\n

\n

(d)

\n

The probability that at least one of these two events will occur is $1- P$(neither of the events occur)$= 1-\\frac{\\var{n}}{8} = \\frac{\\var{8-n}}{8}$   using your answer from (b)

", "ungrouped_variables": ["n", "suit"], "parts": [{"extendBaseMarkingAlgorithm": true, "allowFractions": false, "showCorrectAnswer": true, "precision": "3", "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "prompt": "

Calculate the probability that the card she picks is a $\\var{suit}$ and the number she rolls is greater than $\\var{n}$.

", "showPrecisionHint": true, "maxValue": "(1/4)*((6-n)/6)", "unitTests": [], "useCustomName": false, "variableReplacements": [], "mustBeReduced": false, "showFeedbackIcon": true, "strictPrecision": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "minValue": "(1/4)*((6-n)/6)", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "precisionPartialCredit": 0}, {"extendBaseMarkingAlgorithm": true, "allowFractions": false, "showCorrectAnswer": true, "precision": "3", "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "prompt": "

Calculate the probability that neither of these two events will occur.

", "showPrecisionHint": true, "maxValue": "(3/4)*(n/6)", "unitTests": [], "useCustomName": false, "variableReplacements": [], "mustBeReduced": false, "showFeedbackIcon": true, "strictPrecision": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "minValue": "(3/4)*(n/6)", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "precisionPartialCredit": 0}, {"extendBaseMarkingAlgorithm": true, "allowFractions": false, "showCorrectAnswer": true, "precision": "3", "correctAnswerFraction": false, "marks": "1", "type": "numberentry", "prompt": "

Calculate the probability that only one of these two events will occur.

", "showPrecisionHint": true, "maxValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)", "unitTests": [], "useCustomName": false, "variableReplacements": [], "mustBeReduced": false, "showFeedbackIcon": true, "strictPrecision": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "minValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "precisionPartialCredit": 0}, {"extendBaseMarkingAlgorithm": true, "allowFractions": false, "showCorrectAnswer": true, "precision": "3", "correctAnswerFraction": false, "marks": "1", "type": "numberentry", "prompt": "

What is the probability that at least one of these two events will occur?

", "showPrecisionHint": true, "maxValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6)", "unitTests": [], "useCustomName": false, "variableReplacements": [], "mustBeReduced": false, "showFeedbackIcon": true, "strictPrecision": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "minValue": "(1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6)", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "precisionPartialCredit": "0"}], "preamble": {"js": "", "css": ""}, "rulesets": {}, "variable_groups": [], "extensions": [], "tags": [], "functions": {}, "variables": {"n": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "description": "

number on dice is greater than n.

", "name": "n"}, "suit": {"definition": "random ('diamond','spade','heart','club')", "templateType": "anything", "group": "Ungrouped variables", "description": "

suit

", "name": "suit"}}, "name": "Simon's copy of Select a card and roll a dice", "statement": "

Please give your answers to 3 decimal places.

\n

A student selects one card at random from a pack of 52 playing cards and then rolls a dice once.

\n

Let event $A$ be that the card she picks is a $\\var{suit}$.

\n

Let event $B$ be that the number she rolls is greater than $\\var{n}$.

", "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}