// Numbas version: exam_results_page_options {"feedback": {"showtotalmark": true, "showanswerstate": true, "showactualmark": true, "intro": "", "advicethreshold": 0, "feedbackmessages": [], "allowrevealanswer": true}, "name": "Michael's copy of Harry's copy of Measures of central tendency and spread-original without context", "duration": 0, "percentPass": 0, "navigation": {"allowregen": true, "browse": true, "showresultspage": "oncompletion", "showfrontpage": true, "onleave": {"message": "", "action": "none"}, "preventleave": true, "reverse": true}, "showQuestionGroupNames": false, "timing": {"allowPause": true, "timeout": {"message": "", "action": "none"}, "timedwarning": {"message": "", "action": "none"}}, "question_groups": [{"name": "Group", "pickQuestions": 1, "pickingStrategy": "all-ordered", "questions": [{"name": "Michael's copy of Complete a frequency table and find the measures of central tendency", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}], "rulesets": {}, "statement": "

30 random students were asked about the number of siblings they have. These are their responses:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{a[0]}$$\\var{a[1]}$$\\var{a[2]}$$\\var{a[3]}$$\\var{a[4]}$$\\var{a[5]}$$\\var{a[6]}$$\\var{a[7]}$$\\var{a[8]}$$\\var{a[9]}$
$\\var{a[10]}$$\\var{a[11]}$$\\var{a[12]}$$\\var{a[13]}$$\\var{a[14]}$$\\var{a[15]}$$\\var{a[16]}$$\\var{a[17]}$$\\var{a[18]}$$\\var{a[19]}$
$\\var{a[20]}$$\\var{a[21]}$$\\var{a[22]}$$\\var{a[23]}$$\\var{a[24]}$$\\var{a[25]}$$\\var{a[26]}$$\\var{a[27]}$$\\var{a[28]}$$\\var{a[29]}$
\n

", "metadata": {"description": "

Given a table of data, calculate the mean, mode and median, and complete a frequency table.

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "variables": {"a2": {"templateType": "anything", "name": "a2", "definition": "shuffle(repeat(random(0..1), 13) + 0 + 2 + 2 + repeat(random(2..3), 10) + repeat(random(4..5), 3) + random(0..6))", "group": "Ungrouped variables", "description": ""}, "a3": {"templateType": "anything", "name": "a3", "definition": "shuffle(repeat(0, 7) + repeat(1, 10) + repeat(2, 5) + repeat(3, 4) + repeat(4, 2) + repeat(5,1) + repeat(6,1))", "group": "Ungrouped variables", "description": ""}, "modea2": {"templateType": "anything", "name": "modea2", "definition": "mode(a2)", "group": "Ungrouped variables", "description": ""}, "mode": {"templateType": "anything", "name": "mode", "definition": "m[0]", "group": "Final data", "description": ""}, "mean": {"templateType": "anything", "name": "mean", "definition": "mean(a)", "group": "Final data", "description": ""}, "a1": {"templateType": "anything", "name": "a1", "definition": "shuffle(repeat(random(0..1), 13) + 0 + 2 + 2 + repeat(random(2..3), 10) + repeat(random(4..5), 3) + random(0..6))", "group": "Ungrouped variables", "description": ""}, "as": {"templateType": "anything", "name": "as", "definition": "sort(a)", "group": "Final data", "description": ""}, "median": {"templateType": "anything", "name": "median", "definition": "median(a)", "group": "Final data", "description": ""}, "a": {"templateType": "anything", "name": "a", "definition": "if(len(modea1) = 1, a1, if(len(modea2) = 1, a2, a3))", "group": "Final data", "description": ""}, "modea1": {"templateType": "anything", "name": "modea1", "definition": "mode(a1)", "group": "Ungrouped variables", "description": ""}, "freq": {"templateType": "anything", "name": "freq", "definition": "map(\nlen(filter(x=j,x,a)),\nj, 0..6)", "group": "Final data", "description": ""}, "modea3": {"templateType": "anything", "name": "modea3", "definition": "mode(a3)", "group": "Ungrouped variables", "description": ""}, "m": {"templateType": "anything", "name": "m", "definition": "mode(a)", "group": "Final data", "description": ""}}, "variable_groups": [{"name": "Final data", "variables": ["a", "mean", "median", "m", "mode", "freq", "as"]}], "tags": ["Frequency Table", "Frequency table", "frequency table", "taxonomy"], "variablesTest": {"condition": "", "maxRuns": "1000"}, "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

Complete 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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Number of siblingsFrequency
$0$[[0]]
$1$[[1]]
$2$[[2]]
$3$[[3]]
$4$[[4]]
$5$[[5]]
$6$[[6]]
Total$30$
\n

", "showCorrectAnswer": true, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "scripts": {}, "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[0]", "maxValue": "freq[0]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[1]", "maxValue": "freq[1]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[2]", "maxValue": "freq[2]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[3]", "maxValue": "freq[3]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[4]", "maxValue": "freq[4]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[5]", "maxValue": "freq[5]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "freq[6]", "maxValue": "freq[6]", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}], "type": "gapfill"}, {"variableReplacementStrategy": "originalfirst", "prompt": "

Find the mean, mode and median for this data.

\n

Mean = [[0]]

\n

Mode =  [[1]]

\n

Median =  [[2]]

", "showCorrectAnswer": true, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "scripts": {}, "gaps": [{"correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "precision": "2", "showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "precisionPartialCredit": 0, "scripts": {}, "type": "numberentry", "maxValue": "mean", "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "allowFractions": false, "showPrecisionHint": true, "correctAnswerStyle": "plain", "strictPrecision": false, "minValue": "mean", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "mode", "maxValue": "mode", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}, {"correctAnswerFraction": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "scripts": {}, "minValue": "median", "maxValue": "median", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}], "type": "gapfill"}], "ungrouped_variables": ["a1", "modea1", "a2", "modea2", "a3", "modea3"], "advice": "

a)

\n

Organising the data in a frequency table helps to make mistakes less likely when calculating statistics from our data, summarising the responses all in one place with fewer numbers.

\n

Each row of the frequency column gives the number of students with the corresponding number of siblings.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Number of siblingsFrequency
$0$$\\var{freq[0]}$
$1$$\\var{freq[1]}$
$2$$\\var{freq[2]}$
$3$$\\var{freq[3]}$
$4$$\\var{freq[4]}$
$5$$\\var{freq[5]}$
$6$$\\var{freq[6]}$
Total$30$
\n

Always remember to check whether your frequency column adds up to the total (here, it is $30$) to make sure you have not left out any responses.

\n

b)

\n

Mean

\n

The mean number of siblings is the total number of siblings, $\\sum x$, divided by the number of students in the sample, $n$.

\n

\\begin{align}  
\\sum x &= 0 \\times \\var{freq[0]} + 1 \\times \\var{freq[1]} + 2 \\times \\var{freq[2]} + 3 \\times \\var{freq[3]} + 4 \\times \\var{freq[4]} + 5 \\times \\var{freq[5]} + 6 \\times \\var{freq[6]}
\\\\
&= 0 + \\var{1*freq[1]} + \\var{2*freq[2]} + \\var{3*freq[3]} + \\var{4*freq[4]} + \\var{5*freq[5]} + \\var{6*freq[6]} \\\\&= \\var{sum(a)} \\text{.}
\\end{align}

\n

The total number of students $n$ is $30$.

\n

Therefore the mean is

\n

\\begin{align}
\\bar{x} &= \\frac{\\sum x}{n} \\\\
&= \\frac{\\var{sum(a)}}{30} \\\\
&= \\var{mean} \\text{.}
\\end{align}

\n

Rounding the answer to 2 decimal places, we get $\\var{precround(mean, 2)}$.

\n

Mode

\n

The mode is the value with the highest frequency. Here, the mode is $\\var{mode}$ siblings, with frequency $\\var{freq[mode]}$.

\n

Median

\n

The median is the \"middle\" value in the sample, when arranged in numerical order.

\n

Since $n = 30$, we have two middle values in this data (15th and 16th place). We can count from the top of the table until we locate rows where these middle values lie, as the numbers in the table are already sorted by order.

\n

Here, both $15$th and $16$th value lie in the row $\\var{as[14]}$.Here, the $15$th value lies in the row $\\var{as[14]}$ while the $16$th value lies in the row $\\var{as[15]}$.

\n

As $15$th value $= 16$th value $= \\var{as[14]}$, the median is $\\var{as[14]}$.As $15$th value $= \\var{as[14]}$ and $16$th value $= \\var{as[15]}$, we need to find their mean.

\n

\\[ \\displaystyle \\begin{align} \\frac{\\var{as[14]} + \\var{as[15]}}{2} &=  \\frac{\\var{as[14] + as[15]}}{2} \\\\&= \\var{median} \\text{.} \\end{align}\\]

\n

This is the median for this data.

\n

", "preamble": {"js": "", "css": ""}, "type": "question"}, {"name": "Michael's copy of Weight of a scoop in two ice cream parlours", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}], "rulesets": {}, "variables": {"medianb": {"name": "medianb", "definition": "median(b)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "asort": {"name": "asort", "definition": "sort(a)", "description": "", "group": "A", "templateType": "anything"}, "b2": {"name": "b2", "definition": "meanab - 14", "description": "", "group": "B", "templateType": "anything"}, "b7": {"name": "b7", "definition": "meanab - 2", "description": "", "group": "B", "templateType": "anything"}, "modea": {"name": "modea", "definition": "mode(a)[0]", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "a2": {"name": "a2", "definition": "meanab - 1 - random2", "description": "", "group": "A", "templateType": "anything"}, "blist": {"name": "blist", "definition": "[b1,b2,b3,b4,b5,b6,b7,b8,b9,b10]", "description": "", "group": "B", "templateType": "anything"}, "a1": {"name": "a1", "definition": "meanab - 2 - random2", "description": "", "group": "A", "templateType": "anything"}, "a4": {"name": "a4", "definition": "meanab", "description": "", "group": "A", "templateType": "anything"}, "meana": {"name": "meana", "definition": "(a1 + a2 + a3 + a4 + a5+ a6 + a7 + a8 + a9 + a10)/10", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "a10": {"name": "a10", "definition": "meanab + 2 + random2", "description": "", "group": "A", "templateType": "anything"}, "a": {"name": "a", "definition": "shuffle(alist)", "description": "", "group": "A", "templateType": "anything"}, "suma": {"name": "suma", "definition": "sum(a)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "mediana": {"name": "mediana", "definition": "median(a)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "rangea": {"name": "rangea", "definition": "max(a) - min(a)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "modeb": {"name": "modeb", "definition": "mode(b)[0]", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "meanb": {"name": "meanb", "definition": "(b1+b2+b3+b4+b5+b6+b7+b8+b9+b10)/10", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "meanab": {"name": "meanab", "definition": "random(80..90)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "a5": {"name": "a5", "definition": "meanab", "description": "", "group": "A", "templateType": "anything"}, "alist": {"name": "alist", "definition": "[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10]", "description": "", "group": "A", "templateType": "anything"}, "b": {"name": "b", "definition": "shuffle(blist)", "description": "", "group": "B", "templateType": "anything"}, "b8": {"name": "b8", "definition": "meanab + 13", "description": "", "group": "B", "templateType": "anything"}, "b10": {"name": "b10", "definition": "meanab + 27 + random/2", "description": "", "group": "B", "templateType": "anything"}, "b5": {"name": "b5", "definition": "meanab - 8 ", "description": "", "group": "B", "templateType": "anything"}, "a8": {"name": "a8", "definition": "meanab + 1", "description": "", "group": "A", "templateType": "anything"}, "b4": {"name": "b4", "definition": "meanab - 10", "description": "", "group": "B", "templateType": "anything"}, "a9": {"name": "a9", "definition": "meanab + 1 + random2", "description": "", "group": "A", "templateType": "anything"}, "random2": {"name": "random2", "definition": "random(1..3)", "description": "", "group": "A", "templateType": "anything"}, "b6": {"name": "b6", "definition": "meanab - 6", "description": "", "group": "B", "templateType": "anything"}, "bsort": {"name": "bsort", "definition": "sort(b)", "description": "", "group": "B", "templateType": "anything"}, "b3": {"name": "b3", "definition": "meanab - 12", "description": "", "group": "B", "templateType": "anything"}, "a7": {"name": "a7", "definition": "meanab + 1", "description": "", "group": "A", "templateType": "anything"}, "rangeb": {"name": "rangeb", "definition": "max(b) - min(b)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "b1": {"name": "b1", "definition": "meanab - 15 - random", "description": "", "group": "B", "templateType": "anything"}, "random": {"name": "random", "definition": "random(2..10 #2)", "description": "", "group": "B", "templateType": "anything"}, "sumb": {"name": "sumb", "definition": "sum(b)", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "a3": {"name": "a3", "definition": "meanab - 2", "description": "", "group": "A", "templateType": "anything"}, "a6": {"name": "a6", "definition": "meanab", "description": "", "group": "A", "templateType": "anything"}, "b9": {"name": "b9", "definition": "meanab + 27 + random/2", "description": "", "group": "B", "templateType": "anything"}}, "ungrouped_variables": ["meanab", "meana", "modea", "mediana", "meanb", "modeb", "medianb", "rangea", "rangeb", "suma", "sumb"], "parts": [{"gaps": [{"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "meana", "scripts": {}, "minValue": "meana", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "meanb", "scripts": {}, "minValue": "meanb", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "mediana", "scripts": {}, "minValue": "mediana", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "medianb", "scripts": {}, "minValue": "medianb", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "modea", "scripts": {}, "minValue": "modea", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "modeb", "scripts": {}, "minValue": "modeb", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "rangea", "scripts": {}, "minValue": "rangea", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}, {"correctAnswerStyle": "plain", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "marks": 1, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "maxValue": "rangeb", "scripts": {}, "minValue": "rangeb", "mustBeReducedPC": 0, "variableReplacements": [], "allowFractions": false, "correctAnswerFraction": false}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "prompt": "

Using the data above, fill in the following table.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)Tasty Hell (g)
Mean weight[[0]][[1]]
Median weight[[2]][[3]]
Modal weight[[4]][[5]]
Range[[6]][[7]]
\n

", "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"maxMarks": 0, "displayType": "radiogroup", "scripts": {}, "variableReplacements": [], "showFeedbackIcon": true, "prompt": "

Now suppose Alice has two children. Which ice cream shop is it better for her to visit if she does not want her children to fight over who has more ice cream?

", "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "marks": 0, "matrix": ["2", "0"], "choices": ["

Sweet Heaven

", "

Tasty Hell

"], "distractors": ["", ""], "shuffleChoices": false, "showCorrectAnswer": true, "displayColumns": 0, "minMarks": 0}], "tags": ["mean", "median", "mode", "range", "taxonomy"], "variable_groups": [{"name": "A", "variables": ["random2", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "alist", "a", "asort"]}, {"name": "B", "variables": ["random", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "b10", "blist", "b", "bsort"]}], "preamble": {"css": "", "js": ""}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given two distributions, calculate the measures of average and spread and make some decisions based on the results.

"}, "advice": "

We denote Sweet Heaven as $s$ and Tasty Hell as $t$.

\n

a)

\n

We are going to start with completing the column for Sweet Heaven.

\n

First, we need to find the sum of weights of all the scoops:

\n

\\[\\begin{align}  \\sum s &= \\var{a[0]} + \\var{a[1]} + \\var{a[2]} + \\var{a[3]} + \\var{a[4]} + \\var{a[5]} + \\var{a[6]} + \\var{a[7]} + \\var{a[8]} + \\var{a[9]}   \\\\&= \\var{suma} \\text{.}
\\end{align}\\]

\n

The total number of measurements $n$ is $10$.

\n

Therefore the mean is

\n

\\[ \\begin{align} \\overline{s} &= \\frac{\\sum s}{n} \\\\[3pt]&= \\frac{\\var{suma}}{10} \\\\&= \\var{meana} \\text{.} \\end{align}\\]

\n

 

\n

The median is the middle value. We need to sort the list in order:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)$\\var{asort[0]}$$\\var{asort[1]}$$\\var{asort[2]}$$\\var{asort[3]}$$\\var{asort[4]}$$\\var{asort[5]}$$\\var{asort[6]}$$\\var{asort[7]}$$\\var{asort[8]}$$\\var{asort[9]}$
\n

There is an even number of responses, so there are two numbers in the middle (5th and 6th place). To find the median, we need to find the mean of these two numbers $\\var{asort[4]}$ and $\\var{asort[5]}$:

\n

\\[ \\displaystyle \\begin{align} \\frac{\\var{asort[4]} + \\var{asort[5]}}{2} &=  \\frac{\\var{asort[4] + asort[5]}}{2} \\\\&= \\var{mediana} \\text{.} \\end{align}\\]

\n

 

\n

The mode is the value that occurs the most often in the data.

\n

To find a mode, we can look at our sorted list:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)$\\var{asort[0]}$$\\var{asort[1]}$$\\var{asort[2]}$$\\var{asort[3]}$$\\var{asort[4]}$$\\var{asort[5]}$$\\var{asort[6]}$$\\var{asort[7]}$$\\var{asort[8]}$$\\var{asort[9]}$
\n

We notice that $\\var{modea}$ occurs the most times (3) and so $\\var{modea}$ is the mode.

\n

 

\n

The range is the difference between the highest and the lowest value in the data.

\n

To find this, we subtract the lowest value from the highest value:

\n

\\[ \\var{max(a)} - \\var{min(a)} = \\var{rangea} \\text{.}\\]

\n

 

\n

So the first column is

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)
Mean weight$\\var{meana}$
Median weight$\\var{mediana}$
Modal weight$\\var{modea}$
Range$\\var{rangea}$
\n

 

\n

Similarly for Tasty Hell,

\n

\\[\\begin{align}  \\sum t &= \\var{b[0]} + \\var{b[1]} + \\var{b[2]} + \\var{b[3]} + \\var{b[4]} + \\var{b[5]} + \\var{b[6]} + \\var{b[7]} + \\var{b[8]} + \\var{b[9]}   \\\\&= \\var{sumb} \\text{.}
\\end{align}\\]

\n

The total number of measurements $n$ is $10$ again.

\n

Therefore the mean is

\n

\\[ \\begin{align} \\overline{t} &= \\frac{\\sum t}{n} \\\\[3pt]&= \\frac{\\var{sumb}}{10} \\\\&= \\var{meanb} \\text{.} \\end{align}\\]

\n

 

\n

For median, we sort the list in order:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Tasty Hell (g)$\\var{bsort[0]}$$\\var{bsort[1]}$$\\var{bsort[2]}$$\\var{bsort[3]}$$\\var{bsort[4]}$$\\var{bsort[5]}$$\\var{bsort[6]}$$\\var{bsort[7]}$$\\var{bsort[8]}$$\\var{bsort[9]}$
\n

There is an even number of responses, so there are two numbers in the middle (5th and 6th place). We find the mean of these two numbers $\\var{bsort[4]}$ and $\\var{bsort[5]}$:

\n

\\[ \\displaystyle \\begin{align} \\frac{\\var{bsort[4]} + \\var{bsort[5]}}{2} &=  \\frac{\\var{bsort[4] + bsort[5]}}{2} \\\\&= \\var{medianb} \\text{.} \\end{align}\\]

\n

 

\n

For mode, we look at our sorted list:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Tasty Hell (g)$\\var{bsort[0]}$$\\var{bsort[1]}$$\\var{bsort[2]}$$\\var{bsort[3]}$$\\var{bsort[4]}$$\\var{bsort[5]}$$\\var{bsort[6]}$$\\var{bsort[7]}$$\\var{bsort[8]}$$\\var{bsort[9]}$
\n

We notice that $\\var{modeb}$ occurs the most times (2) and so $\\var{modeb}$ is the mode.

\n

 

\n

To find the range, we subtract the lowest value from the highest value:

\n

\\[ \\var{max(b)} - \\var{min(b)} = \\var{rangeb} \\text{.}\\]

\n

 

\n

So the complete table is\u200b

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)Tasty Hell (g)
Mean weight$\\var{meana}$$\\var{meanb}$
Median weight$\\var{mediana}$$\\var{medianb}$
Modal weight$\\var{modea}$$\\var{modeb}$
Range$\\var{rangea}$$\\var{rangeb}$
\n


Let's look at the differences between the two ice cream parlours:

\n

The range of weight of Tasty Hell scoops ($\\var{rangeb}$) is far greater than that of Sweet Heaven scoops ($\\var{rangea}$).

\n

The mean weight for each shop is $\\var{meanab}$. This implies that the scoops are more-or-less the same in both shops. However, looking at the actual values as well as other measures, we can see this is not true, so the mean is not very reliable in this case.

\n

When we compare the medians ($\\var{mediana}$ and $\\var{medianb}$), we might assume that the scoops are generally lighter in Tasty Hell. This is partly true, but there were some much heavier scoops provided by this shop as well.

\n

Looking at modes ($\\var{modea}$ and $\\var{modeb}$) can be very misleading, because the modal weight for Tasty Hell is the maximum value at the same time, so it is not a reliable measure of average in this case.

\n

b)

\n

Alice wants her children's ice creams to be very similar.

\n

This is more likely to happen in the shop with a lower range of values.

\n

Comparing the ranges, the range of weight of Sweet Heaven scoops ($\\var{rangea}$) is far lower than that of Tasty Hell scoops ($\\var{rangeb}$), implying Sweet Heaven is more consistent with their scoops.

", "variablesTest": {"condition": "\n", "maxRuns": 100}, "statement": "

Two ice cream parlours called Sweet Heaven and Tasty Hell both sell ice cream for the same price. Alice likes both of these places equally, and has visited each place 10 times. After every visit, Alice measured the weight of her scoop, in grams, to the nearest integer. Here is the table of her values:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sweet Heaven (g)$\\var{a[0]}$$\\var{a[1]}$$\\var{a[2]}$$\\var{a[3]}$$\\var{a[4]}$$\\var{a[5]}$$\\var{a[6]}$$\\var{a[7]}$$\\var{a[8]}$$\\var{a[9]}$
Tasty Hell (g)$\\var{b[0]}$$\\var{b[1]}$$\\var{b[2]}$$\\var{b[3]}$$\\var{b[4]}$$\\var{b[5]}$$\\var{b[6]}$$\\var{b[7]}$$\\var{b[8]}$$\\var{b[9]}$
\n

", "type": "question"}, {"name": "Michael's copy of Relative Frequency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}], "variable_groups": [], "ungrouped_variables": ["no_people", "free_range", "no_students", "rel_freq", "dog", "cat", "hamster", "parrot", "n"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Calculate relative frequencies in a variety of scenarios.

"}, "statement": "

The relative frequency of an outcome is the frequency of the outcome divided by the number of trials.

", "parts": [{"strictPrecision": true, "allowFractions": false, "marks": 1, "precision": "2", "mustBeReduced": false, "scripts": {}, "precisionType": "dp", "type": "numberentry", "showFeedbackIcon": true, "prompt": "

$\\var{no_people}$ people were asked whether they preferred to buy free-range eggs or caged eggs in supermarkets. $\\var{free_range}$ people said that they preferred to buy free-range eggs. What is the relative frequency of people who prefer buying free-range eggs? Give your answer as a decimal, to $2$ decimal places. 

\n

", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "minValue": "{free_range}/{no_people}", "variableReplacementStrategy": "originalfirst", "maxValue": "{free_range}/{no_people}", "variableReplacements": [], "precisionPartialCredit": 0, "correctAnswerFraction": false, "precisionMessage": "

You must give your answer as a decimal to 2 decimal places.

"}, {"strictPrecision": false, "allowFractions": false, "marks": 1, "precision": 0, "mustBeReduced": false, "scripts": {}, "precisionType": "dp", "type": "numberentry", "showFeedbackIcon": true, "prompt": "

The heights of a class of students were measured. The relative frequency of a student being taller than $150$ cm is known to be $\\var{rel_freq}$. If there are $\\var{no_students}$ students in the class, estimate the number of students who are taller than $150$ cm.

", "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "minValue": "{no_students}*{rel_freq}", "variableReplacementStrategy": "originalfirst", "maxValue": "{no_students}*{rel_freq}", "variableReplacements": [], "precisionPartialCredit": 0, "correctAnswerFraction": false, "precisionMessage": "

Round your answer to the nearest integer.

"}, {"showCorrectAnswer": true, "marks": 0, "showFeedbackIcon": true, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "marks": 1, "correctAnswerStyle": "plain", "minValue": "{dog}+{cat}+{hamster}+{parrot}", "mustBeReduced": false, "maxValue": "{dog}+{cat}+{hamster}+{parrot}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFraction": false, "scripts": {}, "mustBeReducedPC": 0}, {"strictPrecision": true, "showPrecisionHint": true, "showCorrectAnswer": true, "marks": 1, "correctAnswerStyle": "plain", "minValue": "{dog}/({dog}+{cat}+{hamster}+{parrot})", "mustBeReduced": false, "allowFractions": false, "precisionType": "dp", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{dog}/({dog}+{cat}+{hamster}+{parrot})", "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFraction": false, "precision": "2", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "

Round your answer to 2 decimal places.

", "mustBeReducedPC": 0, "precisionPartialCredit": 0}], "scripts": {}, "prompt": "

A survey was conducted to find out what type of pet is the most common. The results are given in the table below.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Type of PetFrequency
Dog$\\var{dog}$
Cat$\\var{cat}$
Hamster$\\var{hamster}$
Parrot\n

$\\var{parrot}$

\n
\n

\n

i) 

\n

What was the sample size for the survey?

\n

[[0]]

\n

ii)

\n

What is the relative frequency of a person having a dog as a pet? Give your answer as a decimal, to $2$ decimal places.

\n

[[1]]

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"hamster": {"group": "Ungrouped variables", "name": "hamster", "templateType": "anything", "definition": "random(10..40 except dog except cat) ", "description": "

Frequency of hamster in part c

"}, "cat": {"group": "Ungrouped variables", "name": "cat", "templateType": "anything", "definition": "random(10..50 except dog)", "description": "

Frequency of cat in part c.

"}, "dog": {"group": "Ungrouped variables", "name": "dog", "templateType": "anything", "definition": "random(10..50)", "description": "

Frequency of dog in part c

"}, "rel_freq": {"group": "Ungrouped variables", "name": "rel_freq", "templateType": "anything", "definition": "random(0.1..0.9 # 0.01)", "description": "

Relative frequency for part b

"}, "free_range": {"group": "Ungrouped variables", "name": "free_range", "templateType": "anything", "definition": "random(10..40)", "description": "

Number of people who prefer free-range eggs in part a)

"}, "no_students": {"group": "Ungrouped variables", "name": "no_students", "templateType": "anything", "definition": "random(20..40 #10)", "description": "

Number of students in the class for part b

"}, "no_people": {"group": "Ungrouped variables", "name": "no_people", "templateType": "anything", "definition": "random(50..150 #10)", "description": "

Number of people asked in part a)

"}, "n": {"group": "Ungrouped variables", "name": "n", "templateType": "anything", "definition": "dog+cat+hamster+parrot", "description": "

Sample size for part c

"}, "parrot": {"group": "Ungrouped variables", "name": "parrot", "templateType": "anything", "definition": "random(10..50 except dog except cat except hamster)", "description": "

Frequency of guinea pig in part c.

"}}, "preamble": {"js": "", "css": ""}, "tags": ["Experimental Probability", "Relative Frequency", "taxonomy"], "advice": "

The relative frequency of an outcome is the frequency of the outcome divided by the number of trials.

\n

a)

\n

We are told that $\\var{no_people}$ people were asked whether they preferred to buy free-range eggs or caged eggs in supermarkets and that $\\var{free_range}$ of these people said that they preferred to buy free-range eggs. 

\n

To calculate the relative frequency of people who prefer buying free-range eggs we need the number of trials and the frequency of people who said that they preferred buying free-range eggs.

\n

So, the number of trials in this situation is the number of people who were asked the question, which is $\\var{no_people}$.

\n

The frequency of people who said that they preferred to buy free-range eggs is $\\var{free_range}$.

\n

Therefore, the relative frequency of people who prefer buying free-range eggs is 

\n

\\[
\\frac{\\var{free_range}}{\\var{no_people}} = \\var{dpformat({free_range/no_people}, 2)} \\; (\\text{rounded to $2$ decimal places}).
\\] 

\n

b)

\n

We are told that the relative frequency of a student being taller than $150$ cm is $\\var{rel_freq}$.

\n

Here, we must use the formula for relative frequency in reverse in order to estimate the number of students in the class who are taller than $150$ cm.

\n

As we are using relative frequency to calculate this number, our answer may not be completely accurate, therefore our answer will be an estimate of the actual number.

\n

If we let $n$ denote the number of students in the class who are taller than $150$ cm and if there are $\\var{no_students}$ students in the class then

\n

\\[
\\begin{align}
\\frac{n}{\\var{no_students}} &= \\var{rel_freq}\\\\
n &= \\var{rel_freq} \\times \\var{no_students}\\\\
&= \\var{{rel_freq}*{no_students}}.
\\end{align}
\\]

\n

As $n$ represents a number of people we must round our value of $n$ to the nearest integer.

\n

So, the estimated number of students in the class who are taller than $150$ cm is $\\var{dpformat({rel_freq}*{no_students},0)}$.

\n

c)

\n

\n

i) 

\n

Using the frequency table given in the question, we can calculate the sample size of the survey by adding together the frequencies of each of the different types of pets.

\n

So, the sample size of the survey is 

\n

\\[
\\var{dog}+\\var{cat}+\\var{hamster}+\\var{parrot} = \\var{{dog}+{cat}+{hamster}+{parrot}}.
\\]

\n

ii) 

\n

To calculate the relative frequency of a person having a dog as a pet, we divide the frequency of people in the survey who had a dog as a pet by the sample size of the survey.

\n

So, the relative frequency is 

\n

\\[
\\frac{\\var{dog}}{\\var{n}} = \\var{dpformat({dog/n}, 2)} \\; (\\text{rounded to $2$ decimal places}).
\\]

\n

", "rulesets": {}, "functions": {}, "type": "question"}, {"name": "Michael's copy of Calculating Expected Values given a table of probabilities", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}], "rulesets": {}, "statement": "

There are four films being shown in a cinema on a particular day.

\n

The probability that a person buys a ticket to see each film, denoted $P(\\text{Film})$, is given in the table below.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Film$P(\\text{Film})$Genre
Forgotten Game$\\var{Avatar}$Sci-Fi
The Diamond Valley$\\var{SW}$Sci-Fi
School of Return$\\var{NYSM}$Thriller
The Silk's Nobody$\\var{TIJ}$Crime
\n

$\\var{no_people}$ people each buy a ticket at the cinema to see a film of their own choosing during the day.

", "metadata": {"description": "

This question assesses the students ability to find the expected number of times an event occurs given the probability of the event occurring for a single trial and the total number of trials.

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {}, "variables": {"Avatar": {"name": "Avatar", "description": "

Probability someone sees Avatar 

", "definition": "random(0.2..0.31 #0.05)", "group": "Ungrouped variables", "templateType": "anything"}, "NYSM": {"name": "NYSM", "description": "

Probability someone goes to see Now you see me

", "definition": "(1-(Avatar+SW))*3/5", "group": "Ungrouped variables", "templateType": "anything"}, "SW": {"name": "SW", "description": "

Probability someone goes to see Star Wars

", "definition": "random(0.4..0.51 #0.05)", "group": "Ungrouped variables", "templateType": "anything"}, "no_people": {"name": "no_people", "description": "

Number of people who see a movie.

", "definition": "random(100..180 #20)", "group": "Ungrouped variables", "templateType": "anything"}, "TIJ": {"name": "TIJ", "description": "

Probability someone goes to see the Italian Job

", "definition": "1-(Avatar+SW+NYSM)", "group": "Ungrouped variables", "templateType": "anything"}}, "variable_groups": [], "tags": ["Dice", "dice", "Expected values", "Expected Values", "Experimental Probability", "experimental probability", "Experimental probability", "Probability", "probability", "relative frequency", "Relative Frequency", "taxonomy", "Theoretical Probability", "theoretical probability"], "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "prompt": "

How many of these people would you expect to have bought tickets to see Forgotten Game?

", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": [], "scripts": {}, "correctAnswerFraction": false, "type": "numberentry", "maxValue": "{no_people}*{Avatar}", "marks": 1, "mustBeReducedPC": 0, "showFeedbackIcon": true, "allowFractions": false, "minValue": "{no_people}*{Avatar}", "correctAnswerStyle": "plain"}, {"notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "prompt": "

How many of these people would you expect to have bought tickets to see a Sci-Fi film?

", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": [], "scripts": {}, "correctAnswerFraction": false, "type": "numberentry", "maxValue": "{no_people}*({Avatar}+{SW})", "marks": 1, "mustBeReducedPC": 0, "showFeedbackIcon": true, "allowFractions": false, "minValue": "{no_people}*({Avatar}+{SW})", "correctAnswerStyle": "plain"}], "ungrouped_variables": ["Avatar", "SW", "NYSM", "TIJ", "no_people"], "advice": "

If we are given the probability of an event occurring in a single trial then we can calculate the expected number of times that this event would occur in a larger number of trials.

\n

To do this, we multiply the probability of the event occurring in a single trial by the total number of trials:

\n

\\[\\text{Expected number of times an event occurs} = \\text{Probability of event} \\times \\text{Number of trials}.\\] 

\n

We are given the probabilities that someone buys a ticket to see each film in the table below.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Film$P(\\text{Film})$Genre
Forgotten Game$\\var{Avatar}$Sci-Fi
The Diamond Valley$\\var{SW}$Sci-Fi
School of Return$\\var{NYSM}$Thriller
The Silk's Nobody$\\var{TIJ}$Crime
\n

We are also told that $\\var{no_people}$ people each buy a ticket at the cinema to see a film of their own choosing during this day.

\n

a)

\n

To calculate the expected number of people who bought tickets to see one of these films we multiply the probability that a person buys a ticket for that film by how many people bought tickets for a film at the cinema. 

\n

So the expected number of people who bought tickets to see Forgotten Game is

\n

\\[
\\var{Avatar} \\times \\var{no_people} = \\var{{Avatar}*{no_people}}.
\\]

\n

b)

\n

We are now asked to calculate the expected number of people who bought tickets to see a Sci-Fi film.

\n

From the table above we can see that there are two films which belong to the Sci-Fi genre: Forgotten Game and The Diamond Valley.

\n

Firstly, we need to calculate the probability that a person buys a ticket to see a Sci-Fi film, which we will denote $P(\\text{Sci-Fi})$.

\n

Since the probability that a person buys a ticket to see each film is different, it would be incorrect to say that the probability that a person buys a ticket to see a Sci-Fi film is 

\n

\\[\\displaystyle\\frac{2}{4} = \\displaystyle\\frac{1}{2}.\\]

\n

Instead we must recognise that the probability that a person buys a ticket to see a Sci-Fi film is the probability that a person buys a ticket to see either Forgotten or The Diamond Valley.

\n

Therefore to calculate this probability, we add the probabilities of a person buying a ticket to see each of these films:

\n

\\[
\\begin{align}
P(\\text{Sci-Fi}) &= P(\\text{Forgotten Game})+P(\\text{The Diamond Valley})\\\\
&= \\var{Avatar}+\\var{SW}\\\\
&= \\var{Avatar+SW}.
\\end{align}
\\]

\n

Then the expected number of people who bought tickets to see a Sci-Fi film is 

\n

\\[
\\var{Avatar+SW} \\times \\var{no_people} = \\var{({Avatar+SW})*{no_people}}.
\\]

\n

", "preamble": {"js": "", "css": ""}, "type": "question"}]}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Calculate and work with measures of central tendency such as mean, median and mode, and measures of spread such as range and standard deviation.

"}, "showstudentname": true, "type": "exam", "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}, {"name": "Lauren Frances Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2490/"}], "extensions": ["stats"], "custom_part_types": [], "resources": []}