// Numbas version: exam_results_page_options {"name": "SP OECD bar chart with 1 for 1 return (10+)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/OECD_obesity_bar_chart.png", "/srv/numbas/media/question-resources/OECD_obesity_bar_chart.png"], ["question-resources/OECD_obesity_bar_chart2.png", "/srv/numbas/media/question-resources/OECD_obesity_bar_chart2.png"], ["question-resources/OECD_obesity_bar_chart3.png", "/srv/numbas/media/question-resources/OECD_obesity_bar_chart3.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "SP OECD bar chart with 1 for 1 return (10+)", "tags": ["LANTITE"], "metadata": {"description": "

Used for LANTITE preparation (Australia). SP = Statistics & Probability strand. Students are shown a column graph and asked to calculate the net benefit given the amount invested (randomly generated) and the intervention type (one of seven possible).

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

The Organisation for Economic Co-operation and Development (OECD) has researched various interventions for reducing the rate of people who are overweight. The graph below shows how many US dollars (USD) are returned in Gross Domestic Product (GDP) for each US dollar invested on an intervention. Any result greater than 1 has a net benefit to the economy. The net benefit to the economy is the GDP returned less the money invested on the intervention.

\n

\n

https://www.oecd.org/health/health-systems/Heavy-burden-of-obesity-London-launch-presentation-Cecchini.pdf

", "advice": "
\n

First, for the given intervention, {interventiontype}, read the return rate from the vertical axis. It is approximately {returnrate}.

\n

Next, subtract 1 from the return rate as it costs 1 dollar for every {returnrate} dollars gained in GDP.

\n

{returnrate} - 1 = {returnrate - 1}. This is the net return rate.

\n

Finally, multiply this net return rate by the amount invested.

\n

{returnrate - 1} x \\${formatnumber(investment,\"si-en\")} = \\${trim(dpformat((returnrate - 1)*investment,0,\"si-en\"))} 

\n
\n

The expected net benefit in GDP is \\${trim(dpformat((returnrate - 1)*investment,0,\"si-en\"))}.

\n
\n
\n

The expected net benefit in GDP is \\${trim(dpformat((returnrate - 1)*investment,0,\"si-en\"))}. In other words, it costs more to invest in this intervention than is gained in benefits from it.

\n
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "
\n
\n
\n
\n
\n
\n
\n
\n
\n

The randomly chosen scenario, from the list of seven possible scenarios.

", "templateType": "anything", "can_override": false}, "interventiontype": {"name": "interventiontype", "group": "Ungrouped variables", "definition": "scenario[\"intervention\"]", "description": "
\n
\n
\n
\n
\n
\n
\n

The name of the intervention in the randomly selected scenario.

", "templateType": "anything", "can_override": false}, "scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n{\\n\\\"intervention\\\":\\\"Food advertising regulation\\\",\\n\\\"returnfactor\\\":5.7\\n},\\n{\\n\\\"intervention\\\":\\\"Mobile apps\\\",\\n\\\"returnfactor\\\":2.2\\n},\\n{\\n\\\"intervention\\\":\\\"Physical activity packages\\\",\\n\\\"returnfactor\\\":1.8\\n},\\n{\\n\\\"intervention\\\":\\\"Workplace wellness programmes\\\",\\n\\\"returnfactor\\\":0.8\\n},\\n{\\n\\\"intervention\\\":\\\"Menu labelling\\\",\\n\\\"returnfactor\\\":4.9\\n},\\n{\\n\\\"intervention\\\":\\\"a Mass media campaign\\\",\\n\\\"returnfactor\\\":4.1\\n},\\n{\\n\\\"intervention\\\":\\\"a Mixed package\\\",\\n\\\"returnfactor\\\":1.2\\n}\\n]\"))", "description": "
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

The data from the chart, for seven selected interventions.

", "templateType": "json", "can_override": false}, "investment": {"name": "investment", "group": "Ungrouped variables", "definition": "random(10000 .. 100000#10000)", "description": "
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

The randomly generated amount invested in the intervention. 

", "templateType": "randrange", "can_override": false}, "returnrate": {"name": "returnrate", "group": "Ungrouped variables", "definition": "scenario[\"returnfactor\"]", "description": "
\n
\n
\n
\n
\n
\n

The size of the returnfactor for the intervention in the randomly selected scenario. One must be subtracted from this to obtain the net return rate.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "investment", "interventiontype", "returnrate"], "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": "

If \\${formatnumber(investment,\"si-en\")} USD is invested in {interventiontype}, what would be the approximate expected net benefit?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["\\${trim(dpformat(returnrate*investment,0,\"si-en\"))}", "
\n
\n\\${trim(dpformat(returnrate*1000,0,\"si-en\"))}", "
\n
\n
\n\\${trim(dpformat((returnrate-1)*1000,0,\"si-en\"))}", "
\n
\n\\${trim(dpformat((returnrate-1)*investment,0,\"si-en\"))}"], "matrix": [0, 0, 0, "1"], "distractors": ["Remember to subtract one dollar from the return rate, before multiplying by the amount invested.", "Remember to subtract one dollar from the return rate, then multiply by the amount invested.", "Remember to multiply by the amount invested.", "Well done!"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}