// Numbas version: exam_results_page_options {"name": "Sample mean, standard deviation and standard error", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Sample mean, standard deviation and standard error", "tags": [], "metadata": {"description": "

Compute a 95% confidence interval for the population mean given a small sample, and compare it with a confidence interval for a different population.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The amount of sugar in a particular brand of breakfast cereal is to be determined. $\\var {num_monday}$ replicate samples weighing 10 grams were selected at random and the amount of sugar (grams) measured for each replicate is shown in the table below.

\n

{table([['Sugar (g)']+mon],[])}

", "advice": "

a)

\n

The mean of the sample is: 

\n

\\[ \\bar{x} = \\frac{1}{n}(\\sum x_i) = \\var{precround(monday_mean,2)} \\text{ (to 2 d.p.)} \\]

\n

The standard deviation is:

\n

\\[ s = \\sqrt{\\frac{1}{n-1}\\sum \\left(x_i-\\bar{x}\\right)^2} = \\var{precround(monday_sd,2)} \\text{ (to 2 d.p.)} \\]

\n

The standard error is :

\n

\n

$\\frac{s}{\\sqrt {n}}=\\frac{\\var{precround(monday_sd,2)}}{\\sqrt{\\var{num_monday}}}=\\var{precround(monday_se,2)}$ 

\n

", "rulesets": {}, "extensions": ["stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"mon": {"name": "mon", "group": "Ungrouped variables", "definition": "repeat(pop_mean+random(0.1..0.8#0.1),num_monday)", "description": "

Data for Monday

", "templateType": "anything", "can_override": false}, "monday_mean": {"name": "monday_mean", "group": "Ungrouped variables", "definition": "mean(mon)", "description": "", "templateType": "anything", "can_override": false}, "num_monday": {"name": "num_monday", "group": "Ungrouped variables", "definition": "random(8..15#1)", "description": "", "templateType": "anything", "can_override": false}, "monday_sd": {"name": "monday_sd", "group": "Ungrouped variables", "definition": "stdev(mon, true)", "description": "", "templateType": "anything", "can_override": false}, "monday_se": {"name": "monday_se", "group": "Ungrouped variables", "definition": "monday_sd/sqrt(num_monday)", "description": "", "templateType": "anything", "can_override": false}, "pop_mean": {"name": "pop_mean", "group": "Ungrouped variables", "definition": "random(0.5..2.5#0.1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["num_monday", "mon", "monday_mean", "monday_sd", "monday_se", "pop_mean"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the mean and standard deviation of the sample.

\n

Enter your answers to 2 decimal places.

\n

Mean: [[0]]

\n

Standard Deviation: [[1]]

\n

Standard Error: [[2]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "monday_mean-0.01", "maxValue": "monday_mean+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "monday_sd-0.01", "maxValue": "monday_sd+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "monday_se-0.01", "maxValue": "monday_se+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "Hayley Moore", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/495/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "Hayley Moore", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/495/"}]}