// Numbas version: finer_feedback_settings {"name": "NC NA Choose the higher probability from two fractions randomised (7)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NC NA Choose the higher probability from two fractions randomised (7)", "tags": ["LANTITE"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NC = Non Calculator strand. NA = Number & Algebra strand. Students are given two probabilities in ratio form, and are required to select the higher probability. There are 7 different versions of this question.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

It has rained on the day of the {school1} Primary School swimming carnival {rainydays1} times in the past {years1} years.

\n

It has rained on the day of the {school2} Primary School swimming carnival {rainydays2} times in the past {years2} years.

", "advice": "

To work out a probability, divide the number of desirable outcomes by the total number of outcomes.

\n

In this case, the number of rainy days for {school1} is {rainydays1} and the total number of swimming carnival days is {years1}.

\n

$ \\frac{\\var{rainydays1}}{\\var{years1}} $ can be converted to a fraction out of 100 by multiplying top and bottom by {100/{years1}}. This gives $ \\frac{\\var{rainydays1/years1*100}}{100} $ which equals {rainydays1/years1} when written as a decimal.

\n

(Alternatively, using a calculator, {rainydays1} divided by {years1} = {rainydays1/years1}). 

\n

This is the experimental probability of rain at the {school1} swimming carnival.

\n

To get the probability of a rainy day for {school2}, $ \\frac{\\var{rainydays2}}{\\var{years2}} $ can be converted to a fraction out of 100 by multiplying top and bottom by {100/{years2}}. This gives $ \\frac{\\var{rainydays2/years2*100}}{100} $ which equals {rainydays2/years2} when written as a decimal.

\n

(Or, using a calculator, {rainydays2} divided by {years2} = {(rainydays2)/{years2}}).

\n

Then compare the two decimals to decide which is higher.

\n
\n

{rainydays1/years1} is greater than {rainydays2/years2}.

\n

Therefore {school1} has the higher probability of rain on the day of the swimming carnival.

\n
\n
\n

{rainydays2/years2} is greater than {rainydays1/years1}.

\n

Therefore {school2} has the higher probability of rain on the day of the swimming carnival.

\n
\n

", "rulesets": {}, "extensions": [], "variables": {"years2": {"name": "years2", "group": "Ungrouped variables", "definition": "scenario[\"years2\"]", "description": "

The total number of swimming carnivals held at the second school of the randomly chosen pair.

", "templateType": "anything"}, "scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"school1\\\": \\\"Windy Ridge\\\",\\n \\\"rainydays1\\\": 4,\\n \\\"years1\\\": 25,\\n \\\"school2\\\": \\\"West Wingham\\\",\\n \\\"rainydays2\\\": 3,\\n \\\"years2\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"East Epson\\\",\\n \\\"rainydays1\\\": 3,\\n \\\"years1\\\": 25,\\n \\\"school2\\\": \\\"North Norton\\\",\\n \\\"rainydays2\\\": 2,\\n \\\"years2\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"UpRiver\\\",\\n \\\"rainydays1\\\": 2,\\n \\\"years1\\\": 25,\\n \\\"school2\\\": \\\"DownRiver\\\",\\n \\\"rainydays2\\\": 3,\\n \\\"years2\\\": 50\\n },\\n {\\n \\\"school1\\\": \\\"South Somerset\\\",\\n \\\"rainydays1\\\": 2,\\n \\\"years1\\\": 25,\\n \\\"school2\\\": \\\"Sunny Corner\\\",\\n \\\"rainydays2\\\": 1,\\n \\\"years2\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"MountainRidge\\\",\\n \\\"rainydays1\\\": 9,\\n \\\"years1\\\": 50,\\n \\\"school2\\\": \\\"GreenValley\\\",\\n \\\"rainydays2\\\": 4,\\n \\\"years2\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"SouthBeach\\\",\\n \\\"rainydays1\\\": 7,\\n \\\"years1\\\": 50,\\n \\\"school2\\\": \\\"NorthLagoon\\\",\\n \\\"rainydays2\\\": 3,\\n \\\"years2\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"Greenville\\\",\\n \\\"rainydays1\\\": 4,\\n \\\"years1\\\": 25,\\n \\\"school2\\\": \\\"Timbertown\\\",\\n \\\"rainydays2\\\": 4,\\n \\\"years2\\\": 20\\n }\\n ]\"))", "description": "
\n
\n

A list of the possible different schools and their rainfall statistics.

", "templateType": "json"}, "scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "
\n
\n

One randomly chosen pair of schools

", "templateType": "anything"}, "rainydays2": {"name": "rainydays2", "group": "Ungrouped variables", "definition": "scenario[\"rainydays2\"]", "description": "

The number of wet swimming carnivals at the second school of the randomly chosen pair.

", "templateType": "anything"}, "rainydays1": {"name": "rainydays1", "group": "Ungrouped variables", "definition": "scenario[\"rainydays1\"]", "description": "

The number of wet swimming carnivals at the first school of the randomly chosen pair.

", "templateType": "anything"}, "school2": {"name": "school2", "group": "Ungrouped variables", "definition": "scenario[\"school2\"]", "description": "

The name of the second school of the randomly chosen pair.

", "templateType": "anything"}, "school1": {"name": "school1", "group": "Ungrouped variables", "definition": "scenario[\"school1\"]", "description": "
\n
\n
\n

The name of the first school of the randomly chosen pair.

", "templateType": "anything"}, "years1": {"name": "years1", "group": "Ungrouped variables", "definition": "scenario[\"years1\"]", "description": "

The total number of swimming carnivals held at the first school of the randomly chosen pair.

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "school1", "rainydays1", "years1", "school2", "rainydays2", "years2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which school has the higher probability of rain on the day of the swimming carnival, assuming that the weather follows the long term average? 

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["{school1} Primary School", "{school2} Primary School", "The probability is the same for both schools.", "It is not possible to determine this based on the information given."], "matrix": ["if(rainydays1/years1>rainydays2/years2, 1, 0)", "if(rainydays1/years1