// Numbas version: exam_results_page_options {"name": "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": [{"name": "Select a card and roll a dice", "tags": ["probability", "Probability", "rebel", "REBEL", "Rebel", "rebelmaths"], "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "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}$.

", "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

Part 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

Part b)

\n

\n

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

\n

Part 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})$.

\n

Part d)

\n

The 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})$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "

number on dice is greater than n.

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

suit

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "suit"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

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

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

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

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

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

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

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

", "minValue": "((1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6))-0.001", "maxValue": "((1/4)*(n/6)+(3/4)*((6-n)/6)+(1/4)*((6-n)/6))+0.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": "0", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Patricia Cogan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3359/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Patricia Cogan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3359/"}]}