// Numbas version: exam_results_page_options {"name": "Mean, median and mode from a frequency table with classes 1(b)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"s": {"definition": "x+30", "group": "Ungrouped variables", "description": "", "name": "s", "templateType": "anything"}, "b": {"definition": "random(30..50)", "group": "Ungrouped variables", "description": "", "name": "b", "templateType": "anything"}, "f": {"definition": "random(30..40#1)", "group": "Ungrouped variables", "description": "", "name": "f", "templateType": "randrange"}, "a": {"definition": "random(20..30)", "group": "Ungrouped variables", "description": "

  

", "name": "a", "templateType": "anything"}, "stdev": {"definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2 +f*t^2)/200- (Total/200)^2)", "group": "Ungrouped variables", "description": "", "name": "stdev", "templateType": "anything"}, "Total": {"definition": "a*q + b*p+c*s +d*r +f*t\n", "group": "Ungrouped variables", "description": "", "name": "Total", "templateType": "anything"}, "p": {"definition": "x+20", "group": "Ungrouped variables", "description": "", "name": "p", "templateType": "anything"}, "d": {"definition": "random(20..35)", "group": "Ungrouped variables", "description": "", "name": "d", "templateType": "anything"}, "mode": {"definition": "s-5+10*((c-b)/(2c-(b+d)))", "group": "Ungrouped variables", "description": "", "name": "mode", "templateType": "anything"}, "data": {"definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "group": "Ungrouped variables", "description": "", "name": "data", "templateType": "anything"}, "t": {"definition": "x+50", "group": "Ungrouped variables", "description": "", "name": "t", "templateType": "anything"}, "Median": {"definition": "s-5+10*(100-(a+b))/c", "group": "Ungrouped variables", "description": "", "name": "Median", "templateType": "anything"}, "r": {"definition": "x+40", "group": "Ungrouped variables", "description": "", "name": "r", "templateType": "anything"}, "x": {"definition": "random(-5..25#10)", "group": "Ungrouped variables", "description": "", "name": "x", "templateType": "randrange"}, "c": {"definition": "200 -a-b-f-d", "group": "Ungrouped variables", "description": "", "name": "c", "templateType": "anything"}, "q": {"definition": "x+10", "group": "Ungrouped variables", "description": "", "name": "q", "templateType": "anything"}, "mean": {"definition": "Total/200", "group": "Ungrouped variables", "description": "", "name": "mean", "templateType": "anything"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "scripts": {}, "precision": 0, "prompt": "

\n

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

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

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

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

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

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

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

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

\n

", "rulesets": {}, "metadata": {"description": "

Mean, median and mode from a frequency table with classes 1(b)

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": [], "tags": [], "ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "variable_groups": [], "name": "Mean, median and mode from a frequency table with classes 1(b)", "statement": "

A survey was carried out on 200 households having internet connection. As part of the survey each household was asked to estimate on average the amount of time per day spent using the internet. The findings are tabulated as follows:

\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 (Time in minutes)Frequency (No of households)
{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}
", "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/"}]}