// Numbas version: finer_feedback_settings {"name": "MSS - Normal Distribution Area Left", "extensions": ["stats", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "MSS - Normal Distribution Area Left", "tags": ["Normal distribution", "normal distribution", "statistics"], "metadata": {"description": "

Students are asked to move an x-axis slider on a normal distribution to make the area to the left of the slider equal to a certain percentage. The 6 possible percentages correspond to the mean plus or minus 1, 2 or 3 standard deviations.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

The graph below displays a standard normal distribution.

", "advice": "

The rules of thumb for the normal distribution show that:

\n\n

This means that the area between the mean and $-1$ standard deviation is approximately $34$%,

\n

and the area between the left edge of the graph and $-1$ standard deviation is approximately $50-34$% = $16$%.

\n

The area between the mean and $+1$ standard deviation is approximately $34$%,

\n

and the area between the left edge of the graph and $+1$ standard deviation is approximately $50+34$% = $84$%.

\n\n

This means that the area between the mean and $-2$ standard deviations is approximately $47.5$%,

\n

and the area between the left edge of the graph and $-2$ standard deviations is approximately $50-47.5$% = $2.5$%.

\n

The area between the mean and $+2$ standard deviations is approximately $47.5$%,

\n

and the area between the left edge of the graph and $+2$ standard deviations is approximately $50+47.5$% = $97.5$%.

\n\n

This means that the area between the mean and $-3$ standard deviations is approximately $49.85$%,

\n

and the area between the left edge of the graph and $-3$ standard deviations is approximately $50-49.85$% = $0.15$%.

\n

The area between the mean and $+3$ standard deviations is approximately $49.85$%,

\n

and the area between the left edge of the graph and $+3$ standard deviations is approximately $50+49.85$% = $99.85$%.

", "rulesets": {}, "extensions": ["jsxgraph", "stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"question_areapercentage": {"name": "question_areapercentage", "group": "Ungrouped variables", "definition": "random([0.1,2.3,15.9,84.1,97.7,99.9])", "description": "

P(z<=Z)

", "templateType": "anything", "can_override": false}, "normdist_leftproportion": {"name": "normdist_leftproportion", "group": "Ungrouped variables", "definition": "jessiecode(700, 400, [-5, 0.7, 5, -0.2], \"snapslider={snapslider};\"+safe(\"\"\"\n xaxis=axis([0,0],[1,0]) <<\n ticks: <> >>,\n name: 'Z',\n withLabel: true,\n label: <>\n >>;\n \n slider([0,0.55],[3,0.55],[-6,0,6]) <>;\n \n functiongraph(function(x){return 1/(sqrt(2*PI))*exp(-0.5*(x)^2);}, -8, 8) <>; \n \n drawnGaussian = functiongraph(function(x){return 1/(sqrt(2*PI))*exp(-0.5*(x)^2);}, -8 , function(){return z.Value();}) <>;\n \n drawnGaussianShaded = inequality(drawnGaussian) <>;\n invisibleBox = polygon([-7,-0.001],[7,-0.001],[8,1],[-8,1]) <>;\n \n ci = curveintersection(invisibleBox, drawnGaussianShaded) <>;\n \n \"\"\"),\n[\"axis\": false,\n \"showNavigation\": false,\n \"grid\": false,\n \"showCopyright\": false,\n \"keepaspectratio\": false \n ])", "description": "", "templateType": "anything", "can_override": false}, "question_zscore": {"name": "question_zscore", "group": "Ungrouped variables", "definition": "normalinv(question_areapercentage*0.01, 0, 1)", "description": "", "templateType": "anything", "can_override": false}, "snapslider": {"name": "snapslider", "group": "Ungrouped variables", "definition": "0.5", "description": "", "templateType": "number", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["question_areapercentage", "normdist_leftproportion", "question_zscore", "snapslider"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n jxg_value(normdist_leftproportion[\"slider\"])\n\nstudentZScore:\n withintolerance(pos,question_zscore,snapslider/2)\n\nstudent_feedback:\n feedback(\"You selected a z-score of \" + pos + \". The probability of randomly selecting a value less than\" \n + \" or equal to this is approximately \" + precround(normalcdf(pos,0,1)*100,1) + \"%.\")\n\nmark:\n correctif(studentZScore);\n apply(student_feedback)\n\ninterpreted_answer:\n pos", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Adjust the slider so that the shaded area under the curve is equal to approximately $\\var{question_areapercentage}$% of the total area under the curve.

\n

{normdist_leftproportion}

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}, {"name": "Brent Le Cornu", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18260/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}, {"name": "Brent Le Cornu", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18260/"}]}