// Numbas version: exam_results_page_options {"name": "Conditional probability from 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": ["a1", "a2", "a3", "a4", "a5", "b1", "b2", "b3", "b4", "values", "rows", "cols", "ar", "ac", "br", "bc"], "name": "Conditional probability from frequency table", "tags": [], "advice": "", "rulesets": {}, "parts": [{"variableReplacements": [], "prompt": "
Calculate the probability that a randomly selected person drinks {rows[ar]} milk given they like {cols[ac]}. Enter your answer as a fraction.
", "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{values[ar][ac]}/({values[0][ac]}+{values[1][ac]}+{values[2][ac]})", "marks": "6", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"variableReplacements": [], "prompt": "Calculate the probability that a randomly selected person likes {cols[bc]} given they drink {rows[br]} milk. Enter your answer as a fraction.
", "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{values[br][bc]}/({values[br][0]}+{values[br][1]}+{values[br][2]})", "marks": "6", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "statement": "200 people were asked about their favourite kind of milk and their favourite sports. The following table shows the results.
\n\n | Football | \nSwimming | \nGolf | \n
Full fat | \n{a1} | \n{a2} | \n{a3} | \n
Semi-skimmed | \n{a4} | \n{b1} | \n{b2} | \n
Skimmed | \n{a5} | \n{b3} | \n{b4} | \n
Asks students to compute conditional probabilities based on a frequency table.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Peter Chapman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/210/"}]}]}], "contributors": [{"name": "Peter Chapman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/210/"}]}