// Numbas version: exam_results_page_options {"name": "MSS - Normal Distribution Mean", "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 Mean", "tags": ["Normal distribution", "normal distribution", "statistics"], "metadata": {"description": "

Students are shown a normal distribution, and a slider that moves the distribution horizontally. They are asked to move it so that the mean is equal to a particular value.

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

The graph below displays a normal distribution.

", "advice": "

As the normal distribution is symmetrical, the mean occurs at the highest point of the bell, in the centre of the graph. This point needs to be moved so that it is at $\\var{question_mean}$.

", "rulesets": {}, "extensions": ["jsxgraph", "stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"normdist_mean": {"name": "normdist_mean", "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: 'X',\n withLabel: true,\n label: <>\n >>;\n \n slider([0,0.55],[3,0.55],[-3,0,3]) <>;\n \n functiongraph(function(x){m = Mean.Value(); return 1/(sqrt(2*PI))*exp(-0.5*((x-m))^2);}, -6, 6) <>;\n \n \"\"\"),\n[\"axis\": false,\n \"showNavigation\": false,\n \"grid\": false,\n \"showCopyright\": false,\n \"keepaspectratio\": false \n ])", "description": "", "templateType": "anything", "can_override": false}, "snapslider": {"name": "snapslider", "group": "Ungrouped variables", "definition": "0.5", "description": "", "templateType": "number", "can_override": false}, "question_mean": {"name": "question_mean", "group": "Ungrouped variables", "definition": "random(-3..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["normdist_mean", "snapslider", "question_mean"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n jxg_value(normdist_mean[\"slider\"])\n\nstudent_feedback:\n feedback(\"You selected a mean of \" + pos + \".\")\n\nmark:\n correctif(pos = question_mean);\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 mean of the normal distribution is equal to $\\var{question_mean}$.

\n

{normdist_mean}

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}