// Numbas version: exam_results_page_options {"showstudentname": true, "timing": {"timeout": {"message": "", "action": "none"}, "allowPause": true, "timedwarning": {"message": "", "action": "none"}}, "navigation": {"preventleave": true, "allowregen": true, "onleave": {"message": "", "action": "none"}, "showresultspage": "oncompletion", "showfrontpage": true, "reverse": true, "startpassword": "", "allowsteps": true, "browse": true}, "metadata": {"licence": "None specified", "description": ""}, "duration": 0, "feedback": {"feedbackmessages": [], "showactualmark": true, "advicethreshold": 0, "intro": "", "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true}, "name": "Central Tendency", "showQuestionGroupNames": false, "percentPass": "40", "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Mean", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "tags": ["median", "mode", "Rebel", "REBEL", "rebel", "rebelmaths", "sample mean", "standard deviation", "statistics", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

To find the mean: Add up all the values. Then divide by the number of values.

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

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "1/7*{(a1+a2+a3+a4+a5+a6+a7)}", "strictPrecision": false, "minValue": "1/7*{(a1+a2+a3+a4+a5+a6+a7)}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "1", "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Calculate the mean of the following set of numbers correct to one decimal place:

\n

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a1": {"definition": "random(9..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a3": {"definition": "random(5..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "a2": {"definition": "random(7..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "a5": {"definition": "random(0..2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a5", "description": ""}, "a4": {"definition": "random(3..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a4", "description": ""}, "a7": {"definition": "random(3..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a7", "description": ""}, "a6": {"definition": "random(3..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a6", "description": ""}}, "metadata": {"description": "
\n

calculating mean

\n

rebelmaths

\n
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Mode, Median, Mean", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {"isnotalist": {"definition": "return !Array.isArray(a);", "type": "boolean", "language": "javascript", "parameters": [["a", "list"]]}}, "ungrouped_variables": ["dat", "a", "mo", "me", "md"], "tags": ["descriptive statistics", "mean", "median", "mode", "Rebel", "REBEL", "rebel", "rebelmaths", "statistics", "teame"], "preamble": {"css": "", "js": ""}, "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 http://www.skillsyouneed.com/num/averages.html  

\n

for more information on these three types of average.

", "rulesets": {}, "parts": [{"stepsPenalty": "1", "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 decimal place where appropriate.

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

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.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "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"}], "statement": "

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "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.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Mean, Median, Mode for Auto", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "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"}], "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": []}]}, {"name": "Julie's copy of Jack's copy of SOEE5154 - Mean, median, mode and standard deviation", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "parts": [{"marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "prompt": "

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

\n

Enter decimal answers to 1 decimal places.

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

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

", "gaps": [{"correctAnswerStyle": "plain", "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "minValue": "{a4}", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 2, "allowFractions": false, "showFeedbackIcon": true, "maxValue": "{a4}", "notationStyles": ["plain", "en", "si-en"], "scripts": {}}], "scripts": {}}, {"marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "prompt": "

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

", "gaps": [{"correctAnswerStyle": "plain", "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "minValue": "{a4}", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 2, "allowFractions": false, "showFeedbackIcon": true, "maxValue": "{a4}", "notationStyles": ["plain", "en", "si-en"], "scripts": {}}], "scripts": {}}, {"marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "prompt": "

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

", "gaps": [{"showpreview": true, "answersimplification": "std", "type": "jme", "checkingaccuracy": 0.01, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "vsetrange": [0, 1], "vsetrangepoints": 5, "answer": "{a2-a3}", "checkvariablenames": false, "expectedvariablenames": [], "variableReplacements": [], "marks": 2, "checkingtype": "absdiff", "showFeedbackIcon": true, "scripts": {}}], "scripts": {}}], "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "functions": {}, "variables": {"a4": {"description": "", "group": "Ungrouped variables", "name": "a4", "definition": "random(1..3)", "templateType": "anything"}, "a7": {"description": "", "group": "Ungrouped variables", "name": "a7", "definition": "a4", "templateType": "anything"}, "a2": {"description": "", "group": "Ungrouped variables", "name": "a2", "definition": "random(7..8)", "templateType": "anything"}, "a5": {"description": "", "group": "Ungrouped variables", "name": "a5", "definition": "random(-4..-3)", "templateType": "anything"}, "a3": {"description": "", "group": "Ungrouped variables", "name": "a3", "definition": "random(-6..-5)", "templateType": "anything"}, "a1": {"description": "", "group": "Ungrouped variables", "name": "a1", "definition": "random(-2..-1)", "templateType": "anything"}, "a6": {"description": "", "group": "Ungrouped variables", "name": "a6", "definition": "random(4..6)", "templateType": "anything"}}, "advice": "

Mean: $\\mu = \\frac{1}{N}\\sum\\limits_{i=1}^N x_i$

\n

Median: middle value

\n

Mode: most common value

\n

Range: Highest value - lowest value

", "statement": "

For the last 7 days in October, the express train arrived late at it's destination by the times (in minutes) listed below. A negative number means that the trian was early by that number of minutes. Calculate the mean, median, mode and range of the data.

\n

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

", "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "metadata": {"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
", "licence": "Creative Commons Attribution 4.0 International"}, "tags": ["median", "mode", "rebelmaths", "sample mean", "standard deviation", "statistics"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question"}, {"name": "Averages (frequency table)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a", "b"], "tags": ["average", "frequency table", "REBEL", "rebel", "Rebel", "rebelmaths", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

See \"show steps\" within this question for more help.

", "rulesets": {}, "parts": [{"stepsPenalty": "1", "vsetrangepoints": 5, "prompt": "

What is the mean value (correct to 2 decimal places)?

", "expectedvariablenames": [], "checkingaccuracy": "2", "vsetrange": [0, 1], "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

To find the mean use the formula $\\frac{\\Sigma fx}{\\Sigma f}$

\n

In other words $\\frac{(0\\times\\var{f1})+(1\\times \\var{f2})+(2\\times\\var{f3})+(3\\times\\var{f4}) +(4\\times\\var{f5})+(5\\times\\var{f6})}{\\var{f1}+\\var{f2}+\\var{f3}+\\var{f4}+\\var{f5}+\\var{f6}}$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "showCorrectAnswer": true, "scripts": {}, "answer": "{mn}", "marks": "4", "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}, {"stepsPenalty": "1", "prompt": "

What is the median value?

", "allowFractions": false, "variableReplacements": [], "maxValue": "{median}", "minValue": "{median}", "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The median is the \"middle\" value. 

\n

In a frequency table, the observations are already arranged in an ascending order. We can obtain the median by looking for the value in the middle position.

\n

First add up the frequencies to find $n$.

\n

Case 1. When the sum of the frequencies is odd, then the median is the value at the $\\frac{n+1}{2}^{th}$ position.
Case 2. When the sum of the frequencies is even, then the median is the average of values at the positions $\\frac{n}{2}^{th}$ and $\\frac{n+1}{2}^{th}$.

\n


We need to add up the frequencies until we reach this value and then the class we land in is the median.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "3", "type": "numberentry", "showPrecisionHint": false}, {"stepsPenalty": "1", "prompt": "

What is the mode? (If it is undefined, enter \"0\".)

", "allowFractions": false, "variableReplacements": [], "maxValue": "1", "minValue": "1", "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The mode is the number which occurs most often. In other words the class with the  highest frequency.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "3", "type": "numberentry", "showPrecisionHint": false}], "statement": "

Calculate the mean, the median and the mode for the following frequency table:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Class012345
Frequency{f1}{f2}{f3}{f4}{f5}{f6}
", "variable_groups": [{"variables": ["f1", "f2", "f3", "f4", "f5", "f6"], "name": "Frequencies"}, {"variables": ["cf2", "cf3", "cf4", "cf5", "tot"], "name": "Cumulative"}, {"variables": ["a1", "a2", "a3", "a4", "a5", "mp5", "median"], "name": "Median calculations"}, {"variables": ["sfx", "mn"], "name": "Mean calculations"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"f1": {"definition": "random(5..20)", "templateType": "anything", "group": "Frequencies", "name": "f1", "description": ""}, "f2": {"definition": "f1+a", "templateType": "anything", "group": "Frequencies", "name": "f2", "description": ""}, "f3": {"definition": "f1-1", "templateType": "anything", "group": "Frequencies", "name": "f3", "description": ""}, "f4": {"definition": "f1-a", "templateType": "anything", "group": "Frequencies", "name": "f4", "description": ""}, "f5": {"definition": "f1-b", "templateType": "anything", "group": "Frequencies", "name": "f5", "description": ""}, "f6": {"definition": "a", "templateType": "anything", "group": "Frequencies", "name": "f6", "description": ""}, "mp5": {"definition": "tot/2", "templateType": "anything", "group": "Median calculations", "name": "mp5", "description": ""}, "tot": {"definition": "cf5+f6", "templateType": "anything", "group": "Cumulative", "name": "tot", "description": ""}, "sfx": {"definition": "0*f1+1*f2+2*f3+3*f4+4*f5+5*f6", "templateType": "anything", "group": "Mean calculations", "name": "sfx", "description": ""}, "a1": {"definition": "switch(f1mp5,0)", "templateType": "anything", "group": "Median calculations", "name": "a1", "description": ""}, "a3": {"definition": "switch(cf3mp5,0)", "templateType": "anything", "group": "Median calculations", "name": "a3", "description": ""}, "a2": {"definition": "switch(cf2mp5,0)", "templateType": "anything", "group": "Median calculations", "name": "a2", "description": ""}, "a5": {"definition": "switch(cf5mp5,0)", "templateType": "anything", "group": "Median calculations", "name": "a5", "description": ""}, "a4": {"definition": "switch(cf4mp5,0)", "templateType": "anything", "group": "Median calculations", "name": "a4", "description": ""}, "cf4": {"definition": "cf3+f4", "templateType": "anything", "group": "Cumulative", "name": "cf4", "description": ""}, "cf5": {"definition": "cf4+f5", "templateType": "anything", "group": "Cumulative", "name": "cf5", "description": ""}, "cf2": {"definition": "f1+f2", "templateType": "anything", "group": "Cumulative", "name": "cf2", "description": ""}, "cf3": {"definition": "cf2+f3", "templateType": "anything", "group": "Cumulative", "name": "cf3", "description": ""}, "a": {"definition": "random(1..f1-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b": {"definition": "random(a..f1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "mn": {"definition": "sfx/tot", "templateType": "anything", "group": "Mean calculations", "name": "mn", "description": ""}, "median": {"definition": "a1+a2+a3+a4+a5", "templateType": "anything", "group": "Median calculations", "name": "median", "description": ""}}, "metadata": {"description": "

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Julie's copy of Mean from a frequency table", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "Answer", "Total", "data"], "tags": ["rebelmaths"], "advice": "

You need to calculate Ali's total score and then divide this by the total number of games he played.

\n

$ (\\var{a}  \\times \\var{p}) + (\\var{b} \\times \\var{q}) + (\\var{c}  \\times \\var{r}) + (\\var{d} \\times \\var{s}) + (\\var{f} \\times \\var {t}) = \\var{Total} $

\n

$ \\var{Total} \\div 20 =\\var{Answer} $

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

{table ( data, [\"Score\", \"Frequency\"]) }

\n

\n

Mean Score: [[0]]

\n

Do not round your answer.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{Total}/20", "minValue": "{Total}/20", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "5", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Ali plays a computer game 20 times. In each game he gets a score between -10 and 10.

\n

His results are shown in the table below.

\n

Calculate his mean score over the 20 games.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(4..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(4..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "f": {"definition": "20 -a-b-c-d", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "q": {"definition": "random(-4..-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(-10..-5)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "s": {"definition": "random(5..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "r": {"definition": "random(0..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "t": {"definition": "random(8..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "Answer": {"definition": "Total/20", "templateType": "anything", "group": "Ungrouped variables", "name": "Answer", "description": ""}, "Total": {"definition": "a*p + b*q+c*r +d*s +f*t\n", "templateType": "anything", "group": "Ungrouped variables", "name": "Total", "description": ""}, "data": {"definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "templateType": "anything", "group": "Ungrouped variables", "name": "data", "description": ""}}, "metadata": {"description": "

Scores (including negatives)  in 20 games and frequency given -- calculate mean.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Julie's copy of Mean from a frequency table - classes", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "Answer", "x", "Total", "data"], "tags": ["rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

$\\Sigma fx= (\\var{a}  \\times \\var{q}) + (\\var{b} \\times \\var{p}) +( \\var{c}  \\times \\var{s}) + (\\var{d} \\times \\var{r}) + (\\var{f} \\times \\var {t}) = \\var{Total} $

\n

mean $=\\frac{\\Sigma fx}{\\Sigma f}= \\var{Total} \\div 20 =\\var{Answer} $

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

\n\n\n\n\n\n\n\n\n\n
Class ( in euro)frequency
{q-5} but less than {q+5}{a}
{p-5} but less than {p+5}{b}
{s-5} but less than {s+5}{c}
{r-5} but less than {r+5}{d}
{t-5} but less than {t+5}{f}
\n

\n

Mean: [[0]]euro (correct to 2 decimal places)

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{Total}/20", "strictPrecision": false, "minValue": "{Total}/20", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": "4", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

In CITech Ltd there was a special fundraising drive among staff for ebola affected regions of Africa. A sister of one of the staff is an aid worker in Africa. The frequency table below describes the amount in euro donated by individual staff. Calculate the mean for the data.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(4..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(4..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "f": {"definition": "20 -a-b-c-d", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "q": {"definition": "x+10", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "x+20", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "s": {"definition": "x+30", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "r": {"definition": "x+40", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "t": {"definition": "x+50", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "stdev": {"definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2 +f*t^2)/20- (Total/20)^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "stdev", "description": ""}, "Answer": {"definition": "Total/20", "templateType": "anything", "group": "Ungrouped variables", "name": "Answer", "description": ""}, "x": {"definition": "random(10..90#10)", "templateType": "randrange", "group": "Ungrouped variables", "name": "x", "description": ""}, "Total": {"definition": "a*q + b*p+c*s +d*r +f*t\n", "templateType": "anything", "group": "Ungrouped variables", "name": "Total", "description": ""}, "data": {"definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "templateType": "anything", "group": "Ungrouped variables", "name": "data", "description": ""}}, "metadata": {"description": "

Scores  in 20 games and frequency given -- calculate mean.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Standard deviation of a list of numbers with hints", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "variables": {"var": {"name": "var", "description": "", "definition": "sigma^2", "group": "Ungrouped variables", "templateType": "anything"}, "x": {"name": "x", "description": "", "definition": "random(4,5,8)", "group": "Ungrouped variables", "templateType": "anything"}, "sigma": {"name": "sigma", "description": "", "definition": "stdev(data)", "group": "Ungrouped variables", "templateType": "anything"}, "data": {"name": "data", "description": "", "definition": "repeat(random(1..30),x)", "group": "Ungrouped variables", "templateType": "anything"}, "mean": {"name": "mean", "description": "", "definition": "mean(data)", "group": "Ungrouped variables", "templateType": "anything"}}, "showQuestionGroupNames": false, "advice": "

Standard deviation = $\\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

What is the mean? Add up the numbers and divide by the number of numbers getting an answer of {mean}.

\n

Now, subtract the mean individually from each of the numbers given and square the result. 

\n

Now add up these results. This is the '$\\Sigma (x-\\text{mean})^2$' part in the formula.
Divide by {x} the number of values. This gives an answer of {var}.

\n

Finally, find the square root to get an answer of {sigma}.

", "tags": ["rebel", "Rebel", "REBEL", "rebelmaths"], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"description": "

Just showing how to use the stdev function from the stats extension to calculate the standard deviation of a list of numbers.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Find the Standard Deviation

", "type": "question", "rulesets": {}, "functions": {}, "variable_groups": [], "ungrouped_variables": ["data", "sigma", "x", "mean", "var"], "preamble": {"js": "", "css": ""}, "parts": [{"steps": [{"type": "information", "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "prompt": "

Standard deviation = $\\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

To find the standard deviation, first find the mean of the list of numbers. 

\n

What is the mean?

\n

Now, subtract the mean individually from each of the numbers given and square the result. 

\n

Now add up these results. This is the '$\\Sigma (x-\\text{mean})^2$' part in the formula.
Divide by $n$ where $n$ is the number of values.

\n

Finally, find the square root.

"}], "showCorrectAnswer": true, "precision": "1", "showPrecisionHint": false, "minValue": "{sigma}", "precisionType": "dp", "prompt": "

Find the standard deviation of the following list of numbers {data}.

\n

Give your answer correct to one decimal place.

", "precisionMessage": "

You have not given your answer to the correct number of decimal places.

", "stepsPenalty": "1", "type": "numberentry", "precisionPartialCredit": 0, "marks": "5", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "strictPrecision": false, "maxValue": "{sigma}", "allowFractions": false, "variableReplacements": []}], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}]}, {"name": "Mean, median, mode and range", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "tags": ["median", "mode", "rebel", "Rebel", "REBEL", "rebelmaths", "sample mean", "standard deviation", "statistics"], "advice": "

Mean: $\\mu = \\frac{1}{N}\\sum\\limits_{i=1}^N x_i$

\n

Median: middle value

\n

Mode: most common value

\n

Range: highest value - lowest value.

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

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

\n

Enter decimal answers to 3 decimal places.

\n ", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.01, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "1/7*{(a1+a2+a3+a4+a5+a6+a7)}", "marks": 3, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "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"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 1, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{a4}", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "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"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 1, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{a4}", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "steps": [{"prompt": "

The mode is the number that occurs most often.

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

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.01, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{a2-a3}", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "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{a1}, \\var{a2}, \\var{a3}, \\var{a4}, \\var{a5}, \\var{a6}, \\var{a7}$ .

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a1": {"definition": "random(2..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a3": {"definition": "random(0..1)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "a2": {"definition": "random(9..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "a5": {"definition": "random(4..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a5", "description": ""}, "a4": {"definition": "random(6..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "a4", "description": ""}, "a7": {"definition": "a4", "templateType": "anything", "group": "Ungrouped variables", "name": "a7", "description": ""}, "a6": {"definition": "random(7..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "a6", "description": ""}}, "metadata": {"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
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Mean, Median, Mode and Standard Deviation", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "functions": {}, "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "tags": ["halesowen college", "median", "mode", "REBEL", "rebel", "Rebel", "rebelmaths", "sample mean", "standard deviation", "statistics", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

Mean: $\\mu = \\frac{1}{N}\\sum\\limits_{i=1}^N x_i$

\n

Median: middle value

\n

Mode: most common value

\n

Standard deviation: $\\sigma = \\sqrt{ \\frac{\\sum_{i=1}^N (x_i-\\mu)^2}{N}}$

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

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "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"}, {"prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{a3}", "strictPrecision": false, "minValue": "{a3}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 2, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

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

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

$\\text{standard deviation}=\\;\\;$[[0]]

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

Calculate the mean, median, mode and standard deviation of the following set of numbers:

\n

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

\n


Enter you answers as decimals to 2 decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a1": {"definition": "random(-5..0)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a3": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "a2": {"definition": "random(-10..-6)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "a5": {"definition": "random(4..10 except a4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a5", "description": ""}, "a4": {"definition": "random(4..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a4", "description": ""}, "a7": {"definition": "a3", "templateType": "anything", "group": "Ungrouped variables", "name": "a7", "description": ""}, "a6": {"definition": "random(-5..0 except a1)", "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": []}]}, {"name": "Mean missing data", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "variables": {"f": {"name": "f", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..9)"}, "tot": {"name": "tot", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "a+b+c+d"}, "g": {"name": "g", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "5*mean"}, "d": {"name": "d", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..9)"}, "b": {"name": "b", "description": "", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(1..9#1)"}, "c": {"name": "c", "description": "", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(1..9#1)"}, "mean": {"name": "mean", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "(a+b+c+d+f)/5"}, "a": {"name": "a", "description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..9)"}}, "advice": "

$\\frac{\\var{a}+\\var{b}+\\var{c}+\\var{d}+x}{5}=\\var{mean}$,

\n

$\\var{a}+\\var{b}+\\var{c}+\\var{d}+x=5\\times\\var{mean}$,

\n

\n

$\\var{tot}+x=\\var{g}$,

\n

$x=\\var{g}-\\var{tot}$

\n

$x=\\var{f}$

\n

", "variable_groups": [], "ungrouped_variables": ["a", "b", "c", "d", "f", "mean", "g", "tot"], "tags": ["mean", "Rebel", "REBEL", "rebel", "rebelmaths"], "metadata": {"description": "

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"type": "gapfill", "showFeedbackIcon": true, "steps": [{"type": "information", "showFeedbackIcon": true, "marks": 0, "prompt": "

To find the mean of a set of numbers add them together and divide by the number of numbers.

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

The mean of $\\var{a}, \\var{b}, \\var{c}, \\var{d}$ and $x$ is $\\var{mean}$, find the value of $x$.

\n

$x=$[[0]]

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "gaps": [{"allowFractions": false, "minValue": "{f}", "correctAnswerStyle": "plain", "marks": 1, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "scripts": {}, "maxValue": "{f}", "type": "numberentry", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}], "showCorrectAnswer": true, "scripts": {}}], "statement": "

Find the value of x given information about the mean

", "functions": {}, "preamble": {"css": "", "js": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "type": "question"}]}], "contributors": [{"name": "Rachel Gargan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/828/"}], "extensions": ["stats"], "custom_part_types": [], "resources": []}