// Numbas version: finer_feedback_settings {"name": "Standard error", "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 error", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
Determine the standard error of the mean when the sample standard deviation is {s_str} and the number of measurements is {n}.
", "advice": "$\\sigma_{\\bar{x}} = \\dfrac{s}{\\sqrt{n}}$
\nOur sample standard deviation, $s$ = {s_str} and our number of measurements, $n$ = {n}.
\n$\\sigma_{\\bar{x}} =\\frac{ \\var{s_str}}{ \\sqrt{\\var{n}}} = \\var{se_exact_str}$, which needs to be rounded up to just one significant figure:
\n$\\sigma_{\\bar{x}}$ = {se_roundedup_str}.
\nRemember that we always round the standard error up, even if the next digit is small, because the standard error should never give a false sense of precision.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(3,8)", "description": "", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(10..599)/100", "description": "", "templateType": "anything", "can_override": false}, "se_exact": {"name": "se_exact", "group": "Ungrouped variables", "definition": "s / sqrt(n)", "description": "", "templateType": "anything", "can_override": false}, "magnitude": {"name": "magnitude", "group": "Ungrouped variables", "definition": "10^floor(log(se_exact))", "description": "", "templateType": "anything", "can_override": false}, "se_roundedup": {"name": "se_roundedup", "group": "Ungrouped variables", "definition": "ceil(se_exact/magnitude - 0.0000001)*magnitude", "description": "", "templateType": "anything", "can_override": false}, "se_exact_str": {"name": "se_exact_str", "group": "Ungrouped variables", "definition": "dpformat(se_exact, 4)", "description": "", "templateType": "anything", "can_override": false}, "s_str": {"name": "s_str", "group": "Ungrouped variables", "definition": "dpformat(s, 2)", "description": "", "templateType": "anything", "can_override": false}, "dp_se": {"name": "dp_se", "group": "Ungrouped variables", "definition": "max(0, -floor(log(se_roundedup)))", "description": "", "templateType": "anything", "can_override": false}, "se_roundedup_str": {"name": "se_roundedup_str", "group": "Ungrouped variables", "definition": "dpformat(se_roundedup, dp_se)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "s", "se_exact", "magnitude", "se_roundedup", "se_exact_str", "s_str", "dp_se", "se_roundedup_str"], "variable_groups": [], "functions": {"even_sf": {"parameters": [["x", "decimal"], ["n", "number"]], "type": "decimal", "language": "javascript", "definition": "// Round x to n significant figures, rounding a tie (exactly 5) to the even digit\nreturn new Numbas.math.ComplexDecimal(x.re.toSignificantDigits(n, Decimal.ROUND_HALF_EVEN));"}, "even_dp": {"parameters": [["x", "decimal"], ["n", "number"]], "type": "decimal", "language": "javascript", "definition": "// Round x to n decimal places, rounding a tie (exactly 5) to the even digit\nreturn new Numbas.math.ComplexDecimal(x.re.toDecimalPlaces(n, Decimal.ROUND_HALF_EVEN));"}}, "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 error of the mean.
", "minValue": "se_roundedup", "maxValue": "se_roundedup", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "1", "precisionPartialCredit": "50", "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/"}]}