// Numbas version: exam_results_page_options {"name": "EXCEL - Index of Multiple deprivation", "extensions": ["stats", "download-text-file"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "EXCEL - Index of Multiple deprivation", "tags": [], "metadata": {"description": "

Find and compare means and standard deviation using EXCEL (downloadable randomised dataset)

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

The following (fictional) data shows the Index of Multiple Deprivation (IMD) score, rank and decile of a random sample of {n} areas in England.

\n

{download_link(\"IMD.csv\",csv)}

\n

WARNING The data supplied for this question changes each time. If you retry this question you will need to redownload the csv.

", "advice": "

a) This is a large dataset, and looking for the area code manually might be time-consuming. Therefore, we can use MATCH and INDEX to find values in question.

\n

For example, to find the IMD score for {Area[areachoice1]} we can add =INDEX(B2:B{n+1},MATCH(\"{Area[areachoice1]}\",A2:A{n+1},0)) in an empty cell.

\n

The table summarises the commands we can use:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{Area[areachoice1]}{Area[areachoice2]}
IMD score:=INDEX(B2:B{n+1},MATCH(\"{Area[areachoice1]}\",A2:A{n+1},0))=INDEX(B2:B{n+1},MATCH(\"{Area[areachoice2]}\",A2:A{n+1},0))
IMD rank:=INDEX(C2:C{n+1},MATCH(\"{Area[areachoice1]}\",A2:A{n+1},0))=INDEX(C2:C{n+1},MATCH(\"{Area[areachoice2]}\",A2:A{n+1},0))
IMD decile:=INDEX(D2:D{n+1},MATCH(\"{Area[areachoice1]}\",A2:A{n+1},0))=INDEX(D2:D{n+1},MATCH(\"{Area[areachoice1]}\",A2:A{n+1},0))
\n

Alternatively, we can search for the row with the corresponding Area Codes manually, the results will be the same.

\n

\n

b) To choose the correct answers, we need to compare the results calculated in part a. 

\n

We need to keep in mind that IMD scores record good performance negatively. Also, the areas are ranked starting from most deprived as 1. Similarly, the first dicile correspondes to the 10% most deprived areas.

", "rulesets": {}, "extensions": ["download-text-file", "stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(100..300)", "description": "", "templateType": "anything", "can_override": false}, "Area": {"name": "Area", "group": "Ungrouped variables", "definition": "repeat(\"E010\"+random(1..32844),n)", "description": "", "templateType": "anything", "can_override": false}, "Rank": {"name": "Rank", "group": "Ungrouped variables", "definition": "shuffle(repeat(random(1..32844),n))", "description": "", "templateType": "anything", "can_override": false}, "Decile": {"name": "Decile", "group": "Ungrouped variables", "definition": "map(if(i< 3284 , 1, if(i<6586,2,if(i<9853,3,if(i<13137,4,if(i<16422,5,if(i<19706,6,if(i<22990,7,if(i<26275,8,if(i<29559,9,10)))))))) ),i,Rank)", "description": "", "templateType": "anything", "can_override": false}, "IMD": {"name": "IMD", "group": "Ungrouped variables", "definition": "map(precround((i+random*(i+1))100/32844,3), i, rank)", "description": "", "templateType": "anything", "can_override": false}, "random": {"name": "random", "group": "Ungrouped variables", "definition": "random(0.01..0.08 # 0.01)", "description": "", "templateType": "anything", "can_override": false}, "csv": {"name": "csv", "group": "Ungrouped variables", "definition": "csv(zip(Area,IMD, Rank, Decile),[\"Area Code\", \"Index of Multiple Deprivation (IMD) Score\",\"IMD Rank (Where 1 is most deprived)\", \"IMD Decile (where 1 is most deprived 10%)\"])", "description": "", "templateType": "anything", "can_override": false}, "areachoice1": {"name": "areachoice1", "group": "Ungrouped variables", "definition": "random(0..n)", "description": "", "templateType": "anything", "can_override": false}, "areachoice2": {"name": "areachoice2", "group": "Ungrouped variables", "definition": "random(0..n)", "description": "", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[\"{Area[areachoice1]} has a higher IMD score than {Area[areachoice2]}.\", \n\"{Area[areachoice1]} is more deprived than {Area[areachoice2]}.\", \n\"{Area[areachoice1]} is less deprived than {Area[areachoice2]}.\", \n\nif(d2<5, \"{Area[areachoice2]} is in the {d2*10}% least deprived areas in England.\", \"{Area[areachoice2]} is in the {(11-d2)*10}% most deprived areas in England.\"),\nif(d1<5, \"{Area[areachoice1]} is in the {d1*10}% most deprived areas in England.\", \"{Area[areachoice1]} is in the {(11-d1)*10}% least deprived areas in England.\"),\nif(d1<5, \"{Area[areachoice1]} and {Area[areachoice2]} are both within the most deprived {d1*10}% of areas in England.\", \"{Area[areachoice1]} and {Area[areachoice2]} are both in the least deprived {(11-d1)*10}% of areas in England.\")]", "description": "", "templateType": "anything", "can_override": false}, "points": {"name": "points", "group": "Ungrouped variables", "definition": "[if(s1>s2,1,0), if(r1r2,1,0),0,1,if(d2<=d1,1,0)]", "description": "", "templateType": "anything", "can_override": false}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "IMD[areachoice1]", "description": "", "templateType": "anything", "can_override": false}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "IMD[areachoice2]", "description": "", "templateType": "anything", "can_override": false}, "r1": {"name": "r1", "group": "Ungrouped variables", "definition": "Rank[areachoice1]", "description": "", "templateType": "anything", "can_override": false}, "r2": {"name": "r2", "group": "Ungrouped variables", "definition": "Rank[areachoice2]", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "Decile[areachoice1]", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "Decile[areachoice2]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "Area", "Rank", "Decile", "IMD", "random", "csv", "areachoice1", "areachoice2", "choices", "points", "s1", "s2", "r1", "r2", "d1", "d2"], "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 areas {Area[areachoice1]} and {Area[areachoice2]} fill in the table with the appropriate statistic: 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{Area[areachoice1]}{Area[areachoice2]}
IMD score:[[0]][[1]]
IMD rank:[[2]][[3]]
IMD decile:[[4]][[5]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{s1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{s2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{r1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{r2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{d1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{d2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Compare the areas {Area[areachoice1]} and {Area[areachoice2]}. Select all the sentences that are true:

\n

[[0]]

", "gaps": [{"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": "{choices}", "matrix": "{points}"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}