// Numbas version: exam_results_page_options {"name": "Calculating expected values given a table of probabilities", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculating expected values given a table of probabilities", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "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.
"}, "statement": "The were 542 reported injuries which caused footballers to miss either games or days of training during the 2017 Premier League season.
\nThe table below shows the probability that an injured player suffered a particular injury, denoted $P(\\text{Injury})$.
\nInjury | \n$P(\\text{Injury})$ | \nStructure | \n
Hamstring | \n$\\var{Hamstring}$ | \nMuscle | \n
Knee | \n$\\var{Knee}$ | \nJoint | \n
Ankle | \n$\\var{Ankle}$ | \nJoint | \n
Illness | \n$\\var{Illness}$ | \nImmune System | \n
A random sample of $\\var{no_people}$ of these injured or ill athletes attended your clinic.
", "rulesets": {}, "advice": "\n\\[\\text{Expected number of times an event occurs} = \\text{Probability of event} \\times \\text{Number of trials}.\\]
\n\nThe expected number of people attending the clinic who have had a knee injury is
\n\\[\\text{probabilty of having a knee injury} \\times \\text{number of people attending clinic} =
\\var{Knee} \\times \\var{no_people} = \\var{{Knee}*{no_people}}.
\\]
Let us denote the probability that a person has damaged a joint $P(\\text{Joint})$. We can see that there are two injuries which belong to the Joint structure: Knee and Ankle. Therefore, it is true that
\n\n\\[
\\begin{align}
P(\\text{Joint}) &= P(\\text{Knee})+P(\\text{Ankle})\\\\
&= \\var{Knee}+\\var{Ankle}\\\\
&= \\var{Knee+Ankle}.
\\end{align}
\\]
Then the expected number of people who have damaged a joint is
\n\\[
\\var{Knee + Ankle} \\times \\var{no_people} = \\var{dpformat(({Knee + Ankle})*{no_people},2)},
\\]
which rounds to $\\var{dpformat(({Knee + Ankle})*{no_people},0)}$ to the nearest integer.
", "variable_groups": [], "functions": {}, "extensions": [], "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["Hamstring", "Knee", "Ankle", "Illness", "no_people"], "parts": [{"showCorrectAnswer": true, "marks": 1, "type": "numberentry", "mustBeReduced": false, "prompt": "How many athletes would you expect to have had a knee injury?
", "correctAnswerStyle": "plain", "scripts": {}, "extendBaseMarkingAlgorithm": true, "minValue": "{no_people}*{Knee}", "unitTests": [], "maxValue": "{no_people}*{Knee}", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": []}, {"showCorrectAnswer": true, "precisionPartialCredit": 0, "strictPrecision": true, "prompt": "How many athletes would you have expected to damaged a joint?
", "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "unitTests": [], "maxValue": "{no_people}*({Knee}+{Ankle})", "type": "numberentry", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": 1, "showPrecisionHint": true, "mustBeReduced": false, "precisionType": "dp", "scripts": {}, "extendBaseMarkingAlgorithm": true, "minValue": "{no_people}*({Knee}+{Ankle})", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "precision": 0, "customMarkingAlgorithm": ""}], "variables": {"Hamstring": {"group": "Ungrouped variables", "definition": "random(0.2..0.31 #0.05)", "description": "", "templateType": "anything", "name": "Hamstring"}, "no_people": {"group": "Ungrouped variables", "definition": "random(100..180 #20)", "description": "Number of people who see a movie.
", "templateType": "anything", "name": "no_people"}, "Ankle": {"group": "Ungrouped variables", "definition": "(1-(Hamstring+Knee))*3/5", "description": "", "templateType": "anything", "name": "Ankle"}, "Illness": {"group": "Ungrouped variables", "definition": "1-(Hamstring+Knee+Ankle)", "description": "", "templateType": "anything", "name": "Illness"}, "Knee": {"group": "Ungrouped variables", "definition": "random(0.4..0.51 #0.05)", "description": "", "templateType": "anything", "name": "Knee"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}, {"name": "Lauren Frances Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2490/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}, {"name": "Lauren Frances Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2490/"}]}