// Numbas version: finer_feedback_settings {"name": "Standard deviation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Standard deviation", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Determine the appropriate standard deviation of the following set of data: $\\Delta T$ / K: {data_str}.

", "advice": "

First calculate the mean of the data: $\\bar{T}$ = {mean_str} K (n = {n}).

Then find the deviation of each value from the mean, and square it.

Deviations: {deviations_str} K.

Squared deviations: {sqdevs_str} K$^2$.

Sum of squared deviations: $\\sum (T_i-\\bar{T})^2$ = {sum_sqdev_str} K$^2$.

$s(\\Delta T) = \\sqrt{\\dfrac{\\sum (T_i-\\bar{T})^2}{n-1}}$

Substituting our values: $s(\\Delta T)$ = square root of ({sum_sqdev_str} / ({n} - 1)) = {correct_s} K.

Note that the standard deviation is reported to the same number of decimal places as the data.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"data_str": {"name": "data_str", "group": "Ungrouped variables", "definition": "join(map(dpformat(x,dp_data), x, data), \", \")", "description": "", "templateType": "anything", "can_override": false}, "data": {"name": "data", "group": "Ungrouped variables", "definition": "repeat(random(5..14) + random(0..(10^dp_data-1))/10^dp_data, n)", "description": "", "templateType": "anything", "can_override": false}, "dp_data": {"name": "dp_data", "group": "Ungrouped variables", "definition": "random(2,3)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(4,6)", "description": "", "templateType": "anything", "can_override": false}, "mean_exact": {"name": "mean_exact", "group": "Ungrouped variables", "definition": "sum(data)/n", "description": "", "templateType": "anything", "can_override": false}, "mean_str": {"name": "mean_str", "group": "Ungrouped variables", "definition": "dpformat(mean_exact, dp_data)", "description": "", "templateType": "anything", "can_override": false}, "deviations": {"name": "deviations", "group": "Ungrouped variables", "definition": "map(x-mean_exact, x, data)", "description": "", "templateType": "anything", "can_override": false}, "deviations_str": {"name": "deviations_str", "group": "Ungrouped variables", "definition": "join(map(dpformat(x,dp_data), x, deviations), \", \")", "description": "", "templateType": "anything", "can_override": false}, "sqdevs": {"name": "sqdevs", "group": "Ungrouped variables", "definition": "map(x^2, x, deviations)", "description": "", "templateType": "anything", "can_override": false}, "sqdevs_str": {"name": "sqdevs_str", "group": "Ungrouped variables", "definition": "join(map(dpformat(x,dp_data*2), x, sqdevs), \", \")", "description": "", "templateType": "anything", "can_override": false}, "sum_sqdev": {"name": "sum_sqdev", "group": "Ungrouped variables", "definition": "sum(sqdevs)", "description": "", "templateType": "anything", "can_override": false}, "sum_sqdev_str": {"name": "sum_sqdev_str", "group": "Ungrouped variables", "definition": "dpformat(sum_sqdev, dp_data*2+1)", "description": "", "templateType": "anything", "can_override": false}, "s_exact": {"name": "s_exact", "group": "Ungrouped variables", "definition": "sqrt(sum_sqdev/(n-1))", "description": "", "templateType": "anything", "can_override": false}, "correct_s": {"name": "correct_s", "group": "Ungrouped variables", "definition": "dpformat(precround(s_exact, dp_data), dp_data)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["data_str", "data", "dp_data", "n", "mean_exact", "mean_str", "deviations", "deviations_str", "sqdevs", "sqdevs_str", "sum_sqdev", "sum_sqdev_str", "s_exact", "correct_s"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Determine the standard deviation of the data.

", "minValue": "s_exact", "maxValue": "s_exact", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "dp_data", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38947/"}], "resources": []}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38947/"}]}