// Numbas version: finer_feedback_settings {"name": "Skills Audit for Maths and Stats - Public Health (HAR6035)", "metadata": {"description": "
Skills Audit for Maths and Stats for Public Health Students
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []], "questions": [{"name": "NA6 - Convert Units - volume - l to ml", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Simple unit conversion with metric units.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {liquid} litres ($l$) in millilitres ($ml$).
", "advice": "There are $1000ml$ in $1l$. To work out the conversion: $\\var{liquid}*1000 = \\var{answer}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"liquid": {"name": "liquid", "group": "Ungrouped variables", "definition": "random(1 .. 6#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "liquid*1000", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["liquid", "answer"], "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": "[[0]]$ml$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NA7 - Convert Units - volume - ml to l", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Metric Unit conversion - division by 1000.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {liquid} millilitres ($ml$) in litres ($l$). Give your answer to 3 decimal places.
", "advice": "There are $1000ml$ in $1l$. To work out the conversion: $\\frac{\\var{liquid}}{1000} = \\var{answer}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"liquid": {"name": "liquid", "group": "Ungrouped variables", "definition": "random(100 .. 5200#1)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "liquid/1000", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["liquid", "answer"], "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": "[[0]]$l$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NA8 - Convert Units - metric prefixes - milligrams to grams", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Using prefixes (milli) in this case.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {x} milligrams ($mg$) in grams ($g$). Give your answer to 3 decimal places.
", "advice": "There are $1000mg$ in $1g$. To work out the conversion: $\\frac{\\var{x}}{1000} = \\var{answer}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(100 .. 5200#1)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "x/1000", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "answer"], "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": "[[0]]$g$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NA9 - Convert Units - metric prefixes - milligrams to micrograms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Using prefixes - milli and micro.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {x} milligrams ($mg$) in micrograms ($\\mu g$).
", "advice": "There are $1000\\mu g$ in $1mg$. To work out the conversion: $\\var{x}*1000 = \\var{answer}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(0.1 .. 2#0.001)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "x*1000", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "answer"], "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": "[[0]]$\\mu g$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NA10 - Convert Units - metric prefixes - micrograms to milligrams", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "convert from micrograms to milligrams.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {x} micrograms ($\\mu g$) in milligrams ($mg$). Give your answer to 3 decimal places.
", "advice": "There are $1000\\mu g$ in $1mg$. To work out the conversion: $\\frac{\\var{x}}{1000} = \\var{answer}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(100 .. 5200#1)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "x/1000", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "answer"], "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": "[[0]]$mg$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NA11 - Convert Units - Volume - ml to cubic cm", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "\"Convert\" from millilitres to cubic centimeters.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express {x} millilitres ($ml$) in cubic centimetres ($cm^3$).
", "advice": "$1 ml$ is the same measurement of volume as $1 cm^3$ so there is nothing to do to convert except change the units.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(100 .. 5200#1)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "x", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "answer"], "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": "[[0]]$cm^3$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answer", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NC2 BIDMAS with a division", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Questions testing understanding of the precedence of operators using BIDMAS, applied to integers. These questions only test DMAS. That is, only Division/Multiplcation and Addition/Subtraction.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Evaluate the following expression:
", "advice": "BIDMAS stands for:
\nBrackets
\nIndices
\nDivision
\nMultiplication
\nAddition
\nSubtraction
\n\nAnd is a way for us to remember guidance about the order in which calculations are carried out to ensure that everyone doing teh same sum gets the same answer. In this case the first thing that is in the question is Division.
\nFirst work through the expression from left to right, evaluating any division as you come to it. You should be left with an expression involving only pluses and minuses. Evaluate this expression, again working from left to right. Thus:
\n\n\\[\\var{h}-\\var{a2*b2} \\div \\var{b2}\\]
\n\\[=\\var{h}-\\var{a2}\\]
\n\\[=\\var{h-a2}\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(2..9 except a2)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(7..15)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["h", "a2", "b2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "$\\var{h}-\\var{a2*b2} \\div \\var{b2}$
", "minValue": "{h-a2}", "maxValue": "{h-a2}", "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", "type": "question"}, {"name": "ND3 Rounding SF (decimal)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Oliver Spenceley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23557/"}], "tags": ["rounding"], "metadata": {"description": "Round numbers to a given number of significant figures.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "The first thing to do when we are rounding numbers is to identify the last digit we are keeping.
\nWhen you're asked to round your answer to a number of significant figures, you need to decide whether to keep the last digit same (rounding down) or increase it by 1 (rounding up). If the following digit is less than 5 we round down and we round up when the next digit is 5 or more.
\nTo write it down in steps:
\nIt is important to keep in mind that if the digit we are increasing is 9, it becomes zero and we increase the previous digit instead. If this digit is 9 as well, we move along to the left side until we find a digit less than 9.
\nThe last digit we need to keep will depend on how many zeros there are. We don't consider leading zeros to be significant,
i.e. 0.03 and 0.3 both have 1 significant figure (but 0.30 has two significant figures, since the second zero isn't a 'leading' zero).
i)
\nWe round $\\var{e1}$ to 1 significant figure. The first non-zero digit is $\\var{edig[4]}$, followed by $\\var{edig[3]}$. This is lower than 5 so we round downmore than 5 so we round up to get $\\var{sigformat(e1,1)}$.
\nii)
\nWe round $\\var{e1}$ to {sf} significant figures. The first non-zero digit is $\\var{edig[4]}$. The second following digit is $\\var{edig[3]}$, the third following digit is $\\var{edig[2]}$ and the fourth following digit is $\\var{edig[1]}$. The digit following the last digit we are keeping is $\\var{edig[2]}$$\\var{edig[1]}$$\\var{edig[0]}$, so we round to get $\\var{sigformat(e1, sf)}$. These are our {sf} significant figures.
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"edig": {"name": "edig", "group": "Ungrouped variables", "definition": "repeat(random(1..9), 5)", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "n_from_digits(ddig)", "description": "Random integer.
", "templateType": "anything", "can_override": false}, "e1": {"name": "e1", "group": "Ungrouped variables", "definition": "n_from_digits(edig)*10^(random(-6,-7,-8))", "description": "Random number with 7 decimal places.
", "templateType": "anything", "can_override": false}, "ddig": {"name": "ddig", "group": "Ungrouped variables", "definition": "repeat(random(1..9), 6)", "description": "", "templateType": "anything", "can_override": false}, "sf": {"name": "sf", "group": "Ungrouped variables", "definition": "3", "description": "Number of significant figures to round.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "100"}, "ungrouped_variables": ["sf", "ddig", "edig", "d1", "e1"], "variable_groups": [], "functions": {"n_from_digits": {"parameters": [["digits", "list"]], "type": "number", "language": "jme", "definition": "if(\n len(digits)=0,\n 0,\n digits[0]+10*n_from_digits(digits[1..len(digits)])\n)"}}, "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": "Round $\\var{e1}$
\niii) $\\var{e1}$ rounded to 1 significant figure is: [[0]]
\niv) $\\var{e1}$ rounded to {sf} significant figures is: [[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": "siground(e1, 1)", "maxValue": "siground(e1, 1)", "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": "siground(e1, sf)", "maxValue": "siground(e1, sf)", "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", "type": "question"}, {"name": "ND4 - Upper/Lower bounds", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "State the Upper and lower bound of a distance that has been rounded to either the nearest 10 or 100 miles.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The distance between two towns had been rounded to the nearest {x} miles in an aticle in the newspaper. If they reported that the distance was {y} miles, what are the upper and lower bound for the reported number?
", "advice": "If a number like {y} has been rounded to the nearest {x} then {y} would have been rounded down if it was less than {y+x/2} because {y} is the nearest multiple of {x}.
\nSimilarly {y} would have been rounded up if it was larger than or equal to {y-x/2}. This means the lower bound is {y-x/2} and the upper bound is {y+x/2}.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "10^random(1,2)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(1000..10000 # x)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "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": "Upper bound:
\n[[0]]
\nLower bound:
\n[[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": "x/2+y", "maxValue": "x/2+y", "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": "y-x/2", "maxValue": "y-x/2", "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", "type": "question"}, {"name": "NE1 - Negatives (add/subtract) 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations with negative numbers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate $\\var{x}+(\\var{y})$.
", "advice": "When you add a negative number that is the same as subtracting the number so
\n\\[\\var{x}+(\\var{y})=\\var{x}-\\var{-y}=\\var{x+y}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-50..-1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "{x}+{y}", "maxValue": "{x}+{y}", "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", "type": "question"}, {"name": "NE3 - Multiplying Negatives 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations with negative numbers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate $\\var{x}\\times(\\var{y})$.
", "advice": "When you multiply by a negative number that is the same as doing the multiplication as if the numbers were positive and then making the result negative. This means we have
\n\\[\\var{x}\\times(\\var{y})=-(\\var{x}\\times\\var{-y})=\\var{x*y}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-10..-1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "{x*y}", "maxValue": "{x*y}", "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", "type": "question"}, {"name": "NE5 - Dividing Negatives", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations with negative numbers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate $(\\var{x})\\div(\\var{y})$.
", "advice": "When we divide two numbers the rule is,
\nIn this calculation we have
\n\\[(\\var{x})\\div(\\var{y})=\\var{x/y}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(-10..10)*y", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "{x/y}", "maxValue": "{x/y}", "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", "type": "question"}, {"name": "NF1 Percentage increase", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculate the percentage increase (as a percentage) given a number and the size of the increase.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "What is the percentage increase in a class of {total} if {additional} more are added to it?
\nGive your answer to 2 decimal places.
", "advice": "To calculate a percentage increase you need to find how much the increase is as a percentage of the original number. In this question the increase is {additional} and the original number is {total} so the percentage is
\n\\[ \\frac{\\var{additional}}{\\var{total}}\\times100\\%=\\var{dpformat(additional/total,4)}\\times 100\\%=\\var{dpformat(percentage,2)}\\%\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"total": {"name": "total", "group": "Ungrouped variables", "definition": "random(15..60)", "description": "", "templateType": "anything", "can_override": false}, "additional": {"name": "additional", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "additional/total*100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["total", "additional", "percentage"], "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": "[[0]]%
", "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": "percentage", "maxValue": "percentage", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NF2 Percentage decrease", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": ["decrease", "discount", "percentages", "taxonomy"], "metadata": {"description": "Given a student discount, calculate a discounted price.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{pname} is buying a new {item}. The price of the model he picked is £{price}. On a website with discounts for students, he found a voucher for a discount of {percentage}%.
", "advice": "There are multiple methods to approach this problem. The first method involves working out the discounted price as a percentage of the original, while the second method calculates the value of the discount and subtracts that from the listed price.
\nThere is a {percentage}% decrease in price. This means that the new price will be {100-percentage}% of the old price.
\n\\[\\begin{align} \\frac{\\var{100-percentage}}{100} \\times \\var{price} &= \\var{dpformat((100-percentage)/100*price,4)} \\\\&= \\var{dpformat((100-percentage)/100*price, 2)}\\text{.} \\end{align}\\]
\nOr, using the multiplier method,
\n\\[\\begin{align} \\var{(100-percentage)/100} \\times \\var{price} &= \\var{dpformat((100-percentage)/100*price,4)}\\\\&= \\var{dpformat((100-percentage)/100*price, 2)}\\text{.} \\end{align}\\]
\nWhen we are talking about money, it is usually assumed that we will round the answer to 2 decimal places.
\nWe find the discount first. This is
\n\\[\\frac{\\var{percentage}}{100} \\times \\var{price} = \\var{dpformat((percentage)/100*price,4)}\\text{.}\\]
\nOr using a decimal multiplier,
\n\\[\\var{(percentage)/100} \\times \\var{price} = \\var{dpformat((percentage)/100*price,4)}\\text{.}\\]
\nThen we subtract the discount from the original price to get the new price:
\n\\[ \\var{price} - \\var{dpformat(discount,2)} = \\var{dpformat(price - discount, 2)}\\text{.} \\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"discount": {"name": "discount", "group": "Ungrouped variables", "definition": "percentage*price/100", "description": "", "templateType": "anything", "can_override": false}, "pname": {"name": "pname", "group": "Ungrouped variables", "definition": "random(\"Adair\",\"Aya\",\"Bergen\",\"Dua\",\"Fadhili\",\"Harper\",\"Kaden\",\"Ola\",\"Pat\",\"Skylar\",\"Wren\",\"Zendaya\")", "description": "Names.
", "templateType": "anything", "can_override": false}, "discountrounded": {"name": "discountrounded", "group": "Ungrouped variables", "definition": "precround(discount,2)", "description": "", "templateType": "anything", "can_override": false}, "price": {"name": "price", "group": "Ungrouped variables", "definition": "switch(\n item = \"TV\", random(170.99..1199.99), \n item = \"laptop\", random(200.99..799.99),\n item = \"smartphone\", random(100.99..799.99),\n item = \"PC\", random(200.99..969.99),\n item = \"gaming console\", random(80.99..349.99),\n random(110.99..649.99))\n", "description": "Price of an item.
", "templateType": "anything", "can_override": false}, "item": {"name": "item", "group": "Ungrouped variables", "definition": "random(\"TV\", \"laptop\", \"smartphone\", \"PC\", \"gaming console\", \"fridge\")", "description": "The bought item.
", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "random(5..40 #5)", "description": "Discount percentage.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "1000"}, "ungrouped_variables": ["item", "pname", "price", "percentage", "discount", "discountrounded"], "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": "What will the discounted price of the {item} be?
\nRound your answer to the nearest penny.
\n£ [[0]]
", "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": "(100-percentage)/100*price", "maxValue": "(100-percentage)/100*price", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "0", "precisionMessage": "Your answer does not make sense in real life, we cannot divide a penny any further. Shops always round their prices for items. That is why you should have rounded your answer to $\\var{precround((100-percentage)/100*price, 2)}$.
", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NF3 - Percentage change (decrease then increase)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Compound percentage change.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The value of a car is initially {StartingPrice}. If the value decreases by {dec}%, and then increases by {inc}%, what is the final value?
\nGive your answer correct to two decimal places.
", "advice": "There is a {dec}% decrease in price. This means that price after the decrease will be {100-dec}% of the old price.
\n\\[\\frac{\\var{100-dec}}{100} \\times \\var{StartingPrice} = \\var{(100-dec)/100*StartingPrice}\\]
\nThen there is a {inc}% increase in price. This means the final price will be {100+inc}% of the price after the decrease.
\n\\[\\frac{\\var{100+inc}}{100} \\times \\var{(100-dec)/100*StartingPrice} = £\\var{dpformat((100+inc)/100*(100-dec)/100*StartingPrice,2)}\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"dec": {"name": "dec", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "inc": {"name": "inc", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "FinalPrice": {"name": "FinalPrice", "group": "Ungrouped variables", "definition": "StartingPrice*(1-dec/100)*(1+inc/100)", "description": "", "templateType": "anything", "can_override": false}, "StartingPrice": {"name": "StartingPrice", "group": "Ungrouped variables", "definition": "random(600..8000 # 10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec", "inc", "FinalPrice", "StartingPrice"], "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": "\n£[[0]]
", "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": "FinalPrice", "maxValue": "FinalPrice", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "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", "type": "question"}, {"name": "NF4 Reverse percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": ["decrease", "percentages", "taxonomy"], "metadata": {"description": "Find the original price before a discount by dividing the new price by the percentage discount.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{name1} and {name2} are friends. {name1} noticed {name2}'s new {item} when he came over to visit her house. He immediately knew he wanted to buy the same model. When he got home, he bought the {item} online for £{newprice}.
", "advice": "We need to find the original price paid by {name2}. This value represents 100%.
\nBy the time {name1} bought the {item}, the price had decreased by {percentage}%.
\n{name1} therefore paid {100-percentage}% of the price {name2} paid.
\n\nWe use the unitary method to find the original price. We know the price paid by {name1}.
\n\\[\\var{100-percentage}\\text{%} = \\var{newprice} \\text{.}\\]
\nDivide both sides by {100-percentage} to get
\n\\[\\begin{align} 1\\text{%} &= \\var{newprice} \\div \\var{100-percentage} \\\\&= \\var{newprice/(100-percentage)} \\text{.} \\end{align}\\]
\nMultiply both sides by 100 to get
\n\\[\\begin{align} 100\\text{%} &= \\var{newprice/(100-percentage)} \\times 100 \\\\&= \\var{newprice/(100-percentage)*100} \\\\&= \\var{oldprice}\\text{.} \\end{align}\\]
\nThis is the original price paid by {name2} before the {percentage}% decrease.
\nWe can check our answer with a different method.
\n\\[\\begin{align} \\var{100-percentage}\\text{% of } \\var{oldprice} &= \\var{(100-percentage)/100} \\times \\var{oldprice} \\\\&= \\var{(100-percentage)/100*oldprice} \\\\&= \\var{precround((100-percentage)/100*oldprice, 2)} \\text{.} \\end{align}\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"newprice": {"name": "newprice", "group": "Ungrouped variables", "definition": "precround(oldprice*(100-percentage)/100,2)", "description": "", "templateType": "anything", "can_override": false}, "name2": {"name": "name2", "group": "Ungrouped variables", "definition": "random(\"Kaden\",\"Ola\",\"Pat\",\"Skylar\",\"Wren\",\"Zendaya\")", "description": "", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random(\"Adair\",\"Aya\",\"Bergen\",\"Dua\",\"Fadhili\",\"Harper\")", "description": "", "templateType": "anything", "can_override": false}, "oldprice": {"name": "oldprice", "group": "Ungrouped variables", "definition": "switch(\n item = \"TV\", random(179.99..1199.99 #10), \n item = \"laptop\", random(209.99..799.99 #10),\n item = \"smartphone\", random(109.99..799.99 #10),\n item = \"PC\", random(209.99..969.99 #10),\n item = \"gaming console\", random(89.99..349.99 #10),\n 399.99)", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "random(5..30)", "description": "Discount percentage.
", "templateType": "anything", "can_override": false}, "item": {"name": "item", "group": "Ungrouped variables", "definition": "random(\"TV\", \"laptop\", \"smartphone\", \"PC\", \"gaming console\")", "description": "The bought item.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "precround(precround(oldprice*(100-percentage)/100,2)*100/(100-percentage),2) = oldprice", "maxRuns": "1000"}, "ungrouped_variables": ["item", "name1", "percentage", "name2", "oldprice", "newprice"], "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": "When {name1} told {name2} how much he had paid for the {item}, {name2} said the price had decreased by {percentage}% since she bought it.
\nHow much did {name2} pay for the {item}?
\n£ [[0]]
", "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": "oldprice", "maxValue": "oldprice", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NG2 - Converting mixed numbers to top heavy", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": ["converting improper fractions to mixed numbers", "converting mixed numbers to improper fractions", "equivalent fractions", "improper fractions", "mixed numbers"], "metadata": {"description": "This question tests the student's ability to identify equivalent fractions through spotting a fraction which is not equivalent amongst a list of otherwise equivalent fractions. It also tests the students ability to convert mixed numbers into their equivalent improper fractions. It then does the reverse and tests their ability to convert an improper fraction into an equivalent mixed number.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "A mixed number is a number consisting of an integer and a proper fraction, i.e. a number in the form $ a \\displaystyle \\frac{b}{c}$ where $a$ is an integer and $\\displaystyle\\frac{b}{c}$ is a proper fraction: $b$ is smaller than $c$.
\nAn improper fraction is a fraction where the numerator is larger than the denominator, i.e. a number of the form $\\displaystyle\\frac{d}{e}$ where the numerator, $d$, is greater than the denominator, $e$.
\nTo convert a mixed number into an improper fraction, multiply the integer part of the mixed number, $a$, by the denominator, $c$.
\nThe numerator of the improper fraction will be equal to this added to what was already on the numerator of the proper fraction.
\nThe denominator of the proper fraction will stay the same when it converts to an improper fraction to give a final answer of
\n$\\displaystyle\\frac{({a}\\times{c})+b}{c}$.
\n\\[
{\\var{f}\\frac{\\var{g_coprime}}{\\var{h_coprime}}} = \\frac{({\\var{f}}\\times{\\var{h_coprime}})+{\\var{g_coprime}}}{{\\var{h_coprime}}}=\\simplify{{num}/{h_coprime}}\\text{.}
\\]
Use this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"g": {"name": "g", "group": "Ungrouped variables", "definition": "random(1..h except h)", "description": "Random number between 1 and 15
", "templateType": "anything", "can_override": false}, "g_coprime": {"name": "g_coprime", "group": "Ungrouped variables", "definition": "g/gcd_gh", "description": "PART C
", "templateType": "anything", "can_override": false}, "gcd_gh": {"name": "gcd_gh", "group": "Ungrouped variables", "definition": "gcd(g,h)", "description": "PART C
", "templateType": "anything", "can_override": false}, "num": {"name": "num", "group": "Ungrouped variables", "definition": "((h_coprime*f)+g_coprime)", "description": "numerator for the improper fraction c(i)
", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(10 .. 24#1)", "description": "Random number between 1 and 24
", "templateType": "randrange", "can_override": false}, "h_coprime": {"name": "h_coprime", "group": "Ungrouped variables", "definition": "h/gcd_gh", "description": "PART C
", "templateType": "anything", "can_override": false}, "gcdb": {"name": "gcdb", "group": "Ungrouped variables", "definition": "gcd({num},{h_coprime})", "description": "gcd of num and h
", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(2 .. 5#1)", "description": "Random number between 1 and 5
", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f", "g", "h", "gcd_gh", "g_coprime", "h_coprime", "num", "gcdb"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "Write the mixed number as an improper fraction and reduce it down to its simplest form.
\n$\\displaystyle{\\var{f}\\frac{\\var{g_coprime}}{\\var{h_coprime}}} =$
Manipulate fractions in order to add and subtract them. The difficulty escalates through the inclusion of a whole integer and a decimal, which both need to be converted into a fraction before the addition/subtraction can take place.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Evaluate the following addition, giving the fraction in its simplest form.
", "advice": "$\\displaystyle\\frac{\\var{a_coprime}}{\\var{b_coprime}}+\\frac{\\var{c_coprime}}{\\var{d_coprime}}$
\nTo add or subtract fractions, we need to have a common denominator on both fractions.
\nTo get a common denominator, we need to find the lowest common multiple of the two denominators.
\nThe lowest common multiple of $\\var{b_coprime}$ and $\\var{d_coprime}$ is $\\var{lcm}.$
\nThis will be the new denominator, and we need to multiply each fraction individually to ensure we get this denominator.
\nFor $\\displaystyle\\frac{\\var{a_coprime}}{\\var{b_coprime}}$, we need to multiply the fraction by $\\displaystyle\\frac{\\var{lcm_b}}{\\var{lcm_b}}$ to give $\\displaystyle\\frac{\\var{alcm_b}}{\\var{lcm}}.$
\nFor $\\displaystyle\\frac{\\var{c_coprime}}{\\var{d_coprime}}$, we need to multiply the fraction by $\\displaystyle\\frac{\\var{lcm_d}}{\\var{lcm_d}}$ to give $\\displaystyle\\frac{\\var{clcm_d}}{\\var{lcm}}.$
\nNow that we have each fraction in terms of a common denominator, we can now add the fractions together.
\n$\\displaystyle\\frac{\\var{alcm_b}}{\\var{lcm}}+\\frac{\\var{clcm_d}}{\\var{lcm}}=\\frac{(\\var{alcm_b}+\\var{clcm_d})}{\\var{lcm}}=\\frac{\\var{alcmclcm}}{\\var{lcm}}.$
\nFrom this, we can try to simplify the result down by finding the greatest common divisor of the numerator and denominator and dividing the whole fraction by this amount.
\nThe greatest common divisor of $\\var{alcmclcm}$ and $\\var{lcm}$ is $\\var{gcd}.$
\nSimplifying using this value gives a final answer of $\\displaystyle\\frac{\\var{num}}{\\var{denom}}.$
\nTherefore, the expression cannot be simplified further, and $\\displaystyle\\frac{\\var{num}}{\\var{denom}}$ is the final answer.
\n\nFind out more about this topic using our resource
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"d_coprime": {"name": "d_coprime", "group": "Part a", "definition": "d/gcd_cd", "description": "", "templateType": "anything", "can_override": false}, "denom": {"name": "denom", "group": "Part a", "definition": "lcm/gcd", "description": "PART A answer for the denominator of part a
", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Part a", "definition": "random(1..5)", "description": "PART A variable a - random number between 1 and 5.
", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Part a", "definition": "random(5..15)", "description": "PART A variable d - random number between 5 and 15.
", "templateType": "anything", "can_override": false}, "c_coprimeb_coprime": {"name": "c_coprimeb_coprime", "group": "Part a", "definition": "c_coprime*b_coprime", "description": "PART A variable c times variable b
", "templateType": "anything", "can_override": false}, "gcd_ab": {"name": "gcd_ab", "group": "Part a", "definition": "gcd(a,b)", "description": "PART A simplification of fractions in the question.
", "templateType": "anything", "can_override": false}, "lcm_b": {"name": "lcm_b", "group": "Part a", "definition": "lcm/b_coprime", "description": "PART A lcm of b and d, divided by b
", "templateType": "anything", "can_override": false}, "num": {"name": "num", "group": "Part a", "definition": "alcmclcm/gcd", "description": "PART A answer for the numerator input
", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Part a", "definition": "random(5..10 except d)", "description": "PART A variable b - random number between 5 and 10 and not the same value as d.
", "templateType": "anything", "can_override": false}, "a_coprimed_coprime": {"name": "a_coprimed_coprime", "group": "Part a", "definition": "a_coprime*d_coprime", "description": "PART A variable a times variable d
", "templateType": "anything", "can_override": false}, "lcm_d": {"name": "lcm_d", "group": "Part a", "definition": "lcm/d_coprime", "description": "PART A lcm of b and d, divided by d
", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Part a", "definition": "random(1..5)", "description": "PART A variable c - random number between 1 and 5.
", "templateType": "anything", "can_override": false}, "clcm_d": {"name": "clcm_d", "group": "Part a", "definition": "c_coprime*lcm_d", "description": "PART A variable c times the lcm of b and d, divided by d
", "templateType": "anything", "can_override": false}, "gcd": {"name": "gcd", "group": "Part a", "definition": "gcd(alcmclcm,lcm)", "description": "PART A greatest common divisor of the variables alcmclcm and lcm
", "templateType": "anything", "can_override": false}, "alcm_b": {"name": "alcm_b", "group": "Part a", "definition": "a_coprime*lcm_b", "description": "PART A variable a times the lcm of b and d, divided by b
", "templateType": "anything", "can_override": false}, "a_coprime": {"name": "a_coprime", "group": "Part a", "definition": "a/gcd_ab", "description": "PART A
", "templateType": "anything", "can_override": false}, "b_coprime": {"name": "b_coprime", "group": "Part a", "definition": "b/gcd_ab", "description": "PART A
", "templateType": "anything", "can_override": false}, "gcd_cd": {"name": "gcd_cd", "group": "Part a", "definition": "gcd(c,d)", "description": "PART A
", "templateType": "anything", "can_override": false}, "lcm": {"name": "lcm", "group": "Part a", "definition": "lcm(b_coprime,d_coprime)", "description": "PART A lowest common multiple of variable b_coprime and variable d_coprime.
", "templateType": "anything", "can_override": false}, "alcmclcm": {"name": "alcmclcm", "group": "Part a", "definition": "alcm_b+clcm_d", "description": "PART A
", "templateType": "anything", "can_override": false}, "c_coprime": {"name": "c_coprime", "group": "Part a", "definition": "c/gcd_cd", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part a", "variables": ["a", "a_coprime", "b", "b_coprime", "gcd_ab", "c", "c_coprime", "d", "d_coprime", "gcd_cd", "lcm", "a_coprimed_coprime", "c_coprimeb_coprime", "lcm_b", "lcm_d", "alcm_b", "clcm_d", "alcmclcm", "gcd", "num", "denom"]}], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "$\\displaystyle\\frac{\\var{a_coprime}}{\\var{b_coprime}}+\\frac{\\var{c_coprime}}{\\var{d_coprime}}=$
Manipulate fractions in order to add and subtract them. The difficulty escalates through the inclusion of a whole integer and a decimal, which both need to be converted into a fraction before the addition/subtraction can take place.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Evaluate the following additions and subtractions, giving each fraction in its simplest form. Write the numerator (the top number) as negative if the fraction is negative.
", "advice": "$\\displaystyle\\frac{\\var{f_coprime}}{\\var{g_coprime}}-\\frac{\\var{h_coprime}}{\\var{j_coprime}}+2.$
\n\nThe two fractions can be individually multiplied to achieve a common denominator of the lowest common multiple, $\\var{lcm2}.$
\n$\\displaystyle\\frac{\\var{f_coprime}}{\\var{g_coprime}}$ becomes $\\displaystyle\\frac{\\var{flcm2_g}}{\\var{lcm2}}$ and $\\displaystyle\\frac{\\var{h_coprime}}{\\var{j_coprime}}$ becomes $\\displaystyle\\frac{\\var{hlcm2_j}}{\\var{lcm2}}.$
\nWe can now subtract the second fraction from the first.
\n$\\displaystyle\\frac{\\var{flcm2_g}}{\\var{lcm2}}-\\frac{\\var{hlcm2_j}}{\\var{lcm2}}=\\frac{\\var{flcmhlcm}}{\\var{lcm2}}.$
\n\nFind out more about this topic using our resource.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"hlcm2_j": {"name": "hlcm2_j", "group": "Part b", "definition": "h_coprime*lcm2_j", "description": "PART B
", "templateType": "anything", "can_override": false}, "lcm2": {"name": "lcm2", "group": "Part b", "definition": "lcm(g_coprime,j_coprime)", "description": "PART B
", "templateType": "anything", "can_override": false}, "gcd_fg": {"name": "gcd_fg", "group": "Part b", "definition": "gcd(f,g)", "description": "PART B gcd of first fraction num and denom
", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Part b", "definition": "random(2..10 except h)", "description": "PART B
", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Part b", "definition": "random(1..10)", "description": "PART B
", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Part b", "definition": "random(1..10)", "description": "PART B
", "templateType": "anything", "can_override": false}, "h_coprime": {"name": "h_coprime", "group": "Part b", "definition": "h/gcd_hj", "description": "PART B
", "templateType": "anything", "can_override": false}, "lcm2_j": {"name": "lcm2_j", "group": "Part b", "definition": "lcm2/j_coprime", "description": "PART B
", "templateType": "anything", "can_override": false}, "j_coprime": {"name": "j_coprime", "group": "Part b", "definition": "j/gcd_hj", "description": "PART B
", "templateType": "anything", "can_override": false}, "flcmhlcm": {"name": "flcmhlcm", "group": "Part b", "definition": "flcm2_g-hlcm2_j", "description": "PART B
", "templateType": "anything", "can_override": false}, "g_coprime": {"name": "g_coprime", "group": "Part b", "definition": "g/gcd_fg", "description": "PART B g_coprime
", "templateType": "anything", "can_override": false}, "gcd_hj": {"name": "gcd_hj", "group": "Part b", "definition": "gcd(h,j)", "description": "PART B
", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Part b", "definition": "random(2..10 except f except j)", "description": "PART B
", "templateType": "anything", "can_override": false}, "flcm2_g": {"name": "flcm2_g", "group": "Part b", "definition": "f_coprime*lcm2_g", "description": "PART B
", "templateType": "anything", "can_override": false}, "lcm2_g": {"name": "lcm2_g", "group": "Part b", "definition": "lcm2/g_coprime", "description": "PART B
", "templateType": "anything", "can_override": false}, "f_coprime": {"name": "f_coprime", "group": "Part b", "definition": "f/gcd_fg", "description": "PART B
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part b", "variables": ["f", "f_coprime", "g", "g_coprime", "gcd_fg", "h", "h_coprime", "j", "j_coprime", "gcd_hj", "lcm2", "lcm2_g", "flcm2_g", "lcm2_j", "hlcm2_j", "flcmhlcm"]}], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "$\\displaystyle\\frac{\\var{f_coprime}}{\\var{g_coprime}}-\\frac{\\var{h_coprime}}{\\var{j_coprime}}=$
Several problems involving the multiplication of fractions, with increasingly difficult examples, including a mixed fraction and a squared fraction. The final part is a word problem.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Evaluate the following multiplication, giving the answer in its simplest form.
", "advice": "\nTo multiply $\\displaystyle\\frac{\\var{a_coprime}}{\\var{c_coprime}}\\times\\frac{\\var{b_coprime}}{\\var{d_coprime}}$, address the numerators and denominators separately.
\nMultiply the numerators across both fractions.
\n$\\var{a_coprime}\\times\\var{b_coprime}=\\var{ab}$,
\nand then multiply the denominators across both fractions.
\n$\\var{c_coprime}\\times\\var{d_coprime}=\\var{cd}$.
\nThe values of the multiplied numerators and denominators will be the numerator and denominator of the new fraction: $\\displaystyle\\frac{\\var{ab}}{\\var{cd}}$.
\nThis answer may need simplifying down, and to do this, find the greatest common divisor in both the numerator and denominator and divide by this number.
\nThe greatest common divisor of $\\var{ab}$ and $\\var{cd}$ is $\\var{gcd}$.
\nBy using $\\var{gcd}$ to cancel down the fraction, the final answer is $\\displaystyle\\simplify{{ab}/{cd}}$.
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"k": {"name": "k", "group": "Part b", "definition": "random(1..7 except j)", "description": "Random number between 1 and 20
", "templateType": "anything", "can_override": false}, "bb": {"name": "bb", "group": "Part d", "definition": "28*aa", "description": "", "templateType": "anything", "can_override": false}, "cc": {"name": "cc", "group": "Part d", "definition": "bb/7", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Part b", "definition": "random(1 .. 7#1)", "description": "Random number between 1 and 20.
", "templateType": "randrange", "can_override": false}, "cd": {"name": "cd", "group": "Part a", "definition": "c_coprime*d_coprime", "description": "Variable c times variable d.
", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Part a", "definition": "random(2..12 except c)", "description": "Random number from 1 to 12.
", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Part a", "definition": "random(2 .. 12#1)", "description": "Random number from 1 to 12.
", "templateType": "randrange", "can_override": false}, "l": {"name": "l", "group": "Part c", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "numif": {"name": "numif", "group": "Part b", "definition": "(f*h_coprime)+g_coprime", "description": "Numerator of the improper fraction converted from a mixed number.
", "templateType": "anything", "can_override": false}, "gcd_gh": {"name": "gcd_gh", "group": "Part b", "definition": "gcd(g,h)", "description": "", "templateType": "anything", "can_override": false}, "fh": {"name": "fh", "group": "Part b", "definition": "f*h_coprime", "description": "Variable f times variable h
", "templateType": "anything", "can_override": false}, "g_coprime": {"name": "g_coprime", "group": "Part b", "definition": "g/gcd_gh", "description": "", "templateType": "anything", "can_override": false}, "j_coprime": {"name": "j_coprime", "group": "Part b", "definition": "j/gcd_kj", "description": "", "templateType": "anything", "can_override": false}, "gcd_kj": {"name": "gcd_kj", "group": "Part b", "definition": "gcd(k,j)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Part b", "definition": "random(1 .. 4#1)", "description": "Random number between 1 and 4 - integer part of the mixed number.
", "templateType": "randrange", "can_override": false}, "c_coprime": {"name": "c_coprime", "group": "Part a", "definition": "c/gcd_ac", "description": "", "templateType": "anything", "can_override": false}, "gcd": {"name": "gcd", "group": "Part a", "definition": "gcd(ab,cd)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Part a", "definition": "random(2 .. 12#1)", "description": "Random number from 1 to 12.
", "templateType": "randrange", "can_override": false}, "d_coprime": {"name": "d_coprime", "group": "Part a", "definition": "d/gcd_bd", "description": "", "templateType": "anything", "can_override": false}, "ddcc": {"name": "ddcc", "group": "Part d", "definition": "dd*cc", "description": "", "templateType": "anything", "can_override": false}, "gcdb": {"name": "gcdb", "group": "Part b", "definition": "gcd(num,denom)", "description": "", "templateType": "anything", "can_override": false}, "gcd_ac": {"name": "gcd_ac", "group": "Part a", "definition": "gcd(a,c)", "description": "PART A
", "templateType": "anything", "can_override": false}, "denom": {"name": "denom", "group": "Part b", "definition": "j_coprime*(h_coprime/gcda)", "description": "Denominator of new fraction.
", "templateType": "anything", "can_override": false}, "l_coprime": {"name": "l_coprime", "group": "Part c", "definition": "l/gcd_lm", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Part c", "definition": "random(1..12 except l)", "description": "", "templateType": "anything", "can_override": false}, "a_coprime": {"name": "a_coprime", "group": "Part a", "definition": "a/gcd_ac", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Part b", "definition": "random(7 .. 10#1)", "description": "Random number between 1 and 20.
", "templateType": "randrange", "can_override": false}, "num": {"name": "num", "group": "Part b", "definition": "k_coprime*{numif/gcda}", "description": "Numerator of gap 0
", "templateType": "anything", "can_override": false}, "m_coprime": {"name": "m_coprime", "group": "Part c", "definition": "m/gcd_lm", "description": "", "templateType": "anything", "can_override": false}, "aa": {"name": "aa", "group": "Part d", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}, "gcda": {"name": "gcda", "group": "Part b", "definition": "gcd({numif},{h_coprime})", "description": "gcd of the numerator of the improper fraction
", "templateType": "anything", "can_override": false}, "h_coprime": {"name": "h_coprime", "group": "Part b", "definition": "h/gcd_gh", "description": "", "templateType": "anything", "can_override": false}, "ee": {"name": "ee", "group": "Part d", "definition": "ddcc/4", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Part a", "definition": "random(3,5,7,11)", "description": "Random number from 1 to 12.
", "templateType": "anything", "can_override": false}, "b_coprime": {"name": "b_coprime", "group": "Part a", "definition": "b/gcd_bd", "description": "", "templateType": "anything", "can_override": false}, "l_coprime2": {"name": "l_coprime2", "group": "Part c", "definition": "l_coprime^2/gcd_lcmc", "description": "", "templateType": "anything", "can_override": false}, "k_coprime": {"name": "k_coprime", "group": "Part b", "definition": "k/gcd_kj", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Part b", "definition": "Random(3,5,7,11,13,17)", "description": "Random number between 1 and 20
", "templateType": "anything", "can_override": false}, "dd": {"name": "dd", "group": "Part d", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "gcd_lcmc": {"name": "gcd_lcmc", "group": "Part c", "definition": "gcd((l_coprime)^2,(m_coprime)^2)", "description": "", "templateType": "anything", "can_override": false}, "m_coprime2": {"name": "m_coprime2", "group": "Part c", "definition": "m_coprime^2/gcd_lcmc", "description": "", "templateType": "anything", "can_override": false}, "gcd_lm": {"name": "gcd_lm", "group": "Part c", "definition": "gcd(l,m)", "description": "", "templateType": "anything", "can_override": false}, "ab": {"name": "ab", "group": "Part a", "definition": "a_coprime*b_coprime", "description": "Variable a times variable b
", "templateType": "anything", "can_override": false}, "gcd_bd": {"name": "gcd_bd", "group": "Part a", "definition": "gcd(b,d)", "description": "", "templateType": "anything", "can_override": false}, "gcd2": {"name": "gcd2", "group": "Part b", "definition": "gcd(num,denom)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part a", "variables": ["a", "b", "c", "d", "a_coprime", "b_coprime", "c_coprime", "d_coprime", "gcd_ac", "gcd_bd", "ab", "cd", "gcd"]}, {"name": "Part b", "variables": ["f", "g", "g_coprime", "h", "h_coprime", "gcd_gh", "k", "k_coprime", "j", "j_coprime", "gcd_kj", "fh", "numif", "num", "denom", "gcda", "gcdb", "gcd2"]}, {"name": "Part d", "variables": ["aa", "bb", "cc", "dd", "ddcc", "ee"]}, {"name": "Part c", "variables": ["l", "m", "gcd_lm", "l_coprime", "m_coprime", "gcd_lcmc", "l_coprime2", "m_coprime2"]}], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "$\\displaystyle\\frac{\\var{a_coprime}}{\\var{c_coprime}}\\times\\frac{\\var{b_coprime}}{\\var{d_coprime}}$ =
Several problems involving dividing fractions, with increasingly difficult examples, including mixed numbers and complex fractions.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Evaluate the following sums involving division of fractions. Simplify your answers where possible.
", "advice": "When faced with dividing fractions, it much easier to switch one of the fractions around and multiply them together instead of divide them.
\n\\[ \\left( \\frac{\\var{f_coprime}}{\\var{g_coprime}}\\div\\frac{\\var{h_coprime}}{\\var{j_coprime}} \\right) \\equiv \\left( \\frac{\\var{f_coprime}}{\\var{g_coprime}}\\times\\frac{\\var{j_coprime}}{\\var{h_coprime}} \\right) = \\frac{\\var{fj}}{\\var{gh}} \\]
\nThen, simplify by finding the highest common divisor in the numerator and denominator which in this case is $\\var{gcd1}$.
\nThis gives a final answer of $\\displaystyle\\simplify{{fj}/{gh}}$.
\n\n\nUse this link to find some resources which will help you revise this topic
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"f4h4": {"name": "f4h4", "group": "Ungrouped variables", "definition": "f4*h4_coprime", "description": "variable f4 times h4.
\nUsed in part c)
", "templateType": "anything", "can_override": false}, "g4_coprime": {"name": "g4_coprime", "group": "Ungrouped variables", "definition": "g4/gcd(g4,h4)", "description": "PART C
", "templateType": "anything", "can_override": false}, "h4": {"name": "h4", "group": "Ungrouped variables", "definition": "random(5..8 except g4)", "description": "Random number but not the same number as variable g4.
\nUsed in part c.
", "templateType": "anything", "can_override": false}, "h3_coprime": {"name": "h3_coprime", "group": "Ungrouped variables", "definition": "h3/gcd(g3,h3)", "description": "PART C
", "templateType": "anything", "can_override": false}, "f_coprime": {"name": "f_coprime", "group": "part a", "definition": "f/gcd(f,g)", "description": "PART A
", "templateType": "anything", "can_override": false}, "g_coprime": {"name": "g_coprime", "group": "part a", "definition": "g/gcd(f,g)", "description": "PART A
", "templateType": "anything", "can_override": false}, "j1_coprime": {"name": "j1_coprime", "group": "Ungrouped variables", "definition": "j1/gcd(h1,j1)", "description": "PART B
", "templateType": "anything", "can_override": false}, "gcd2": {"name": "gcd2", "group": "Ungrouped variables", "definition": "gcd(f1j1,g1h1)", "description": "greatest common divisor of variables f1j1 and g1h1.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "g1_coprime": {"name": "g1_coprime", "group": "Ungrouped variables", "definition": "g1/gcd(f1,g1)", "description": "PART B
", "templateType": "anything", "can_override": false}, "h1_coprime": {"name": "h1_coprime", "group": "Ungrouped variables", "definition": "h1/gcd(h1,j1)", "description": "PART B
", "templateType": "anything", "can_override": false}, "gcd3": {"name": "gcd3", "group": "Ungrouped variables", "definition": "gcd(num,denom)", "description": "greatest common denominator for part c.
", "templateType": "anything", "can_override": false}, "j1": {"name": "j1", "group": "Ungrouped variables", "definition": "random(h1..11 except h1)", "description": "Random number between 2 and 20 and not the same value as variable h1.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "g1h1": {"name": "g1h1", "group": "Ungrouped variables", "definition": "g1_coprime*h1_coprime", "description": "variable g1 times h1.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "part a", "definition": "random(2..10)", "description": "Random number between 2 and 10.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "f4": {"name": "f4", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "Random number.
\nUsed in part c).
", "templateType": "anything", "can_override": false}, "f1": {"name": "f1", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "Random number between 2 and 20.
\nUsed in part b)
", "templateType": "anything", "can_override": false}, "g3": {"name": "g3", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "Random number.
\nUsed in part c).
", "templateType": "anything", "can_override": false}, "f3h3": {"name": "f3h3", "group": "Ungrouped variables", "definition": "f3*h3_coprime", "description": "variable f3 times h3.
", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "part a", "definition": "random(2..10)", "description": "Random number from 2 to 10.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "gh": {"name": "gh", "group": "part a", "definition": "g_coprime*h_coprime", "description": "variable g times variable h.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "j_coprime": {"name": "j_coprime", "group": "part a", "definition": "j/gcd(h,j)", "description": "PART A
", "templateType": "anything", "can_override": false}, "denom": {"name": "denom", "group": "Ungrouped variables", "definition": "h3_coprime*(f4h4+g4_coprime)", "description": "Unsimplified denominator of part c.
", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "part a", "definition": "random(h..12 except h)", "description": "Random number between 2 and 10 and not the same value as h.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "f1j1": {"name": "f1j1", "group": "Ungrouped variables", "definition": "f1_coprime*j1_coprime", "description": "variable f1 times j1.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "h4_coprime": {"name": "h4_coprime", "group": "Ungrouped variables", "definition": "h4/gcd(g4,h4)", "description": "PART C
", "templateType": "anything", "can_override": false}, "g1": {"name": "g1", "group": "Ungrouped variables", "definition": "random(f1..11 except f1) ", "description": "Random number between 2 and 30 and not the same value as variable f1.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "fj": {"name": "fj", "group": "part a", "definition": "f_coprime*j_coprime", "description": "variable f times variable j.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "f3": {"name": "f3", "group": "Ungrouped variables", "definition": "random(1 .. 3#1)", "description": "Random number between 2 and 6.
\nUsed in part c).
", "templateType": "randrange", "can_override": false}, "f1_coprime": {"name": "f1_coprime", "group": "Ungrouped variables", "definition": "f1/gcd(f1,g1)", "description": "PART B
", "templateType": "anything", "can_override": false}, "h3": {"name": "h3", "group": "Ungrouped variables", "definition": "random(5..8)", "description": "Random number and not the same value as variable g3.
\nUsed in part c).
", "templateType": "anything", "can_override": false}, "gcd1": {"name": "gcd1", "group": "part a", "definition": "gcd(fj,gh)", "description": "greatest common divisor of variable fj and gh.
\nUsed in part a).
", "templateType": "anything", "can_override": false}, "g3_coprime": {"name": "g3_coprime", "group": "Ungrouped variables", "definition": "g3/gcd(g3,h3)", "description": "PART C
", "templateType": "anything", "can_override": false}, "h_coprime": {"name": "h_coprime", "group": "part a", "definition": "h/gcd(h,j)", "description": "PART A
", "templateType": "anything", "can_override": false}, "g4": {"name": "g4", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "Random number.
\nUsed in part c).
", "templateType": "anything", "can_override": false}, "h1": {"name": "h1", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "Random number between 2 and 20.
\nUsed in part b).
", "templateType": "anything", "can_override": false}, "num": {"name": "num", "group": "Ungrouped variables", "definition": "h4_coprime*(f3h3+g3_coprime)", "description": "numerator of the improper fraction in part c. Unsimplified.
", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "part a", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f1", "g1", "f1_coprime", "g1_coprime", "h1", "j1", "h1_coprime", "j1_coprime", "f1j1", "g1h1", "gcd2", "f3", "g3", "h3", "g3_coprime", "h3_coprime", "f4", "g4", "h4", "g4_coprime", "h4_coprime", "f3h3", "f4h4", "num", "denom", "gcd3"], "variable_groups": [{"name": "part a", "variables": ["g", "f", "f_coprime", "g_coprime", "h", "j", "h_coprime", "j_coprime", "fj", "gh", "gcd1"]}], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "$\\displaystyle\\frac{\\var{f_coprime}}{\\var{g_coprime}}\\div\\frac{\\var{h_coprime}}{\\var{j_coprime}}=$
This question tests the student's ability to identify equivalent fractions through spotting a fraction which is not equivalent amongst a list of otherwise equivalent fractions. It also tests the students ability to convert mixed numbers into their equivalent improper fractions. It then does the reverse and tests their ability to convert an improper fraction into an equivalent mixed number.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "A mixed number is a number consisting of an integer and a proper fraction, i.e. a number in the form $ a \\displaystyle \\frac{b}{c}$ where $a$ is an integer and $\\displaystyle\\frac{b}{c}$ is a proper fraction: $b$ is smaller than $c$.
\nAn improper fraction is a fraction where the numerator is larger than the denominator, i.e. a number of the form $\\displaystyle\\frac{d}{e}$ where the numerator, $d$, is greater than the denominator, $e$.
\nTo convert an improper fraction into a mixed number, find out how many times the denominator \\var{h_coprime/gcdb} goes into the numerator \\var{num/gcdb}. You can do this by dividing the numerator by the denominator and taking the whole number part or you can just add the denominator to itself until one more addition would make it bigger. This gives us a whole number part of our mixed fraction of \\var{f}.
\nThe numerator of our mixed fraction is what is left from dividing out the whole number. For this question that is $\\var{num/gcdb}-\\var{f*h_coprime}.
\nFinally the denominator of our mixed fraction is just the denominator of the improper fraction.
\n\\[
\\frac{\\var{num/gcdb}}{\\var{h_coprime/gcdb}} = {\\var{f}\\frac{\\var{g_coprime}}{\\var{h_coprime}}}\\text{.}
\\]
Use this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"g": {"name": "g", "group": "Ungrouped variables", "definition": "random(1..h except h)", "description": "Random number between 1 and 15
", "templateType": "anything", "can_override": false}, "g_coprime": {"name": "g_coprime", "group": "Ungrouped variables", "definition": "g/gcd_gh", "description": "PART C
", "templateType": "anything", "can_override": false}, "gcd_gh": {"name": "gcd_gh", "group": "Ungrouped variables", "definition": "gcd(g,h)", "description": "PART C
", "templateType": "anything", "can_override": false}, "num": {"name": "num", "group": "Ungrouped variables", "definition": "((h_coprime*f)+g_coprime)", "description": "numerator for the improper fraction c(i)
", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(10 .. 24#1)", "description": "Random number between 1 and 24
", "templateType": "randrange", "can_override": false}, "h_coprime": {"name": "h_coprime", "group": "Ungrouped variables", "definition": "h/gcd_gh", "description": "PART C
", "templateType": "anything", "can_override": false}, "gcdb": {"name": "gcdb", "group": "Ungrouped variables", "definition": "gcd({num},{h_coprime})", "description": "gcd of num and h
", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(2 .. 5#1)", "description": "Random number between 1 and 5
", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f", "g", "h", "gcd_gh", "g_coprime", "h_coprime", "num", "gcdb"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "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": "Write the improper fraction as a mixed number and reduce it down to its simplest form.
\n$\\displaystyle{\\frac{\\var{num/gcdb}}{\\var{h_coprime/gcdb}}} = $ [[2]]
Convert a decimal to a fraction.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express $\\var{dec}$ as a fraction in simplest form.
", "advice": "{advice}
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"dec": {"name": "dec", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "ansn": {"name": "ansn", "group": "Ungrouped variables", "definition": "10*dec/GCD(10*dec,10)", "description": "", "templateType": "anything", "can_override": false}, "ansd": {"name": "ansd", "group": "Ungrouped variables", "definition": "10/GCD(10*dec,10)", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "if(GCD(10*dec,10)=1,adviceno,adviceyes)", "description": "", "templateType": "anything", "can_override": false}, "adviceno": {"name": "adviceno", "group": "Ungrouped variables", "definition": "\"Decimals can be converted to fractions using place value. This decimal only has 1 decimal place and therefore finishes in the \\\"tenths\\\" column. Hence, we can write it as:
\\n\\\\[\\\\frac{\\\\var{dec*10}}{10},\\\\]
\\nand then simplifying (if necessary). In this case no simplification is needed.
\"", "description": "", "templateType": "long string", "can_override": false}, "adviceyes": {"name": "adviceyes", "group": "Ungrouped variables", "definition": "\"Decimals can be converted to fractions using place value. This decimal only has 1 decimal place and therefore finishes in the \\\"tenths\\\" column. Hence, we can write it as:
\\n\\\\[\\\\frac{\\\\var{dec*10}}{10},\\\\]
\\nand then simplifying (if necessary). In this case giving:
\\n\\\\[\\\\frac{\\\\var{ansn}}{\\\\var{ansd}}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec", "ansn", "ansd", "advice", "adviceno", "adviceyes"], "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": "[[0]] Numerator
\n--------------
\n[[1]] Denominator
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Numerator", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansn", "maxValue": "ansn", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Denominator", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansd", "maxValue": "ansd", "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", "type": "question"}, {"name": "NH3 - FDP convert 3 - Fraction into decimal", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Convert a fraction into a decimal.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Write $\\frac{\\var{x}}{\\var{y}}$ as a decimal. Round your answer to 3 decimal places.
", "advice": "You can calculate the decimals by hand using long division of $\\var{x}.000$ divided by $\\var{y}$.
\nIn some cases you may be able to simplify the fraction to something that you know the decimal for.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(1..(y-1))", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "x/y", "maxValue": "x/y", "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": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NJ2 Equivalent Ratios", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Picking a ratio out of a list that is not equivalent to the others.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Which of the following ratios is not equivalent to the others?
", "advice": "The key to this question is understanding how to simplify ratios. In this case all the ratios simplify to $\\var{a}:\\var{b}$ except for $\\var{6*a}:\\var{7*b}$.
\n\nFor more help with this topic have a look at the resources here.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 6#1)", "description": "", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "a+1", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "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, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$\\var{a}:\\var{b}$", "$\\var{2*a}:\\var{2*b}$", "$\\var{3*a}:\\var{3*b}$", "$\\var{5*a}:\\var{5*b}$", "$\\var{6*a}:\\var{7*b}$"], "matrix": [0, 0, 0, 0, "1"], "distractors": ["", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NJ3 - Dividing amounts in ratios", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Dividing amounts in ratios
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The ratio of ethanol to water is {a}:{b} for an experiment. If I have {volWater}ml of water, how much ethanol do I need?
", "advice": "If there is a ratio of {a}:{b} for ethanol:water then that means for every {b}ml of water we need {a}ml of ethanol.
\nIn our experiment there is {volwater}ml of water so to find the amount of ethanol we divide by {b} and then multiply by {a}.
\n\\[\\var{volwater}\\text{ml}\\times\\frac{\\var{a}}{\\var{b}}=\\var{volwater*a/b}\\text{ml}\\]
Use this link to find some resources which will help you revise this topic.
[[0]]ml
", "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": "volwater/b*a", "maxValue": "volwater/b*a", "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", "type": "question"}, {"name": "NK1 standard form (large)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": ["converting", "scientific notation", "standard form"], "metadata": {"description": "Convert numbers greater than 1 into standard form/scientific notation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Write the following numbers in scientific notation.
", "advice": "Suppose we have the number $\\var{q2}$. In scientific notation, this number would start with $\\var{dec2}$ since we only want one digit in front of the decimal point. The decimal point is currently to the right of the last digit in $\\var{q2}$ and needs to be between the first and second digits, i.e $\\var{dec2}$. Count the places that the digits must move and you get $\\var{pow2}$ places. That is,
\n\n\\[\\var{q2}=\\var{dec2}\\times 10^{\\var{pow2}}\\]
\n\nWe have a positive $\\var{pow2}$ as the power because we need to make the number $\\var{dec2}$ bigger to get to $\\var{q2}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pow2": {"name": "pow2", "group": "Ungrouped variables", "definition": "random(4..8)", "description": "", "templateType": "anything", "can_override": false}, "q2": {"name": "q2", "group": "Ungrouped variables", "definition": "precround(dec2*10^pow2,0)", "description": "", "templateType": "anything", "can_override": false}, "dec2": {"name": "dec2", "group": "Ungrouped variables", "definition": "random(1.1..9.9#0.001)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec2", "pow2", "q2"], "variable_groups": [], "functions": {"spacenumber": {"parameters": [["n", "number"]], "type": "string", "language": "javascript", "definition": "var parts=n.toString().split(\".\");\n if(parts[1] && parts[1].length<2) {\n parts[1]+='0';\n }\n return parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") + (parts[1] ? \", \" + parts[1] : \"\");"}}, "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": "$\\var{q2} =$ [[0]]$\\times 10$ [[1]]
", "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": "{dec2}", "maxValue": "{dec2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "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": "{pow2}", "maxValue": "{pow2}", "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", "type": "question"}, {"name": "NK2 standard form (small)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": ["converting", "scientific notation", "standard form"], "metadata": {"description": "Convert numbers between 0 and 1 intro standard form/scientific notation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Write the following numbers in scientific notation.
", "advice": "Suppose we have the number $\\var{q2}$. In scientific notation, this number would start with $\\var{dec2}$ since we only want one digit in front of the decimal point. Count the places that the digits must move and you get $\\var{-pow2}$ places to the right. That is,
\n\\[\\var{q2}=\\var{dec2}\\times 10^{\\var{pow2}}\\]
\n\nWe have a negative $\\var{-pow2}$ as the power because we need to make the number $\\var{dec2}$ smaller to get to $\\var{q2}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pow2": {"name": "pow2", "group": "Ungrouped variables", "definition": "random(list(-6..-1))", "description": "", "templateType": "anything", "can_override": false}, "dec2": {"name": "dec2", "group": "Ungrouped variables", "definition": "random(1.1..9.9#0.001)", "description": "", "templateType": "anything", "can_override": false}, "q2": {"name": "q2", "group": "Ungrouped variables", "definition": "precround(dec2*10^pow2,adjpow)", "description": "", "templateType": "anything", "can_override": false}, "adjpow": {"name": "adjpow", "group": "Ungrouped variables", "definition": "If(round(mod(dec2*1000,10))<>0,3-pow2,If(round(mod(dec2*1000,100))<>0,2-pow2,If(round(mod(dec2*1000,1000))<>0,1-pow2,0-pow2)))", "description": "", "templateType": "anything", "can_override": false}, "test": {"name": "test", "group": "Ungrouped variables", "definition": "mod(1000*dec2,10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec2", "pow2", "q2", "adjpow", "test"], "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": "$\\var{q2}$ = [[0]]$\\times 10$ [[1]]
", "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": "{dec2}", "maxValue": "{dec2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "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": "{pow2}", "maxValue": "{pow2}", "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", "type": "question"}, {"name": "NK3 - Standard Form (Calculations)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations involving Standard form.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "To divide two numbers in standard form we can calculate the division of each part of the standard form number separately. In general we have,
\n\\[\\frac{x\\times10^j}{y\\times10^k}=\\frac xy\\times\\frac{10^j}{10^k}=\\frac xy\\times 10^{j-k}\\]
\n\nIn this question we therefore have,
\n\\[\\frac{\\var{a}\\times10^{\\var{n}}}{\\var{b}\\times10^{\\var{m}}}=\\frac{\\var{a}}{\\var{b}}\\times\\frac{10^{\\var{n}}}{10^{\\var{m}}}=\\var{aDivBRound}\\times10^\\var{n-m}.\\]
Since {aDivBRound} is less than 1 then our answer isn't in standard form. In this case we need to reduce the exponent by 1 so the final answer is
\n\\[\\var{MantAnsRound}\\times10^{\\var{ExponentAns}}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..9.9 # 0.1)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..9.9 # 0.1)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "IsADivBLessOne": {"name": "IsADivBLessOne", "group": "Ungrouped variables", "definition": "a/b<1", "description": "", "templateType": "anything", "can_override": false}, "ExponentAns": {"name": "ExponentAns", "group": "Ungrouped variables", "definition": "if(IsADivBLessOne,n-m-1,n-m)", "description": "", "templateType": "anything", "can_override": false}, "MantAns": {"name": "MantAns", "group": "Ungrouped variables", "definition": "if(IsADivBLessOne, a/b*10, a/b)", "description": "", "templateType": "anything", "can_override": false}, "aDivBRound": {"name": "aDivBRound", "group": "Ungrouped variables", "definition": "precround(a/b,2)", "description": "", "templateType": "anything", "can_override": false}, "MantAnsRound": {"name": "MantAnsRound", "group": "Ungrouped variables", "definition": "precround(MantAns,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "n", "m", "IsADivBLessOne", "ExponentAns", "MantAns", "aDivBRound", "MantAnsRound"], "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": "For the equation
\n\\[\\frac{\\var{a}\\times10^{\\var{n}}}{\\var{b}\\times10^{\\var{m}}}=a\\times10^n\\]
\nfind the values of $a$ and $n$ which keep the answer in standard form.
\nGive $a$ to two decimal places.
\n$a=$[[0]]
$n=$[[1]]
Decide whether each of the described sets of data is drawn from a discrete or continuous distribution.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Decide whether the following data sets are discrete or continuous.
", "advice": "Data can either be discrete or continuous.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5. The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not..The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nWhen we round continuous variables to the nearest integer, this data becomes discrete, as there are no valid middle measurements between the integers. Therefore, the weight of a dog to the nearest kgthe height of Olympic medalists to the nearest cmthe time taken to run 10km to the nearest min is discrete and not continuous.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy half of a bar of chocolate. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nUse this link to find some resources which will help you revise this topic
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"rand3": {"name": "rand3", "group": "Ungrouped variables", "definition": "random(0..5 except rand except rand2)", "description": "", "templateType": "anything", "can_override": false}, "cont": {"name": "cont", "group": "Ungrouped variables", "definition": "[\"The height of Newcastle University students.\", \"The weight of Olympic medalists.\", \"The time taken to brush teeth.\", \"The maximum daily temperature.\"]", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "Ungrouped variables", "definition": "[\"The number of Stage 1 students.\", \"The result of rolling 3 dice.\", \"Shoe sizes.\", \"The number of chocolate bars sold on Monday.\", \"The number of movies downloaded.\", \"The number of cinema tickets sold.\"]", "description": "", "templateType": "anything", "can_override": false}, "trick": {"name": "trick", "group": "Ungrouped variables", "definition": "[\"The weight of a dog to the nearest kg.\", \"The height of Olympic medalists to the nearest cm.\", \"The time taken to run 10km to the nearest min.\"]", "description": "", "templateType": "anything", "can_override": false}, "ranc2": {"name": "ranc2", "group": "Ungrouped variables", "definition": "random(0..3 except ranc)", "description": "", "templateType": "anything", "can_override": false}, "rant": {"name": "rant", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "rand": {"name": "rand", "group": "Ungrouped variables", "definition": "random(0..5)", "description": "", "templateType": "anything", "can_override": false}, "rand2": {"name": "rand2", "group": "Ungrouped variables", "definition": "random(0..5 except rand)", "description": "", "templateType": "anything", "can_override": false}, "ranc": {"name": "ranc", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["disc", "cont", "trick", "ranc", "rant", "ranc2", "rand2", "rand3", "rand"], "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": "{cont[ranc]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": [0, "1"], "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": "{disc[rand]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["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": "{disc[rand2]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["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": "{cont[ranc2]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": [0, "1"], "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": "{trick[rant]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["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": "{disc[rand3]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["1", 0], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA2 Choosing a suitable chart", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "This question is about identifying what types of charts or visual representations of data you can use for different data sets.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "This question is about recognising what types of charts or visual representations of data you can use with what types of data sets.
", "advice": "There are many different types of visual representations of data and sometimes there will be a choice of what you use.
\n\n", "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": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The table shows different names of charts on the left hand side and different descriptions of data sets along the top.
\nPair up each description with the chart that would be most suitable.
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": false, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Scatter plot", "Histogram", "Bar Chart"], "matrix": [["1", 0, 0], [0, "0", "1"], [0, "1", "0"]], "layout": {"type": "all", "expression": ""}, "answers": ["Two continuous variables plotted against each other to investigate their relationship.", "Non-numerical categories and the frequencies of each category.", "A continuous variable such as \"height in $cm$\" grouped into intervals showingthe frequency of the data in each interval."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA3 Interpret Pie Charts", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "This question is about correctly interpreting pie charts.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "{geogebra_applet{\"https://www.geogebra.org/m/ab2psjcf\",[C: C,M: M]}}
\nThe Pie Chart above shows the responses to a question asked by someone trying to plan a social event for their workplace. It shows answers given to the question \"Where would you like to go for a staff social?\" with the options \"Meal\", \"Cinema\" and \"Games Cafe\".
", "advice": "A Pie chart of this type can only be used to make statements about the proportions of data in each category and does not provide information about the actual frequencies.
\nFor more information on Pie Charts follow this link.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"C": {"name": "C", "group": "Ungrouped variables", "definition": "random(25 .. 50#5)", "description": "", "templateType": "randrange", "can_override": false}, "M": {"name": "M", "group": "Ungrouped variables", "definition": "random(30 .. 45#5)", "description": "", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "C<>M", "maxRuns": 100}, "ungrouped_variables": ["C", "M"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "From the following comments which can you say are definitely true, definitely false and which do you not have enough information to know?
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["50 people responded that they would like to go to the cinema.", "About one third of people said they wanted to go for a meal.", "Over half the people responding said they wanted to go to the Games Cafe."], "matrix": [[0, 0, "1"], [0, "1", 0], ["1", 0, 0]], "layout": {"type": "all", "expression": ""}, "answers": ["Definitely true.", "Definitely false.", "Not enough information to know."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA4 Interpret Bar Chart", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}], "tags": [], "metadata": {"description": "Reading a value from a simple bar chart.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "The bar heights give the values of the spend.
Each company has two bars, the left one for last year (in red) and the right one for this year (in purple).
Isolate last years spend by looking at the the bars on the right side, and choose the tallest bar, corresponding to the highest value.
Use this link to find some resources which will help you revise this topic.
", "rulesets": {"std": ["all", "fractionNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"answervector": {"name": "answervector", "group": "Ungrouped variables", "definition": "vector((yo5-yo0)/yo0*100, (yo6-yo1)/yo1*100,(yo7-yo2)/yo2*100,(yo8-yo3)/yo3*100, (yo9-yo4)/yo4*100)", "description": "", "templateType": "anything", "can_override": false}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.01 except 1 except aa except bb)", "description": "", "templateType": "anything", "can_override": false}, "aa": {"name": "aa", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.01 except 1)", "description": "", "templateType": "anything", "can_override": false}, "year": {"name": "year", "group": "Ungrouped variables", "definition": "yearvector[ii]", "description": "", "templateType": "anything", "can_override": false}, "yn": {"name": "yn", "group": "Ungrouped variables", "definition": "map(vsc*y+vsh,y,yo)", "description": "new y values after the transformation
", "templateType": "anything", "can_override": false}, "eee": {"name": "eee", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c except d)", "description": "", "templateType": "anything", "can_override": false}, "yo": {"name": "yo", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),5)", "description": "the (random) original y values which relate to the x values
", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c)", "description": "", "templateType": "anything", "can_override": false}, "yo9": {"name": "yo9", "group": "Ungrouped variables", "definition": "random(41..70#1 except yo5 except yo6 except yo7 except yo8)", "description": "", "templateType": "anything", "can_override": false}, "vsh": {"name": "vsh", "group": "Ungrouped variables", "definition": "if(selector='vsh',random(-3..3#0.5 except 0),0)\n", "description": "vertical shift
", "templateType": "anything", "can_override": false}, "vsc": {"name": "vsc", "group": "Ungrouped variables", "definition": "if(selector='vsc',random(-2,-1,-0.5,0.5,2),1)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b)", "description": "", "templateType": "anything", "can_override": false}, "bb": {"name": "bb", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.01 except 1 except aa)", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "max([yo1,yo0,yo2,yo3,yo4])", "description": "", "templateType": "anything", "can_override": false}, "students": {"name": "students", "group": "Ungrouped variables", "definition": "random(120..320#1)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01)", "description": "", "templateType": "anything", "can_override": false}, "yo2": {"name": "yo2", "group": "Ungrouped variables", "definition": "random(20..40#1 except yo1 except yo0)", "description": "", "templateType": "anything", "can_override": false}, "yo5": {"name": "yo5", "group": "Ungrouped variables", "definition": "random(41..70#1)", "description": "", "templateType": "anything", "can_override": false}, "yo8": {"name": "yo8", "group": "Ungrouped variables", "definition": "random(41..70#1 except yo5 except yo6 except yo7)", "description": "", "templateType": "anything", "can_override": false}, "yo1": {"name": "yo1", "group": "Ungrouped variables", "definition": "random(20..40#1 except yo0)", "description": "", "templateType": "anything", "can_override": false}, "yo7": {"name": "yo7", "group": "Ungrouped variables", "definition": "random(41..70#1 except yo5 except yo6)", "description": "", "templateType": "anything", "can_override": false}, "maxx": {"name": "maxx", "group": "Ungrouped variables", "definition": "max(map(abs(a),a,xn)+5)+1", "description": "", "templateType": "anything", "can_override": false}, "yearvector": {"name": "yearvector", "group": "Ungrouped variables", "definition": "vector(2007,2008,2009,2010,2011,2012,2013)", "description": "", "templateType": "anything", "can_override": false}, "ii": {"name": "ii", "group": "Ungrouped variables", "definition": "random(3..6#1)", "description": "", "templateType": "anything", "can_override": false}, "yo3": {"name": "yo3", "group": "Ungrouped variables", "definition": "random(20..40#1 except yo1 except yo0 except yo2)", "description": "", "templateType": "anything", "can_override": false}, "selector": {"name": "selector", "group": "Ungrouped variables", "definition": "'vsc'", "description": "", "templateType": "anything", "can_override": false}, "fakeanswer1": {"name": "fakeanswer1", "group": "Ungrouped variables", "definition": "random([yo1,yo0,yo2,yo3,yo4] except answer)", "description": "", "templateType": "anything", "can_override": false}, "hsh": {"name": "hsh", "group": "Ungrouped variables", "definition": "if(selector='hsh',random(-3..3 except 0),0)", "description": "horizontal shift
", "templateType": "anything", "can_override": false}, "fakeanswer4": {"name": "fakeanswer4", "group": "Ungrouped variables", "definition": "random([yo9,yo7,yo8] except fakeanswer3)", "description": "", "templateType": "anything", "can_override": false}, "dd": {"name": "dd", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.01 except 1 except aa except bb except cc)", "description": "", "templateType": "anything", "can_override": false}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(5..15#0.1 except 5 except 6 except 7 except 8 except 9 except 10 except 11 except 12 except 13 except 14 except 15)", "description": "", "templateType": "anything", "can_override": false}, "yo0": {"name": "yo0", "group": "Ungrouped variables", "definition": "random(20..40#1)", "description": "", "templateType": "anything", "can_override": false}, "xn": {"name": "xn", "group": "Ungrouped variables", "definition": "map((x-hsh)/hsc,x,xo)", "description": "new transformed x values
", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a)", "description": "", "templateType": "anything", "can_override": false}, "xo": {"name": "xo", "group": "Ungrouped variables", "definition": "list(-2..2)", "description": "original x values
", "templateType": "anything", "can_override": false}, "yo4": {"name": "yo4", "group": "Ungrouped variables", "definition": "random(20..40#1 except yo1 except yo0 except yo2 except yo3)", "description": "", "templateType": "anything", "can_override": false}, "fakeanswer2": {"name": "fakeanswer2", "group": "Ungrouped variables", "definition": "random([yo1,yo0,yo2,yo3,yo4] except answer except fakeanswer1)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c except d except e)", "description": "", "templateType": "anything", "can_override": false}, "yo51": {"name": "yo51", "group": "Ungrouped variables", "definition": "eee*yo5", "description": "", "templateType": "anything", "can_override": false}, "fakeanswer3": {"name": "fakeanswer3", "group": "Ungrouped variables", "definition": "random([yo6,yo7,yo8])", "description": "", "templateType": "anything", "can_override": false}, "increase": {"name": "increase", "group": "Ungrouped variables", "definition": "random(10..40#5)", "description": "", "templateType": "anything", "can_override": false}, "yo6": {"name": "yo6", "group": "Ungrouped variables", "definition": "random(41..70#1 except yo5)", "description": "", "templateType": "anything", "can_override": false}, "hsc": {"name": "hsc", "group": "Ungrouped variables", "definition": "if(selector='hsc',random(-2,-1,-0.5,0.5,2),1)", "description": "", "templateType": "anything", "can_override": false}, "yo41": {"name": "yo41", "group": "Ungrouped variables", "definition": "d*yo4", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["selector", "vsh", "hsh", "vsc", "hsc", "yo", "yn", "xo", "xn", "yo0", "yo1", "yo2", "yo3", "yo4", "maxx", "yo6", "yo7", "yo8", "yo9", "yo41", "yo5", "yo51", "a", "b", "c", "d", "eee", "f", "answer", "fakeanswer1", "fakeanswer2", "fakeanswer3", "fakeanswer4", "aa", "bb", "cc", "dd", "percent", "students", "yearvector", "ii", "year", "answervector", "increase"], "variable_groups": [], "functions": {}, "preamble": {"js": "function dragpoint_board() {\n var scope = question.scope;\n\n JXG.Options.text.display = 'internal';\n \n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n var yo2 = scope.variables.yo2.value;\n var yo3 = scope.variables.yo3.value;\n var yo4 = scope.variables.yo4.value;\n var yo5 = scope.variables.yo5.value;\n var yo6 = scope.variables.yo6.value;\n var yo7 = scope.variables.yo7.value; \n var yo8 = scope.variables.yo8.value;\n var yo9 = scope.variables.yo9.value; \n \n var div = Numbas.extensions.jsxgraph.makeBoard('550px','550px',{boundingBox:[-0.8,82,16,-8], axis:false, grid:true});\n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \nboard.suspendUpdate(); \n\n \n var dataArr = [yo0,yo5,0,yo1,yo6,0,yo2,yo7,0,yo3,yo8,0,yo4,yo9]; \n \n var xaxis = board.create('axis', [[0, 0], [12, 0]], {withLabel: true, name: \"Bank\", label: {offset: [250,-30]}});\n \n xaxis.removeAllTicks(); \n \n board.create('axis', [[0, 0], [0, 10]], {hideTicks:true, withLabel: false, name: \"\", label: {offset: [-110,300]}});\n \n var pop0 = board.create('point', [1.5,0],{name:'Morgan',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop1 = board.create('point',[4.5,0],{name:'Strome',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop2 = board.create('point',[7.5,0],{name:'Bentley',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop3 = board.create('point',[10.5,0],{name:'Sand',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop4 = board.create('point',[13.5,0],{name:'Karchen',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n\n var leg1 = board.create('point',[12,75],{name:'last year',fixed:true,size:6,color:'#DA2228', face:'square', label:{offset:[9,0]}});\n var leg2 = board.create('point',[12,72],{name:'this year',fixed:true,size:6,color:'#6F1B75', face:'square', label:{offset:[9,0]}});\n \n \n// var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', fillOpacity:1, width:1,\n // colorArray:['#8E1B77','#8E1B77','Red','Red','blue','red','blue','red','red','blue', 'red','blue','red','red'], shadow:false});\n \n//var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', width:1,fillOpacity:1, fillColor:'red', shadow:false}); \n \n \n var a = board.create('chart', [[1,2,3],[yo0,yo5,0]], {chartStyle:'bar',colors:['#DA2228','#6F1B75','#6F1B75'],width:1,fillOpacity:1});\n var b = board.create('chart', [[4,5,6],[yo1,yo6,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var c = board.create('chart', [[7,8,9],[yo2,yo7,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var d = board.create('chart', [[10,11,12],[yo3,yo8,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var e = board.create('chart', [[13,14],[yo4,yo9]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75'],fillOpacity:1});\n \n board.unsuspendUpdate();\n \n var txt1 = board.create('text',[-0.3,30, 'Investment \u00a3(m)'], {fontColor:'black', fontSize:14, rotate:90});\n \n // var txt = board.create('text',[0.5,75, 'Investment (m)'], {fontSize:14, rotate:90});\n \n // var txt1 = board.create('text',[8,76, 'red bars represent 2010'], {fontColor:'red', fontSize:14, rotate:90});\n \n // var txt2 = board.create('text',[8,73, 'blue bars represents 2011'], {fontSize:14, rotate:90});\n\n // var myColors = new Array('red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue');\n \n \n \n //board.unsuspendUpdate();\n\n // Rotate text around the lower left corner (-2,-1) by 30 degrees.\n // var tRot = board.create('transform', [90.0*Math.PI/180.0, -1,40], {type:'rotate'}); \n // tRot.bindTo(txt);\n // board.update();\n\n \n//var chart2 = board.createElement('chart', dataArr, {chartStyle:'line,point'});\n//chart2[0].setProperty('strokeColor:black','strokeWidth:2','shadow:true');\n//for(var i=0; i<11;i++) {\n // chart2[1][i].setProperty({strokeColor:'black',fillColor:'white',face:'[]', size:4, strokeWidth:2});\n//}\n//board.unsuspendUpdate(); \n \n //board.unsuspendUpdate();\n\n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});", "css": "table#values th {\n background: none;\n text-align: center;\n}"}, "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
What was the maximum spend by a single company last year?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["£{answer} m
", "£{fakeanswer1} m
", "£{fakeanswer2} m
", "£{fakeanswer3} m
", "£{fakeanswer4} m
"], "matrix": ["1", 0, 0, 0, 0], "distractors": ["", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA5 Interpret a Box Plot", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "Interpreting the elements of a box plot
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The diagram below shows a box plot of some data.
\n{geogebra_applet{\"https://www.geogebra.org/m/aj2hcbhg\",[lv: lv,lq: lq,m: m,uq: uq,hv: hv]}}
\n", "advice": "A boxplot (also known as a box-and-whisker diagram or plot) is a convenient way of graphically depicting groups of numerical data through their five-number summaries: the smallest observation (sample minimum), lower quartile (Q1), median (Q2), upper quartile (Q3), and largest observation (sample maximum). A boxplot may also indicate which observations, if any, might be considered outliers.
\nFor more information on box plots follow this link.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"lv": {"name": "lv", "group": "Ungrouped variables", "definition": "random(2 .. 6#1)", "description": "", "templateType": "randrange", "can_override": false}, "lq": {"name": "lq", "group": "Ungrouped variables", "definition": "random(7 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(11 .. 14#1)", "description": "", "templateType": "randrange", "can_override": false}, "uq": {"name": "uq", "group": "Ungrouped variables", "definition": "random(15 .. 22#1)", "description": "", "templateType": "randrange", "can_override": false}, "hv": {"name": "hv", "group": "Ungrouped variables", "definition": "random(23 .. 30#1)", "description": "", "templateType": "randrange", "can_override": false}, "IQR": {"name": "IQR", "group": "Ungrouped variables", "definition": "uq-lq", "description": "", "templateType": "anything", "can_override": false}, "range": {"name": "range", "group": "Ungrouped variables", "definition": "hv-lv", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["lv", "lq", "m", "uq", "hv", "IQR", "range"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Which of these statements are true and which are false?
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["The range of the data is $\\var{range}$.", "The Interquarttile range of the data is larger than the range of the data.", "You can calculate the mean of the data from this Box plot.", "The median of the data is $\\var{m}$.
", "The mode of the data is $\\var{lv-3}$."], "matrix": [["1", 0], [0, "1"], [0, "1"], ["1", 0], [0, "1"]], "layout": {"type": "all", "expression": ""}, "answers": ["True.", "False."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA6 Calculate Range", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": ["mean", "measures of average and spread", "median", "mode", "range", "taxonomy"], "metadata": {"description": "This question provides a list of data to the student. They are asked to find the \"range\".
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "A random sample of 20 residents from Newcastle were asked about the number of times they went to see a play at the theatre last year.
\nHere is the list of their answers:
\n$\\var{a[0]}$ | \n$\\var{a[1]}$ | \n$\\var{a[2]}$ | \n$\\var{a[3]}$ | \n$\\var{a[4]}$ | \n$\\var{a[5]}$ | \n$\\var{a[6]}$ | \n$\\var{a[7]}$ | \n$\\var{a[8]}$ | \n$\\var{a[9]}$ | \n
$\\var{a[10]}$ | \n$\\var{a[11]}$ | \n$\\var{a[12]}$ | \n$\\var{a[13]}$ | \n$\\var{a[14]}$ | \n$\\var{a[15]}$ | \n$\\var{a[16]}$ | \n$\\var{a[17]}$ | \n$\\var{a[18]}$ | \n$\\var{a[19]}$ | \n
Range is the difference between the highest and the lowest value in the data.
\nTo find this, we subtract the lowest value from the highest value:
\n\\[ \\var{max(a)} - \\var{min(a)} = \\var{range} \\text{.}\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a2": {"name": "a2", "group": "Ungrouped variables", "definition": "repeat(random(1..9), 20)", "description": "Option 2 for the list. Only used if there is only one mode and option 1 was not used.
", "templateType": "anything", "can_override": false}, "modea1": {"name": "modea1", "group": "Ungrouped variables", "definition": "mode(a1)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "repeat(random(1..9), 20)", "description": "Option 1 for the list. Only used if there is only one mode.
", "templateType": "anything", "can_override": false}, "a_s": {"name": "a_s", "group": "final list", "definition": "sort(a)", "description": "Sorted list.
", "templateType": "anything", "can_override": false}, "modea2": {"name": "modea2", "group": "Ungrouped variables", "definition": "mode(a2)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "shuffle([ random(0..1),\n 2, \n random(4..6),\n random(0..3 except 2), \n random(0..3 except 2),\n random(4..6),\n 2,\n 2,\n random(4..6),\n random(7..8),\n random(0..3 except 2 except 1), \n random(4..6),\n 2,\n random(1..3 except 2), \n random(7..8),\n 2,\n random(7..8),\n random(4..6), \n random(0..3 except 2), \n 2\n])", "description": "Option 3 for the list. Ensures there is only one mode (2) while still randomising the data.
", "templateType": "anything", "can_override": false}, "modetimes": {"name": "modetimes", "group": "final list", "definition": "map(\nlen(filter(x=j,x,a)),\nj, 0..8)", "description": "The vector of number of times of each value in the data.
", "templateType": "anything", "can_override": false}, "range": {"name": "range", "group": "final list", "definition": "max(a) - min(a)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "final list", "definition": "if(len(modea1) = 1, a1, if(len(modea2) = 1, a2, a3))", "description": "The final list.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["modea1", "modea2", "a1", "a2", "a3"], "variable_groups": [{"name": "final list", "variables": ["a", "a_s", "range", "modetimes"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "Find the range.
", "minValue": "range", "maxValue": "range", "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", "type": "question"}, {"name": "SA7 Calculate Mean from a list", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Upuli Wickramaarachchi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23527/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "Calculating the Mean from a basic list of integers.
", "licence": "None specified"}, "statement": "Calculate the Mean from a list
", "advice": "The MEAN is the sum, divided by the number of values summed i.e.
$\\frac{\\var{list[0]} + \\var{list[1]} + \\var{list[2]} + \\var{list[3]} + \\var{list[4]}}{5}$
use your calculator to find
\nmean = $\\var{mean}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"list": {"name": "list", "group": "Ungrouped variables", "definition": "repeat(random(0..20), 5)", "description": "", "templateType": "anything", "can_override": false}, "mean": {"name": "mean", "group": "Ungrouped variables", "definition": "mean(list)", "description": "", "templateType": "anything", "can_override": false}, "median": {"name": "median", "group": "Ungrouped variables", "definition": "median(list)", "description": "", "templateType": "anything", "can_override": false}, "order": {"name": "order", "group": "Ungrouped variables", "definition": "sort(list)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["list", "mean", "median", "order"], "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": "Given a list of numbers:
{list}
Calculate the mean: [[0]]
This question provides a list of data to the student. They are asked to find the \"mode\".
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "A random sample of 20 residents from Newcastle were asked about the number of times they went to see a play at the theatre last year.
\nHere is the list of their answers:
\n$\\var{a[0]}$ | \n$\\var{a[1]}$ | \n$\\var{a[2]}$ | \n$\\var{a[3]}$ | \n$\\var{a[4]}$ | \n$\\var{a[5]}$ | \n$\\var{a[6]}$ | \n$\\var{a[7]}$ | \n$\\var{a[8]}$ | \n$\\var{a[9]}$ | \n
$\\var{a[10]}$ | \n$\\var{a[11]}$ | \n$\\var{a[12]}$ | \n$\\var{a[13]}$ | \n$\\var{a[14]}$ | \n$\\var{a[15]}$ | \n$\\var{a[16]}$ | \n$\\var{a[17]}$ | \n$\\var{a[18]}$ | \n$\\var{a[19]}$ | \n
The mode is the value that occurs the most often in the data.
\nTo find a mode, we can look at our sorted list:
\n$\\var{a_s[0]}, \\var{a_s[1]}, \\var{a_s[2]}, \\var{a_s[3]}, \\var{a_s[4]}, \\var{a_s[5]}, \\var{a_s[6]}, \\var{a_s[7]}, \\var{a_s[8]}, \\var{a_s[9]}, \\var{a_s[10]}, \\var{a_s[11]}, \\var{a_s[12]}, \\var{a_s[13]}, \\var{a_s[14]}, \\var{a_s[15]}, \\var{a_s[16]}, \\var{a_s[17]}, \\var{a_s[18]}, \\var{a_s[19]}$.
\nWe notice that $\\var{mode1}$ occurs the most ($\\var{modetimes[mode1]}$ times) so $\\var{mode1}$ is the mode.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a2": {"name": "a2", "group": "Ungrouped variables", "definition": "repeat(random(0..8), 20)", "description": "Option 2 for the list. Only used if there is only one mode and option 1 was not used.
", "templateType": "anything", "can_override": false}, "modea1": {"name": "modea1", "group": "Ungrouped variables", "definition": "mode(a1)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "repeat(random(0..8), 20)", "description": "Option 1 for the list. Only used if there is only one mode.
", "templateType": "anything", "can_override": false}, "a_s": {"name": "a_s", "group": "final list", "definition": "sort(a)", "description": "Sorted list.
", "templateType": "anything", "can_override": false}, "modea2": {"name": "modea2", "group": "Ungrouped variables", "definition": "mode(a2)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "shuffle([ random(0..1),\n 2, \n random(4..6),\n random(0..3 except 2), \n random(0..3 except 2),\n random(4..6),\n 2,\n 2,\n random(4..6),\n random(7..8),\n random(0..3 except 2 except 1), \n random(4..6),\n 2,\n random(1..3 except 2), \n random(7..8),\n 2,\n random(7..8),\n random(4..6), \n random(0..3 except 2), \n 2\n])", "description": "Option 3 for the list. Ensures there is only one mode (2) while still randomising the data.
", "templateType": "anything", "can_override": false}, "modetimes": {"name": "modetimes", "group": "final list", "definition": "map(\nlen(filter(x=j,x,a)),\nj, 0..8)", "description": "The vector of number of times of each value in the data.
", "templateType": "anything", "can_override": false}, "mode1": {"name": "mode1", "group": "final list", "definition": "mode[0]", "description": "Mode as a value.
", "templateType": "anything", "can_override": false}, "mode": {"name": "mode", "group": "final list", "definition": "mode(a)", "description": "Mode as a vector.
", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "final list", "definition": "if(len(modea1) = 1, a1, if(len(modea2) = 1, a2, a3))", "description": "The final list.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["modea1", "modea2", "a1", "a2", "a3"], "variable_groups": [{"name": "final list", "variables": ["a", "a_s", "mode", "mode1", "modetimes"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "Find the mode.
", "minValue": "mode1", "maxValue": "mode1", "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", "type": "question"}, {"name": "SA9 Calculate Median from a list", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Upuli Wickramaarachchi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23527/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": ["mean", "measures of average and spread", "median", "mode", "range", "taxonomy"], "metadata": {"description": "This question provides a list of data to the student. They are asked to find the \"median\".
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "A random sample of 20 residents from Newcastle were asked about the number of times they went to see a play at the theatre last year.
\nHere is the list of their answers:
\n$\\var{a[0]}$ | \n$\\var{a[1]}$ | \n$\\var{a[2]}$ | \n$\\var{a[3]}$ | \n$\\var{a[4]}$ | \n$\\var{a[5]}$ | \n$\\var{a[6]}$ | \n$\\var{a[7]}$ | \n$\\var{a[8]}$ | \n$\\var{a[9]}$ | \n
$\\var{a[10]}$ | \n$\\var{a[11]}$ | \n$\\var{a[12]}$ | \n$\\var{a[13]}$ | \n$\\var{a[14]}$ | \n$\\var{a[15]}$ | \n$\\var{a[16]}$ | \n$\\var{a[17]}$ | \n$\\var{a[18]}$ | \n$\\var{a[19]}$ | \n
The median is the middle value. We need to sort the list in order:
\n\\[ \\var{a_s[0]}, \\quad \\var{a_s[1]}, \\quad \\var{a_s[2]}, \\quad \\var{a_s[3]}, \\quad \\var{a_s[4]}, \\quad \\var{a_s[5]}, \\quad \\var{a_s[6]}, \\quad \\var{a_s[7]}, \\quad \\var{a_s[8]}, \\quad \\var{a_s[9]}, \\quad \\var{a_s[10]}, \\quad \\var{a_s[11]}, \\quad \\var{a_s[12]}, \\quad \\var{a_s[13]}, \\quad \\var{a_s[14]}, \\quad \\var{a_s[15]}, \\quad \\var{a_s[16]}, \\quad \\var{a_s[17]}, \\quad \\var{a_s[18]}, \\quad \\var{a_s[19]} \\]
\nThere is an even number of responses, so there are two numbers in the middle (10th and 11th place). To find the median, we need to find the mean of these two numbers $\\var{a_s[9]}$ and $\\var{a_s[10]}$:
\n\\begin{align}
\\frac{\\var{a_s[9]} + \\var{a_s[10]}}{2} &= \\frac{\\var{a_s[9] + a_s[10]}}{2} \\\\
&= \\var{median} \\text{.}
\\end{align}
\n
Use this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a2": {"name": "a2", "group": "Ungrouped variables", "definition": "repeat(random(0..8), 20)", "description": "Option 2 for the list. Only used if there is only one mode and option 1 was not used.
", "templateType": "anything", "can_override": false}, "modea1": {"name": "modea1", "group": "Ungrouped variables", "definition": "mode(a1)", "description": "", "templateType": "anything", "can_override": false}, "median": {"name": "median", "group": "final list", "definition": "median(a)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "repeat(random(0..8), 20)", "description": "Option 1 for the list. Only used if there is only one mode.
", "templateType": "anything", "can_override": false}, "a_s": {"name": "a_s", "group": "final list", "definition": "sort(a)", "description": "Sorted list.
", "templateType": "anything", "can_override": false}, "modea2": {"name": "modea2", "group": "Ungrouped variables", "definition": "mode(a2)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "shuffle([ random(0..1),\n 2, \n random(4..6),\n random(0..3 except 2), \n random(0..3 except 2),\n random(4..6),\n 2,\n 2,\n random(4..6),\n random(7..8),\n random(0..3 except 2 except 1), \n random(4..6),\n 2,\n random(1..3 except 2), \n random(7..8),\n 2,\n random(7..8),\n random(4..6), \n random(0..3 except 2), \n 2\n])", "description": "Option 3 for the list. Ensures there is only one mode (2) while still randomising the data.
", "templateType": "anything", "can_override": false}, "mean": {"name": "mean", "group": "final list", "definition": "mean(a)", "description": "", "templateType": "anything", "can_override": false}, "modetimes": {"name": "modetimes", "group": "final list", "definition": "map(\nlen(filter(x=j,x,a)),\nj, 0..8)", "description": "The vector of number of times of each value in the data.
", "templateType": "anything", "can_override": false}, "range": {"name": "range", "group": "final list", "definition": "max(a) - min(a)", "description": "", "templateType": "anything", "can_override": false}, "mode1": {"name": "mode1", "group": "final list", "definition": "mode[0]", "description": "Mode as a value.
", "templateType": "anything", "can_override": false}, "mode": {"name": "mode", "group": "final list", "definition": "mode(a)", "description": "Mode as a vector.
", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "final list", "definition": "if(len(modea1) = 1, a1, if(len(modea2) = 1, a2, a3))", "description": "The final list.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["modea1", "modea2", "a1", "a2", "a3"], "variable_groups": [{"name": "final list", "variables": ["a", "a_s", "mean", "median", "mode", "mode1", "range", "modetimes"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "Find the median.
", "minValue": "median", "maxValue": "median", "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", "type": "question"}, {"name": "SA10 Choosing the appropriate average", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "This question asks the student to choose the appropriate measure of average and spread for a data with outliers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Which of the following measures would you choose if you were dealing with data which includes outliers? Select one measure of average and one measure of spread.
", "advice": "The median is a more appropriate measure of average when your data contains outliers because outliers do not affect the median.
\nThe interquartile range is the best measure of variability for skewed distributions or data sets with outliers. Because it’s based on values that come from the middle half of the distribution, it’s unlikely to be influenced by outliers.
\nUse this link to find some resources which will help you revise this topic.
", "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_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, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Mean", "Median", "Standard deviation", "P-value", "Range", "Inter-quartile range"], "matrix": [0, "1", 0, 0, 0, "1"], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA11 Identify measures of spread/location", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "Identifying measures of spread or location (average)
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Match each of the following with what they measure.
", "advice": "The mean is a measure of location or central tendancy. It is calcuated by summing all of the data values and dividing by the number of values.
\nThe median is a measure of location or central tendancy. It is the middle value of an ordered data set.
\nThe inter-quartile range is a measure of spread. The interquartile range is the difference between upper and lower quartiles.The lower quartile, or first quartile (Q1), is the value under which 25% of data points are found when they are arranged in increasing order. The upper quartile, or third quartile (Q3), is the value under which 75% of data points are found when arranged in increasing order. The inter-quartile range therefore gives us an idea of the middle 50% of the ordered data set.
\nThe standard deviation is a measure of spread. It measures the dispersion of a data set relative to its mean.
\nThe variance is a measure spread because it is the square of the standard deviation.
\nA p-value the probability that a particular statistical measure, such as the mean or standard deviation, of an assumed probability distribution will be greater than or equal to (or less than or equal to in some instances) observed results. A p-value is used to determine statistical significance, not measures of spread or location.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {"std": ["all", "fractionNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "function dragpoint_board() {\n var scope = question.scope;\n\n JXG.Options.text.display = 'internal';\n \n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n var yo2 = scope.variables.yo2.value;\n var yo3 = scope.variables.yo3.value;\n var yo4 = scope.variables.yo4.value;\n var yo5 = scope.variables.yo5.value;\n var yo6 = scope.variables.yo6.value;\n var yo7 = scope.variables.yo7.value; \n var yo8 = scope.variables.yo8.value;\n var yo9 = scope.variables.yo9.value; \n \n var div = Numbas.extensions.jsxgraph.makeBoard('550px','550px',{boundingBox:[-0.8,82,16,-8], axis:false, grid:true});\n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \nboard.suspendUpdate(); \n\n \n var dataArr = [yo0,yo5,0,yo1,yo6,0,yo2,yo7,0,yo3,yo8,0,yo4,yo9]; \n \n var xaxis = board.create('axis', [[0, 0], [12, 0]], {withLabel: true, name: \"Bank\", label: {offset: [250,-30]}});\n \n xaxis.removeAllTicks(); \n \n board.create('axis', [[0, 0], [0, 10]], {hideTicks:true, withLabel: false, name: \"\", label: {offset: [-110,300]}});\n \n var pop0 = board.create('point', [1.5,0],{name:'Morgan',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop1 = board.create('point',[4.5,0],{name:'Strome',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop2 = board.create('point',[7.5,0],{name:'Bentley',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop3 = board.create('point',[10.5,0],{name:'Sand',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop4 = board.create('point',[13.5,0],{name:'Karchen',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n\n var leg1 = board.create('point',[12,75],{name:'last year',fixed:true,size:6,color:'#DA2228', face:'square', label:{offset:[9,0]}});\n var leg2 = board.create('point',[12,72],{name:'this year',fixed:true,size:6,color:'#6F1B75', face:'square', label:{offset:[9,0]}});\n \n \n// var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', fillOpacity:1, width:1,\n // colorArray:['#8E1B77','#8E1B77','Red','Red','blue','red','blue','red','red','blue', 'red','blue','red','red'], shadow:false});\n \n//var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', width:1,fillOpacity:1, fillColor:'red', shadow:false}); \n \n \n var a = board.create('chart', [[1,2,3],[yo0,yo5,0]], {chartStyle:'bar',colors:['#DA2228','#6F1B75','#6F1B75'],width:1,fillOpacity:1});\n var b = board.create('chart', [[4,5,6],[yo1,yo6,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var c = board.create('chart', [[7,8,9],[yo2,yo7,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var d = board.create('chart', [[10,11,12],[yo3,yo8,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var e = board.create('chart', [[13,14],[yo4,yo9]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75'],fillOpacity:1});\n \n board.unsuspendUpdate();\n \n var txt1 = board.create('text',[-0.3,30, 'Investment \u00a3(m)'], {fontColor:'black', fontSize:14, rotate:90});\n \n // var txt = board.create('text',[0.5,75, 'Investment (m)'], {fontSize:14, rotate:90});\n \n // var txt1 = board.create('text',[8,76, 'red bars represent 2010'], {fontColor:'red', fontSize:14, rotate:90});\n \n // var txt2 = board.create('text',[8,73, 'blue bars represents 2011'], {fontSize:14, rotate:90});\n\n // var myColors = new Array('red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue');\n \n \n \n //board.unsuspendUpdate();\n\n // Rotate text around the lower left corner (-2,-1) by 30 degrees.\n // var tRot = board.create('transform', [90.0*Math.PI/180.0, -1,40], {type:'rotate'}); \n // tRot.bindTo(txt);\n // board.update();\n\n \n//var chart2 = board.createElement('chart', dataArr, {chartStyle:'line,point'});\n//chart2[0].setProperty('strokeColor:black','strokeWidth:2','shadow:true');\n//for(var i=0; i<11;i++) {\n // chart2[1][i].setProperty({strokeColor:'black',fillColor:'white',face:'[]', size:4, strokeWidth:2});\n//}\n//board.unsuspendUpdate(); \n \n //board.unsuspendUpdate();\n\n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});", "css": "table#values th {\n background: none;\n text-align: center;\n}"}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Variance", "Mean", "Median", "Inter-quartile range", "P-value", "Standard deviation"], "matrix": [["1", 0, 0], [0, "1", 0], [0, "1", 0], ["1", 0, 0], [0, 0, "1"], ["1", 0, 0]], "layout": {"type": "all", "expression": ""}, "answers": ["Measure of Spread", "Measure of location (average)", "Neither measure of location nor measure of spread"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA12 Interpret contingency table", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Upuli Wickramaarachchi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23527/"}], "tags": [], "metadata": {"description": "Calculate an intersection probability given a two way table.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "a) Each row and column must sum to the 'total'.
\nb) Look for the column containing '$\\var{q1a}$' and the row containing '$\\var{q1b}$'. The entry where they intersect, $\\var{q1*total}$, is the value we are interested in.
Since we require a probability, this is $\\var{q1*total}$ out of $\\var{total}$, i.e.
\\[ \\frac{\\var{q1*total}}{\\var{total}} \\]
\n\nUse this link to find some resources which will help you revise this topic
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"nA": {"name": "nA", "group": "Final data", "definition": "pairs[0]", "description": "", "templateType": "anything", "can_override": false}, "pairs": {"name": "pairs", "group": "Final data", "definition": "random(['red','shiny'],['Phenotype A','Phenotype B'],['dairy', 'wheat'],['F','G'],['child','dog owner'],['X','Y'],['hat', 'glasses'])", "description": "", "templateType": "anything", "can_override": false}, "nB": {"name": "nB", "group": "Final data", "definition": "pairs[1]", "description": "", "templateType": "anything", "can_override": false}, "AnB": {"name": "AnB", "group": "Final data", "definition": "random(10..20)", "description": "", "templateType": "anything", "can_override": false}, "AnB'": {"name": "AnB'", "group": "Final data", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "notAnB'": {"name": "notAnB'", "group": "Final data", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "notAnB": {"name": "notAnB", "group": "Final data", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Final data", "definition": "AnB+AnB' + notAnB' + notAnB\n", "description": "", "templateType": "anything", "can_override": false}, "A": {"name": "A", "group": "Final data", "definition": "AnB+AnB'", "description": "", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "Final data", "definition": "notAnB + AnB", "description": "", "templateType": "anything", "can_override": false}, "q1a": {"name": "q1a", "group": "Final data", "definition": "if(isornot1=0,\"not {pairs[0]}\",pairs[0])", "description": "", "templateType": "anything", "can_override": false}, "q2a": {"name": "q2a", "group": "Final data", "definition": "if(isornot3=0,\"not {pairs[0]}\",pairs[0])", "description": "", "templateType": "anything", "can_override": false}, "q1b": {"name": "q1b", "group": "Final data", "definition": "if(isornot2=0,\"not {pairs[1]}\",pairs[1])", "description": "", "templateType": "anything", "can_override": false}, "q2b": {"name": "q2b", "group": "Final data", "definition": "if(isornot4=0,\"not {pairs[1]}\",pairs[1])", "description": "", "templateType": "anything", "can_override": false}, "q1": {"name": "q1", "group": "Final data", "definition": "if(isornot1=0,if(isornot2=0,notAnB',notAnB),if(isornot2=0,AnB',AnB))/total", "description": "", "templateType": "anything", "can_override": false}, "q2": {"name": "q2", "group": "Final data", "definition": "if(isornot3=0,if(isornot4=0,notAnB'/(total-A),notAnB/(total-A)),if(isornot4=0,AnB'/A,AnB/A))", "description": "", "templateType": "anything", "can_override": false}, "isornot1": {"name": "isornot1", "group": "Final data", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "isornot2": {"name": "isornot2", "group": "Final data", "definition": "random(1,0)", "description": "", "templateType": "anything", "can_override": false}, "isornot3": {"name": "isornot3", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "isornot4": {"name": "isornot4", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "1000"}, "ungrouped_variables": ["isornot3", "isornot4"], "variable_groups": [{"name": "Final data", "variables": ["nA", "pairs", "nB", "AnB", "AnB'", "notAnB'", "notAnB", "total", "A", "B", "q1a", "q2a", "q1b", "q2b", "q1", "q2", "isornot1", "isornot2"]}], "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": "$\\var{total}$ items are sampled. Complete the table.
\n\n | $\\var{nB}$ | \nnot $\\var{nB}$ | \nTOTAL | \n
$\\var{nA}$ | \n[[0]] | \n$\\var{AnB'}$ | \n$\\var{A}$ | \n
not $\\var{nA}$ | \n$\\var{notAnB}$ | \n[[1]] | \n[[2]] | \n
TOTAL | \n[[3]] | \n[[4]] | \n$\\var{total}$ | \n
If one item is picked at random, use the table to calculate the probability that the item is '{q1a}' and '{q1b}'.
Give your answer as a fraction, or a decimal correct to 2dp.
Tests understanding of scatter plots and related concepts.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "The scatter plot below shows the relationship between an employee’s height in centimetres and how long it takes them to walk to work in minutes.
\ntime (mins) | \n{drawgraph()} | \n
\n | height (cm) | \n
The graph shows that there is a positive correlation between a person's height and how long it takes them to walk to work.
\nA postive correlation is a relationship between two variables where both variables move in the same diection.
\nThis tells us that as a person's height increases, the time it takes to walk to work increases.
\nUse this link to find some resources which will help you revise this topic
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"slope": {"name": "slope", "group": "Regression variables", "definition": "(6*sumxy-sumx*sumy)/(6*sumxx-(sumx)^2)", "description": "s
", "templateType": "anything", "can_override": false}, "timemax": {"name": "timemax", "group": "Calculation variables", "definition": "max([p1y,p2y,p3y,p4y,p5y,p6y])", "description": "", "templateType": "anything", "can_override": false}, "minx": {"name": "minx", "group": "Graph Limits", "definition": "140", "description": "", "templateType": "anything", "can_override": false}, "miny": {"name": "miny", "group": "Graph Limits", "definition": "-10", "description": "", "templateType": "anything", "can_override": false}, "p3x": {"name": "p3x", "group": "Points", "definition": "random(166..175)", "description": "", "templateType": "anything", "can_override": false}, "p3y": {"name": "p3y", "group": "Points", "definition": "random(26..35)", "description": "", "templateType": "anything", "can_override": false}, "p5x": {"name": "p5x", "group": "Points", "definition": "random(146..155 except p1x)", "description": "", "templateType": "anything", "can_override": false}, "p5y": {"name": "p5y", "group": "Points", "definition": "random(6..15)", "description": "", "templateType": "anything", "can_override": false}, "p1x": {"name": "p1x", "group": "Points", "definition": "random(146..155)", "description": "", "templateType": "anything", "can_override": false}, "p1y": {"name": "p1y", "group": "Points", "definition": "random(6..15)", "description": "", "templateType": "anything", "can_override": false}, "timediff": {"name": "timediff", "group": "Calculation variables", "definition": "timemax-timemin", "description": "", "templateType": "anything", "can_override": false}, "maxx": {"name": "maxx", "group": "Graph Limits", "definition": "188", "description": "", "templateType": "anything", "can_override": false}, "maxy": {"name": "maxy", "group": "Graph Limits", "definition": "63", "description": "", "templateType": "anything", "can_override": false}, "roundedslope": {"name": "roundedslope", "group": "Regression variables", "definition": "precround(slope,2)", "description": "", "templateType": "anything", "can_override": false}, "yintercept": {"name": "yintercept", "group": "Regression variables", "definition": "(sumy-slope*sumx)/6", "description": "", "templateType": "anything", "can_override": false}, "timemin": {"name": "timemin", "group": "Calculation variables", "definition": "min([p1y,p2y,p3y,p4y,p5y,p6y])", "description": "", "templateType": "anything", "can_override": false}, "tallest": {"name": "tallest", "group": "Calculation variables", "definition": "max([p1x,p2x,p3x,p4x,p5x,p6x])", "description": "", "templateType": "anything", "can_override": false}, "regy1": {"name": "regy1", "group": "Regression variables", "definition": "slope*minx+yintercept", "description": "", "templateType": "anything", "can_override": false}, "regy2": {"name": "regy2", "group": "Regression variables", "definition": "slope*maxx+yintercept", "description": "", "templateType": "anything", "can_override": false}, "sumy": {"name": "sumy", "group": "Regression variables", "definition": "p1y+p2y+p3y+p4y+p5y+p6y", "description": "", "templateType": "anything", "can_override": false}, "sumx": {"name": "sumx", "group": "Regression variables", "definition": "p1x+p2x+p3x+p4x+p5x+p6x", "description": "", "templateType": "anything", "can_override": false}, "p6y": {"name": "p6y", "group": "Points", "definition": "random(46..55)", "description": "p6y
", "templateType": "anything", "can_override": false}, "p6x": {"name": "p6x", "group": "Points", "definition": "random(176..185 except p4x)", "description": "", "templateType": "anything", "can_override": false}, "p4y": {"name": "p4y", "group": "Points", "definition": "random(36..45)", "description": "", "templateType": "anything", "can_override": false}, "p4x": {"name": "p4x", "group": "Points", "definition": "random(176..185)", "description": "", "templateType": "anything", "can_override": false}, "p2y": {"name": "p2y", "group": "Points", "definition": "random(16..25)", "description": "", "templateType": "anything", "can_override": false}, "p2x": {"name": "p2x", "group": "Points", "definition": "random(156..165)", "description": "", "templateType": "anything", "can_override": false}, "sumxx": {"name": "sumxx", "group": "Regression variables", "definition": "p1x^2+p2x^2+p3x^2+p4x^2+p5x^2+p6x^2", "description": "", "templateType": "anything", "can_override": false}, "sumxy": {"name": "sumxy", "group": "Regression variables", "definition": "p1x*p1y+p2x*p2y+p3x*p3y+p4x*p4y+p5x*p5y+p6x*p6y", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Graph Limits", "variables": ["minx", "maxx", "miny", "maxy"]}, {"name": "Points", "variables": ["p1x", "p1y", "p2x", "p2y", "p3x", "p3y", "p4x", "p4y", "p5x", "p5y", "p6x", "p6y"]}, {"name": "Calculation variables", "variables": ["tallest", "timemax", "timemin", "timediff"]}, {"name": "Regression variables", "variables": ["sumx", "sumy", "sumxy", "sumxx", "slope", "yintercept", "regy1", "regy2", "roundedslope"]}], "functions": {"drawgraph": {"parameters": [], "type": "html", "language": "javascript", "definition": " var miny = Numbas.jme.unwrapValue(scope.variables.miny);\n var maxy = Numbas.jme.unwrapValue(scope.variables.maxy);\n var minx = Numbas.jme.unwrapValue(scope.variables.minx);\n var maxx = Numbas.jme.unwrapValue(scope.variables.maxx);\n var regy1 = Numbas.jme.unwrapValue(scope.variables.regy1);\n var regy2 = Numbas.jme.unwrapValue(scope.variables.regy2);\n\n var p1x = Numbas.jme.unwrapValue(scope.variables.p1x);\n var p1y = Numbas.jme.unwrapValue(scope.variables.p1y);\n var p2x = Numbas.jme.unwrapValue(scope.variables.p2x);\n var p2y= Numbas.jme.unwrapValue(scope.variables.p2y);\n var p3x = Numbas.jme.unwrapValue(scope.variables.p3x);\n var p3y= Numbas.jme.unwrapValue(scope.variables.p3y);\n var p4x = Numbas.jme.unwrapValue(scope.variables.p4x);\n var p4y= Numbas.jme.unwrapValue(scope.variables.p4y);\n var p5x = Numbas.jme.unwrapValue(scope.variables.p5x);\n var p5y= Numbas.jme.unwrapValue(scope.variables.p5y);\n var p6x = Numbas.jme.unwrapValue(scope.variables.p6x);\n var p6y= Numbas.jme.unwrapValue(scope.variables.p6y);\n \n var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n {boundingBox:[minx,maxy,maxx,miny],\n axis:false,\n showNavigation:false,\n grid:true});\n var brd = div.board; \n var xaxis=brd.createElement('axis', [[minx,0],[maxx,0]]);\n var yaxis=brd.createElement('axis', [[minx+5,miny],[minx+5,maxy]]);\n var li1=brd.create('line',[[minx,regy1],[maxx,regy2]],{fixed:true,withLabel:false});\n var pt1=brd.create('point',[p1x,p1y],{visible:true,withLabel:false}); \n var pt2=brd.create('point',[p2x,p2y],{visible:true,withLabel:false}); \n var pt3=brd.create('point',[p3x,p3y],{visible:true,withLabel:false}); \n var pt4=brd.create('point',[p4x,p4y],{visible:true,withLabel:false}); \n var pt5=brd.create('point',[p5x,p5y],{visible:true,withLabel:false}); \n var pt6=brd.create('point',[p6x,p6y],{visible:true,withLabel:false}); \nreturn div;\n "}}, "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": "Mark the statement that best describes what this scatter plot shows.
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["In general, there is a positive correlation between a person's height and how long it takes them to walk to work.
", "In general, there is a negative correlation between a person's height and how long it takes them to walk to work.
", "In general, there is a no correlation between a person's height and how long it takes them to walk to work.
"], "matrix": ["1", 0, 0], "distractors": ["", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA14 Probability - \"sample space\"", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}], "tags": [], "metadata": {"description": "Calculate probability of selecting coloured counters from a bag.
", "licence": "None specified"}, "statement": "A bag contains:
$\\var{srn}$ small, red tokens,
$\\var{sbn}$ small, blue tokens,
$\\var{brn}$ large, red tokens, and
$\\var{bbn}$ large, blue tokens.
A probability is a fraction. You can give your answer as a fraction, decimal or percentage as these are all equivalent.
The formula for probability is:
\\[ P(A) = \\frac{\\text{number of possibilities for A}}{\\text{number of total possible outcomes}} \\]
\nFor this question the total possible outcomes are $\\var{srn}+\\var{sbn}+\\var{brn}+\\var{bbn} = \\var{total}$.
Therefore
\\[ P(\\text{A large red token}) = \\frac{\\var{brn}}{\\var{total}} = \\var[fractionnumbers]{brn/total}\\]
\nFor this question we need to know the total number of small tokens, i.e. $\\var{srn}+\\var{sbn} = \\var{srn+sbn}$.
Therefore
\\[ P(\\text{A small token}) = \\frac{\\var{srn+sbn}}{\\var{total}} = \\var[fractionnumbers]{(srn+sbn)/total}\\]
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"srn": {"name": "srn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "brn": {"name": "brn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "sbn": {"name": "sbn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "bbn": {"name": "bbn", "group": "Ungrouped variables", "definition": "random(1..20)", "description": "", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "brn+bbn+srn+sbn", "description": "", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "precround(brn/total,2)", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "precround((srn+sbn)/total,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["srn", "brn", "sbn", "bbn", "total", "ans1", "ans2"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "You take a token at random.
What is the probability that it is a large, red token?
Give your answer as a fraction, or a decimal correct to 2dp.
You take a token at random.
What is the probability that it is a small token?
Give your answer as a fraction, or a decimal correct to 2dp.
Predicting the probability of an unbiased coin landing on heads based on the results of previous throws.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "When we flip an unbiased coin there are two possible events that we could measure: the coin lands on heads or the coin lands on tails.
\nEach toss of the coin is independent; if we flip a coin once and it lands on heads then the next time we flip the coin it is still equally likely to land on either heads or tails.
\nIt doesn't matter what the coin landed on previously as this outcome does not affect the outcome of the next flip of the coin.
\nEven when we flip an unbiased coin $\\var{no_flips}$ times and it lands on heads each time; the next time we flip the coin, it is still equally likely to land on either heads or tails.
\nSo the probability that the coin lands on heads the next time that the coin is flipped is still $\\displaystyle\\frac{1}{2}$.
\nNumber of flips of the coin
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["no_flips"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "An unbiased coin is flipped $\\var{no_flips}$ times. Given that the coin landed on heads each time, what is the probability of the coin landing on heads the next time it is flipped?
", "minValue": "1/2", "maxValue": "1/2", "correctAnswerFraction": true, "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", "type": "question"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": true, "startpassword": "", "allowAttemptDownload": true, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "This is a tool for you! It is here to help you diagnose whether there are any maths or statistics pre-requisites for your course that you may want to brush up on. If at any point you are struggling with any question you should find a link at the end of the \"reveal answer\" section that will take you to some recommended online resources on that subject area. You can also always contact the Maths and Stats Help team (MaSH) to arrange a one to one appointment or check out our workshop timetable to see if you can access the support you need that way. Find all this information via our website here!
", "end_message": "Thanks for completing the Skills Audit. You can attempt this as many times as you need. Remember the score is not what matters - this is in no way assessed work - this is simply a tool for working out whether you may need to brush up on anything to ensure that you can access all the material on your course and get off to the best possible start.
\nDon't forget to look up what support is available to you through our web pages here!
", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "inreview"}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "type": "exam", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "extensions": ["geogebra", "jsxgraph", "stats"], "custom_part_types": [], "resources": []}