// Numbas version: finer_feedback_settings {"name": "Simon's copy of Mean", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "
To calculate the mean:
\nIn our example,
\n$\\var{a1}+ \\var{a2}+ \\var{a3}+ \\var{a4}+ \\var{a5}+ \\var{a6}+ \\var{a7}=\\var{a1+a2+a3+a4+a5+a6+a7} $
\nThere are 7 datapoints, so $n$=7
\nMean = $\\frac{\\var{a1+a2+a3+a4+a5+a6+a7}}{n} =\\frac{\\var{a1+a2+a3+a4+a5+a6+a7}}{7}=\\var{precround((a1+a2+a3+a4+a5+a6+a7)/7,1)}$
", "functions": {}, "statement": "Calculate the mean of the following set of numbers correct to one decimal place:
\n$\\var{a1}, \\var{a2}, \\var{a3}, \\var{a4}, \\var{a5}, \\var{a6}, \\var{a7}$ .
", "preamble": {"js": "", "css": ""}, "name": "Simon's copy of Mean", "extensions": ["stats"], "parts": [{"showCorrectAnswer": true, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "gaps": [{"mustBeReduced": false, "type": "numberentry", "maxValue": "1/7*{(a1+a2+a3+a4+a5+a6+a7)}", "variableReplacementStrategy": "originalfirst", "marks": "2", "scripts": {}, "allowFractions": false, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "minValue": "1/7*{(a1+a2+a3+a4+a5+a6+a7)}", "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "showPrecisionHint": false, "unitTests": [], "precision": "1", "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "precisionPartialCredit": 0, "correctAnswerFraction": false, "showFeedbackIcon": true, "strictPrecision": false}], "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "$\\text{mean}=\\;\\;$[[0]]
", "unitTests": [], "marks": 0, "scripts": {}, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": []}], "ungrouped_variables": ["a1", "a3", "a2", "a5", "a4", "a7", "a6"], "variable_groups": [], "variables": {"a2": {"name": "a2", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(7..8)"}, "a3": {"name": "a3", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(5..6)"}, "a6": {"name": "a6", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(3..4)"}, "a5": {"name": "a5", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(0..2)"}, "a1": {"name": "a1", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(9..10)"}, "a4": {"name": "a4", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(3..4)"}, "a7": {"name": "a7", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(3..4)"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "calculating mean
\nrebelmaths
\n