// Numbas version: exam_results_page_options {"name": "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": [{"variable_groups": [], "variables": {"range": {"templateType": "anything", "group": "Ungrouped variables", "definition": "range(number_list)", "description": "", "name": "range"}, "stdev": {"templateType": "anything", "group": "Ungrouped variables", "definition": "stdev(number_list,true)", "description": "", "name": "stdev"}, "median": {"templateType": "anything", "group": "Ungrouped variables", "definition": "median(number_list)", "description": "", "name": "median"}, "mode": {"templateType": "anything", "group": "Ungrouped variables", "definition": "mode(number_list)", "description": "", "name": "mode"}, "mean": {"templateType": "anything", "group": "Ungrouped variables", "definition": "mean(number_list)", "description": "", "name": "mean"}, "number_list": {"templateType": "anything", "group": "Ungrouped variables", "definition": "shuffle(tmp_list+tmp_list[random(0..5)])", "description": "", "name": "number_list"}, "tmp_list": {"templateType": "anything", "group": "Ungrouped variables", "definition": "[random(-9..-7), random(-6..-4), random(-3..-1), random(1..3), random(4..6), random(7..9)]", "description": "", "name": "tmp_list"}}, "ungrouped_variables": ["number_list", "median", "tmp_list", "range", "mode", "stdev", "mean"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Calculate mean, median, mode, range, and standard deviation of a sample", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "mean-0.001", "maxValue": "mean+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": false, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}], "type": "gapfill", "prompt": "

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

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "integerAnswer": true, "integerPartialCredit": 0, "minValue": "median", "maxValue": "median", "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "

Median=[[0]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "integerAnswer": true, "integerPartialCredit": 0, "minValue": "mode[0]", "maxValue": "mode[0]", "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "

Mode=[[0]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "integerAnswer": true, "integerPartialCredit": 0, "minValue": "range", "maxValue": "range", "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "

Range=[[0]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "stdev-0.001", "maxValue": "stdev+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": false, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}], "type": "gapfill", "prompt": "

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

", "showCorrectAnswer": true, "marks": 0}], "statement": "

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

\n

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

", "tags": ["ACC1012", "acc1012", "checked2015", "median", "mode", "range", "sample mean", "standard deviation", "statistics"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

29/11/2013

\n

Compute sample standard deviation, not population. (AJY)

\n

28/11/2013

\n

Complete overhaul. (AJY)

\n

23/07/2013:

\n

Question created. Tags added.

", "licence": "Creative Commons Attribution 4.0 International", "description": "
\n

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

\n
"}, "variablesTest": {"condition": "", "maxRuns": 100}, "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}.\\]

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}