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": "Mutually exclusive events are events that cannot happen at the same time.

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

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

\nWe 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.

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

- \n
- all the people who have cereal (including the participants who have cereal
**as well as**toast) \n - all the people who have toast (including the participants who have toast
**as well as**cereal) \n

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

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

\n\nAs 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}).\\]

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

\n- \n
- The \"Intersection\" symbol $\\cap$, used instead of \"and\". \n
- The \"Union\" symbol $\\cup$, used instead of \"or\". \n

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

\\[

\\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}

\\]

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.

\nThis 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.

\nA 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\nFood | Cereal | Toast | Fruit | Fry-up | Other |
---|---|---|---|---|---|

% of participants | {proportions[0]} | {proportions[1]} | {proportions[2]} | {proportions[3]} | {proportions[4]} |

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/"}]}