// Numbas version: exam_results_page_options {"name": "Simon's copy of sample Standard deviation of a list of numbers with hints", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": ["stats"], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "", "parts": [{"allowFractions": false, "maxValue": "{sigma}", "scripts": {}, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "steps": [{"scripts": {}, "customName": "", "showCorrectAnswer": true, "prompt": "

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

\n

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

\n

\n

So we must:

\n", "extendBaseMarkingAlgorithm": true, "type": "information", "useCustomName": false, "showFeedbackIcon": true, "marks": 0, "unitTests": [], "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst"}], "prompt": "

Find the sample standard deviation $s$ of the following list of numbers {data}.

\n

Give your answer correct to 2 d.p.

", "type": "numberentry", "useCustomName": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "minValue": "{sigma}", "stepsPenalty": "1", "marks": "5", "unitTests": [], "variableReplacements": [], "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "precisionMessage": "

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

", "customName": "", "showCorrectAnswer": true, "correctAnswerFraction": false, "extendBaseMarkingAlgorithm": true, "precisionType": "dp", "precision": "2", "strictPrecision": false, "showPrecisionHint": false, "mustBeReducedPC": 0, "customMarkingAlgorithm": ""}], "functions": {}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["data", "sigma", "x", "mean", "var"], "advice": "

To calculate the sample standard deviation, $s$, we can use the formula:

\n

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

\n

\n

(note this is slightly different to the formula used to calculate the population standard deviation, $\\sigma$)

\n

\n

So we must:

\n", "name": "Simon's copy of sample Standard deviation of a list of numbers with hints", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "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

"}, "variables": {"sigma": {"name": "sigma", "templateType": "anything", "group": "Ungrouped variables", "definition": "stdev(data,true)", "description": ""}, "data": {"name": "data", "templateType": "anything", "group": "Ungrouped variables", "definition": "repeat(random(1..30),x)", "description": ""}, "var": {"name": "var", "templateType": "anything", "group": "Ungrouped variables", "definition": "sigma^2", "description": ""}, "mean": {"name": "mean", "templateType": "anything", "group": "Ungrouped variables", "definition": "mean(data)", "description": ""}, "x": {"name": "x", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(4,5,8)", "description": ""}}, "tags": [], "variable_groups": [], "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"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": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}