// Numbas version: exam_results_page_options {"name": "Catherine's copy of Mean, median and mode from a frequency table with classes 1c", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "advice": "

\n

", "tags": [], "statement": "

The following gives the age distribution of the 160 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}
", "variables": {"data": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "[ [p,a],[q,b],[r,c],[s,d]]", "name": "data"}, "c": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "160-a-b-d", "name": "c"}, "b": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(30..50)", "name": "b"}, "Total": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "a*q + b*p+c*s +d*r\n", "name": "Total"}, "mean": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "Total/160", "name": "mean"}, "stdev": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2)/160- (Total/160)^2)", "name": "stdev"}, "q": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "x+10", "name": "q"}, "d": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(20..35)", "name": "d"}, "a": {"description": "

  

", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(20..30)", "name": "a"}, "x": {"description": "", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(-5..25#10)", "name": "x"}, "r": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "x+40", "name": "r"}, "t": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "x+50", "name": "t"}, "Median": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "s-5+10*(80-(a+b))/c", "name": "Median"}, "mode": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "s-5+10*((c-b)/(2c-(b+d)))", "name": "mode"}, "p": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "x+20", "name": "p"}, "s": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "x+30", "name": "s"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Catherine's copy of Mean, median and mode from a frequency table with classes 1c", "rulesets": {}, "functions": {}, "preamble": {"css": "", "js": ""}, "parts": [{"correctAnswerFraction": false, "precisionMessage": "You have not given your answer to the correct precision.", "precision": 0, "precisionType": "dp", "allowFractions": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "precisionPartialCredit": 0, "variableReplacements": [], "showFeedbackIcon": true, "maxValue": "mean", "prompt": "

\n

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

", "showPrecisionHint": true, "scripts": {}, "minValue": "mean", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "marks": "3", "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "mustBeReducedPC": 0, "type": "numberentry"}], "ungrouped_variables": ["a", "c", "b", "d", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "type": "question", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}