// Numbas version: exam_results_page_options {"name": "Charlie's copy of John's liquid copy of Calculate mean, median, mode, range, and standard deviation of a sample", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"gaps": [{"minValue": "mean-0.001", "strictPrecision": false, "precisionType": "dp", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "maxValue": "mean+0.001", "mustBeReduced": false, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "precisionMessage": "You have not given your answer to the correct precision.", "marks": 1, "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "precision": 3, "variableReplacements": [], "scripts": {}, "type": "numberentry", "showPrecisionHint": false, "allowFractions": false, "correctAnswerFraction": false, "precisionPartialCredit": 0, "useCustomName": false}], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "showFeedbackIcon": true, "sortAnswers": false, "prompt": "

Mean=[[0]] (Enter your answer to 3d.p.)

", "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}, {"gaps": [{"showFractionHint": true, "minValue": "median", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "useCustomName": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "numberentry", "maxValue": "median", "allowFractions": false, "mustBeReduced": false, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 1, "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "showFeedbackIcon": true, "sortAnswers": false, "prompt": "

Median=[[0]]

", "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}, {"gaps": [{"showFractionHint": true, "minValue": "mode[0]", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "useCustomName": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "numberentry", "maxValue": "mode[0]", "allowFractions": false, "mustBeReduced": false, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 1, "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "showFeedbackIcon": true, "sortAnswers": false, "prompt": "

Mode=[[0]]

", "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}, {"gaps": [{"showFractionHint": true, "minValue": "range", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "useCustomName": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "numberentry", "maxValue": "range", "allowFractions": false, "mustBeReduced": false, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 1, "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "showFeedbackIcon": true, "sortAnswers": false, "prompt": "

Range=[[0]]

", "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "name": "Charlie's copy of John's liquid copy of Calculate mean, median, mode, range, and standard deviation of a sample", "variable_groups": [], "preamble": {"css": "", "js": ""}, "metadata": {"description": "
\n

Topics covered are calculating the mean, median, mode, range, and standard deviation.

\n
", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"number_list": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "shuffle(tmp_list+tmp_list[random(0..5)])", "name": "number_list"}, "stdev": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "stdev(number_list,true)", "name": "stdev"}, "mode": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "mode(number_list)", "name": "mode"}, "tmp_list": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "[random(-9..-7), random(-6..-4), random(-3..-1), random(1..3), random(4..6), random(7..9)]", "name": "tmp_list"}, "mean": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "mean(number_list)", "name": "mean"}, "range": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "range(number_list)", "name": "range"}, "median": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "median(number_list)", "name": "median"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "statement": "

Calculate the mean, median, moderange, and standard deviation of the following set of numbers:

\n

\\[\\var{rowvector(number_list)}\\]

", "ungrouped_variables": ["number_list", "median", "tmp_list", "range", "mode", "stdev", "mean"], "functions": {}, "tags": [], "advice": "

a)

\n

The mean of a set of numbers $\\left(x_1,\\ldots,x_N\\right)$ is given by

\n

\\[\\mu = \\frac{1}{N}\\sum_{i=1}^N x_i.\\]

\n

\n

b)

\n

The median is the middle value when the set of numbers is ordered.

\n

\n

c)

\n

The mode is the most common value in the set.

\n

\n

d)

\n

The range is the difference between the maximum value and the minimum value in the set.

\n

\n

e)

\n

The standard deviation is given by

\n

\\[\\sigma = \\sqrt{ \\frac{1}{N-1} \\left[ \\sum_{i=1}^N x_i^2 \\right] - \\mu^2}.\\]

", "extensions": ["stats"], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Charlie Earle", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3054/"}, {"name": "John Wick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3586/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Charlie Earle", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3054/"}, {"name": "John Wick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3586/"}]}