// Numbas version: exam_results_page_options {"name": "James's copy of Descriptive Statistics (P): Median", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "James's copy of Descriptive Statistics (P): Median", "parts": [{"minValue": "v_between_9_11", "variableReplacements": [], "integerPartialCredit": "50", "maxValue": "v_between_9_11", "allowFractions": false, "showCorrectAnswer": true, "showPrecisionHint": false, "correctAnswerFraction": false, "integerAnswer": true, "prompt": "

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

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

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

", "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry"}], "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}$.

", "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"], "extensions": [], "variable_groups": [], "statement": "

Find the medians of the following sets of numbers.

", "question_groups": [{"name": "", "questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "functions": {}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Find the medians of two sets of data.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "showQuestionGroupNames": false, "variables": {"v_more_10b": {"name": "v_more_10b", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..20)", "description": ""}, "v_between_9_11": {"name": "v_between_9_11", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(9..11)", "description": ""}, "v_between_5_10": {"name": "v_between_5_10", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(5..10)", "description": ""}, "v_more_11b": {"name": "v_more_11b", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(12..15)", "description": ""}, "v_more_11a": {"name": "v_more_11a", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(12..15)", "description": ""}, "v_less_9a": {"name": "v_less_9a", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..8)", "description": ""}, "v_less_4b": {"name": "v_less_4b", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..3)", "description": ""}, "v_less_9b": {"name": "v_less_9b", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..8)", "description": ""}, "v_more_10a": {"name": "v_more_10a", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..20)", "description": ""}, "v_less_4a": {"name": "v_less_4a", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..3)", "description": ""}}, "tags": [], "rulesets": {}, "contributors": [{"name": "James McEvoy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/922/"}]}]}], "contributors": [{"name": "James McEvoy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/922/"}]}