// Numbas version: exam_results_page_options {"name": "nuExam06 - Mean & Standard deviation", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["data", "sigma", "x", "mean", "var"], "name": "nuExam06 - Mean & Standard deviation", "preamble": {"js": "", "css": ""}, "rulesets": {}, "extensions": ["stats"], "statement": "", "parts": [{"prompt": "

Find the population standard deviation $\\sigma$ of the following list of numbers {data}.

\n

Give your answer correct to 2 d.p.

", "variableReplacements": [], "showPrecisionHint": false, "showCorrectAnswer": true, "stepsPenalty": "0", "customMarkingAlgorithm": "", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "marks": "5", "maxValue": "{sigma}", "steps": [{"prompt": "

To calculate the population standard deviation, we can use the formula:

\n

Standard deviation = $\\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

\n

So we must:

\n", "variableReplacements": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "information", "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 0, "extendBaseMarkingAlgorithm": true, "scripts": {}, "customName": "", "useCustomName": false, "customMarkingAlgorithm": ""}], "minValue": "{sigma}", "customName": "", "useCustomName": false, "strictPrecision": false, "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "precisionMessage": "

You have not given your answer to the correct number of decimal places.

", "variableReplacementStrategy": "originalfirst", "precision": "2", "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "scripts": {}, "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "precisionType": "dp", "mustBeReducedPC": 0, "unitTests": []}], "metadata": {"description": "

Just showing how to use the stdev function from the stats extension to calculate the standard deviation of a list of numbers.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "variables": {"x": {"description": "", "name": "x", "templateType": "anything", "definition": "random(4,5,8)", "group": "Ungrouped variables"}, "mean": {"description": "", "name": "mean", "templateType": "anything", "definition": "mean(data)", "group": "Ungrouped variables"}, "sigma": {"description": "", "name": "sigma", "templateType": "anything", "definition": "stdev(data)", "group": "Ungrouped variables"}, "data": {"description": "", "name": "data", "templateType": "anything", "definition": "repeat(random(1..30),x)", "group": "Ungrouped variables"}, "var": {"description": "", "name": "var", "templateType": "anything", "definition": "sigma^2", "group": "Ungrouped variables"}}, "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

To calculate the population standard deviation, $\\sigma$, we can use the formula:

\n

Population standard deviation, $\\sigma = \\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

\n

(note this is slightly different to the formula used to calculate the sample standard deviation, $s$)

\n

\n

So we must:

\n", "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": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "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": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}