// Numbas version: exam_results_page_options {"name": "James's copy of Descriptive Stats (P): Mode", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": ["stats"], "metadata": {"description": "

Find the modes of two small samples.

", "licence": "Creative Commons Attribution 4.0 International"}, "advice": "

a)

\n

The mode is the value which appears the most often in the data set.

\n

It can help to put the values in order:

\n

{table([sort(show_values1)],[])}

\n

The mode of these numbers is $\\var{mode1}$.

\n

b)

\n

Similarly, it can help to first put the values in order:

\n

{table([sort(show_values2)],[])}

\n

The mode of these numbers is $\\var{mode2}$.

\n

", "variable_groups": [{"name": "Part a", "variables": ["values1", "mode1", "show_values1"]}, {"name": "Part b", "variables": ["values2", "mode2", "show_values2"]}], "parts": [{"marks": 1, "maxValue": "mode1", "showCorrectAnswer": true, "showPrecisionHint": false, "minValue": "mode1", "allowFractions": false, "type": "numberentry", "variableReplacements": [], "prompt": "

{table([show_values1],[])}

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

{table([show_values2],[])}

", "variableReplacementStrategy": "originalfirst", "integerPartialCredit": "50", "integerAnswer": true, "scripts": {}, "correctAnswerFraction": false}], "showQuestionGroupNames": false, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

Find the modes of each list of numbers.

", "tags": [], "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "pickQuestions": 0, "questions": []}], "name": "James's copy of Descriptive Stats (P): Mode", "functions": {}, "type": "question", "rulesets": {}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": [], "variables": {"values1": {"description": "

A random set of data

", "name": "values1", "templateType": "anything", "definition": "repeat(random(1..20),5)", "group": "Part a"}, "mode1": {"description": "

A mode of the random set of data. There will be more than one if two values appear the same (maximal) number of times

", "name": "mode1", "templateType": "anything", "definition": "shuffle(mode(values1))[0]", "group": "Part a"}, "values2": {"description": "", "name": "values2", "templateType": "anything", "definition": "repeat(random(1..20),8)", "group": "Part b"}, "mode2": {"description": "", "name": "mode2", "templateType": "anything", "definition": "shuffle(mode(values2))[0]", "group": "Part b"}, "show_values1": {"description": "

Values shown to the student.

\n

Make sure the mode is unique by picking one possible mode, and adding another copy of it to the list.

", "name": "show_values1", "templateType": "anything", "definition": "shuffle(values1+[mode1])", "group": "Part a"}, "show_values2": {"description": "", "name": "show_values2", "templateType": "anything", "definition": "shuffle(values2+[mode2])", "group": "Part b"}}, "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/"}]}