// Numbas version: exam_results_page_options {"name": "Simon's copy of 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": [{"variable_groups": [], "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "Answer", "Total", "data"], "preamble": {"js": "", "css": ""}, "extensions": [], "parts": [{"variableReplacementStrategy": "originalfirst", "marks": 0, "showCorrectAnswer": true, "gaps": [{"showPrecisionHint": false, "allowFractions": false, "maxValue": "{Total}/20", "showCorrectAnswer": true, "minValue": "{Total}/20", "marks": "5", "variableReplacements": [], "scripts": {}, "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "type": "numberentry"}], "prompt": "

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

\n

\n

Mean Score: [[0]]

\n

Do not round your answer.

", "scripts": {}, "variableReplacements": [], "type": "gapfill"}], "functions": {}, "rulesets": {}, "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.

", "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "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} $

", "type": "question", "name": "Simon's copy of Julie's copy of Mean from a frequency table", "variables": {"q": {"group": "Ungrouped variables", "name": "q", "definition": "random(-4..-1)", "description": "", "templateType": "anything"}, "data": {"group": "Ungrouped variables", "name": "data", "definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "description": "", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "name": "b", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "s": {"group": "Ungrouped variables", "name": "s", "definition": "random(5..7)", "description": "", "templateType": "anything"}, "f": {"group": "Ungrouped variables", "name": "f", "definition": "20 -a-b-c-d", "description": "", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "name": "a", "definition": "random(0..3)", "description": "", "templateType": "anything"}, "r": {"group": "Ungrouped variables", "name": "r", "definition": "random(0..4)", "description": "", "templateType": "anything"}, "d": {"group": "Ungrouped variables", "name": "d", "definition": "random(4..6)", "description": "", "templateType": "anything"}, "p": {"group": "Ungrouped variables", "name": "p", "definition": "random(-10..-5)", "description": "", "templateType": "anything"}, "Answer": {"group": "Ungrouped variables", "name": "Answer", "definition": "Total/20", "description": "", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "name": "c", "definition": "random(4..6)", "description": "", "templateType": "anything"}, "Total": {"group": "Ungrouped variables", "name": "Total", "definition": "a*p + b*q+c*r +d*s +f*t\n", "description": "", "templateType": "anything"}, "t": {"group": "Ungrouped variables", "name": "t", "definition": "random(8..10)", "description": "", "templateType": "anything"}}, "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "showQuestionGroupNames": false, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}