// Numbas version: exam_results_page_options {"name": "Probability, expectation and variance of exponential distribution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"this": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\"customer arrivals at the RyanJet check-in desk at Newcastle Airport \"", "name": "this", "description": ""}, "ans2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(1/ra^2,3)", "name": "ans2", "description": ""}, "ans3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(tans3,3)", "name": "ans3", "description": ""}, "ans1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(1/ra,3)", "name": "ans1", "description": ""}, "thistime": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.8..1.8#0.1)", "name": "thistime", "description": ""}, "tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0.001", "name": "tol", "description": ""}, "ra": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0.2..1.2#0.1)", "name": "ra", "description": ""}, "that": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\"two customers arriving \"", "name": "that", "description": ""}, "tans3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1-exp(-ra*thistime)", "name": "tans3", "description": ""}, "period": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\"minutes\"", "name": "period", "description": ""}}, "ungrouped_variables": ["that", "this", "ans1", "ans2", "ans3", "period", "ra", "tol", "tans3", "thistime"], "rulesets": {}, "name": "Probability, expectation and variance of exponential distribution", "showQuestionGroupNames": false, "functions": {}, "parts": [{"scripts": {}, "gaps": [{"showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "type": "numberentry", "maxValue": "ans1+tol", "minValue": "ans1-tol", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false}, {"showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "type": "numberentry", "maxValue": "ans2+tol", "minValue": "ans2-tol", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "\n

Find $\\operatorname{E}[X]$ between {this}:

\n

$\\operatorname{E}[X]=\\;$?[[0]]{period} (enter as a decimal correct to 3 decimal places).

\n

Find $\\operatorname{Var}(X)$:

\n

$\\operatorname{Var}(X)=\\;$?[[1]](enter as a decimal correct to 3 decimal places).

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

Find the probability that the time between {that} is less than $\\var{thistime}$ {period}:

\n

 $P(X \\lt \\var{thistime})=\\;$?[[0]](enter as a decimal correct to 3 decimal places)

", "showCorrectAnswer": true, "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "\n

The time,  in {period} between {this} follows an exponential distribution with rate $\\var{ra}$ i.e. 

\n

\\[X \\sim \\operatorname{exp}(\\var{ra})\\]

\n ", "tags": ["checked2015", "MAS1403"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t

1/01/2013:

\n \t\t

This question can be changed to other applications via string variables. Added tag sc.

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

Question on the exponential distribution involving a time intervals and arrivals application, finding expectation and variance. Also finding the probability that a time interval between arrivals is less than a given period. All parameters and times randomised. 

"}, "advice": "\n

If $X \\sim \\operatorname{exp}(\\lambda)$ then $\\displaystyle \\operatorname{E}[X] =\\frac{1}{\\lambda}$ and  $\\displaystyle \\operatorname{Var}(X)=\\frac{1}{\\lambda^2}$.

\n

Also $P(X \\lt a)=1-e^{-\\lambda a}$.

\n

a)

\n

If $X \\sim \\operatorname{exp}(\\var{ra})$ then:

\n

$\\displaystyle \\operatorname{E}[X] =\\frac{1}{\\lambda}=\\frac{1}{\\var{ra}}=\\var{ans1}$ to 3 decimal places.

\n

$\\displaystyle \\operatorname{Var}(X) =\\frac{1}{\\lambda^2}=\\frac{1}{\\var{ra}^2}=\\var{ans2}$ to 3 decimal places.

\n

b)

\n

$P(X \\lt \\var{thistime}) = 1 -(e ^ {-\\var{ ra} \\times \\var{thistime}}) = 1 -(e ^ { -\\var{ra * thistime}}) = \\var{ans3}$ to 3 decimal places.

\n ", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}