// Numbas version: exam_results_page_options {"name": "Inference for proportions - true/false", "extensions": [], "custom_part_types": [], "resources": [["question-resources/image_2jpJoLT.png", "/srv/numbas/media/question-resources/image_2jpJoLT.png"], ["question-resources/image_XE2qRFH.png", "/srv/numbas/media/question-resources/image_XE2qRFH.png"], ["question-resources/image_FyLEGJb.png", "/srv/numbas/media/question-resources/image_FyLEGJb.png"], ["question-resources/image_enUwfmk.png", "/srv/numbas/media/question-resources/image_enUwfmk.png"], ["question-resources/image_SZ9eeHv.png", "/srv/numbas/media/question-resources/image_SZ9eeHv.png"], ["question-resources/image_GQm5y0J.png", "/srv/numbas/media/question-resources/image_GQm5y0J.png"], ["question-resources/image_iNuCRj0.png", "/srv/numbas/media/question-resources/image_iNuCRj0.png"], ["question-resources/image_zFLqvyl.png", "/srv/numbas/media/question-resources/image_zFLqvyl.png"], ["question-resources/image_0tWGkKo.png", "/srv/numbas/media/question-resources/image_0tWGkKo.png"], ["question-resources/image_ftJTtaI.png", "/srv/numbas/media/question-resources/image_ftJTtaI.png"], ["question-resources/image_qctxw1L.png", "/srv/numbas/media/question-resources/image_qctxw1L.png"], ["question-resources/image_oNVb3sq.png", "/srv/numbas/media/question-resources/image_oNVb3sq.png"], ["question-resources/image_4hl18gC.png", "/srv/numbas/media/question-resources/image_4hl18gC.png"], ["question-resources/image_3xSQYOW.png", "/srv/numbas/media/question-resources/image_3xSQYOW.png"], ["question-resources/stress-strain_9S5XzfU.png", "/srv/numbas/media/question-resources/stress-strain_9S5XzfU.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Inference for proportions - true/false", "tags": [], "metadata": {"description": "


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

Identify each of the following statements as true or false:

", "advice": "

Revise inference for proportions, e.g., Sections 6.1 and 6.2 of OpenIntro Statistics (4th edition).

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"se": {"name": "se", "group": "Ungrouped variables", "definition": "siground(sqrt(se2),3)", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(100..120)", "description": "", "templateType": "anything", "can_override": false}, "nYes": {"name": "nYes", "group": "Ungrouped variables", "definition": "random(100..150)", "description": "", "templateType": "anything", "can_override": false}, "se2": {"name": "se2", "group": "Ungrouped variables", "definition": "siground(p*(1-p)/n,3)", "description": "", "templateType": "anything", "can_override": false}, "se_pc": {"name": "se_pc", "group": "Ungrouped variables", "definition": "siground(se*100,3)", "description": "", "templateType": "anything", "can_override": false}, "statement_marks": {"name": "statement_marks", "group": "Statements", "definition": "map([2,0],x,t_statements)+map([0,2],x,f_statements)", "description": "", "templateType": "anything", "can_override": false}, "se_diff2": {"name": "se_diff2", "group": "Ungrouped variables", "definition": "siground(p1*(1-p1)/n1+p2*(1-p2)/n2,3)", "description": "", "templateType": "anything", "can_override": false}, "se_diff": {"name": "se_diff", "group": "Ungrouped variables", "definition": "siground(sqrt(p1*(1-p1)/n1+p2*(1-p2)/n2),3)", "description": "", "templateType": "anything", "can_override": false}, "p1": {"name": "p1", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.01)", "description": "", "templateType": "anything", "can_override": false}, "pYes": {"name": "pYes", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.01)", "description": "", "templateType": "anything", "can_override": false}, "se2_pc": {"name": "se2_pc", "group": "Ungrouped variables", "definition": "siground(se2*100,3)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "random(100..120)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(100..120)", "description": "", "templateType": "anything", "can_override": false}, "pNo": {"name": "pNo", "group": "Ungrouped variables", "definition": "random(0.1..0.49#0.01)", "description": "", "templateType": "anything", "can_override": false}, "t_statements": {"name": "t_statements", "group": "Statements", "definition": "[ \"If $n=\\\\var{nYes}$ and $p=\\\\var{pYes}$, the success-failure condition is satisfied.\", \"Assuming that the sampling distribution of $\\\\hat{p}$ is nearly normal, if $n=\\\\var{n}$ and $p=\\\\var{p}$, then $SE=\\\\var{se_pc}\\\\%$.\", \"Assuming that the sampling distribution of $\\\\hat{p}_1-\\\\hat{p}_2$ is nearly normal, if $n_1=\\\\var{n1}$, $n_2=\\\\var{n2}$, $p_1=\\\\var{p1}$ and $p_2=\\\\var{p2}$, then the standard error to use for a confidence interval is $SE=\\\\var{se_diff}$.\", \"The pooled proportion is used to check the success-failure condition when $H_0: p_1=p_2$.\", \"The margin of error for a sample proportion can be reduced by increasing the sample size (all else being equal).\", \"To test the difference of two proportions, the corresponding sample sizes need not be equal.\", \"Inference methods for proportions are appropriate for categorical data.\" ]", "description": "", "templateType": "list of strings", "can_override": false}, "p2": {"name": "p2", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.01)", "description": "", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Statements", "definition": "shuffle(0..len(statements)-1)[0..6]", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "random(0.1..0.9#0.1)", "description": "", "templateType": "anything", "can_override": false}, "nNo": {"name": "nNo", "group": "Ungrouped variables", "definition": "random(1..18)", "description": "", "templateType": "anything", "can_override": false}, "f_statements": {"name": "f_statements", "group": "Statements", "definition": "[ \"If $n=\\\\var{nNo}$ and $p=\\\\var{pNo}$, the success-failure condition is satisfied.\", \"Assuming that the sampling distribution of $\\\\hat{p}$ is nearly normal, if $n=\\\\var{n}$ and $p=\\\\var{p}$, then $SE=\\\\var{se2_pc}\\\\%$.\", \"Assuming that the sampling distribution of $\\\\hat{p}_1-\\\\hat{p}_2$ is nearly normal, if $n_1=\\\\var{n1}$, $n_2=\\\\var{n2}$, $p_1=\\\\var{p1}$ and $p_2=\\\\var{p2}$, then the standard error to use for a confidence interval is $SE=\\\\var{se_diff2}$.\", \"The pooled proportion is used to check the success-failure condition when $H_0: p_1 \\\\neq p_2$.\", \"The margin of error for a sample proportion can be increased by increasing the sample size (all else being equal).\", \"To test the difference of two proportions, the corresponding sample sizes must be equal.\", \"Inference methods for proportions are appropriate for numerical data.\" ]", "description": "", "templateType": "list of strings", "can_override": false}, "statements": {"name": "statements", "group": "Statements", "definition": "t_statements+f_statements", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["nYes", "pYes", "nNo", "pNo", "n", "p", "se2", "se", "se2_pc", "se_pc", "p1", "n1", "p2", "n2", "se_diff2", "se_diff"], "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, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n \n \n

[[0]]

\n \n \n ", "gaps": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "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]]}"], "matrix": "map(statement_marks[choices[j]],j,0..4)", "layout": {"type": "all", "expression": ""}, "answers": ["True", "False"]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}