// Numbas version: exam_results_page_options {"name": "INU0511 Maths Mini Test (S2) 23-24", "metadata": {"description": "", "licence": "All rights reserved"}, "duration": 3600, "percentPass": "50", "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], []], "questions": [{"name": "Averages (frequency table)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "

rebelmaths

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

Calculate the mean, the median and the mode of the data from the following frequency table below:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Class012345
Frequency{f1}{f2}{f3}{f4}{f5}{f6}
", "advice": "

See \"show steps\" within this question for more help.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"f1": {"name": "f1", "group": "Frequencies", "definition": "random(5..20)", "description": "", "templateType": "anything", "can_override": false}, "f2": {"name": "f2", "group": "Frequencies", "definition": "f1+a", "description": "", "templateType": "anything", "can_override": false}, "f3": {"name": "f3", "group": "Frequencies", "definition": "f1-1", "description": "", "templateType": "anything", "can_override": false}, "f4": {"name": "f4", "group": "Frequencies", "definition": "f1-a", "description": "", "templateType": "anything", "can_override": false}, "f5": {"name": "f5", "group": "Frequencies", "definition": "f1-b", "description": "", "templateType": "anything", "can_override": false}, "f6": {"name": "f6", "group": "Frequencies", "definition": "a", "description": "", "templateType": "anything", "can_override": false}, "mp5": {"name": "mp5", "group": "Median calculations", "definition": "tot/2", "description": "", "templateType": "anything", "can_override": false}, "tot": {"name": "tot", "group": "Cumulative", "definition": "cf5+f6", "description": "", "templateType": "anything", "can_override": false}, "sfx": {"name": "sfx", "group": "Mean calculations", "definition": "0*f1+1*f2+2*f3+3*f4+4*f5+5*f6", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Median calculations", "definition": "switch(f1mp5,0)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Median calculations", "definition": "switch(cf3mp5,0)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Median calculations", "definition": "switch(cf2mp5,0)", "description": "", "templateType": "anything", "can_override": false}, "a5": {"name": "a5", "group": "Median calculations", "definition": "switch(cf5mp5,0)", "description": "", "templateType": "anything", "can_override": false}, "a4": {"name": "a4", "group": "Median calculations", "definition": "switch(cf4mp5,0)", "description": "", "templateType": "anything", "can_override": false}, "cf4": {"name": "cf4", "group": "Cumulative", "definition": "cf3+f4", "description": "", "templateType": "anything", "can_override": false}, "cf5": {"name": "cf5", "group": "Cumulative", "definition": "cf4+f5", "description": "", "templateType": "anything", "can_override": false}, "cf2": {"name": "cf2", "group": "Cumulative", "definition": "f1+f2", "description": "", "templateType": "anything", "can_override": false}, "cf3": {"name": "cf3", "group": "Cumulative", "definition": "cf2+f3", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..f1-1)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(a..f1)", "description": "", "templateType": "anything", "can_override": false}, "mn": {"name": "mn", "group": "Mean calculations", "definition": "sfx/tot", "description": "", "templateType": "anything", "can_override": false}, "median": {"name": "median", "group": "Median calculations", "definition": "a1+a2+a3+a4+a5", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "variable_groups": [{"name": "Frequencies", "variables": ["f1", "f2", "f3", "f4", "f5", "f6"]}, {"name": "Cumulative", "variables": ["cf2", "cf3", "cf4", "cf5", "tot"]}, {"name": "Median calculations", "variables": ["a1", "a2", "a3", "a4", "a5", "mp5", "median"]}, {"name": "Mean calculations", "variables": ["sfx", "mn"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the mean value (correct to 2 decimal places)?

", "answer": "{mn}", "showPreview": false, "checkingType": "dp", "checkingAccuracy": "2", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the median value?

", "minValue": "{median}", "maxValue": "{median}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the mode? (If there is no mode, enter \"0\".)

", "minValue": "1", "maxValue": "1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Stratified sampling", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

A science faculty in a university has a total of {pop} students. The table below shows the subjects studied by the students. No student studies moew than one subject.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
BiologyChemistryPhysicsBiochemistryMathsStatistics
{biol}{chem}{phys}{biochem}{maths}{stats}
\n

The university wants to select a sample of {sample} students to take part in a survey. 

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pop": {"name": "pop", "group": "Ungrouped variables", "definition": "random(2500..3000)", "description": "", "templateType": "anything", "can_override": false}, "biol": {"name": "biol", "group": "Ungrouped variables", "definition": "random(300..450)", "description": "", "templateType": "anything", "can_override": false}, "chem": {"name": "chem", "group": "Ungrouped variables", "definition": "random(300..450)", "description": "", "templateType": "anything", "can_override": false}, "phys": {"name": "phys", "group": "Ungrouped variables", "definition": "random(300..450)", "description": "", "templateType": "anything", "can_override": false}, "biochem": {"name": "biochem", "group": "Ungrouped variables", "definition": "random(300..450)\n", "description": "", "templateType": "anything", "can_override": false}, "maths": {"name": "maths", "group": "Ungrouped variables", "definition": "random(300..450)\n", "description": "", "templateType": "anything", "can_override": false}, "stats": {"name": "stats", "group": "Ungrouped variables", "definition": "pop-(biol+chem+phys+biochem+maths)\n", "description": "", "templateType": "anything", "can_override": false}, "sample": {"name": "sample", "group": "Ungrouped variables", "definition": "random(100..200)", "description": "", "templateType": "anything", "can_override": false}, "P1": {"name": "P1", "group": "Ungrouped variables", "definition": "(biol/pop)*100", "description": "", "templateType": "anything", "can_override": false}, "P2": {"name": "P2", "group": "Ungrouped variables", "definition": "(chem/pop)*100\n", "description": "", "templateType": "anything", "can_override": false}, "P3": {"name": "P3", "group": "Ungrouped variables", "definition": "(phys/pop)*100\n", "description": "", "templateType": "anything", "can_override": false}, "P4": {"name": "P4", "group": "Ungrouped variables", "definition": "(biochem/pop)*100\n", "description": "", "templateType": "anything", "can_override": false}, "P5": {"name": "P5", "group": "Ungrouped variables", "definition": "(maths/pop)*100\n", "description": "", "templateType": "anything", "can_override": false}, "P6": {"name": "P6", "group": "Ungrouped variables", "definition": "(stats/pop)*100", "description": "", "templateType": "anything", "can_override": false}, "N1": {"name": "N1", "group": "Ungrouped variables", "definition": "(P1/100)*sample", "description": "", "templateType": "anything", "can_override": false}, "N2": {"name": "N2", "group": "Ungrouped variables", "definition": "(P2/100)*sample", "description": "", "templateType": "anything", "can_override": false}, "N3": {"name": "N3", "group": "Ungrouped variables", "definition": "(P3/100)*sample", "description": "", "templateType": "anything", "can_override": false}, "N4": {"name": "N4", "group": "Ungrouped variables", "definition": "(P4/100)*sample", "description": "", "templateType": "anything", "can_override": false}, "N5": {"name": "N5", "group": "Ungrouped variables", "definition": "(P5/100)*sample", "description": "", "templateType": "anything", "can_override": false}, "N6": {"name": "N6", "group": "Ungrouped variables", "definition": "(P6/100)*sample", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pop", "biol", "chem", "phys", "biochem", "maths", "stats", "sample", "P1", "P2", "P3", "P4", "P5", "P6", "N1", "N2", "N3", "N4", "N5", "N6"], "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": "

Complete the table below to show the percentage of students for each subject.

\n

Give your answer to 1 decimal place.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Biology   ChemPhysicsBiochemMathsStatistics
[[0]][[1]][[2]][[3]][[4]][[5]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P1", "maxValue": "P1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P2", "maxValue": "P2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P3", "maxValue": "P3", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P4", "maxValue": "P4", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P5", "maxValue": "P5", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P6", "maxValue": "P6", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

Complete thet table to show the number of students needed for each subject in the sample. Remember to round your answers to the nearest whole number.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
BiologyChemPhysicsBiochemMathsStatistics
[[0]][[1]][[2]][[3]][[4]][[5]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P1", "part": "p0g0", "must_go_first": false}], "variableReplacementStrategy": "alwaysreplace", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N1", "maxValue": "N1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P2", "part": "p0g1", "must_go_first": false}], "variableReplacementStrategy": "alwaysreplace", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N2", "maxValue": "N2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P3", "part": "p0g2", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N3", "maxValue": "N3", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P4", "part": "p0g3", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N4", "maxValue": "N4", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P5", "part": "p0g4", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N5", "maxValue": "N5", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [{"variable": "P6", "part": "p0g5", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "N6", "maxValue": "N6", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": "75", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Correlation co-efficient (PMCC)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

Here is some data about two variables, x and y

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
x{x1}{x2}{x3}{x4}{x5}{x6}{x7}{x8}{x9}
y{y1}{y2}{y3}{y4}{y5}{y6}{y7}{y8}{y9}
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x1": {"name": "x1", "group": "Ungrouped variables", "definition": "random(6..8)", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "random(6..8)", "description": "", "templateType": "anything", "can_override": false}, "x3": {"name": "x3", "group": "Ungrouped variables", "definition": "random(6..8)", "description": "", "templateType": "anything", "can_override": false}, "x4": {"name": "x4", "group": "Ungrouped variables", "definition": "random(7..9)", "description": "", "templateType": "anything", "can_override": false}, "x5": {"name": "x5", "group": "Ungrouped variables", "definition": "random(7..9)", "description": "", "templateType": "anything", "can_override": false}, "x6": {"name": "x6", "group": "Ungrouped variables", "definition": "random(7..9)", "description": "", "templateType": "anything", "can_override": false}, "x7": {"name": "x7", "group": "Ungrouped variables", "definition": "random(8..11)", "description": "", "templateType": "anything", "can_override": false}, "x8": {"name": "x8", "group": "Ungrouped variables", "definition": "random(8..11)", "description": "", "templateType": "anything", "can_override": false}, "x9": {"name": "x9", "group": "Ungrouped variables", "definition": "random(8..11)", "description": "", "templateType": "anything", "can_override": false}, "y1": {"name": "y1", "group": "Ungrouped variables", "definition": "random(20..22)", "description": "", "templateType": "anything", "can_override": false}, "y2": {"name": "y2", "group": "Ungrouped variables", "definition": "random(20..22)", "description": "", "templateType": "anything", "can_override": false}, "y3": {"name": "y3", "group": "Ungrouped variables", "definition": "random(20..22)", "description": "", "templateType": "anything", "can_override": false}, "y4": {"name": "y4", "group": "Ungrouped variables", "definition": "random(22..25)", "description": "", "templateType": "anything", "can_override": false}, "y5": {"name": "y5", "group": "Ungrouped variables", "definition": "random(22..25)", "description": "", "templateType": "anything", "can_override": false}, "y6": {"name": "y6", "group": "Ungrouped variables", "definition": "random(22..25)", "description": "", "templateType": "anything", "can_override": false}, "y7": {"name": "y7", "group": "Ungrouped variables", "definition": "random(24..26)", "description": "", "templateType": "anything", "can_override": false}, "y8": {"name": "y8", "group": "Ungrouped variables", "definition": "random(24..26)", "description": "", "templateType": "anything", "can_override": false}, "y9": {"name": "y9", "group": "Ungrouped variables", "definition": "random(24..26)", "description": "", "templateType": "anything", "can_override": false}, "sumxsq": {"name": "sumxsq", "group": "Ungrouped variables", "definition": "x1^2+x2^2+x3^2+x4^2+x5^2+x6^2+x7^2+x8^2+x9^2", "description": "", "templateType": "anything", "can_override": false}, "sumysq": {"name": "sumysq", "group": "Ungrouped variables", "definition": "y1^2+y2^2+y3^2+y4^2+y5^2+y6^2+y7^2+y8^2+y9^2", "description": "", "templateType": "anything", "can_override": false}, "sumxy": {"name": "sumxy", "group": "Ungrouped variables", "definition": "x1*y1+x2*y2+x3*y3+x4*y4+x5*y5+x6*y6+x7*y7+x8*y8+x9*y9", "description": "", "templateType": "anything", "can_override": false}, "sumxallsq": {"name": "sumxallsq", "group": "Ungrouped variables", "definition": "(x1+x2+x3+x4+x5+x6+x7+x8+x9)^2", "description": "", "templateType": "anything", "can_override": false}, "sumyallsq": {"name": "sumyallsq", "group": "Ungrouped variables", "definition": "(y1+y2+y3+y4+y5+y6+y7+y8+y9)^2", "description": "", "templateType": "anything", "can_override": false}, "sumxsumy": {"name": "sumxsumy", "group": "Ungrouped variables", "definition": "(x1+x2+x3+x4+x5+x6+x7+x8+x9)*(y1+y2+y3+y4+y5+y6+y7+y8+y9)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "9", "description": "", "templateType": "anything", "can_override": false}, "sxx": {"name": "sxx", "group": "Ungrouped variables", "definition": "sumxsq-sumxallsq/n", "description": "", "templateType": "anything", "can_override": false}, "syy": {"name": "syy", "group": "Ungrouped variables", "definition": "sumysq-sumyallsq/n", "description": "", "templateType": "anything", "can_override": false}, "sxy": {"name": "sxy", "group": "Ungrouped variables", "definition": "sumxy-sumxsumy/n", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "sxy/(sqrt(sxx*syy))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "y1", "y2", "y3", "y4", "y5", "y6", "y7", "y8", "y9", "sumxsq", "sumysq", "sumxy", "sumxallsq", "sumyallsq", "sumxsumy", "n", "sxx", "syy", "sxy", "r"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "6", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the correlation co-efficient

", "minValue": "r-0.01", "maxValue": "r+0.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Yvonne's copy of PRAC Regression", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "

Find a regression equation.

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

A school compares the exam results for students in two tests. Here are the results.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Student$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$$\\var{obj[8]}$$\\var{obj[9]}$
First Test $(X)$$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$$\\var{r1[6]}$$\\var{r1[7]}$$\\var{r1[8]}$$\\var{r1[9]}$
Later Score $(Y)$$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$$\\var{r2[5]}$$\\var{r2[6]}$$\\var{r2[7]}$$\\var{r2[8]}$$\\var{r2[9]}$
", "advice": "", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"tsqovern": {"name": "tsqovern", "group": "Ungrouped variables", "definition": "[t[0]^2/n,t[1]^2/n]", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "precround(1/n*(t[1]-spxy/ss[0]*t[0]),3)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "precround(spxy/ss[0],3)", "description": "", "templateType": "anything", "can_override": false}, "obj": {"name": "obj", "group": "Ungrouped variables", "definition": "['A','B','C','D','E','F','G','H','I','J']", "description": "", "templateType": "anything", "can_override": false}, "r1": {"name": "r1", "group": "Ungrouped variables", "definition": "repeat(round(normalsample(67,8)),10)", "description": "", "templateType": "anything", "can_override": false}, "r2": {"name": "r2", "group": "Ungrouped variables", "definition": "map(round(a1+b1*x+random(-9..9)),x,r1)", "description": "", "templateType": "anything", "can_override": false}, "ss": {"name": "ss", "group": "Ungrouped variables", "definition": "[ssq[0]-t[0]^2/n,ssq[1]-t[1]^2/n]", "description": "", "templateType": "anything", "can_override": false}, "res": {"name": "res", "group": "Ungrouped variables", "definition": "map(precround(r2[x]-(a+b*r1[x]),2),x,0..n-1)", "description": "", "templateType": "anything", "can_override": false}, "ssq": {"name": "ssq", "group": "Ungrouped variables", "definition": "[sum(map(x^2,x,r1)),sum(map(x^2,x,r2))]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "10", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(10..20)", "description": "", "templateType": "anything", "can_override": false}, "ch": {"name": "ch", "group": "Ungrouped variables", "definition": "random(0..9)", "description": "", "templateType": "anything", "can_override": false}, "spxy": {"name": "spxy", "group": "Ungrouped variables", "definition": "sxy-t[0]*t[1]/n", "description": "", "templateType": "anything", "can_override": false}, "t": {"name": "t", "group": "Ungrouped variables", "definition": "[sum(r1),sum(r2)]", "description": "", "templateType": "anything", "can_override": false}, "tol": {"name": "tol", "group": "Ungrouped variables", "definition": "0.001", "description": "", "templateType": "anything", "can_override": false}, "sc": {"name": "sc", "group": "Ungrouped variables", "definition": "r1[ch]", "description": "", "templateType": "anything", "can_override": false}, "sxy": {"name": "sxy", "group": "Ungrouped variables", "definition": "sum(map(r1[x]*r2[x],x,0..n-1))", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(0.25..0.45#0.05)", "description": "", "templateType": "anything", "can_override": false}, "ls": {"name": "ls", "group": "Ungrouped variables", "definition": "precround(a+b*sc,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["tsqovern", "a", "b", "obj", "r1", "r2", "ss", "res", "ssq", "n", "a1", "ch", "spxy", "t", "tol", "sc", "sxy", "b1", "ls"], "variable_groups": [], "functions": {"pstdev": {"parameters": [["l", "list"]], "type": "number", "language": "jme", "definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the equation of the best fitting regression line:

\n

y = a + bx

\n

Find $a$ and $b$ and then input them below to 3 decimal places. 

\n

$b=\\;$[[0]],      $a=\\;$[[1]] (enter both to 3 decimal places).

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "b-tol", "maxValue": "b+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "a-tol", "maxValue": "a+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Interpreting r", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

Match the following values of correlation co-efficients with the descriptions

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "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, "markingMethod": "sum ticked cells", "choices": ["0.976", "0.67", "-0.67", "-0.989", "0.056"], "matrix": [["1", 0, 0, 0, 0], [0, "1", 0, 0, 0], [0, 0, "1", 0, 0], [0, 0, 0, "1", 0], [0, 0, 0, 0, "1"]], "layout": {"type": "all", "expression": ""}, "answers": ["strong positive correlation", "positive correlation", "negative correlation", "strong negative correlation", "no correlation"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Heads and tails", "extensions": [], "custom_part_types": [], "resources": [["question-resources/steve-smith-Zvvu4zRKijE-unsplash.jpg", "/srv/numbas/media/question-resources/steve-smith-Zvvu4zRKijE-unsplash.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Chloe throws a fair coin 3 times. 

\n

\n

Type your answers as fractions.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she gets 3 'heads'?

", "minValue": "1/8", "maxValue": "1/8", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she gets at least one 'tail'?

", "minValue": "7/8", "maxValue": "7/8", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Q10 Pens", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Denise has a box with {bluenum } blue pens and {rednum} red pens. She takes out one pen and does not replace it. She then takes out another pen.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"blue": {"name": "blue", "group": "Ungrouped variables", "definition": "bluenum/(rednum+bluenum)", "description": "", "templateType": "anything", "can_override": false}, "red": {"name": "red", "group": "Ungrouped variables", "definition": "rednum/(rednum+bluenum)", "description": "", "templateType": "anything", "can_override": false}, "bluenum": {"name": "bluenum", "group": "Ungrouped variables", "definition": "random(3..6)", "description": "", "templateType": "anything", "can_override": false}, "rednum": {"name": "rednum", "group": "Ungrouped variables", "definition": "random(3..8)", "description": "", "templateType": "anything", "can_override": false}, "bluered": {"name": "bluered", "group": "Ungrouped variables", "definition": "(bluenum/(rednum+bluenum))*(rednum/(rednum+bluenum-1))", "description": "", "templateType": "anything", "can_override": false}, "blueredany": {"name": "blueredany", "group": "Ungrouped variables", "definition": "(bluenum/(rednum+bluenum))*(rednum/(rednum+bluenum-1))+(rednum/(rednum+bluenum))*(bluenum/(rednum+bluenum-1))", "description": "", "templateType": "anything", "can_override": true}, "blue2": {"name": "blue2", "group": "Ungrouped variables", "definition": "(bluenum-1)/(bluenum+rednum-1)", "description": "", "templateType": "anything", "can_override": false}, "blueblue": {"name": "blueblue", "group": "Ungrouped variables", "definition": "blue*blue2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["blue", "red", "bluenum", "rednum", "bluered", "blueredany", "blue2", "blueblue"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she takes out a blue pen on the first try?

", "minValue": "blue", "maxValue": "blue", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she takes out a red pen on the first try?

", "minValue": "red", "maxValue": "red", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she takes out two blue pens?

", "minValue": "blueblue", "maxValue": "blueblue", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she takes out a blue followed by a red pen?

", "minValue": "bluered", "maxValue": "bluered", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability of getting one red and one blue pen?

", "minValue": "blueredany", "maxValue": "blueredany", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Q6 MT2 Venn3", "extensions": ["eukleides", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": ["category: statistics", "leads to: 335, Venn Diagrams (conditional prob.)", "skill: 234, Venn Diagrams (probability)"], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Read the question and use the diagram to help you. Give your answers as fractions.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "eukleides(\"A Venn diagram with {justA} in just Mathematics, {justB} in just Physics, {both} in both, and {neither} in neither\",\n[\ncircle(point(0,0),2) color1 filled opacity(0.5),\npoint(-1,2) label(\"Mathematics\",deg(180)),\ncircle(point(3,0),2) color2 filled opacity(0.5),\npoint(4,2) label(\"Physics\",deg(0)),\npoint(0,0) label(justA,deg(180)),\npoint(3,0) label(justB,deg(0)),\npoint(1.5,0) label(both,0),\npoint(6,0) label(neither)\n],\n[\"justA\":justA,\"justB\":justB,\"both\":both,\"neither\":neither]\n)", "description": "", "templateType": "anything", "can_override": false}, "groups": {"name": "groups", "group": "Ungrouped variables", "definition": "[\n [25,30,10,35],\n [20,40,25,15],\n [15,50,20,15],\n [20,35,15,30],\n [10,30,15,45]\n]", "description": "", "templateType": "anything", "can_override": false}, "group": {"name": "group", "group": "Ungrouped variables", "definition": "random(groups)", "description": "", "templateType": "anything", "can_override": false}, "justA": {"name": "justA", "group": "Ungrouped variables", "definition": "group[0]", "description": "", "templateType": "anything", "can_override": false}, "justB": {"name": "justB", "group": "Ungrouped variables", "definition": "group[1]", "description": "", "templateType": "anything", "can_override": false}, "both": {"name": "both", "group": "Ungrouped variables", "definition": "group[2]", "description": "", "templateType": "anything", "can_override": false}, "neither": {"name": "neither", "group": "Ungrouped variables", "definition": "group[3]", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "(justA+justB)/(justA+justB+both+neither)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["groups", "group", "justA", "justB", "both", "neither", "diagram", "p"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The percentage of students studying one, both or neither of  Mathematics and Physics is shown by the diagram below.

\n

{max_width(30,diagram)}

\n

What is the probability that a randomly chosen student studies only one of these subjects?

", "minValue": "p", "maxValue": "p", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that a student studies at least one of these two subjects?

", "minValue": "(100-neither)/100", "maxValue": "(100-neither)/100", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that a student studies neither of these subjects?

", "minValue": "neither/100", "maxValue": "neither/100", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Q4 MT2 tree2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

Neil is deciding what to eat for breakfast. The probability of him choosing cereal is {cereal} and the probability of him choosing a cooked breakfast is {cooked}. If he chooses cereal then the probability that he chooses to drink coffee is {tea1}. If he chooses a cooked breakfast then the probability that he chooses coffee is {tea2}.

\n

By drawing a tree diagram or otherwise, answer the following questions.

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cereal": {"name": "cereal", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "cooked": {"name": "cooked", "group": "Ungrouped variables", "definition": "1-cereal", "description": "", "templateType": "anything", "can_override": false}, "tea1": {"name": "tea1", "group": "Ungrouped variables", "definition": "random(0.2 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "nottea1": {"name": "nottea1", "group": "Ungrouped variables", "definition": "1-tea1", "description": "", "templateType": "anything", "can_override": false}, "tea2": {"name": "tea2", "group": "Ungrouped variables", "definition": "random(0.2 .. 0.8#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "nottea2": {"name": "nottea2", "group": "Ungrouped variables", "definition": "1-tea2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cereal", "cooked", "tea1", "nottea1", "tea2", "nottea2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that he chooses cereal but not tea?

", "minValue": "cereal*nottea1", "maxValue": "cereal*nottea1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that he chooses coffee?

", "minValue": "cereal*tea1+cooked*tea2", "maxValue": "cereal*tea1+cooked*tea2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that he does not choose coffee?

", "minValue": "1-(cereal*tea1+cooked*tea2)", "maxValue": "1-(cereal*tea1+cooked*tea2)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": false, "showfrontpage": true, "showresultspage": "review", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": "", "allowAttemptDownload": false, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": false, "showtotalmark": false, "showanswerstate": false, "allowrevealanswer": false, "advicethreshold": 0, "intro": "", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}], "extensions": ["eukleides", "jsxgraph", "stats"], "custom_part_types": [], "resources": [["question-resources/steve-smith-Zvvu4zRKijE-unsplash.jpg", "/srv/numbas/media/question-resources/steve-smith-Zvvu4zRKijE-unsplash.jpg"]]}