// Numbas version: exam_results_page_options {"name": "Simon's copy of 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": [{"variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "advice": "

If we are given the probability of an event occurring in a single trial then we can calculate the expected number of times that this event would occur in a larger number of trials.

\n

To do this, we multiply the probability of the event occurring in a single trial by the total number of trials:

\n

\\[\\text{Expected number of times an event occurs} = \\text{Probability of event} \\times \\text{Number of trials}.\\] 

\n

We are given the probabilities that someone buys a ticket to see each film in the table below.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Film$P(\\text{Film})$Genre
Forgotten Game$\\var{Avatar}$Sci-Fi
The Diamond Valley$\\var{SW}$Sci-Fi
School of Return$\\var{NYSM}$Thriller
The Silk's Nobody$\\var{TIJ}$Crime
\n

We are also told that $\\var{no_people}$ people each buy a ticket at the cinema to see a film of their own choosing during this day.

\n

a)

\n

To calculate the expected number of people who bought tickets to see one of these films we multiply the probability that a person buys a ticket for that film by how many people bought tickets for a film at the cinema. 

\n

So the expected number of people who bought tickets to see Forgotten Game is

\n

\\[
\\var{Avatar} \\times \\var{no_people} = \\var{{Avatar}*{no_people}}.
\\]

\n

b)

\n

We are now asked to calculate the expected number of people who bought tickets to see a Sci-Fi film.

\n

From the table above we can see that there are two films which belong to the Sci-Fi genre: Forgotten Game and The Diamond Valley.

\n

Firstly, we need to calculate the probability that a person buys a ticket to see a Sci-Fi film, which we will denote $P(\\text{Sci-Fi})$.

\n

Since the probability that a person buys a ticket to see each film is different, it would be incorrect to say that the probability that a person buys a ticket to see a Sci-Fi film is 

\n

\\[\\displaystyle\\frac{2}{4} = \\displaystyle\\frac{1}{2}.\\]

\n

Instead we must recognise that the probability that a person buys a ticket to see a Sci-Fi film is the probability that a person buys a ticket to see either Forgotten or The Diamond Valley.

\n

Therefore to calculate this probability, we add the probabilities of a person buying a ticket to see each of these films:

\n

\\[
\\begin{align}
P(\\text{Sci-Fi}) &= P(\\text{Forgotten Game})+P(\\text{The Diamond Valley})\\\\
&= \\var{Avatar}+\\var{SW}\\\\
&= \\var{Avatar+SW}.
\\end{align}
\\]

\n

Then the expected number of people who bought tickets to see a Sci-Fi film is 

\n

\\[
\\var{Avatar+SW} \\times \\var{no_people} = \\var{({Avatar+SW})*{no_people}}.
\\]

\n

", "ungrouped_variables": ["Avatar", "SW", "NYSM", "TIJ", "no_people"], "preamble": {"js": "", "css": ""}, "parts": [{"prompt": "

How many of these people would you expect to have bought tickets to see Forgotten Game?

", "mustBeReduced": false, "showFeedbackIcon": true, "maxValue": "{no_people}*{Avatar}", "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "{no_people}*{Avatar}", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "variableReplacements": [], "scripts": {}, "allowFractions": false, "correctAnswerStyle": "plain"}, {"prompt": "

How many of these people would you expect to have bought tickets to see a Sci-Fi film?

", "mustBeReduced": false, "showFeedbackIcon": true, "maxValue": "{no_people}*({Avatar}+{SW})", "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "{no_people}*({Avatar}+{SW})", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "variableReplacements": [], "scripts": {}, "allowFractions": false, "correctAnswerStyle": "plain"}], "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.

"}, "variable_groups": [], "extensions": [], "tags": ["Dice", "dice", "Expected values", "Expected Values", "Experimental Probability", "experimental probability", "Experimental probability", "Probability", "probability", "relative frequency", "Relative Frequency", "taxonomy", "Theoretical Probability", "theoretical probability"], "functions": {}, "variables": {"Avatar": {"definition": "random(0.2..0.31 #0.05)", "templateType": "anything", "group": "Ungrouped variables", "description": "

Probability someone sees Avatar 

", "name": "Avatar"}, "TIJ": {"definition": "1-(Avatar+SW+NYSM)", "templateType": "anything", "group": "Ungrouped variables", "description": "

Probability someone goes to see the Italian Job

", "name": "TIJ"}, "NYSM": {"definition": "(1-(Avatar+SW))*3/5", "templateType": "anything", "group": "Ungrouped variables", "description": "

Probability someone goes to see Now you see me

", "name": "NYSM"}, "no_people": {"definition": "random(100..180 #20)", "templateType": "anything", "group": "Ungrouped variables", "description": "

Number of people who see a movie.

", "name": "no_people"}, "SW": {"definition": "random(0.4..0.51 #0.05)", "templateType": "anything", "group": "Ungrouped variables", "description": "

Probability someone goes to see Star Wars

", "name": "SW"}}, "name": "Simon's copy of Calculating Expected Values given a table of probabilities", "statement": "

There are four films being shown in a cinema on a particular day.

\n

The probability that a person buys a ticket to see each film, denoted $P(\\text{Film})$, is given in the table below.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Film$P(\\text{Film})$Genre
Forgotten Game$\\var{Avatar}$Sci-Fi
The Diamond Valley$\\var{SW}$Sci-Fi
School of Return$\\var{NYSM}$Thriller
The Silk's Nobody$\\var{TIJ}$Crime
\n

$\\var{no_people}$ people each buy a ticket at the cinema to see a film of their own choosing during the day.

", "type": "question", "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/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "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/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}