// Numbas version: exam_results_page_options {"name": "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": [{"ungrouped_variables": ["number_list", "median", "tmp_list", "range", "mode", "stdev", "mean"], "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}.\\]

", "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"showCorrectAnswer": true, "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "sortAnswers": false, "marks": 0, "scripts": {}, "prompt": "

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

", "showFeedbackIcon": true, "gaps": [{"customName": "", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "marks": 1, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "useCustomName": false, "precisionType": "dp", "precisionPartialCredit": 0, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "mustBeReduced": false, "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "minValue": "mean-0.001", "showPrecisionHint": false, "maxValue": "mean+0.001", "unitTests": [], "strictPrecision": false, "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "precision": 3}], "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "useCustomName": false}, {"showCorrectAnswer": true, "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "sortAnswers": false, "marks": 0, "scripts": {}, "prompt": "

Median=[[0]]

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

Mode=[[0]]

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

Range=[[0]]

", "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "customName": "", "correctAnswerFraction": false, "mustBeReducedPC": 0, "allowFractions": false, "type": "numberentry", "customMarkingAlgorithm": "", "mustBeReduced": false, "correctAnswerStyle": "plain", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "showFractionHint": true, "showFeedbackIcon": true, "maxValue": "range", "unitTests": [], "minValue": "range", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "useCustomName": false}], "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "useCustomName": false}], "rulesets": {}, "tags": [], "extensions": ["stats"], "preamble": {"js": "", "css": ""}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
\n

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

\n
"}, "name": "John's liquid copy of Calculate mean, median, mode, range, and standard deviation of a sample", "variable_groups": [], "variables": {"mean": {"name": "mean", "definition": "mean(number_list)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "median": {"name": "median", "definition": "median(number_list)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "range": {"name": "range", "definition": "range(number_list)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "tmp_list": {"name": "tmp_list", "definition": "[random(-9..-7), random(-6..-4), random(-3..-1), random(1..3), random(4..6), random(7..9)]", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "number_list": {"name": "number_list", "definition": "shuffle(tmp_list+tmp_list[random(0..5)])", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "stdev": {"name": "stdev", "definition": "stdev(number_list,true)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "mode": {"name": "mode", "definition": "mode(number_list)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "statement": "

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

\n

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

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"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": "John Wick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3586/"}]}