// Numbas version: finer_feedback_settings {"name": "NC SP Find the experimental probability of a rainy day (7)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NC SP Find the experimental probability of a rainy day (7)", "tags": ["LANTITE"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NC = Non Calculator strand. SP = Statistics & Probability strand. Students are given the experimental probability in ratio form in a sentence, and asked to write it as a decimal. 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.

", "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

", "rulesets": {}, "extensions": [], "variables": {"scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"school1\\\": \\\"Windy Ridge\\\",\\n \\\"rainydays1\\\": 4,\\n \\\"years1\\\": 25\\n },\\n {\\n \\\"school1\\\": \\\"East Epson\\\",\\n \\\"rainydays1\\\": 3,\\n \\\"years1\\\": 25\\n },\\n {\\n \\\"school1\\\": \\\"UpRiver\\\",\\n \\\"rainydays1\\\": 2,\\n \\\"years1\\\": 20\\n },\\n {\\n \\\"school1\\\": \\\"South Somerset\\\",\\n \\\"rainydays1\\\": 2,\\n \\\"years1\\\": 25\\n },\\n {\\n \\\"school1\\\": \\\"MountainRidge\\\",\\n \\\"rainydays1\\\": 9,\\n \\\"years1\\\": 50\\n },\\n {\\n \\\"school1\\\": \\\"SouthBeach\\\",\\n \\\"rainydays1\\\": 7,\\n \\\"years1\\\": 50\\n },\\n {\\n \\\"school1\\\": \\\"Greenville\\\",\\n \\\"rainydays1\\\": 4,\\n \\\"years1\\\": 25\\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 school.

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

The number of wet swimming carnivals at the school.

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

The name of the school.

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

The total number of swimming carnivals held at the school.

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

What is the experimental probability of rain on the day of the {school1} School swimming carnival? Enter your answer as a decimal. 

", "minValue": "{rainydays1}/{years1}", "maxValue": "{rainydays1}/{years1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}