// Numbas version: exam_results_page_options {"name": "Descriptive Statistics (P): Median", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"correctAnswerFraction": false, "maxValue": "v_between_9_11", "showCorrectAnswer": true, "marks": 1, "prompt": "

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

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

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

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false, "variableReplacements": [], "type": "numberentry", "allowFractions": false, "minValue": "v_between_5_10"}], "name": "Descriptive Statistics (P): Median", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "

Find the medians of two sets of data.

"}, "statement": "

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

", "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"], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"v_more_10a": {"templateType": "anything", "name": "v_more_10a", "description": "", "group": "Ungrouped variables", "definition": "random(10..20)"}, "v_between_5_10": {"templateType": "anything", "name": "v_between_5_10", "description": "", "group": "Ungrouped variables", "definition": "random(5..10)"}, "v_more_11a": {"templateType": "anything", "name": "v_more_11a", "description": "", "group": "Ungrouped variables", "definition": "random(12..15)"}, "v_more_11b": {"templateType": "anything", "name": "v_more_11b", "description": "", "group": "Ungrouped variables", "definition": "random(12..15)"}, "v_more_10b": {"templateType": "anything", "name": "v_more_10b", "description": "", "group": "Ungrouped variables", "definition": "random(10..20)"}, "v_less_9a": {"templateType": "anything", "name": "v_less_9a", "description": "", "group": "Ungrouped variables", "definition": "random(1..8)"}, "v_less_9b": {"templateType": "anything", "name": "v_less_9b", "description": "", "group": "Ungrouped variables", "definition": "random(1..8)"}, "v_between_9_11": {"templateType": "anything", "name": "v_between_9_11", "description": "", "group": "Ungrouped variables", "definition": "random(9..11)"}, "v_less_4b": {"templateType": "anything", "name": "v_less_4b", "description": "", "group": "Ungrouped variables", "definition": "random(1..3)"}, "v_less_4a": {"templateType": "anything", "name": "v_less_4a", "description": "", "group": "Ungrouped variables", "definition": "random(1..3)"}}, "preamble": {"js": "", "css": ""}, "tags": [], "variable_groups": [], "type": "question", "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}\$.

", "question_groups": [{"pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered", "questions": []}], "showQuestionGroupNames": false, "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/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "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/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}