// Numbas version: exam_results_page_options {"name": "Outcome 3 Formative", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Outcome 3", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", ""], "variable_overrides": [[], [], [], [], []], "questions": [{"name": "Confidence intervals", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

{scenario[tok]}

\n

{sets}

\n

{info[tok]}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "[\n \"A random sample of {n} tubes of sun tan lotion was obtained from a production line. Their volumes (in millilitres) were measured:- \",\n \"A random sample of {n} packets of peanuts was obtained from a production line. Their weights (in grams) were measured:- \"\n]", "description": "

Start of quesiton gives the student the scenario

", "templateType": "anything", "can_override": false}, "sets": {"name": "sets", "group": "Ungrouped variables", "definition": "//iterate(populations[precround(x+abs(populations)/n,0)],x,populations[init],(n-1))\nrepeat(random(populations),n)\n", "description": "", "templateType": "anything", "can_override": true}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(8..14)", "description": "", "templateType": "anything", "can_override": false}, "conf_int": {"name": "conf_int", "group": "Ungrouped variables", "definition": "[\n \"90%\":1.645, \n \"95%\":1.960,\n \"98%\":2.326,\n \"99%\":2.576\n]", "description": "", "templateType": "anything", "can_override": false}, "tok": {"name": "tok", "group": "Ungrouped variables", "definition": "random(0..1)", "description": "", "templateType": "anything", "can_override": false}, "info": {"name": "info", "group": "Ungrouped variables", "definition": "[\n \" The manufacturer advises from knowledge of the process that the actual mean volume and standard deviation is {mean}ml and {sd}ml respectively. Assuming the sample is from a normal distribution;\",\n \" The manufacturer advises from knowledge of the process that the actual mean weight and standard deviation is {mean}g and {sd}g respectively. Assuming the sample is from a normal distribution;\" \n\n \n\n]", "description": "

Gives the student the relavant info to use

", "templateType": "anything", "can_override": false}, "mean": {"name": "mean", "group": "Ungrouped variables", "definition": "precround(mean(populations),0)", "description": "", "templateType": "anything", "can_override": false}, "sd": {"name": "sd", "group": "Ungrouped variables", "definition": "precround(stdev(populations),3)", "description": "", "templateType": "anything", "can_override": false}, "populations": {"name": "populations", "group": "Ungrouped variables", "definition": "repeat(random(min[tok]..max[tok] #0.1),1000)", "description": "", "templateType": "anything", "can_override": false}, "setlength": {"name": "setlength", "group": "Ungrouped variables", "definition": "abs(sets)", "description": "", "templateType": "anything", "can_override": false}, "conf_int_tok": {"name": "conf_int_tok", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "qu_a": {"name": "qu_a", "group": "Ungrouped variables", "definition": "[\n \"Calculate a {keys(conf_int)[conf_int_tok]} confidence interval for the population mean volume of sun tan lotion.\",\n \"Calculate a {keys(conf_int)[conf_int_tok]} confidence interval for the population mean weight of a bag of peanuts.\"\n\n]", "description": "", "templateType": "anything", "can_override": false}, "qu_b": {"name": "qu_b", "group": "Ungrouped variables", "definition": "[\n \"Comment on the manufacturer\u2019s claim that tubes of sun tan lotion contain on average {claim}ml.\",\n \"Comment on the manufacturer\u2019s claim that the bags on average contain {claim}g of peanuts.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "claim": {"name": "claim", "group": "Ungrouped variables", "definition": "siground(mean,1)", "description": "", "templateType": "anything", "can_override": false}, "sample_mean": {"name": "sample_mean", "group": "Ungrouped variables", "definition": "mean(sets)", "description": "", "templateType": "anything", "can_override": false}, "upper_conf": {"name": "upper_conf", "group": "Ungrouped variables", "definition": "sample_mean+ci", "description": "", "templateType": "anything", "can_override": false}, "lower_conf": {"name": "lower_conf", "group": "Ungrouped variables", "definition": "sample_mean-ci", "description": "", "templateType": "anything", "can_override": false}, "claim_correct": {"name": "claim_correct", "group": "Ungrouped variables", "definition": "if(mean < upper_conf and mean > lower_conf , true, false)", "description": "", "templateType": "anything", "can_override": false}, "init": {"name": "init", "group": "Ungrouped variables", "definition": "random(0..(n-1))", "description": "", "templateType": "anything", "can_override": false}, "ci": {"name": "ci", "group": "Ungrouped variables", "definition": "conf_int[keys(conf_int)[conf_int_tok]]*(sd/(sqrt(n)))", "description": "", "templateType": "anything", "can_override": false}, "min": {"name": "min", "group": "Ungrouped variables", "definition": "[\n 197,\n 45\n]", "description": "", "templateType": "anything", "can_override": false}, "max": {"name": "max", "group": "Ungrouped variables", "definition": "[\n 203,\n 55\n]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenario", "info", "sets", "n", "conf_int", "tok", "sd", "mean", "populations", "setlength", "conf_int_tok", "qu_a", "qu_b", "claim", "sample_mean", "lower_conf", "upper_conf", "claim_correct", "init", "ci", "min", "max"], "variable_groups": [], "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": "

{qu_a[tok]}

\n

Give your answer in the form $\\bar{x}\\pm$error

\n

[[0]]$\\pm$[[1]]

", "gaps": [{"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, "minValue": "{sample_mean}*0.99", "maxValue": "{sample_mean}*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "minValue": "{ci}*0.99", "maxValue": "{ci}*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

{qu_b[tok]}

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{claim_correct}", "{!claim_correct}"], "matrix": ["1", 0], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Normal Distribution", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

{scenario[tok]}

\n

{questions[tok]}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Scenario": {"name": "Scenario", "group": "Ungrouped variables", "definition": "[\n \"A company conducts quality assurance on the weight of a product it produces. It knows the long term mean for the weight of product is {mean}g, the standard deviation is {sd}g and that the weights of the product are normally distributed.\",\n]", "description": "

Weights of a product with data ranging from 200..400g

", "templateType": "anything", "can_override": false}, "mean": {"name": "mean", "group": "Ungrouped variables", "definition": "precround(mean(data[0]),2)\n", "description": "", "templateType": "anything", "can_override": false}, "sd": {"name": "sd", "group": "Ungrouped variables", "definition": "precround(stdev(data[0],true),2)\n", "description": "", "templateType": "anything", "can_override": false}, "data": {"name": "data", "group": "Ungrouped variables", "definition": "[\n repeat(random(200..400),1000)\n]", "description": "", "templateType": "anything", "can_override": false}, "tok": {"name": "tok", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "Upper_limit": {"name": "Upper_limit", "group": "Ungrouped variables", "definition": "precround(mean+random(0.25..2#0.1)*sd,0)", "description": "", "templateType": "anything", "can_override": false}, "Lower_limit": {"name": "Lower_limit", "group": "Ungrouped variables", "definition": "precround(mean-random(0.5..1.5#0.1)*sd,0)", "description": "", "templateType": "anything", "can_override": false}, "z_upper": {"name": "z_upper", "group": "Ungrouped variables", "definition": "precround((upper_limit-mean)/sd,2)", "description": "", "templateType": "anything", "can_override": false}, "z_lower": {"name": "z_lower", "group": "Ungrouped variables", "definition": "precround((lower_limit-mean)/sd,2)", "description": "", "templateType": "anything", "can_override": false}, "upper_prob": {"name": "upper_prob", "group": "Ungrouped variables", "definition": "1-(normalcdf(z_upper,0,1))", "description": "", "templateType": "anything", "can_override": false}, "lower_prob": {"name": "lower_prob", "group": "Ungrouped variables", "definition": "1-(normalcdf(abs(z_lower),0,1))", "description": "", "templateType": "anything", "can_override": false}, "questions": {"name": "questions", "group": "Ungrouped variables", "definition": "[\n \"Determine the probability of a product being {less_between_more[lbm_tok]}g\"\n]", "description": "", "templateType": "anything", "can_override": false}, "less_between_more": {"name": "less_between_more", "group": "Ungrouped variables", "definition": "[\n \"less than {lower_limit}\",\n \"more than {lower_limit}\",\n \"between {lower_limit} and {upper_limit}\",\n \"less than {upper_limit}\",\n \"more than {upper_limit}\"\n]", "description": "", "templateType": "anything", "can_override": false}, "question_tok": {"name": "question_tok", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "lbm_tok": {"name": "lbm_tok", "group": "Ungrouped variables", "definition": "random(0..4)", "description": "

less than, between and more than token

", "templateType": "anything", "can_override": false}, "answers": {"name": "answers", "group": "Ungrouped variables", "definition": "[\n lower_prob,\n 1-lower_prob,\n 1-(lower_prob+upper_prob),\n 1-upper_prob,\n upper_prob\n]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Scenario", "questions", "less_between_more", "mean", "sd", "data", "tok", "Upper_limit", "Lower_limit", "z_upper", "z_lower", "upper_prob", "lower_prob", "question_tok", "lbm_tok", "answers"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Answer: 

", "answer": "{answers[lbm_tok]}", "showPreview": true, "checkingType": "reldiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "T-test", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

{scenarios[tok]}

\n

{table([iterate(x+1,x,1,n-1),sampled_data],headings[tok])}

\n

{questions[tok]}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Scenarios": {"name": "Scenarios", "group": "Ungrouped variables", "definition": "[\n \"A fast food restaraunt randomly samples the amount of time customers spend in the drive through before being served. {n} customers are sampled and the results are shown in the table below:\"\n]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(6..14)\n", "description": "", "templateType": "anything", "can_override": false}, "Raw_data": {"name": "Raw_data", "group": "Ungrouped variables", "definition": "repeat(precround(normalsample(n_mean[tok],n_std[tok]),1),1000)", "description": "", "templateType": "anything", "can_override": false}, "Tok": {"name": "Tok", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "n_mean": {"name": "n_mean", "group": "Ungrouped variables", "definition": "[\n random(240..320#10)\n]", "description": "", "templateType": "anything", "can_override": false}, "n_std": {"name": "n_std", "group": "Ungrouped variables", "definition": "[\n sqrt(n_mean[tok])+random([1,-1])*random(0..0.6#0.01)\n]\n\n", "description": "", "templateType": "anything", "can_override": false}, "Sampled_data": {"name": "Sampled_data", "group": "Ungrouped variables", "definition": "repeat(random(raw_data),n)", "description": "", "templateType": "anything", "can_override": false}, "Headings": {"name": "Headings", "group": "Ungrouped variables", "definition": "[\n [\"Customer\",\"time (s)\"]\n]", "description": "", "templateType": "anything", "can_override": false}, "Raw_mean": {"name": "Raw_mean", "group": "Ungrouped variables", "definition": "mean(raw_data)", "description": "", "templateType": "anything", "can_override": false}, "Raw_std": {"name": "Raw_std", "group": "Ungrouped variables", "definition": "stdev(raw_data,true)", "description": "", "templateType": "anything", "can_override": false}, "sample_mean": {"name": "sample_mean", "group": "Ungrouped variables", "definition": "mean(sampled_data)", "description": "", "templateType": "anything", "can_override": false}, "Sample_std": {"name": "Sample_std", "group": "Ungrouped variables", "definition": "stdev(sampled_data,true)", "description": "", "templateType": "anything", "can_override": false}, "Difference": {"name": "Difference", "group": "Ungrouped variables", "definition": "sample_mean - n_mean[tok]", "description": "", "templateType": "anything", "can_override": false}, "Standard_error": {"name": "Standard_error", "group": "Ungrouped variables", "definition": "sample_std/sqrt(n)", "description": "", "templateType": "anything", "can_override": false}, "Test_stat": {"name": "Test_stat", "group": "Ungrouped variables", "definition": "difference/standard_error", "description": "", "templateType": "anything", "can_override": false}, "Alpha": {"name": "Alpha", "group": "Ungrouped variables", "definition": "random([\n 0.2,0.1,0.05,0.02,0.01\n])\n\n", "description": "", "templateType": "anything", "can_override": false}, "Conf_int": {"name": "Conf_int", "group": "Ungrouped variables", "definition": "(1-alpha)*100", "description": "", "templateType": "anything", "can_override": false}, "Critical": {"name": "Critical", "group": "Ungrouped variables", "definition": "studenttinv(alpha/2,n-1)", "description": "", "templateType": "anything", "can_override": false}, "Reject_null": {"name": "Reject_null", "group": "Ungrouped variables", "definition": "if(test_stat>critical, true, false)", "description": "", "templateType": "anything", "can_override": false}, "Questions": {"name": "Questions", "group": "Ungrouped variables", "definition": "[\n \"The restuarant claim the mean waiting time in the drive through queue of {n_mean[0]} seconds. Test at the {conf_int}% level if this claim is true.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "Alt": {"name": "Alt", "group": "Ungrouped variables", "definition": "if(reject_null,false,true)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Scenarios", "n", "Raw_data", "n_mean", "Tok", "n_std", "Sampled_data", "Headings", "Raw_mean", "Raw_std", "sample_mean", "Sample_std", "Difference", "Standard_error", "Test_stat", "Conf_int", "Critical", "Alpha", "Reject_null", "Questions", "Alt"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "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": "

Calculate the t-statistic: 

", "alternatives": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "answer": "-{test_stat}", "showPreview": true, "checkingType": "reldiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "answer": "{test_stat}", "showPreview": true, "checkingType": "reldiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "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": "

Determine $t_{critical}$

", "alternatives": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "answer": "-{critical}", "showPreview": true, "checkingType": "reldiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "answer": "{critical}", "showPreview": true, "checkingType": "reldiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"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": "

There is sufficient evidence to support the company's claim. Select the correct option. 

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{Reject_null}", "{alt}"], "matrix": ["1", "0"], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "z test", "extensions": ["stats"], "custom_part_types": [], "resources": [["question-resources/image_oUYJAdK.png", "/srv/numbas/media/question-resources/image_oUYJAdK.png"], ["question-resources/image_K9cKknc.png", "/srv/numbas/media/question-resources/image_K9cKknc.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

{statement[tok]}

\n

{question[tok]}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"statement": {"name": "statement", "group": "Ungrouped variables", "definition": "[\n \"Lengths of steel wire are known to have breaking strengths that are normally distributed. A customer suspects that the mean breaking strength is {high_low[h_l_tok]} than the mean of {pop_mean}N specified by the manufacturer. Breaking strengths of a random sample of {n} lengths of wire are tested to decide if there is evidence to suggest that breaking strengths are not conforming to specification. The sampled wire had a mean breaking strength of of {s_mean}N with a standard deviation of {s_sd}N. \",\n \"A company's expenses budget is estimated based on a known mean claim of \u00a3{pop_mean} with a standard deviation of {sd}. A new HR manager thinks that the actual mean claim is {high_low[h_l_tok]} than this. They sample {length(selection)} expense claims and calculate the mean claim to be \u00a3{s_mean}.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "sd": {"name": "sd", "group": "Ungrouped variables", "definition": "precround(stdev(populations),1)", "description": "", "templateType": "anything", "can_override": false}, "pop_mean": {"name": "pop_mean", "group": "Ungrouped variables", "definition": "precround(mean(populations),0)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(50..150)", "description": "", "templateType": "anything", "can_override": false}, "populations": {"name": "populations", "group": "Ungrouped variables", "definition": "repeat(random(min[tok]..max[tok] #0.1),1000)\n", "description": "", "templateType": "anything", "can_override": false}, "max": {"name": "max", "group": "Ungrouped variables", "definition": "[90,500]", "description": "", "templateType": "anything", "can_override": false}, "min": {"name": "min", "group": "Ungrouped variables", "definition": "[70,300]", "description": "", "templateType": "anything", "can_override": false}, "tok": {"name": "tok", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "selection": {"name": "selection", "group": "Ungrouped variables", "definition": "repeat(random(populations),n)", "description": "", "templateType": "anything", "can_override": false}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "[\n \"Carry out an appropriate test, at the {dsig}% significance level, to determine if there is sufficient evidence to confirm the suspicion that breaking strength does not meet specification. \",\n \"Perform a z-test at the {dsig}% significance level, to determine if there is sufficient evidence to back up the HR manager's claim.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "dsig": {"name": "dsig", "group": "Ungrouped variables", "definition": "sig*100", "description": "", "templateType": "anything", "can_override": false}, "sig": {"name": "sig", "group": "Ungrouped variables", "definition": "random(0.05,0.025,0.01)", "description": "", "templateType": "anything", "can_override": false}, "z_critical": {"name": "z_critical", "group": "Ungrouped variables", "definition": "normalinv(sig,0,1)", "description": "", "templateType": "anything", "can_override": false}, "z": {"name": "z", "group": "Ungrouped variables", "definition": "(s_mean-pop_mean)/s_se", "description": "", "templateType": "anything", "can_override": false}, "se": {"name": "se", "group": "Ungrouped variables", "definition": "sd/sqrt(n)", "description": "", "templateType": "anything", "can_override": false}, "s_mean": {"name": "s_mean", "group": "Ungrouped variables", "definition": "precround(mean(selection),2)", "description": "", "templateType": "anything", "can_override": false}, "interp": {"name": "interp", "group": "Ungrouped variables", "definition": "if(z=z_critical,\"there is\",\"there is not\")", "description": "", "templateType": "anything", "can_override": false}, "s_sd": {"name": "s_sd", "group": "Ungrouped variables", "definition": "precround(stdev(selection,true),3)", "description": "", "templateType": "anything", "can_override": false}, "s_se": {"name": "s_se", "group": "Ungrouped variables", "definition": "s_sd/sqrt(n)", "description": "", "templateType": "anything", "can_override": false}, "High_low": {"name": "High_low", "group": "Ungrouped variables", "definition": "[\"higher\",\"lower\"]", "description": "", "templateType": "anything", "can_override": false}, "H_l_sym": {"name": "H_l_sym", "group": "Ungrouped variables", "definition": "[\">\",\"<\"]", "description": "", "templateType": "anything", "can_override": false}, "H_l_tok": {"name": "H_l_tok", "group": "Ungrouped variables", "definition": "random(0..1)", "description": "", "templateType": "anything", "can_override": false}, "Not_h_l_tok": {"name": "Not_h_l_tok", "group": "Ungrouped variables", "definition": "if(h_l_tok=0,1,0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["statement", "sd", "pop_mean", "n", "populations", "max", "min", "selection", "tok", "z", "question", "dsig", "sig", "se", "s_mean", "z_critical", "interp", "s_sd", "alt_interp", "conclusion", "s_se", "High_low", "H_l_sym", "H_l_tok", "Not_h_l_tok"], "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": "

Select the approriate hypothesis below:

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["$H_0:\\bar x=\\mu$
$H_1:\\bar x \\, \\var{h_l_sym[h_l_tok]}\\,\\mu$", "$H_0:\\bar x=\\mu$
$H_1:\\bar x\\,\\var{h_l_sym[not_h_l_tok]}\\,\\mu$", "$H_0: \\bar x=\\mu$
$H_1:\\bar x\\neq\\mu$"], "matrix": ["1", 0, 0], "distractors": ["", "", ""]}, {"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": "

Determine $z_{critical}$

", "alternatives": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minValue": "-abs({z_critical})*0.99", "maxValue": "-abs({z_critical})*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "abs({z_critical})*0.999", "maxValue": "abs({z_critical})*1.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "

Calculate the z score:

", "alternatives": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minValue": "-abs({z})*0.999", "maxValue": "-abs({z})*1.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "abs({z})*0.999", "maxValue": "abs({z})*1.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "

Select the correct statement from below:

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{interp} {conclusion[0]}", "{alt_interp} {conclusion[0]}"], "matrix": ["1", 0], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Type 1 and Type 2 Errors", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

{scenario[tok]}

\n

{hypotheses[tok]}

\n

\n

$H_0:p  \\le$ {h}

\n

$H_1:p >$ {h}

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Scenario": {"name": "Scenario", "group": "Ungrouped variables", "definition": "[\n \"A chain of restaurants is considering opening up a new premises in {location}. It decides that it can only open a new restaurant if over {H}% of the local population would use it once a month or more.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "Location": {"name": "Location", "group": "Ungrouped variables", "definition": "random(\"Falkirk\", \"Stirling\", \"Alloa\")", "description": "", "templateType": "anything", "can_override": false}, "H": {"name": "H", "group": "Ungrouped variables", "definition": "random(5..40)", "description": "", "templateType": "anything", "can_override": false}, "Hypotheses": {"name": "Hypotheses", "group": "Ungrouped variables", "definition": "[\n \"Let p be the percentage of the population who would visit the restaurant once a month or more. The following hypotheses are stated:\"\n]", "description": "", "templateType": "anything", "can_override": false}, "tok": {"name": "tok", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "options": {"name": "options", "group": "Ungrouped variables", "definition": "[\n \"The company does not set up the new {type[tok]} when there is enough support for it.\",\n \"The company does not set up the new {type[tok]} when there is not sufficient support for it.\",\n \"The company sets up the new {type[tok]} when there is not enough support for it.\",\n \"The company sets up a new {type[tok]} when there is enough support for it.\"\n]", "description": "", "templateType": "anything", "can_override": false}, "type": {"name": "type", "group": "Ungrouped variables", "definition": "[\n \"restaraunt\"\n]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Scenario", "Location", "H", "Hypotheses", "tok", "options", "type"], "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": "
\n
\n
\n

From the following list select the Type 1 error, state what a Type 1 error is, and explain what the consequence of a Type 1 error would be in this context.

\n

(3 marks)

\n

\n

\n
\n
\n
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{options[0]}", "{options[1]}", "{options[2]}", "{options[3]}"], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}, {"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": "
\n
\n
\n

From the following list select the Type 2 error, state what a Type 2 error is, and explain what the consequence of a Type 2 error would be in this context.

\n

(3 marks)

\n

\n

\n
\n
\n
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{options[0]}", "{options[1]}", "{options[2]}", "{options[3]}"], "matrix": ["1", 0, "0", 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "allowAttemptDownload": false, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "John Dickson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/628/"}, {"name": "Maths Team", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12915/"}], "extensions": ["stats"], "custom_part_types": [], "resources": [["question-resources/image_oUYJAdK.png", "/srv/numbas/media/question-resources/image_oUYJAdK.png"], ["question-resources/image_K9cKknc.png", "/srv/numbas/media/question-resources/image_K9cKknc.png"]]}