// Numbas version: finer_feedback_settings {"name": "Mean, median and mode from a frequency table with classes 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "functions": {}, "advice": "
\n", "statement": "The following gives the age distribution of members of a local athletics club
\nClass ( Age in years) | \nfrequency (No of members) | \n
---|---|
{q-5} but less than {q+5} | \n{a} | \n
{p-5} but less than {p+5} | \n{b} | \n
{s-5} but less than {s+5} | \n{c} | \n
{r-5} but less than {r+5} | \n{d} | \n
{t-5} but less than {t+5} | \n{f} | \n
", "definition": "random(20..30)", "name": "a", "group": "Ungrouped variables", "templateType": "anything"}, "q": {"description": "", "definition": "x+10", "name": "q", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"description": "", "definition": "200 -a-b-f-d", "name": "c", "group": "Ungrouped variables", "templateType": "anything"}, "Median": {"description": "", "definition": "s-5+10*(100-(a+b))/c", "name": "Median", "group": "Ungrouped variables", "templateType": "anything"}, "t": {"description": "", "definition": "x+50", "name": "t", "group": "Ungrouped variables", "templateType": "anything"}, "s": {"description": "", "definition": "x+30", "name": "s", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"description": "", "definition": "random(30..50)", "name": "b", "group": "Ungrouped variables", "templateType": "anything"}, "d": {"description": "", "definition": "random(20..35)", "name": "d", "group": "Ungrouped variables", "templateType": "anything"}, "r": {"description": "", "definition": "x+40", "name": "r", "group": "Ungrouped variables", "templateType": "anything"}, "p": {"description": "", "definition": "x+20", "name": "p", "group": "Ungrouped variables", "templateType": "anything"}, "Total": {"description": "", "definition": "a*q + b*p+c*s +d*r +f*t\n", "name": "Total", "group": "Ungrouped variables", "templateType": "anything"}, "mean": {"description": "", "definition": "Total/200", "name": "mean", "group": "Ungrouped variables", "templateType": "anything"}, "stdev": {"description": "", "definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2 +f*t^2)/200- (Total/200)^2)", "name": "stdev", "group": "Ungrouped variables", "templateType": "anything"}}, "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "parts": [{"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "allowFractions": false, "integerPartialCredit": 0, "showPrecisionHint": true, "marks": "2", "showFeedbackIcon": true, "minValue": "mean", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "scripts": {}, "precision": 0, "correctAnswerFraction": false, "strictPrecision": false, "prompt": "\n
Calculate the mean of the data to the nearest whole number.
", "integerAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "maxValue": "mean", "variableReplacements": [], "type": "numberentry"}, {"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "allowFractions": false, "integerPartialCredit": 0, "showPrecisionHint": true, "marks": "4", "showFeedbackIcon": true, "minValue": "stdev", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "scripts": {}, "precision": 0, "correctAnswerFraction": false, "strictPrecision": false, "prompt": "Calculate the standard deviation of the data to the nearest whole number.
", "integerAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "maxValue": "stdev", "variableReplacements": [], "type": "numberentry"}, {"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "allowFractions": false, "integerPartialCredit": 0, "showPrecisionHint": true, "marks": "3", "showFeedbackIcon": true, "minValue": "median", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "scripts": {}, "precision": 0, "correctAnswerFraction": false, "strictPrecision": false, "prompt": "Calculate the median of the data to the nearest whole number.
", "integerAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "maxValue": "median", "variableReplacements": [], "type": "numberentry"}, {"correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "allowFractions": false, "integerPartialCredit": 0, "showPrecisionHint": true, "marks": "3", "showFeedbackIcon": true, "minValue": "mode", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "scripts": {}, "precision": 0, "correctAnswerFraction": false, "strictPrecision": false, "prompt": "Calculate the mode of the data to the nearest whole number.
", "integerAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "maxValue": "mode", "variableReplacements": [], "type": "numberentry"}], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "Scores in 20 games and frequency given -- calculate mean.
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "preamble": {"js": "", "css": ""}, "extensions": [], "name": "Mean, median and mode from a frequency table with classes 1", "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}