// Numbas version: exam_results_page_options {"name": "Probability of the union of two non-mutually exclusive events", "extensions": [], "custom_part_types": [], "resources": [["question-resources/breakfastven2.svg", "/srv/numbas/media/question-resources/breakfastven2.svg"], ["question-resources/breakfastvenplus2.svg", "/srv/numbas/media/question-resources/breakfastvenplus2.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"css": "", "js": ""}, "type": "question", "name": "Probability of the union of two non-mutually exclusive events", "parts": [{"maxMarks": 0, "type": "1_n_2", "showCorrectAnswer": true, "minMarks": 0, "distractors": ["", ""], "displayColumns": 0, "displayType": "radiogroup", "scripts": {}, "showFeedbackIcon": true, "marks": 0, "matrix": [0, "1"], "choices": ["

Yes

", "

No

"], "shuffleChoices": false, "variableReplacements": [], "prompt": "

Consider the event that someone has cereal for breakfast and the event that the same person has toast for breakfast. Are these events mutually exclusive?

", "variableReplacementStrategy": "originalfirst"}, {"maxMarks": 0, "type": "1_n_2", "showCorrectAnswer": true, "minMarks": 0, "distractors": ["", "You have double-counted the people who eat both.", "Subtract the people who take both, rather than adding them on again.", "Some people eat neither cereal nor toast, so the probability is less than $1$."], "displayColumns": 0, "displayType": "radiogroup", "scripts": {}, "showFeedbackIcon": true, "marks": 0, "matrix": ["1", 0, 0, "0"], "choices": ["

$\\var{({c}+{t}-{b})/100}$

", "

$\\var{({c}+{t})/100}$

", "

$\\var{({c}+{t}+{b})/100}$

", "

$1$

"], "shuffleChoices": false, "variableReplacements": [], "prompt": "

What is the probability that a participant selected at random typically eats cereal or toast for breakfast?

", "variableReplacementStrategy": "originalfirst"}], "advice": "

a)

\n

Mutually exclusive events are events that cannot happen at the same time. 

\n

We know from the results of the survey that $\\var{b}\\%$ of participants stated that they have cereal as well as toast for breakfast. 

\n

Therefore it is possible to have both cereal and toast for breakfast, which means that the events \"cereal\" and \"toast\" are not mutually exclusive.

\n

b)

\n

We know from the results of the survey that some people have both cereal and toast for breakfast, so we can present the information given to us in the question in the form of a Venn diagram.

\n

\n

\n

The number of people who have cereal or toast for breakfast is:

\n\n

However, this counts the people who have cereal as well as toast twice! 

\n

To correct our answer, we subtract the extra \"and\" part:

\n

\n

As a general formula this is:

\n

\\[\\mathrm{P}(\\mathrm{A} \\cup \\mathrm{B}) = \\mathrm{P}(\\mathrm{A}) + \\mathrm{P}(\\mathrm{B}) - \\mathrm{P}(\\mathrm{A} \\cap \\mathrm{B}).\\] 

\n

Note that here we have made use of some notation that is frequently used in probability calculations:

\n\n

Using this equation, the probability that a participant selected at random will either have cereal or toast for breakfast is

\n

\\[
\\begin{align}
\\mathrm{P}(\\text{cereal} \\cup \\text{toast}) &= \\mathrm{P}(\\text{cereal})+\\mathrm{P}(\\text{toast}) - \\mathrm{P}(\\text{cereal} \\cap \\text{toast})\\\\
&= \\var{{c}/100}+\\var{{t}/100}-\\var{{b}/100}\\\\
&= \\var{({c}+{t}-{b})/100}.
\\end{align}
\\]

", "tags": ["Multiple Choice", "multiple choice", "Multiple choice", "Mutually exclusive events", "Not mutually exclusive events", "Probability", "probability", "taxonomy"], "variables": {"proportions": {"templateType": "anything", "description": "

The percentage of people who ticked each option.

", "definition": "map(floor(total*x/sum(raw_proportions)),x,raw_proportions)", "name": "proportions", "group": "Ungrouped variables"}, "c": {"templateType": "anything", "description": "

Percentage of people who have cereal for breakfast.

", "definition": "proportions[0]//random(20..40)", "name": "c", "group": "Ungrouped variables"}, "raw_proportions": {"templateType": "anything", "description": "", "definition": "[random(4..6#0),random(2..3#0)]+repeat(random(1..4#0),3)", "name": "raw_proportions", "group": "Ungrouped variables"}, "t": {"templateType": "anything", "description": "

Percentage of people who have toast for breakfast.

", "definition": "proportions[1]//random(6..15)", "name": "t", "group": "Ungrouped variables"}, "total": {"templateType": "anything", "description": "

The total of the percentages for each option.

\n

This is greater than 100 because some people tick more than one option.

", "definition": "random(120..160)", "name": "total", "group": "Ungrouped variables"}, "b": {"templateType": "anything", "description": "

Percentage of people who have both toast and cereal for breakfast. Between an eighth and a third of the lowest of the two options.

", "definition": "let(s,min(c,t), random(round(s/8)..round(s/3)))", "name": "b", "group": "Ungrouped variables"}}, "rulesets": {}, "extensions": [], "functions": {}, "ungrouped_variables": ["c", "t", "b", "raw_proportions", "proportions", "total"], "statement": "

A survey asked people what they eat for breakfast. Participants had to select foods that they typically eat for breakfast from a list.

\n

A story in the newspaper displayed the results of the survey in this table:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
FoodCerealToastFruitFry-upOther
% of participants{proportions[0]}{proportions[1]}{proportions[2]}{proportions[3]}{proportions[4]}
\n

The most popular combination was cereal and toast, with $\\var{b}\\%$ of the participants selecting both.

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given results from a survey about what people eat for breakfast, where some people eat one or both of cereal and toast. Student is asked to pick the probability of eating either one or the other from a list. Distractors pick out common errors.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}