// Numbas version: exam_results_page_options {"name": "Mean 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": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "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}
", "variable_groups": [], "extensions": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

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

\n

rebelmaths

"}, "variables": {"a": {"description": "

  

", "name": "a", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(20..30)"}, "t": {"description": "", "name": "t", "templateType": "anything", "group": "Ungrouped variables", "definition": "x+50"}, "r": {"description": "", "name": "r", "templateType": "anything", "group": "Ungrouped variables", "definition": "x+40"}, "stdev": {"description": "", "name": "stdev", "templateType": "anything", "group": "Ungrouped variables", "definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2)/160- (Total/160)^2)"}, "d": {"description": "", "name": "d", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(20..35)"}, "x": {"description": "", "name": "x", "templateType": "randrange", "group": "Ungrouped variables", "definition": "random(-5..25#10)"}, "b": {"description": "", "name": "b", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(30..50)"}, "q": {"description": "", "name": "q", "templateType": "anything", "group": "Ungrouped variables", "definition": "x+10"}, "mode": {"description": "", "name": "mode", "templateType": "anything", "group": "Ungrouped variables", "definition": "s-5+10*((c-b)/(2c-(b+d)))"}, "c": {"description": "", "name": "c", "templateType": "anything", "group": "Ungrouped variables", "definition": "160-a-b-d"}, "Median": {"description": "", "name": "Median", "templateType": "anything", "group": "Ungrouped variables", "definition": "s-5+10*(80-(a+b))/c"}, "mean": {"description": "", "name": "mean", "templateType": "anything", "group": "Ungrouped variables", "definition": "Total/160"}, "data": {"description": "", "name": "data", "templateType": "anything", "group": "Ungrouped variables", "definition": "[ [p,a],[q,b],[r,c],[s,d]]"}, "Total": {"description": "", "name": "Total", "templateType": "anything", "group": "Ungrouped variables", "definition": "a*q + b*p+c*s +d*r\n"}, "s": {"description": "", "name": "s", "templateType": "anything", "group": "Ungrouped variables", "definition": "x+30"}, "p": {"description": "", "name": "p", "templateType": "anything", "group": "Ungrouped variables", "definition": "x+20"}}, "functions": {}, "rulesets": {}, "name": "Mean and mode from a frequency table with classes 1c", "preamble": {"css": "", "js": ""}, "advice": "

\n

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

\n

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

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

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

", "showFeedbackIcon": true, "precisionPartialCredit": 0}], "ungrouped_variables": ["a", "c", "b", "d", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "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/"}]}