// Numbas version: finer_feedback_settings {"name": "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": [{"parts": [{"scripts": {}, "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "minValue": "prob2-tol", "variableReplacements": [], "showCorrectAnswer": true, "type": "numberentry", "showFeedbackIcon": true, "maxValue": "prob2+tol", "allowFractions": false, "marks": "4", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerStyle": "plain"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "
If one electrician is chosen at random, what is probability that this electrician earns over €{upper}?
\nProbability = [[0]](to 2 decimal places)
\n", "showCorrectAnswer": true, "type": "gapfill"}, {"scripts": {}, "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "minValue": "prob1-tol", "variableReplacements": [], "showCorrectAnswer": true, "type": "numberentry", "showFeedbackIcon": true, "maxValue": "prob1+tol", "allowFractions": false, "marks": "4", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerStyle": "plain"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "If one electrician is chosen at random, what is probability that this electrician earns less than €{lower} ?
\nProbability = [[0]](to 2 decimal places)
", "showCorrectAnswer": true, "type": "gapfill"}, {"scripts": {}, "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "minValue": "prob3-tol", "variableReplacements": [], "showCorrectAnswer": true, "type": "numberentry", "showFeedbackIcon": true, "maxValue": "prob3+tol", "allowFractions": false, "marks": "4", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerStyle": "plain"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "If one electrician is chosen at random, what is probability that this electrician earns between €{lower} and €{upper}?
\nProbability = [[0]](to 2 decimal places)
", "showCorrectAnswer": true, "type": "gapfill"}], "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.
\n2.
\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.
", "variable_groups": [], "ungrouped_variables": ["units1", "upper", "lower", "p1", "m", "s", "zupper", "p", "amount", "p2", "tol", "zlower", "stuff", "prob2", "prob3", "prob1"], "rulesets": {}, "name": "Probabilities from a normal distribution - Electrician", "extensions": ["stats"], "tags": ["checked2015", "MAS1403", "Rebel", "REBEL", "rebel", "rebelmaths"], "type": "question", "metadata": {"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$.
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "The salary of an irish electrician is normally distributed with mean €{m} and standard deviation €{s}.
\n", "variables": {"m": {"templateType": "anything", "name": "m", "definition": "random(30000..50000#2000)", "description": "", "group": "Ungrouped variables"}, "tol": {"templateType": "anything", "name": "tol", "definition": "0.01", "description": "", "group": "Ungrouped variables"}, "s": {"templateType": "anything", "name": "s", "definition": "random(5000..15000#1000)", "description": "", "group": "Ungrouped variables"}, "prob3": {"templateType": "anything", "name": "prob3", "definition": "precround(p1-p2,2)", "description": "", "group": "Ungrouped variables"}, "p1": {"templateType": "anything", "name": "p1", "definition": "precround(normalcdf(zupper,0,1),4)", "description": "", "group": "Ungrouped variables"}, "lower": {"templateType": "anything", "name": "lower", "definition": "random(m-1.5*s..m-0.5s#10000)", "description": "", "group": "Ungrouped variables"}, "upper": {"templateType": "anything", "name": "upper", "definition": "random(m+0.5s..m+1.5*s#10000)", "description": "", "group": "Ungrouped variables"}, "zlower": {"templateType": "anything", "name": "zlower", "definition": "precround((m-lower)/s,2)", "description": "", "group": "Ungrouped variables"}, "amount": {"templateType": "anything", "name": "amount", "definition": "\"electricity consumption\"", "description": "", "group": "Ungrouped variables"}, "p2": {"templateType": "anything", "name": "p2", "definition": "1-p", "description": "", "group": "Ungrouped variables"}, "prob2": {"templateType": "anything", "name": "prob2", "definition": "precround(1-p1,2)", "description": "", "group": "Ungrouped variables"}, "prob1": {"templateType": "anything", "name": "prob1", "definition": "precround(1-p,2)", "description": "", "group": "Ungrouped variables"}, "p": {"templateType": "anything", "name": "p", "definition": "precround(normalcdf(zlower,0,1),4)", "description": "", "group": "Ungrouped variables"}, "zupper": {"templateType": "anything", "name": "zupper", "definition": "precround((upper-m)/s,2)", "description": "", "group": "Ungrouped variables"}, "units1": {"templateType": "anything", "name": "units1", "definition": "\"k Wh\"", "description": "", "group": "Ungrouped variables"}, "stuff": {"templateType": "anything", "name": "stuff", "definition": "\"a frozen foods warehouse each week in the summer months \"", "description": "", "group": "Ungrouped variables"}}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}