// Numbas version: exam_results_page_options {"name": "True/false statements about confidence intervals - Marijuana study", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "True/false statements about confidence intervals - Marijuana study", "tags": [], "metadata": {"description": "

Multiple response question (3 correct out of 6). Selection of questions from a pool. Real data from a YouGov survey.

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

In a 2015 survey, 1598 UK adults were asked: \"Do you think the use of marijuana should be legalized?\" 32% of the respondents said it should.

\n

The standard error for this estimate was 1.2%. The 95% confidence interval (CI) was: (29.7%, 34.3%).

\n

Identify each of the following statements as true or false (note that every correct answer is worth 1 mark, but every wrong answer loses a mark).

", "advice": "

Check the literature on Confidence Intervals (e.g., Chapter 5 in OpenIntro Statistics).

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "extensions": [], "variables": {"statements": {"name": "statements", "group": "Statements", "definition": "t_statements+f_statements", "description": "", "templateType": "anything"}, "t_statements": {"name": "t_statements", "group": "Statements", "definition": "[ safe(\"The percentage of UK adults who think marijuana should be legalised may be outside the CI.\"), safe(\"A 99% CI constructed using the same sample would be larger than the reported 95% CI.\"), safe(\"We can be 95% confident that the percentage of UK adults who think marijuana should be legalised is between 29.7% and 34.3%. \"), safe(\"There is statistically significant evidence (at the $\\\\alpha=0.05$ level) that the percentage of UK adults who think marijuana should be legalised is above 25%.\"), safe(\"If we repeated this study 1000 times (using 1000 different samples) and constructed a 95% CI each time, then approximately 50 of those 1000 CIs would $not$ contain the true percentage of UK adults who think marijuana should be legalised.\"), safe(\"If we repeated this study 1000 times (using 1000 different samples) and constructed a 95% CI each time, then approximately 950 of those 1000 CIs would contain the true percentage of UK adults who think marijuana should be legalised.\"), safe(\"A 90% CI constructed using the same sample would be smaller than the reported 95% CI.\") ]", "description": "", "templateType": "list of strings"}, "f_statements": {"name": "f_statements", "group": "Statements", "definition": "[ safe(\"A 99% CI constructed using the same sample would be smaller than the reported 95% CI.\"), safe(\"A 90% CI constructed using the same sample would be larger than the reported 95% CI.\"), safe(\"Since the standard error is 1.2%, only 1.2% of people in the study communicated uncertainty about their answer.\"), safe(\"Since the standard error is 1.2%, only 98.8% of people in the study communicated uncertainty about their answer.\"), safe(\"To reduce the standard error, the sample size should be reduced.\"), safe(\"We can be certain that the true percentage of UK adults who think marijuana should be legalised is inside the CI. \"), safe(\"A larger sample will make the standard error larger.\") ]", "description": "", "templateType": "list of strings"}, "choices": {"name": "choices", "group": "Statements", "definition": "shuffle(0..len(statements)-1)[0..6]", "description": "", "templateType": "anything"}, "statement_marks": {"name": "statement_marks", "group": "Statements", "definition": "map([1,-1],x,t_statements)+map([-1,1],x,f_statements)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Statements", "variables": ["t_statements", "f_statements", "statements", "statement_marks", "choices"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "\n \n \n

[[0]]

\n \n \n ", "gaps": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "choices": ["{statements[choices[0]]}", "{statements[choices[1]]}", "{statements[choices[2]]}", "{statements[choices[3]]}", "{statements[choices[4]]}", "{statements[choices[5]]}"], "matrix": "map(statement_marks[choices[j]],j,0..5)", "layout": {"type": "all", "expression": ""}, "answers": ["True", "False"]}], "sortAnswers": false}], "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}]}]}], "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}]}