// Numbas version: exam_results_page_options {"name": "Descriptive Statistics (P): Median", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["v_less_9a", "v_less_9b", "v_more_11a", "v_more_11b", "v_between_9_11", "v_less_4a", "v_less_4b", "v_between_5_10", "v_more_10a", "v_more_10b"], "name": "Descriptive Statistics (P): Median", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

a)

\n

First, put the elements in increasing order, i.e.

\n

\\[ \\var{latex(join(sort([v_less_9a,v_more_11a,v_less_9b,v_between_9_11,v_more_11b]),','))} \\]

\n

The median of the set is the middle value in the sorted list. In this case, it's $\\var{v_between_9_11}$.

\n

b)

\n

First, put the elements in increasing order, i.e.

\n

\\[ \\var{latex(join(sort([v_less_4a,v_less_4b,v_between_5_10,v_more_10a,v_more_10b]),','))} \\]

\n

The median of the set is the middle value in the sorted list. In this case, it's $\\var{v_between_5_10}$.

", "rulesets": {}, "parts": [{"prompt": "

$\\var{v_less_9a},\\var{v_more_11a},\\var{v_less_9b},\\var{v_between_9_11},\\var{v_more_11b}$.

", "allowFractions": false, "variableReplacements": [], "maxValue": "v_between_9_11", "minValue": "v_between_9_11", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

$\\var{v_less_4a}, \\var{v_less_4b}, \\var{v_between_5_10},\\var{v_more_10a}, \\var{v_more_10b}$

", "allowFractions": false, "variableReplacements": [], "maxValue": "v_between_5_10", "minValue": "v_between_5_10", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "statement": "

Find the medians of the following sets of numbers. Enter your answers as whole numbers or fractions, not decimals.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"v_more_11b": {"definition": "random(12..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_more_11b", "description": ""}, "v_more_11a": {"definition": "random(12..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_more_11a", "description": ""}, "v_between_5_10": {"definition": "random(5..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_between_5_10", "description": ""}, "v_less_9b": {"definition": "random(1..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_less_9b", "description": ""}, "v_less_9a": {"definition": "random(1..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_less_9a", "description": ""}, "v_more_10a": {"definition": "random(10..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_more_10a", "description": ""}, "v_between_9_11": {"definition": "random(9..11)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_between_9_11", "description": ""}, "v_more_10b": {"definition": "random(10..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_more_10b", "description": ""}, "v_less_4a": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_less_4a", "description": ""}, "v_less_4b": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "v_less_4b", "description": ""}}, "metadata": {"notes": "", "description": "

Find the medians of two sets of data.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Hayley Moore", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/495/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Hayley Moore", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/495/"}]}