// Numbas version: exam_results_page_options {"name": "Calculate confidence interval for the mean, standard deviation unknown", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate confidence interval for the mean, standard deviation unknown", "tags": [], "metadata": {"description": "

\n

Calculate confidence interval for the mean, sample variance adaptive marking

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

{scenario1[Index]} {sample_size} {scenario2[Index]}  {m[Index]} {units1[Index]} with a standard deviation of {s[Index]} {units1[Index]}.

\n

\n

 

", "advice": "

\n

 

", "rulesets": {}, "extensions": ["stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"sample_size": {"name": "sample_size", "group": "Unnamed group", "definition": "random(18..30#1)", "description": "", "templateType": "anything", "can_override": false}, "stuff": {"name": "stuff", "group": "Ungrouped variables", "definition": "[\"assembly time\", \"amount spent on books\"]", "description": "", "templateType": "anything", "can_override": false}, "upper": {"name": "upper", "group": "Ungrouped variables", "definition": "m[Index]+Z[Index]*(s[Index]/sqrt(sample_size))", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "[\"95\",\"99\"]", "description": "", "templateType": "anything", "can_override": false}, "amount": {"name": "amount", "group": "Ungrouped variables", "definition": "[\"number of grams\", \"volume (in ml)\"]", "description": "", "templateType": "anything", "can_override": false}, "scenario1": {"name": "scenario1", "group": "Unnamed group", "definition": "[\"The operations manager of a large production plant would like to estimate the mean\namount of time a worker takes to assemble a new electronic component. After observing\",\"Suppose we would like to estimate the mean amount of money spent on books by CIT students in a semester. A sample of\"]\n\n", "description": "", "templateType": "anything", "can_override": false}, "scenario3": {"name": "scenario3", "group": "Unnamed group", "definition": "[\"minutes with a standard deviation of\", \"\u20ac with a standard deviation of\"]", "description": "", "templateType": "anything", "can_override": false}, "Index": {"name": "Index", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "scenario2": {"name": "scenario2", "group": "Unnamed group", "definition": "[\"workers assembling similar devices, the manager noticed that their average time was\", \"randomly chosen students was found to spend an average of\"]", "description": "", "templateType": "anything", "can_override": false}, "units1": {"name": "units1", "group": "Ungrouped variables", "definition": "[\"minutes\", \"\u20ac\"]", "description": "", "templateType": "anything", "can_override": false}, "tol": {"name": "tol", "group": "Ungrouped variables", "definition": "0.01", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "[random(14..18#0.2),random(80..200#5)]", "description": "", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "[random(3.2..4#0.1), random(15..20#1)]", "description": "", "templateType": "anything", "can_override": false}, "Z": {"name": "Z", "group": "Ungrouped variables", "definition": "[precround(normalinv(0.975,0,1),2),precround(normalinv(0.995,0,1),2)]", "description": "", "templateType": "anything", "can_override": false}, "standard_error": {"name": "standard_error", "group": "Ungrouped variables", "definition": "precround(s[Index]/sqrt(sample_size),3)", "description": "", "templateType": "anything", "can_override": false}, "lower_t": {"name": "lower_t", "group": "Unnamed group", "definition": "precround(m[Index]-t_used*standard_error,2)", "description": "", "templateType": "anything", "can_override": false}, "upper_t": {"name": "upper_t", "group": "Unnamed group", "definition": "precround(m[Index]+t_used*standard_error,2)", "description": "", "templateType": "anything", "can_override": false}, "t": {"name": "t", "group": "Unnamed group", "definition": "[precround(studenttinv(0.975,sample_size-1),3),precround(studenttinv(0.995,sample_size-1),3)]", "description": "", "templateType": "anything", "can_override": false}, "lower": {"name": "lower", "group": "Unnamed group", "definition": "m[Index]-Z[Index]*(s[Index]/sqrt(sample_size))", "description": "", "templateType": "anything", "can_override": false}, "t_used": {"name": "t_used", "group": "Unnamed group", "definition": "t[Index]", "description": "

t

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["units1", "upper", "m", "s", "amount", "tol", "stuff", "Index", "percentage", "Z", "standard_error"], "variable_groups": [{"name": "Unnamed group", "variables": ["scenario1", "scenario2", "sample_size", "scenario3", "lower_t", "upper_t", "t", "lower", "t_used"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "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": "

Is the population standard deviation $\\sigma$ known or unknown?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Known", "Unknown"], "matrix": [0, "1"], "distractors": ["", ""]}, {"type": "1_n_2", "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": "

Which distribution does the sample mean follow?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["z-distribution", "t-distribution"], "matrix": [0, "1"], "distractors": ["", ""]}, {"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": "

The standard error of the mean is estimated to be [[0]]

\n

Enter to 3 decimal places.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "standard_error-0.001", "maxValue": "standard_error+0.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

For a {percentage[Index]}% confidence interval, the critical t- value is [[0]]

\n

Enter to 3 decimal places.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t[Index]-0.001", "maxValue": "t[Index]+0.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

Construct a {percentage[Index]}% confidence interval for the mean {stuff[Index]}.

\n

Lower limit = [[0]]

\n

Upper limit = [[1]]

\n

Enter to 2 decimal places.

", "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": "lower_t-0.01", "maxValue": "lower_t+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "upper_t-0.01", "maxValue": "upper_t+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}]}], "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}