// Numbas version: finer_feedback_settings {"name": "Michael's copy of Harry's copy of Exam version of 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": [{"rulesets": {"std": ["all", "!collectNumbers", "!noLeadingMinus"]}, "variable_groups": [], "variables": {"a4": {"name": "a4", "group": "Ungrouped variables", "description": "", "definition": "random(122..125)", "templateType": "anything"}, "a1": {"name": "a1", "group": "Ungrouped variables", "description": "", "definition": "random(110..115)", "templateType": "anything"}, "a2": {"name": "a2", "group": "Ungrouped variables", "description": "", "definition": "random(116..121)", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "description": "", "definition": "a2", "templateType": "anything"}, "a6": {"name": "a6", "group": "Ungrouped variables", "description": "", "definition": "random(126..130)", "templateType": "anything"}, "a5": {"name": "a5", "group": "Ungrouped variables", "description": "", "definition": "random(126..130 except a6)", "templateType": "anything"}, "a7": {"name": "a7", "group": "Ungrouped variables", "description": "", "definition": "random(131..140)", "templateType": "anything"}}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "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}$.
\nCalculate the mean, median and mode of these emissions.
Mean: Add up all the numbers and divide by the number of numbers.
\nMedian: middle value
\nMode: most common value
\n", "parts": [{"prompt": "$\\text{mean}=\\;\\;$[[0]] (correct to two decimal places)
", "gaps": [{"answer": "{precround(1/7*(a1+a2+a3+a4+a5+a6+a7),2)}", "checkingtype": "absdiff", "scripts": {}, "expectedvariablenames": [], "showpreview": true, "variableReplacementStrategy": "originalfirst", "vsetrangepoints": 5, "showFeedbackIcon": true, "vsetrange": [0, 1], "checkingaccuracy": 0.01, "showCorrectAnswer": true, "answersimplification": "std", "variableReplacements": [], "marks": 2, "checkvariablenames": false, "type": "jme"}], "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "gapfill"}, {"prompt": "$\\text{median}=\\;\\;$[[0]]
", "gaps": [{"allowFractions": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "scripts": {}, "maxValue": "{a4}", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "minValue": "{a4}", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacements": [], "marks": 2, "type": "numberentry"}], "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "gapfill"}, {"prompt": "$\\text{mode}=\\;\\;$[[0]]
", "gaps": [{"allowFractions": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "scripts": {}, "maxValue": "{a2}", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "minValue": "{a2}", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacements": [], "marks": 2, "type": "numberentry"}], "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "type": "gapfill"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "functions": {}, "tags": [], "name": "Michael's copy of Harry's copy of Exam version of Mean, Median, Mode for Auto", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Topics covered are calculating the mean, median, mode and standard deviation.
\nrebelmaths
\n