// Numbas version: exam_results_page_options {"name": "Inverse Normal Distribution (flour or Coke)", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Inverse Normal Distribution (flour or Coke)", "tags": [], "metadata": {"description": "

\n

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$.

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

Let $X$ represent the {chosen_amount} of {chosen_stuff}. It is known that $X$ follows a Normal distribution with a mean of {chosen_m}{chosen_units} and a standard deviation of {chosen_s}{chosen_units}.

\n

 

", "advice": "

\n

If {percentage}% of {chosen_item}s contain less than {x} {chosen_units} then we can write $P(X < x ) = \\var{prob}$

\n

Using the Standard Normal tables we can write $P(Z < \\var{z1}) = \\var{prob}$

\n

Now $x = \\mu + z \\times \\sigma$

\n

so that $x = \\var{chosen_m} + (\\var{z1}\\times \\var{chosen_s})= \\var{x1}$

\n

 

", "rulesets": {}, "extensions": ["stats"], "variables": {"prob1": {"name": "prob1", "group": "Ungrouped variables", "definition": "precround(1-p,2)", "description": "", "templateType": "anything"}, "Index": {"name": "Index", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything"}, "prob3": {"name": "prob3", "group": "Ungrouped variables", "definition": "precround(p1-p2,2)", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "[random(10..40#5), random(6..15#2)]", "description": "", "templateType": "anything"}, "item": {"name": "item", "group": "Ungrouped variables", "definition": "[\"packet\",\"bottle\"]", "description": "", "templateType": "anything"}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "precround(normalinv(percentage/100, chosen_m,chosen_s),1)", "description": "", "templateType": "anything"}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "random(1..10#1)", "description": "", "templateType": "anything"}, "chosen_m": {"name": "chosen_m", "group": "Ungrouped variables", "definition": "m[Index]", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "[random(950..1100#10),random(300..1000#50)]", "description": "", "templateType": "anything"}, "p2": {"name": "p2", "group": "Ungrouped variables", "definition": "1-p", "description": "", "templateType": "anything"}, "prob2": {"name": "prob2", "group": "Ungrouped variables", "definition": "precround(1-p1,2)", "description": "", "templateType": "anything"}, "chosen_amount": {"name": "chosen_amount", "group": "Ungrouped variables", "definition": "amount[Index]", "description": "", "templateType": "anything"}, "zupper": {"name": "zupper", "group": "Ungrouped variables", "definition": "precround((upper-chosen_m)/chosen_s,2)", "description": "", "templateType": "anything"}, "stuff": {"name": "stuff", "group": "Ungrouped variables", "definition": "[\"flour in a packet\", \"soft drink in a bottle\"]", "description": "", "templateType": "anything"}, "amount": {"name": "amount", "group": "Ungrouped variables", "definition": "[\"number of grams\", \"volume (in ml)\"]", "description": "", "templateType": "anything"}, "chosen_s": {"name": "chosen_s", "group": "Ungrouped variables", "definition": "s[Index]", "description": "", "templateType": "anything"}, "chosen_stuff": {"name": "chosen_stuff", "group": "Ungrouped variables", "definition": "stuff[index]", "description": "", "templateType": "anything"}, "units1": {"name": "units1", "group": "Ungrouped variables", "definition": "[\"g\", \"ml\"]", "description": "", "templateType": "anything"}, "zlower": {"name": "zlower", "group": "Ungrouped variables", "definition": "precround((chosen_m-lower)/chosen_s,2)", "description": "", "templateType": "anything"}, "chosen_item": {"name": "chosen_item", "group": "Ungrouped variables", "definition": "item[Index]", "description": "", "templateType": "anything"}, "prob": {"name": "prob", "group": "Ungrouped variables", "definition": "percentage/100", "description": "", "templateType": "anything"}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "precround(normalcdf(zlower,0,1),4)", "description": "", "templateType": "anything"}, "tol": {"name": "tol", "group": "Ungrouped variables", "definition": "0.01", "description": "", "templateType": "anything"}, "lower": {"name": "lower", "group": "Ungrouped variables", "definition": "random(chosen_m-1.5*chosen_s..chosen_m-0.5*chosen_s#5)", "description": "", "templateType": "anything"}, "upper": {"name": "upper", "group": "Ungrouped variables", "definition": "random(chosen_m+0.5*chosen_s..chosen_m+1.5*chosen_s#5)", "description": "", "templateType": "anything"}, "p1": {"name": "p1", "group": "Ungrouped variables", "definition": "precround(normalcdf(zupper,0,1),4)", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "precround(normalinv(percentage/100,0,1),2)", "description": "", "templateType": "anything"}, "chosen_units": {"name": "chosen_units", "group": "Ungrouped variables", "definition": "units1[Index]", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["units1", "upper", "lower", "p1", "m", "s", "zupper", "p", "amount", "p2", "tol", "zlower", "stuff", "prob2", "prob3", "prob1", "Index", "chosen_amount", "chosen_stuff", "chosen_units", "chosen_m", "chosen_s", "chosen_item", "item", "percentage", "x1", "z1", "prob"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{percentage}% of {chosen_item}s contain less than {x} {chosen_units}.
Calculate the value of {x}.

\n

{x} = [[0]]   (rounded to the nearest {chosen_units})

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x1-0.5", "maxValue": "x1+0.5", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "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/"}]}