// Numbas version: exam_results_page_options {"name": "Simon's copy of Mean, median, mode and range", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

(a)

\n

There are 6 datapoints so the mean is

\n

$\\frac{\\var{a2}+\\var{a3}+\\var{a4}+ \\var{a5}+ \\var{a6}+\\var{a7}}{6}=\\var{precround((a2+a3+a4+a5+a6+a7)/6,3)}$

\n

\n

(b)

\n

To find the median, we first put our values in order:

\n

$\\var{a3},\\var{a4},\\var{a7},\\var{a5},\\var{a6},\\var{a2}$

\n

There are two middle values, $\\var{a7}$ and $\\var{a5}$.

\n

Since there are two middle values, the median is equal to the mean of these:

\n

So the median is $\\frac{\\var{a7}+\\var{a5}}{2}$ =$\\var{(a7+a5)/2}$ 

\n

\n

(c)

\n

The mode is $\\var{a4}$ as it is the only value which appears twice.

\n

\n

(d)

\n

The range is the largest value minus the smallest value.

\n

In our example the largest value is $\\var{a2}$ and the smallest value is $\\var{a3}$

\n

So:

\n

range = $\\var{a2}-\\var{a3}=\\var{a2-a3}$

", "statement": "

Seven students were asked how they rated the online maths assessment tool numbas on a scale of 0-10, with 0 representing terrible and 10 representing excellent. The results are below. Calculate the mean, median, mode and range for the set of data.

\n

$ \\var{a2}, \\var{a3}, \\var{a4}, \\var{a5}, \\var{a6}, \\var{a7}$ .

", "preamble": {"js": "", "css": ""}, "variables": {"a2": {"definition": "random(12..13)", "name": "a2", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "a5": {"definition": "random(8..9)", "name": "a5", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "a3": {"definition": "random(0..1)", "name": "a3", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "a7": {"definition": "a4", "name": "a7", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "a6": {"definition": "random(10..11)", "name": "a6", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "a4": {"definition": "random(6..7)", "name": "a4", "templateType": "anything", "description": "", "group": "Ungrouped variables"}}, "variable_groups": [], "ungrouped_variables": ["a3", "a2", "a5", "a4", "a7", "a6"], "parts": [{"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "\n

$\\text{mean}=\\;\\;$[[0]]

\n

Enter decimal answers to 3 decimal places.

\n ", "variableReplacementStrategy": "originalfirst", "stepsPenalty": "1", "scripts": {}, "type": "gapfill", "sortAnswers": false, "marks": 0, "variableReplacements": [], "gaps": [{"showPrecisionHint": true, "extendBaseMarkingAlgorithm": true, "marks": 1, "allowFractions": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "mustBeReducedPC": 0, "variableReplacements": [], "precisionType": "dp", "minValue": "1/6*{(a2+a3+a4+a5+a6+a7)}", "precision": "3", "showFeedbackIcon": true, "correctAnswerFraction": false, "maxValue": "1/6*{(a2+a3+a4+a5+a6+a7)}", "precisionPartialCredit": 0, "mustBeReduced": false, "showCorrectAnswer": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true}], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "steps": [{"variableReplacements": [], "prompt": "

To find the mean:

\n

1. Add up all the numbers.

\n

2. Divide by the number of numbers.

", "extendBaseMarkingAlgorithm": true, "type": "information", "marks": 0, "showCorrectAnswer": true, "scripts": {}, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true}]}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

$\\text{median}=\\;\\;$[[0]]               (give your answer to 1 d.p. if necessary)

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

To find the median:

\n

List the numbers in order of increasing size. The median is then the middle number. If there are two middle numbers we take the mean of the two middle numbers.

", "extendBaseMarkingAlgorithm": true, "type": "information", "marks": 0, "showCorrectAnswer": true, "scripts": {}, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true}]}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

$\\text{mode}=\\;\\;$[[0]]

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

The mode is the number that occurs most often.

", "extendBaseMarkingAlgorithm": true, "type": "information", "marks": 0, "showCorrectAnswer": true, "scripts": {}, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true}]}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

$\\text{range}=\\;\\;$[[0]]

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "sortAnswers": false, "marks": 0, "variableReplacements": [], "gaps": [{"extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "maxValue": "{a2-a3}", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "mustBeReduced": false, "marks": 1, "correctAnswerStyle": "plain", "variableReplacements": [], "mustBeReducedPC": 0, "minValue": "{a2-a3}", "customMarkingAlgorithm": "", "showFeedbackIcon": true}], "customMarkingAlgorithm": "", "showFeedbackIcon": true}], "extensions": ["stats"], "name": "Simon's copy of Mean, median, mode and range", "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
\n

Exam covering questions on the Errorsr part of the SOEE5154M Maths course.

\n

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

\n

rebelmaths

\n
"}, "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}