// Numbas version: finer_feedback_settings {"name": "Mean, median and mode from a frequency table with classes 2c", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "c", "b", "d", "q", "p", "s", "t", "mean", "r", "x", "Total", "stdev", "data", "mode", "Median"], "parts": [{"precisionMessage": "You have not given your answer to the correct precision.", "integerAnswer": true, "precision": 0, "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "prompt": "

\n

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

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

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

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

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

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

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

", "minValue": "mode", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "strictPrecision": false, "marks": "3", "maxValue": "mode", "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "precisionType": "dp", "showPrecisionHint": true, "integerPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true}], "statement": "

The following gives the age distribution of the 180 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}
", "name": "Mean, median and mode from a frequency table with classes 2c", "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "extensions": [], "functions": {}, "advice": "

\n

", "variables": {"b": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "b", "definition": "random(70..80)"}, "Median": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "Median", "definition": "s-5+10*(90-(a+b))/c"}, "s": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "s", "definition": "x+30"}, "r": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "r", "definition": "x+40"}, "c": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "c", "definition": "180 -a-b-d"}, "d": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "d", "definition": "random(30..40)"}, "q": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "q", "definition": "x+10"}, "p": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "p", "definition": "x+20"}, "mode": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "mode", "definition": "p-5+10*((b-a)/(2b-(a+c)))"}, "Total": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "Total", "definition": "a*q + b*p+c*s +d*r\n"}, "a": {"description": "

  

", "group": "Ungrouped variables", "templateType": "anything", "name": "a", "definition": "random(5..20)"}, "t": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "t", "definition": "x+50"}, "mean": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "mean", "definition": "Total/180"}, "x": {"description": "", "group": "Ungrouped variables", "templateType": "randrange", "name": "x", "definition": "random(-5..25#10)"}, "stdev": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "stdev", "definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2)/180- (Total/180)^2)"}, "data": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "data", "definition": "[ [p,a],[q,b],[r,c],[s,d]]"}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

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

\n

rebelmaths

"}, "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/"}]}