// Numbas version: exam_results_page_options {"name": "CMPU2012-Probability", "metadata": {"description": "

Calculations involving elementary probability, and several questions designed to draw out misconceptions to do with probability.

", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], []], "questions": [{"name": "Calculate probability of either of two events occurring based on frequency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Peter Chapman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/210/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}], "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

Out of $\\var{ptotal}$ people, $\\var{p1}$ play Go, $\\var{p2}$ play Chess, $\\var{p3}$ play both, and $\\var{p4}$ play neither.

\n

", "tags": [], "metadata": {"description": "

Example showing how to calculate the probability of A or B using the law $p(A \\;\\textrm{or}\\; B)=p(A)+p(B)-p(A\\;\\textrm{and}\\;B)$. 

\n

Easily adapted to other applications.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"customMarkingAlgorithm": "", "marks": "1.5", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "useCustomName": false, "failureRate": 1, "vsetRange": [0, 1], "scripts": {}, "showFeedbackIcon": true, "vsetRangePoints": 5, "answer": "{ans1}", "showPreview": true, "customName": "", "checkVariableNames": false, "unitTests": [], "type": "jme", "prompt": "

Calculate the probability that a person selected at random plays Go. Write your answer as a fraction.

", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "valuegenerators": []}, {"customMarkingAlgorithm": "", "marks": "3", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "useCustomName": false, "failureRate": 1, "vsetRange": [0, 1], "scripts": {}, "showFeedbackIcon": true, "vsetRangePoints": 5, "answer": "{ans2}", "showPreview": true, "customName": "", "checkVariableNames": false, "unitTests": [], "type": "jme", "prompt": "

Calculate the probability that a randomly selected person plays Chess or Go. Give your answer as a fraction.

", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "valuegenerators": []}, {"customMarkingAlgorithm": "", "marks": "4.5", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "useCustomName": false, "failureRate": 1, "vsetRange": [0, 1], "scripts": {}, "showFeedbackIcon": true, "vsetRangePoints": 5, "answer": "{ans3}", "showPreview": true, "customName": "", "checkVariableNames": false, "unitTests": [], "type": "jme", "prompt": "

Calculate the probability that a randomly selected person plays Chess but not Go.

", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "valuegenerators": []}], "ungrouped_variables": ["p1", "p3", "p2", "p4", "ptotal", "ans1", "ans2", "ans3"], "advice": "", "functions": {}, "variables": {"p4": {"description": "", "templateType": "anything", "definition": "random(10..40)", "name": "p4", "group": "Ungrouped variables"}, "ptotal": {"description": "", "templateType": "anything", "definition": "p1+p2-p3+p4", "name": "ptotal", "group": "Ungrouped variables"}, "p1": {"description": "", "templateType": "anything", "definition": "random(40..70)", "name": "p1", "group": "Ungrouped variables"}, "p2": {"description": "", "templateType": "anything", "definition": "random(30..50)", "name": "p2", "group": "Ungrouped variables"}, "p3": {"description": "", "templateType": "anything", "definition": "random(10..25)", "name": "p3", "group": "Ungrouped variables"}, "ans2": {"description": "", "templateType": "anything", "definition": "1-(p4/ptotal)", "name": "ans2", "group": "Ungrouped variables"}, "ans3": {"description": "", "templateType": "anything", "definition": "(p2-p3)/ptotal", "name": "ans3", "group": "Ungrouped variables"}, "ans1": {"description": "", "templateType": "anything", "definition": "p1/ptotal", "name": "ans1", "group": "Ungrouped variables"}}, "variable_groups": [], "preamble": {"css": "", "js": ""}}, {"name": "Probability independent 2 events", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["y", "thing", "x", "a1d", "a2", "a3", "a4", "a1", "a2d", "a3d", "a4d"], "tags": ["rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

(a) P({thing[0]})xP({thing[1]})={x}x{y}={a1}

\n

Next round to 2 decimal places to get {a1d}

\n

(b) P(not - {thing[0]})xP(not - {thing[1]})$=(1-\\var{x})\\times (1-\\var{y})=\\var{a2}$

\n

Next round to 2 decimal places to get {a2d}

\n

(c) 1- (answer to part (b))=1-{a2d}={a3d}

\n

(d) ( (1-{x})x {y})+( (1-{y})x {x})={a4}

\n

Next round to 2 decimal places to get {a4d}

\n

", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

What is the probabilty that both of these events occur?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "showPrecisionHint": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": "2", "maxValue": "{x}*{y}", "minValue": "{x}*{y}", "type": "numberentry"}, {"precisionType": "dp", "prompt": "

What is the probabilty that neither of these events occur?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "showPrecisionHint": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": "2", "maxValue": "(1-{x})*(1-{y})", "minValue": "(1-{x})*(1-{y})", "type": "numberentry"}, {"precisionType": "dp", "prompt": "

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

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "showPrecisionHint": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "0", "scripts": {}, "marks": "2", "maxValue": "1-(1-{x})*(1-{y})", "minValue": "1-(1-{x})*(1-{y})", "type": "numberentry"}, {"precisionType": "dp", "prompt": "

What is the probabilty that only one of the two events occur?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "showPrecisionHint": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": "2", "maxValue": "(1-{x})*{y}+(1-{y})*{x}", "minValue": "(1-{x})*{y}+(1-{y})*{x}", "type": "numberentry"}], "statement": "

The probability that {thing[0]} is {x}, while the probability that {thing[1]} is {y}. Assume that these two events are independent. Give all answers correct to two decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a4d": {"definition": "precround((1-x)*y+(1-y)*x,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a4d", "description": ""}, "a1d": {"definition": "precround(x*y,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1d", "description": ""}, "a1": {"definition": "x*y", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "thing": {"definition": "random(['there will be a change in government in Ireland next year ', 'Ireland will win the rugby world cup next year'],['it will rain in Qumar on any given day','it will rain in Timbucktoo on any given day'],['shares in the Bank of Lapland will rise on any given day','shares in the Bank of Never Never Land will rise on any given day'])", "templateType": "anything", "group": "Ungrouped variables", "name": "thing", "description": ""}, "a3": {"definition": "1-a2", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "a2": {"definition": "(1-x)*(1-y)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "a2d": {"definition": "precround((1-x)*(1-y),2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2d", "description": ""}, "a4": {"definition": "(1-x)*y+(1-y)*x", "templateType": "anything", "group": "Ungrouped variables", "name": "a4", "description": ""}, "a3d": {"definition": "precround(1-a2,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3d", "description": ""}, "y": {"definition": "random(0.01..0.99#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "y", "description": ""}, "x": {"definition": "random(0.01..0.9#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "x", "description": ""}}, "metadata": {"description": "

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "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}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"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/"}], "preamble": {"css": "", "js": ""}, "statement": "

Two fair six-sided dice are rolled.

", "functions": {}, "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 ", "ungrouped_variables": ["number"], "type": "question", "parts": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "marks": 0, "customMarkingAlgorithm": "", "unitTests": [], "sortAnswers": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"checkingAccuracy": 0.001, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "scripts": {}, "customMarkingAlgorithm": "", "checkVariableNames": false, "answerSimplification": "std, fractionNumbers", "notallowed": {"strings": ["."], "message": "

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

", "showStrings": false, "partialCredit": 0}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "expectedVariableNames": [], "checkingType": "absdiff", "showFeedbackIcon": true, "type": "jme", "vsetRangePoints": 5, "failureRate": 1, "marks": 1, "unitTests": [], "showPreview": true, "vsetRange": [0, 1], "musthave": {"strings": ["/", 11, 36], "message": "

Input as a fraction.

", "showStrings": false, "partialCredit": 0}, "answer": "11/36"}], "extendBaseMarkingAlgorithm": 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.

"}], "variable_groups": [], "variables": {"number": {"definition": "random(1..6)", "templateType": "anything", "name": "number", "description": "", "group": "Ungrouped variables"}}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

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

"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": ["checked2015", "dice", "die", "elementary probability", "events", "independence", "independent events", "Probability", "probability", "probability dice", "statistics", "tested1"]}, {"name": "nuExam07 - Binomial Distribution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}], "statement": "

Please give your answer to at least 3 decimal places.

\n

It is estimated that $\\var{p_perc}$% of all Lakes College students walk to college. A random sample of $\\var{n}$ Lakes College students is chosen.

\n

", "ungrouped_variables": ["p", "p_perc", "n", "q", "r", "pr0", "pr1", "pr2", "pr3", "answer1", "answer2", "qn", "r0", "n2"], "preamble": {"css": "", "js": ""}, "advice": "

Part (a)

\n

If a random variable $X$ follows a binomial distribution with parameters $n$ and $p$. The probability of $r$ successes out of $n$ trials is given by:

\n

$P(X=r)=P(r,n)=C^n_{r}p^{r}q^{n-r}$

\n

where $p$ is the probability of success for each trial and $q$ is the probability of failure for each trial.

\n

The probability that a student cycles to college is $\\var{p}$, therefore $p=\\var{p}$ and $q=1-\\var{p}=\\var{q}$.

\n

We are interested in claculating the probability that none of the sample of $\\var{n}$ students walk to college so $r=0$ and $n=\\var{n}$

\n

$P(\\var{r0}, \\var{n})= C^\\var{n}_{\\var{r0}}$ $\\var{p}^\\var{r0}$ $\\var{q}^{\\var{n}-\\var{r0}}$ 

\n

$P(\\var{r0}, \\var{n})= \\var{pr0}$

\n

\n

Part (b)

\n

We are interested in claculating the probability that at least $\\var{r}$ of the $\\var{n}$ students walk to college. Let $X$ represent the number of students that walk to college. We need to calculate:

\n

$P(X \\geq \\var{r}) = P(X= \\var{r}) + P(X= \\var{r+1})+...+ P(X=\\var{n})$

\n

\n

Since $P(X=\\var{r0})+P(X=\\var{r0+1})+...+P(X=\\var{n})=\\var{r0+1}$ 

\n

We may write 

\n

$P(X \\geq \\var{r}) = 1-P(X= \\var{r0}) - P(X=\\var{r0+1})-...- P(X=\\var{r-1})$

\n

\n

where

\n

$P(X= \\var{r0})=P(\\var{r0}, \\var{n})= C^\\var{n}_{\\var{r0}}$ $\\var{p}^\\var{r0}$ $\\var{q}^{\\var{n}-\\var{r0}}=\\var{pr0}$ 

\n

$P(X=1) =P(1, \\var{n})= C^\\var{n}_{1}$ $\\var{p}^{1}$ $\\var{q}^{\\var{n}-1}$ $=\\var{pr1}$

\n

$P(X=2) = P(2, \\var{n})=$ $C^\\var{n}_{2}$ $\\var{p}^{2}$ $\\var{q}^{\\var{n}-2}$ $=\\var{pr2}$

\n

\n

Then 

\n

$P(X \\geq \\var{r}) = 1-\\var{qn}-\\var{pr1}-\\var{pr2}=\\var{answer2}$

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "functions": {}, "variables": {"pr3": {"definition": "((n*(n-1)*(n-2))/6)*(p^3)*(q^(n-3))", "description": "

probability that r = 3

", "templateType": "anything", "name": "pr3", "group": "Ungrouped variables"}, "r0": {"definition": "0", "description": "", "templateType": "anything", "name": "r0", "group": "Ungrouped variables"}, "answer1": {"definition": "if(r=2,pr0+pr1, pr0+pr1+pr2)", "description": "", "templateType": "anything", "name": "answer1", "group": "Ungrouped variables"}, "p": {"definition": "random(0.1..0.2#0.05)", "description": "

the probability that an individual student cycles to college

", "templateType": "anything", "name": "p", "group": "Ungrouped variables"}, "r": {"definition": "3", "description": "

more than r of the students cycle to college

", "templateType": "anything", "name": "r", "group": "Ungrouped variables"}, "pr1": {"definition": "n*p*q^(n-1)", "description": "

probability that r = 1

", "templateType": "anything", "name": "pr1", "group": "Ungrouped variables"}, "pr2": {"definition": "((n*(n-1))/2)*(p^2)*q^(n-2)", "description": "

probability that r = 2

", "templateType": "anything", "name": "pr2", "group": "Ungrouped variables"}, "n": {"definition": "random(6..12)", "description": "

sample size

", "templateType": "anything", "name": "n", "group": "Ungrouped variables"}, "pr0": {"definition": "q^n", "description": "

probability that r = 0

", "templateType": "anything", "name": "pr0", "group": "Ungrouped variables"}, "qn": {"definition": "q^n", "description": "", "templateType": "anything", "name": "qn", "group": "Ungrouped variables"}, "answer2": {"definition": "1-answer1", "description": "", "templateType": "anything", "name": "answer2", "group": "Ungrouped variables"}, "p_perc": {"definition": "p*100", "description": "

percentage of students that cycle to college

", "templateType": "anything", "name": "p_perc", "group": "Ungrouped variables"}, "n2": {"definition": "n-2", "description": "", "templateType": "anything", "name": "n2", "group": "Ungrouped variables"}, "q": {"definition": "1-p", "description": "

probability tha an individual does not cycle to college

", "templateType": "anything", "name": "q", "group": "Ungrouped variables"}}, "tags": [], "metadata": {"description": "

It is estimated that 30% of all CIT students cycle to college. If a random sample of eight CIT students is chosen, calculate the probability that...

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReduced": false, "showCorrectAnswer": true, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacements": [], "type": "numberentry", "customMarkingAlgorithm": "", "useCustomName": false, "showFeedbackIcon": true, "showFractionHint": true, "allowFractions": false, "marks": "3", "unitTests": [], "minValue": "(q^n)-0.001", "maxValue": "(q^n)+0.001", "customName": "", "prompt": "

Calculate the probability that none of the $\\var{n}$ students in the sample walk to college.

"}, {"notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReduced": false, "showCorrectAnswer": true, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "variableReplacements": [], "type": "numberentry", "customMarkingAlgorithm": "", "useCustomName": false, "showFeedbackIcon": true, "showFractionHint": true, "allowFractions": false, "marks": "5", "unitTests": [], "minValue": "answer2 -0.001", "maxValue": "answer2 +0.001", "customName": "", "prompt": "

Calculate the probability that at least $\\var{r}$ of the $\\var{n}$ students walk to college.

"}], "type": "question"}, {"name": "Conditional probability ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}], "functions": {}, "ungrouped_variables": ["y", "z", "x", "y2", "z2", "x2"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

A student has been selected at random from last year’s BS1 class. Calculate the probability that this student passed the examination. 

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "marks": "2", "maxValue": "x*y + (1-x)*z", "strictPrecision": false, "minValue": "x*y + (1-x)*z", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "3", "scripts": {}, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "prompt": "

Sam MacLeinn was one of the students who passed the examination. Calculate the probability that Sam attended lectures regularly.

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "marks": 1, "maxValue": "(x*y)/(x*y + (1-x)*z)", "strictPrecision": false, "minValue": "(x*y)/(x*y + (1-x)*z)", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "3", "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "statement": "

Please enter your answer correct to 3 decimal places.

\n

Last year, $\\var{x2}$% of the students in a statistics class attended lectures regularly. $\\var{y2}$% of students who attended lectures regularly passed the examination at the end of the module, but only $\\var{z2}$% of the students who did not attend lectures regularly passed the examination.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"y2": {"definition": "y*100", "templateType": "anything", "group": "Ungrouped variables", "name": "y2", "description": "

percentage

"}, "x2": {"definition": "x*100", "templateType": "anything", "group": "Ungrouped variables", "name": "x2", "description": "

x percentage

"}, "y": {"definition": "random(0.87..0.97#0.02)", "templateType": "anything", "group": "Ungrouped variables", "name": "y", "description": "

percetage of students who attended lectures and passed the exam

"}, "x": {"definition": "random(0.75..0.95#0.02)", "templateType": "anything", "group": "Ungrouped variables", "name": "x", "description": "

percentage of students that attended lectures regularly

"}, "z": {"definition": "random(0.05..0.35 #0.02)", "templateType": "anything", "group": "Ungrouped variables", "name": "z", "description": "

percetage of students who did not attend lectures and passed the exam

"}, "z2": {"definition": "z*100", "templateType": "anything", "group": "Ungrouped variables", "name": "z2", "description": "

z percentage

"}}, "metadata": {"notes": "", "description": "

Last year, x% of the students in the BS1 class attended lectures regularly.

\n

y% of students who attended lectures regularly passed the examination at the end of the module, but only z% of the students who did not attend lectures regularly passed the examination.

\n

A student has been selected at random from last year’s statistics class. Calculate the probability that this student passed the examination. 

\n

Sam MacLeinn was one of the students who passed the examination. Calculate the probability that Sam attended lectures regularly.

", "licence": "None specified"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Conditional probability from frequency table v2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Peter Chapman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/210/"}], "variable_groups": [], "metadata": {"description": "

Asks students to compute conditional probabilities based on a frequency table.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"showCorrectAnswer": true, "answer": "{values[ar][ac]}/({values[0][ac]}+{values[1][ac]}+{values[2][ac]})", "showpreview": true, "marks": "6", "scripts": {}, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "showFeedbackIcon": true, "checkingaccuracy": 0.001, "type": "jme", "checkingtype": "absdiff", "checkvariablenames": false, "prompt": "

Calculate the probability that a randomly selected person likes {rows[ar]} given they like the {cols[ac]}. Enter your answer as a fraction.

", "vsetrangepoints": 5, "variableReplacements": []}, {"showCorrectAnswer": true, "answer": "{values[br][bc]}/({values[br][0]}+{values[br][1]}+{values[br][2]})", "showpreview": true, "marks": "6", "scripts": {}, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "showFeedbackIcon": true, "checkingaccuracy": 0.001, "type": "jme", "checkingtype": "absdiff", "checkvariablenames": false, "prompt": "

Calculate the probability that a randomly selected person likes the {cols[bc]} given they like {rows[br]}. Enter your answer as a fraction.

", "vsetrangepoints": 5, "variableReplacements": []}], "rulesets": {}, "statement": "

200 people were asked about their favourite Western Canadian ice hockey teams and their favourite 15th century explorer. The following table shows the results.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
CanucksFlamesOilers
Magellan{a1}{a2}{a3}
Columbus{a4}{b1}{b2}
da Gama{a5}{b3}{b4}
", "functions": {}, "advice": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "ungrouped_variables": ["a1", "a2", "a3", "a4", "a5", "b1", "b2", "b3", "b4", "values", "rows", "cols", "ar", "ac", "br", "bc"], "preamble": {"css": "", "js": ""}, "variables": {"values": {"description": "", "definition": "matrix([a1,a2,a3],[a4,b1,b2],[a5,b3,b4])", "group": "Ungrouped variables", "templateType": "anything", "name": "values"}, "ac": {"description": "", "definition": "random(0..2)", "group": "Ungrouped variables", "templateType": "anything", "name": "ac"}, "br": {"description": "", "definition": "random(0..2 except ar)", "group": "Ungrouped variables", "templateType": "anything", "name": "br"}, "bc": {"description": "", "definition": "random(0..2 except ac)", "group": "Ungrouped variables", "templateType": "anything", "name": "bc"}, "a3": {"description": "", "definition": "random(1..20)", "group": "Ungrouped variables", "templateType": "anything", "name": "a3"}, "b3": {"description": "", "definition": "random(1..30)", "group": "Ungrouped variables", "templateType": "anything", "name": "b3"}, "cols": {"description": "", "definition": "[\"Canucks\", \"Flames\", \"Oilers\"]", "group": "Ungrouped variables", "templateType": "anything", "name": "cols"}, "a1": {"description": "", "definition": "random(1..20)", "group": "Ungrouped variables", "templateType": "anything", "name": "a1"}, "b4": {"description": "", "definition": "100-(b1+b2+b3)", "group": "Ungrouped variables", "templateType": "anything", "name": "b4"}, "ar": {"description": "", "definition": "random(0..2)", "group": "Ungrouped variables", "templateType": "anything", "name": "ar"}, "a2": {"description": "", "definition": "random(1..20)", "group": "Ungrouped variables", "templateType": "anything", "name": "a2"}, "a4": {"description": "", "definition": "random(1..20)", "group": "Ungrouped variables", "templateType": "anything", "name": "a4"}, "b2": {"description": "", "definition": "random(1..30)", "group": "Ungrouped variables", "templateType": "anything", "name": "b2"}, "b1": {"description": "", "definition": "random(1..30)", "group": "Ungrouped variables", "templateType": "anything", "name": "b1"}, "rows": {"description": "", "definition": "[\"Magellan\", \"Columbus\", \"da Gama\"]", "group": "Ungrouped variables", "templateType": "anything", "name": "rows"}, "a5": {"description": "", "definition": "100-(a1+a2+a3+a4)", "group": "Ungrouped variables", "templateType": "anything", "name": "a5"}}, "type": "question"}, {"name": "Calculate probability of combinations of events happening or not, , ", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "parts": [{"scripts": {}, "gaps": [{"correctAnswerFraction": false, "showPrecisionHint": false, "allowFractions": false, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{intersect-tol}", "maxValue": "{intersect+tol}", "marks": 1}], "type": "gapfill", "prompt": "\n \n \n

$P(A\\cap B)=\\;\\;$[[0]]

\n \n \n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"correctAnswerFraction": false, "showPrecisionHint": false, "allowFractions": false, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{intcom-tol}", "maxValue": "{intcom+tol}", "marks": 1}], "type": "gapfill", "prompt": "\n \n \n

$P(A^c\\cap B^c)=\\;\\;$[[0]]

\n \n \n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"correctAnswerFraction": false, "showPrecisionHint": false, "allowFractions": false, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{unioncom-tol}", "maxValue": "{unioncom+tol}", "marks": 1}], "type": "gapfill", "prompt": "\n \n \n

$P(A^c\\cup B^c)=\\;\\;$[[0]]

\n \n \n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"correctAnswerFraction": false, "showPrecisionHint": false, "allowFractions": false, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{prob4-tol}", "maxValue": "{prob4+tol}", "marks": 1}], "type": "gapfill", "prompt": "\n \n \n

$P(A^c\\cap B)=\\;\\;$[[0]]

\n \n \n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"correctAnswerFraction": false, "showPrecisionHint": false, "allowFractions": false, "scripts": {}, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{prob5-tol}", "maxValue": "{prob5+tol}", "marks": 1}], "type": "gapfill", "prompt": "\n \n \n

$P(A^c\\cup B)=\\;\\;$[[0]]

\n \n \n ", "showCorrectAnswer": true, "marks": 0}], "variables": {"prob4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(1-prob2-intersect,10)", "name": "prob4", "description": ""}, "intcom": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1-prob3", "name": "intcom", "description": ""}, "intersect": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(prob1+1-prob2-prob3,2)", "name": "intersect", "description": "

P(A and B)

"}, "prob2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.05)", "name": "prob2", "description": "

P(not B)

"}, "prob3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround((t*(max(prob1,1-prob2))+(100-t)*min(0.95,prob1+1-prob2))/100,2)", "name": "prob3", "description": "

P(A or B)

"}, "tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0", "name": "tol", "description": ""}, "unioncom": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1-intersect", "name": "unioncom", "description": ""}, "prob1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.05)", "name": "prob1", "description": "

P(A)

"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..100)", "name": "t", "description": ""}, "prob5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1-prob1+1-prob2-prob4", "name": "prob5", "description": ""}}, "ungrouped_variables": ["intcom", "intersect", "prob1", "prob2", "prob3", "prob4", "prob5", "t", "tol", "unioncom"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "showQuestionGroupNames": false, "variable_groups": [], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "\n

Let $A$ and $B$ be events with:

\n

1. $P(A) = \\var{prob1}$

\n

2. $P(A \\cup B)=\\var{prob3}$

\n

3. $P(B^c)=\\var{prob2}$

\n

Find the following probabilities (all answers to 2 decimal places):

\n ", "tags": ["axiom", "axioms of probability", "checked2015", "complement", "complement of an event", "cr1", "elementary probability", "intersection of events", "intersection of sets", "laws of sets", "MAS1604", "MAS8380", "MAS8401", "Probability", "probability", "probability laws", "set laws", "sets", "statistics", "tested1", "union", "union of events", "union of sets"], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

7/07/2012:

\n

Added tags.

\n

Set tolerances via new variable tol=0 for all answers.

\n

Checked calculations.

\n

22/07/2012:

\n

Added description.

\n

Switched on stats extension (not needed, but policy for all stats questions).

\n

31/07/2012:

\n

Added tags.

\n

In the Advice section, moved \\Rightarrow to beginning of the line instead of the end of the previous line.

\n

Question appears to be working correctly.

\n

20/12/2012:

\n

Added tested1 tag after checking again - calculations OK.

\n

21/12/2012:

\n

Checked rounding, OK. Added tag cr1.

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

Given  $P(A)$, $P(A\\cup B)$, $P(B^c)$ find $P(A \\cap B)$, $P(A^c \\cap B^c)$, $P(A^c \\cup B^c)$ etc..

"}, "advice": "

a)

\n

It follows from the axioms of probability that:

\n

\\[P(A \\cup B)=P(A)+P(B)-P(A \\cap B)\\]

\n

Hence

\n

\\begin{align}
P(A \\cap B) &= P(A)+P(B)-P(A \\cup B) \\\\
&= \\var{prob1}+1-\\var{prob2}-\\var{prob3} \\\\
&= \\var{intersect}
\\end{align}

\n

Note that we have used $P(B)=1-P(B^c)= 1-\\var{prob2}=\\var{1-prob2}$

\n

b)

\n

The laws of sets gives:

\n

\\[A^c \\cap B^c=(A \\cup B)^c\\]

\n

so

\n

\\begin{align}
P(A^c \\cap B^c) &= P((A \\cup B)^c) \\\\
&= 1-P(A \\cup B) \\\\
&= 1-\\var{prob3} \\\\
&= \\var{1-prob3}
\\end{align}

\n

c)

\n

Similarly to b), the laws of sets gives:

\n

\\[A^c \\cup B^c=(A \\cap B)^c\\]

\n

so

\n

\\begin{align}
P(A^c \\cup B^c) &= P((A \\cap B)^c) \\\\
&= 1-P(A \\cap B) \\\\
&= 1-\\var{intersect} \\\\
&= \\var{1-intersect}
\\end{align}

\n

d)

\n

Note that $B$ is the following union of disjoint sets:

\n

\\[B = (A^c \\cap B) \\cup (A \\cap B)\\]

\n

Hence

\n

\\begin{align}
P(B) &= P(A^c \\cap B) + P(A \\cap B) \\\\
\\implies P(A^c \\cap B) &= P(B)-P(A\\cap B) \\\\
&= 1-\\var{prob2}-\\var{intersect} \\\\
&= \\var{prob4}
\\end{align}

\n

e)

\n

Once again using a familiar result we have:

\n

\\begin{align}
P(A^c \\cup B) &= P(A^c)+P(B)-P(A^c \\cap B) \\\\
&= 1-\\var{prob1}+1-\\var{prob2}-\\var{prob4} \\\\
&= \\var{prob5}
\\end{align}

\n

Where we used the result from d) that $P(A^c \\cap B)=\\var{prob4}$

"}, {"name": "Decide whether pairs of events are independent, ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "variable_groups": [], "variables": {"mm": {"templateType": "anything", "group": "Ungrouped variables", "definition": "[[m1,-m1],[m2,-m2],[m3,-m3]]", "description": "", "name": "mm"}, "v": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..abs(a)-1 except [t,u])", "description": "", "name": "v"}, "thismany": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "name": "thismany"}, "u": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..abs(a)-1 except t)", "description": "", "name": "u"}, "m3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(v < k,1,-1)", "description": "", "name": "m3"}, "abbe": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(\"above\",\"below\")", "description": "", "name": "abbe"}, "sc3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a[v]", "description": "", "name": "sc3"}, "pc": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..20)", "description": "", "name": "pc"}, "pe": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.2..0.7#0.1)", "description": "", "name": "pe"}, "pm": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(pe*pf,2)", "description": "", "name": "pm"}, "indep": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\n [\"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E \\\\;\\\\textrm{and}\\\\; F) = P(E) \\\\times P(F)$.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= \\\\var{pe}$, $P(F)= \\\\var{pf}$ and $P(E\\\\; \\\\textrm{and}\\\\; F)=\\\\var{pm}$\",\n \"H: A new laundry detergent will capture $\\\\var{pc} of the market next year, K: Rover will produce a new model next year.\",\n \"H: Spinning a six and K: spinning a five on the same spinner.\",\n \"A: I look out of the window and it is sunny, B: I win the National Lottery jackpot this weekend!\",\n \"A: I look out of the window and it is cloudy, B: Newcastle \"+{something}+\" this weekend.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= P(F)$ and $P(E\\\\; \\\\textrm{and}\\\\; F)= P(E) \\\\times P(F)$\",\n \"A student is selected at random from this class. The events A and B are such that A: the student has \"+ abbe+ \" average shoe size and B: the student was born in \"+ {mo},\n \"E: An individual eats out more than \"+thismany+\" times a week. F: An individual has \"+col+\" hair.\",\n \"$H$ and $K$, where $P(K) = P(K|H)$.\"]\n ", "description": "", "name": "indep"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "indep+notindep", "description": "", "name": "a"}, "pef": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.3..0.8)", "description": "", "name": "pef"}, "tm": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(9,10,11)", "description": "", "name": "tm"}, "something": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(\"win easily\",\"scrape a draw\", \"get beat due to a disputed penalty\")", "description": "", "name": "something"}, "npef": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(pef^2+random(0.1..0.2#0.01),2)", "description": "", "name": "npef"}, "m2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(u < k,1,-1)", "description": "", "name": "m2"}, "k": {"templateType": "anything", "group": "Ungrouped variables", "definition": "length(indep)", "description": "", "name": "k"}, "sc1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a[t]", "description": "", "name": "sc1"}, "m1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(t < k,1,-1)", "description": "", "name": "m1"}, "col": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(\"black\",\"brown\",\"blonde\")", "description": "", "name": "col"}, "notindep": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\n [\"A: The sky is cloudy today. B: It will rain today.\",\n \"A: A level marks in Mathematics, B: A level marks in Physics from students in the same school.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= P(F)=\\\\var{pef}$ and $P(E\\\\; \\\\textrm{and}\\\\; F)= \\\\var{npef}$\",\n \"H: Tom lies in on \"+ td + \", K: Tom is late for his \"+ tm+\" o'clock lecture on \"+ td,\n \"A student is selected at random from this class. The events H and K are such that H: the student is \"+ abbe+ \" average in height and K: the student is \"+abbe +\" average in weight.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E\\\\; \\\\textrm{and}\\\\; F)\\\\neq P(E)\\\\times P(F)$\",\n \"H: There is a severe thunderstorm in my home town this afternoon. K: My computer crashes this afternoon.\",\n \"A: A patient takes an abnormally long time to recover from an operation. B: The patient is elderly.\"]\n ", "description": "", "name": "notindep"}, "td": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(\"Monday\",\"Tuesday\", \"Wednesday\",\"Thursday\",\"Friday\")", "description": "", "name": "td"}, "sc2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a[u]", "description": "", "name": "sc2"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..abs(a)-1)", "description": "", "name": "t"}, "pf": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.2..0.7#0.1)", "description": "", "name": "pf"}, "mo": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(\"January\",\"February\", \"March\", \"April\",\"June\", \"October\",\"November\",\"December\")", "description": "", "name": "mo"}}, "ungrouped_variables": ["something", "indep", "pc", "tm", "pf", "m3", "m2", "m1", "td", "pm", "abbe", "npef", "pe", "thismany", "sc1", "pef", "sc3", "sc2", "a", "mm", "mo", "notindep", "col", "u", "t", "v", "k"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"layout": {"expression": ""}, "choices": ["First Pair: {sc1}", "Second Pair: {sc2}", "Third Pair: {sc3}"], "matrix": "mm", "type": "m_n_x", "maxAnswers": 0, "shuffleChoices": false, "answers": ["Independent", "Not independent"], "scripts": {}, "minMarks": 0, "minAnswers": 0, "maxMarks": 0, "shuffleAnswers": false, "showCorrectAnswer": true, "marks": 0}], "type": "gapfill", "prompt": "

[[0]]

", "showCorrectAnswer": true, "marks": 0}], "statement": "\n

Choose whether or not the following three pairs of events are independent or not.

\n

For every wrong choice you will lose a mark.  The minimum mark you can get is 0.

\n ", "tags": ["checked2015", "MAS1403", "MAS1604"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t

29/12/2012:

\n \t\t

Added sc tag as can add more pairs of events. Note that if you add more then the number of independent events in the new list has to be updated in variables m1,m2,m3.**

\n \t\t

The presentation of the pairs in the MCQ is not optimal! Not sure about the rather random labelling (A and B, H and K etc).

\n \t\t

No solution given. Perhaps a general statement on independence in Advice or in Show steps.  

\n \t\t

** Split up into two arrays, independent and not independent pairs.  If you add events to these arrays then everything is automatically updated.

\n \t\t

Question tested, OK.

\n \t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

Independent events in probability. Choose whether given three given pairs of events are independent or not.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

No solution provided.

"}, {"name": "What is the probability of two independent events occurring at the same time?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Shaun Thompson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/9238/"}], "tags": [], "metadata": {"description": "

A probability question

", "licence": "None specified"}, "statement": "

You roll a die and flip a coin. What is the probability that you get a 3 on the die and tails on the coin?

", "advice": "

The answer is 1/12 = 0.08333333

", "rulesets": {}, "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "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": "

Give your answer as a probability between 0 and 1.

", "minValue": "0.083", "maxValue": "0.084", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}], "extensions": ["stats"], "custom_part_types": [], "resources": []}