// Numbas version: exam_results_page_options {"name": "Clodagh's copy of Poisson Distribution (printing errors)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Clodagh's copy of Poisson Distribution (printing errors)", "tags": ["rebelmaths"], "metadata": {"description": "

rebelmaths

\n

Printing errors in the work produced by a particular film occur randomly at an average rate of p per page.

\n


i.What is the probability that a one page document will contain x1 printing error(s)?

ii.If a n page document is printed, calculate the probability of having more than x2 errors. Assume a Poisson distribution.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Please give your answer to at least 3 decimal places.

\n

Printing errors in the work produced by a particular film occur randomly at an average rate of $\\var{l}$ per page.

\n

\n

 The Poisson distribution formula: $P(r)=\\frac{\\lambda^re^{-\\lambda}}{r!}$ or $P(r)=e^{-\\lambda}\\left[\\frac{\\lambda^r}{r!}\\right]$

", "advice": "

Part (a)

\n

Remember that for a Poisson random variable:
\\begin{align}
\\operatorname{P}(X=x)&=\\dfrac{\\lambda^x\\times e^{-\\lambda}}{x!}\\\\
\\end{align}

\n

1.\\[ \\begin{eqnarray*}\\operatorname{P}(X = \\var{x}) &=& \\frac{\\var{l} ^ {\\var{x}}e ^ { -\\var{l}}} {\\var{x}!}\\\\& =& \\var{answer1} \\end{eqnarray*} \\] to 3 decimal places.

\n

 

\n

Part (b)

\n

2. For a $\\var{n}$ page document, $\\lambda=\\var{n} \\times \\var{l} = \\var{l2}$

\n

The probability of having less than $\\var{y}$ errors is given by:

\n

$P(X < \\var{y}) = P(X=0) + P(X=1) +P(X=2)$

\n

where 

\n

$P(X=0) =\\frac{\\var{l2}^{0}e^{-\\var{l2}}}{0!}=\\var{pr0}$

\n

$P(X=1) =\\frac{\\var{l2}^{1}e^{-\\var{l2}}}{1!}=\\var{pr1}$

\n

$P(X=1) =\\frac{\\var{l2}^{2}e^{-\\var{l2}}}{2!}=\\var{pr2}$

\n

Hence 

\n

$P(X < \\var{y})$ = $\\var{pr0}+\\var{pr1}+\\var{pr2}=\\var{answer2}$

", "rulesets": {}, "extensions": [], "variables": {"answer1": {"name": "answer1", "group": "Ungrouped variables", "definition": "((e^-l)*(l^x))/x!", "description": "", "templateType": "anything"}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(0.05..0.4#0.1)", "description": "

average, lambda

", "templateType": "anything"}, "answer2": {"name": "answer2", "group": "Ungrouped variables", "definition": "if(y=3, ((e^-l2)*(l2^0))/0!+((e^-l2)*(l2^(1)))/(1)!+((e^-l2)*(l2^2))/2!,((e^-l2)*(l2^0))/0!+((e^-l2)*(l2^(1)))/(1)!)", "description": "", "templateType": "anything"}, "l2": {"name": "l2", "group": "Ungrouped variables", "definition": "l*n", "description": "", "templateType": "anything"}, "pr0": {"name": "pr0", "group": "Ungrouped variables", "definition": "((e^-l2)*(l2^0))/0!", "description": "", "templateType": "anything"}, "pr2": {"name": "pr2", "group": "Ungrouped variables", "definition": "((e^-l2)*(l2^2))/2!", "description": "", "templateType": "anything"}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "3", "description": "

upper value of X

", "templateType": "anything"}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "

number of customers entering the shop

", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(6..15#1)", "description": "

time interval

", "templateType": "anything"}, "pr1": {"name": "pr1", "group": "Ungrouped variables", "definition": "((e^-l2)*(l2^1))/1!", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["l", "x", "n", "y", "answer1", "answer2", "l2", "pr0", "pr1", "pr2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "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 a one page document will contain exactly $\\var{x}$ printing error(s)?

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

If a $\\var{n}$ page document is printed, calculate the probability of having less than $\\var{y}$ errors. 

", "minValue": "answer2 -0.001", "maxValue": "answer2 +0.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}]}], "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}