// Numbas version: finer_feedback_settings {"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": [{"functions": {}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "name": "Mean, Median, Mode for Auto", "tags": ["halesowen college", "median", "mode", "rebel", "Rebel", "REBEL", "rebelmaths", "sample mean", "standard deviation", "statistics", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

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

\n

Median: middle value

\n

Mode: most common value

\n

", "rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"stepsPenalty": "1", "prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

To find the mean:

\n

1. Add up all the numbers.

\n

2. Divide by the number of numbers.

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

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

To find the median:

\n

List the numbers in order of increasing size. 

\n

The median is then the middle number.

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

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The mode is the number that occurs most often.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{a2}", "minValue": "{a2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 2, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": ["stats"], "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.

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

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

\n

rebelmaths

\n
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "resources": []}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}