// Numbas version: exam_results_page_options {"name": "Julie's copy of Mean from a frequency table", "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", "Answer", "Total", "data"], "name": "Julie's copy of Mean from a frequency table", "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"}], "extensions": [], "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": []}], "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/"}]}