// Numbas version: exam_results_page_options {"name": "Mean, median and mode from a frequency table with classes 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "extensions": [], "name": "Mean, median and mode from a frequency table with classes 2", "rulesets": {}, "statement": "

The following gives the age distribution of members of a local athletics club

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Class ( Age in years)frequency (No of members)
{q-5} but less than {q+5}{a}
{p-5} but less than {p+5}{b}
{s-5} but less than {s+5}{c}
{r-5} but less than {r+5}{d}
{t-5} but less than {t+5}{f}
", "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Scores  in 20 games and frequency given -- calculate mean.

\n

rebelmaths

"}, "variable_groups": [], "functions": {}, "variables": {"x": {"definition": "random(-5..25#10)", "description": "", "group": "Ungrouped variables", "name": "x", "templateType": "randrange"}, "c": {"definition": "200 -a-b-f-d", "description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything"}, "f": {"definition": "random(10..20#1)", "description": "", "group": "Ungrouped variables", "name": "f", "templateType": "randrange"}, "t": {"definition": "x+50", "description": "", "group": "Ungrouped variables", "name": "t", "templateType": "anything"}, "d": {"definition": "random(30..40)", "description": "", "group": "Ungrouped variables", "name": "d", "templateType": "anything"}, "Total": {"definition": "a*q + b*p+c*s +d*r +f*t\n", "description": "", "group": "Ungrouped variables", "name": "Total", "templateType": "anything"}, "a": {"definition": "random(5..20)", "description": "

  

", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}, "b": {"definition": "random(70..80)", "description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything"}, "mean": {"definition": "Total/200", "description": "", "group": "Ungrouped variables", "name": "mean", "templateType": "anything"}, "s": {"definition": "x+30", "description": "", "group": "Ungrouped variables", "name": "s", "templateType": "anything"}, "stdev": {"definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2 +f*t^2)/200- (Total/200)^2)", "description": "", "group": "Ungrouped variables", "name": "stdev", "templateType": "anything"}, "q": {"definition": "x+10", "description": "", "group": "Ungrouped variables", "name": "q", "templateType": "anything"}, "p": {"definition": "x+20", "description": "", "group": "Ungrouped variables", "name": "p", "templateType": "anything"}, "r": {"definition": "x+40", "description": "", "group": "Ungrouped variables", "name": "r", "templateType": "anything"}, "Median": {"definition": "s-5+10*(100-(a+b))/c", "description": "", "group": "Ungrouped variables", "name": "Median", "templateType": "anything"}, "data": {"definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "description": "", "group": "Ungrouped variables", "name": "data", "templateType": "anything"}, "mode": {"definition": "p-5+10*((b-a)/(2b-(a+c)))", "description": "", "group": "Ungrouped variables", "name": "mode", "templateType": "anything"}}, "advice": "

\n

", "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"integerPartialCredit": 0, "precision": 0, "showPrecisionHint": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "prompt": "

\n

Calculate the mean of the data to the nearest whole number.

", "marks": "2", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "mean", "precisionPartialCredit": 0, "showCorrectAnswer": true, "strictPrecision": false, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "type": "numberentry", "maxValue": "mean", "integerAnswer": true, "scripts": {}}, {"integerPartialCredit": 0, "precision": 0, "showPrecisionHint": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "prompt": "

Calculate the standard deviation of the data to the nearest whole number.

", "marks": "4", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "stdev", "precisionPartialCredit": 0, "showCorrectAnswer": true, "strictPrecision": false, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "type": "numberentry", "maxValue": "stdev", "integerAnswer": true, "scripts": {}}, {"integerPartialCredit": 0, "precision": 0, "showPrecisionHint": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "prompt": "

Calculate the median of the data to the nearest whole number.

", "marks": "3", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "median", "precisionPartialCredit": 0, "showCorrectAnswer": true, "strictPrecision": false, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "type": "numberentry", "maxValue": "median", "integerAnswer": true, "scripts": {}}, {"integerPartialCredit": 0, "precision": 0, "showPrecisionHint": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "prompt": "

Calculate the mode of the data to the nearest whole number.

", "marks": "3", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "mode", "precisionPartialCredit": 0, "showCorrectAnswer": true, "strictPrecision": false, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "type": "numberentry", "maxValue": "mode", "integerAnswer": true, "scripts": {}}], "tags": [], "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/"}]}