// Numbas version: finer_feedback_settings {"name": "EXCEL - Basketball players", "extensions": ["stats", "random_person", "download-text-file"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "EXCEL - Basketball players", "tags": [], "metadata": {"description": "
Find the number of people with heights greater then mean plus two times the standard deviation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A basketball talent scout is looking for tall people to be new players, analyse the data in the file linked below to find the potential candidates.
\nHow many people on the list are taller than the mean height plus two standard deviations?
\nThere are {n} people in the list.
\n{download_link(\"student_heights.csv\",csv)}
\nWARNING The data supplied for this question changes each time. If you retry this question you will need to redownload the csv.
\nAVERAGE
, STDEV
and COUNTIF
functions.First find the mean with =AVERAGE(B1:B{n})
in cell C1
Now the standard deviation with =STDEV(B1:B{n})
in cell C2
. Note this calculates the sample standard deviation and gives the same answer as =STDEV.S(B1:B{n})
Now find the critical height that we want to find people above. In cell C3
write =C1+2*C2
.
To count all the people taller than this we can use the following formula =COUNTIF(B1:B{n},\">\"&C3)
to give {ans_2}
This is the answer not based on the sample data - ignore this one
", "templateType": "anything", "can_override": false}, "csv": {"name": "csv", "group": "Ungrouped variables", "definition": "csv(people)", "description": "", "templateType": "anything", "can_override": false}, "x_bar": {"name": "x_bar", "group": "Ungrouped variables", "definition": "mean(map(x[1],x,people))", "description": "", "templateType": "anything", "can_override": false}, "sd": {"name": "sd", "group": "Ungrouped variables", "definition": "stdev(map(x[1],x,people),true)", "description": "", "templateType": "anything", "can_override": false}, "ans_2": {"name": "ans_2", "group": "Ungrouped variables", "definition": "sum(map(if(x[1] > (x_bar+2*sd),1,0),x,people))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["people", "n", "mu", "sigma", "csv", "x_bar", "sd", "ans_2", "ans"], "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": "{ans_2}", "maxValue": "{ans_2}", "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", "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}