// Numbas version: exam_results_page_options {"name": "Simon's copy of Simple expected outcome", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Footballer expects to score in a/b matches.

"}, "advice": "

Expected number of occurrences = Probability of an occurrence $\\times$ Number of trials

\n

\n

Hence, for this question:

\n

$E(\\text{number of wins}) = P(\\text{win}) \\times \\text{Number of matches} = \\dfrac {\\var{parts}}{\\var{denom}} \\times 40 = \\var{answer}$

\n

\n

", "ungrouped_variables": ["answer", "denom", "parts", "onepart", "fraction"], "parts": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "gaps": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "allowFractions": false, "showCorrectAnswer": true, "mustBeReduced": false, "maxValue": "{answer}", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showFractionHint": true, "minValue": "{answer}", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "useCustomName": false, "scripts": {}, "unitTests": [], "customName": "", "customMarkingAlgorithm": ""}], "sortAnswers": false, "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

How many matches would he expect to win if he plays 40 games during the year?

\n

[[0]] matches.

", "useCustomName": false, "scripts": {}, "unitTests": [], "customName": "", "customMarkingAlgorithm": ""}], "preamble": {"js": "", "css": ""}, "rulesets": {}, "variable_groups": [], "extensions": [], "tags": [], "functions": {}, "variables": {"onepart": {"definition": "40/denom", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "onepart"}, "fraction": {"definition": "random( 'fifths', 'quarters', 'eighths', 'tenths')", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "fraction"}, "denom": {"definition": "switch(fraction = 'quarters', 4, fraction = 'fifths',5, fraction = 'eighths',8, fraction = 'tenths', 10)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "denom"}, "answer": {"definition": "parts*40/denom", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "answer"}, "parts": {"definition": "switch( fraction ='fifths', random(2,3), fraction = 'quarters', 3, fraction='eighths', random(3,5), fraction = 'tenths', random(3,7))", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "parts"}}, "name": "Simon's copy of Simple expected outcome", "statement": "

A tennis player expects to win $\\frac{\\var{parts}} {\\var{denom}}$ of the matches he plays.

", "type": "question", "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}