// Numbas version: finer_feedback_settings {"name": "Lois's copy of Mode, Median, Mean (Bill)", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"isnotalist": {"definition": "return !Array.isArray(a);", "type": "boolean", "parameters": [["a", "list"]], "language": "javascript"}}, "ungrouped_variables": ["dat", "a", "mo", "me", "md"], "name": "Lois's copy of Mode, Median, Mean (Bill)", "tags": ["average", "descriptive statistics", "mean", "median", "mode", "statistics"], "advice": "

The mean, median and mode are all averages. Each gives us some information about a typical member of a set of data.

\n

To calculate the mean, you need to find the total of all the test scores and divide it by the number of scores -- in this case 10.

\n

The median is the middle score, when the scores are arranged in order. In this case the number of scores is even, so we need to find the mean of the 5th and 6th scores.

\n

The mode is the most frequent score.

\n

See

\n

http://www.skillsyouneed.com/num/averages.html  
for more information on these three types of average.

", "rulesets": {}, "parts": [{"prompt": "

{a[0]},  {a[1]},  {a[2]}, {a[3]}, {a[4]}, {a[5]}, {a[6]}, {a[7]}, {a[8]}, {a[9]}

\n

Mean: [[0]]

\n

Median: [[1]]

\n

Mode: [[2]]

\n

Give your answers to 1 d.p. where appropriate.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "me", "minValue": "me", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "md", "minValue": "md", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "mo", "minValue": "mo", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": ["stats"], "statement": "

Find the mean, median and mode of the following 10 test scores.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"dat": {"definition": "satisfy(\n [a],\n [\n //a is given as a list by generating 10 numbers between 4 and 18\n repeat(random(4..18),10)],\n [ //the conditions are given to force one mode and a reasonably large variance\n //to give some variation.\n length(mode(a))=1,\n variance(a)>8\n ],\n 250\n )", "templateType": "anything", "group": "Ungrouped variables", "name": "dat", "description": ""}, "a": {"definition": "dat[0]", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "mo": {"definition": "mode(a)[0]", "templateType": "anything", "group": "Ungrouped variables", "name": "mo", "description": ""}, "me": {"definition": "mean(a)", "templateType": "anything", "group": "Ungrouped variables", "name": "me", "description": ""}, "md": {"definition": "median(a)", "templateType": "anything", "group": "Ungrouped variables", "name": "md", "description": ""}}, "metadata": {"description": "

Find the mean, median and mode of a list of 10 test scores.

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