// Numbas version: finer_feedback_settings {"name": "Michael's copy of Probabilities from a normal distribution - Electrician", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "functions": {}, "ungrouped_variables": ["units1", "upper", "lower", "p1", "m", "s", "zupper", "p", "amount", "p2", "tol", "zlower", "stuff", "prob2", "prob3", "prob1"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given a random variable $X$  normally distributed as $\\operatorname{N}(m,\\sigma^2)$ find probabilities $P(X \\gt a),\\; a \\gt m;\\;\\;P(X \\lt b),\\;b \\lt m$.

\n

rebelmaths

"}, "statement": "

The salary of an electrician is normally distributed with mean £{m} and standard deviation £{s}.

\n

 

", "parts": [{"showCorrectAnswer": true, "marks": 0, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "marks": "4", "correctAnswerStyle": "plain", "minValue": "prob2-tol", "mustBeReduced": false, "allowFractions": false, "unitTests": [], "maxValue": "prob2+tol", "showFeedbackIcon": true, "type": "numberentry", "customMarkingAlgorithm": "", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true}], "customMarkingAlgorithm": "", "unitTests": [], "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "

If one electrician is chosen at random, what is probability that this electrician earns over £{upper}? 

\n

Probability = [[0]](to 2  decimal places)

\n

", "extendBaseMarkingAlgorithm": true}, {"showCorrectAnswer": true, "marks": 0, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "marks": "4", "correctAnswerStyle": "plain", "minValue": "prob1-tol", "mustBeReduced": false, "allowFractions": false, "unitTests": [], "maxValue": "prob1+tol", "showFeedbackIcon": true, "type": "numberentry", "customMarkingAlgorithm": "", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true}], "customMarkingAlgorithm": "", "unitTests": [], "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "

If one electrician is chosen at random, what is probability that this electrician earns less than £{lower} ?

\n

Probability = [[0]](to 2  decimal places)

", "extendBaseMarkingAlgorithm": true}, {"showCorrectAnswer": true, "marks": 0, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "marks": "4", "correctAnswerStyle": "plain", "minValue": "prob3-tol", "mustBeReduced": false, "allowFractions": false, "unitTests": [], "maxValue": "prob3+tol", "showFeedbackIcon": true, "type": "numberentry", "customMarkingAlgorithm": "", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true}], "customMarkingAlgorithm": "", "unitTests": [], "showFeedbackIcon": true, "type": "gapfill", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "

If one electrician is chosen at random, what is probability that this electrician earns between £{lower} and £{upper}?

\n

Probability = [[0]](to 2  decimal places)

", "extendBaseMarkingAlgorithm": true}], "extensions": ["stats"], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"stuff": {"group": "Ungrouped variables", "name": "stuff", "templateType": "anything", "definition": "\"a frozen foods warehouse each week in the summer months \"", "description": ""}, "p2": {"group": "Ungrouped variables", "name": "p2", "templateType": "anything", "definition": "1-p", "description": ""}, "amount": {"group": "Ungrouped variables", "name": "amount", "templateType": "anything", "definition": "\"electricity consumption\"", "description": ""}, "units1": {"group": "Ungrouped variables", "name": "units1", "templateType": "anything", "definition": "\"k Wh\"", "description": ""}, "upper": {"group": "Ungrouped variables", "name": "upper", "templateType": "anything", "definition": "random(m+0.5s..m+1.5*s#10000)", "description": ""}, "tol": {"group": "Ungrouped variables", "name": "tol", "templateType": "anything", "definition": "0.01", "description": ""}, "prob2": {"group": "Ungrouped variables", "name": "prob2", "templateType": "anything", "definition": "precround(1-p1,2)", "description": ""}, "m": {"group": "Ungrouped variables", "name": "m", "templateType": "anything", "definition": "random(20000..40000#2000)", "description": ""}, "p": {"group": "Ungrouped variables", "name": "p", "templateType": "anything", "definition": "precround(normalcdf(zlower,0,1),4)", "description": ""}, "prob3": {"group": "Ungrouped variables", "name": "prob3", "templateType": "anything", "definition": "precround(p1-p2,2)", "description": ""}, "zupper": {"group": "Ungrouped variables", "name": "zupper", "templateType": "anything", "definition": "precround((upper-m)/s,2)", "description": ""}, "zlower": {"group": "Ungrouped variables", "name": "zlower", "templateType": "anything", "definition": "precround((m-lower)/s,2)", "description": ""}, "s": {"group": "Ungrouped variables", "name": "s", "templateType": "anything", "definition": "random(5000..15000#1000)", "description": ""}, "prob1": {"group": "Ungrouped variables", "name": "prob1", "templateType": "anything", "definition": "precround(1-p,2)", "description": ""}, "p1": {"group": "Ungrouped variables", "name": "p1", "templateType": "anything", "definition": "precround(normalcdf(zupper,0,1),4)", "description": ""}, "lower": {"group": "Ungrouped variables", "name": "lower", "templateType": "anything", "definition": "random(m-1.5*s..m-0.5s#10000)", "description": ""}}, "preamble": {"css": "", "js": ""}, "tags": [], "advice": "

1. Converting to $\\operatorname{N}(0,1)$

\n

$\\simplify[all,!collectNumbers]{P(X > {upper}) = P(Z > ({upper} -{m}) / {s})} = P(Z>\\var{zupper}) = 1-P(Z<\\var{zupper})=1-\\var{p1} = \\var{prob2}$ to 2 decimal places.

\n

2.

\n

$\\simplify[all,!collectNumbers]{P({lower} < X < {upper}) = P(X < {upper})-P(X < {lower})}=P(Z<\\var{zupper})-P(Z<-\\var{zlower}) =\\var{p1}-\\var{p2} = \\var{prob3}$ to 2 decimal places.

", "rulesets": {}, "name": "Michael's copy of Probabilities from a normal distribution - Electrician", "type": "question", "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": "Ellen Marshall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2533/"}]}]}], "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": "Ellen Marshall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2533/"}]}