// Numbas version: exam_results_page_options {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "Answer", "x", "Total", "data"], "name": "Julie's copy of Mean from a frequency table - classes", "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"}], "extensions": [], "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": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}