// Numbas version: exam_results_page_options {"name": "Mean, Median, Mode for Auto", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "tags": ["halesowen college", "median", "mode", "rebel", "Rebel", "REBEL", "rebelmaths", "sample mean", "standard deviation", "statistics", "teame"], "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "type": "question", "rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "variable_groups": [], "advice": "

Mean: Add up all the numbers and divide by the number of numbers.

\n

Median: middle value

\n

Mode: most common value

\n

", "parts": [{"scripts": {}, "variableReplacements": [], "prompt": "

$\\text{mean}=\\;\\;$[[0]] (correct to two decimal places)

", "stepsPenalty": "1", "variableReplacementStrategy": "originalfirst", "gaps": [{"expectedvariablenames": [], "answer": "{precround(1/7*(a1+a2+a3+a4+a5+a6+a7),2)}", "variableReplacementStrategy": "originalfirst", "vsetrangepoints": 5, "vsetrange": [0, 1], "showpreview": true, "checkingaccuracy": 0.01, "scripts": {}, "variableReplacements": [], "answersimplification": "std", "checkvariablenames": false, "showCorrectAnswer": true, "marks": 2, "type": "jme", "checkingtype": "absdiff"}], "showCorrectAnswer": true, "marks": 0, "type": "gapfill", "steps": [{"scripts": {}, "variableReplacements": [], "prompt": "

To find the mean:

\n

1. Add up all the numbers.

\n

2. Divide by the number of numbers.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "type": "information"}]}, {"scripts": {}, "variableReplacements": [], "prompt": "

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

", "stepsPenalty": "1", "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "type": "numberentry", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "marks": 2, "showCorrectAnswer": true, "minValue": "{a4}", "scripts": {}, "showPrecisionHint": false, "maxValue": "{a4}"}], "showCorrectAnswer": true, "marks": 0, "type": "gapfill", "steps": [{"scripts": {}, "variableReplacements": [], "prompt": "

To find the median:

\n

List the numbers in order of increasing size. 

\n

The median is then the middle number.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "type": "information"}]}, {"scripts": {}, "variableReplacements": [], "prompt": "

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

", "stepsPenalty": "1", "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "type": "numberentry", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "marks": 2, "showCorrectAnswer": true, "minValue": "{a2}", "scripts": {}, "showPrecisionHint": false, "maxValue": "{a2}"}], "showCorrectAnswer": true, "marks": 0, "type": "gapfill", "steps": [{"scripts": {}, "variableReplacements": [], "prompt": "

The mode is the number that occurs most often.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "type": "information"}]}], "showQuestionGroupNames": false, "statement": "

The fuel emissions (in g/km of CO2) of a sample of 7 diesel cars of similar type have been recorded as follows:

\n

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

\n

Calculate the mean, median and mode of these emissions.

", "variables": {"a7": {"description": "", "group": "Ungrouped variables", "name": "a7", "definition": "random(131..140)", "templateType": "anything"}, "a2": {"description": "", "group": "Ungrouped variables", "name": "a2", "definition": "random(116..121)", "templateType": "anything"}, "a6": {"description": "", "group": "Ungrouped variables", "name": "a6", "definition": "random(126..130)", "templateType": "anything"}, "a1": {"description": "", "group": "Ungrouped variables", "name": "a1", "definition": "random(110..115)", "templateType": "anything"}, "a5": {"description": "", "group": "Ungrouped variables", "name": "a5", "definition": "random(126..130 except a6)", "templateType": "anything"}, "a4": {"description": "", "group": "Ungrouped variables", "name": "a4", "definition": "random(122..125)", "templateType": "anything"}, "a3": {"description": "", "group": "Ungrouped variables", "name": "a3", "definition": "a2", "templateType": "anything"}}, "metadata": {"description": "
\n

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

\n

rebelmaths

\n
", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "extensions": ["stats"], "name": "Mean, Median, Mode for Auto", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}