// Numbas version: exam_results_page_options {"name": "Mean and median 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": [{"ungrouped_variables": ["a", "c", "b", "d", "f", "q", "p", "s", "r", "t", "stdev", "mean", "x", "Total", "data", "mode", "Median"], "functions": {}, "tags": [], "preamble": {"js": "", "css": ""}, "rulesets": {}, "variables": {"p": {"description": "", "definition": "x+20", "templateType": "anything", "group": "Ungrouped variables", "name": "p"}, "Total": {"description": "", "definition": "a*q + b*p+c*s +d*r +f*t\n", "templateType": "anything", "group": "Ungrouped variables", "name": "Total"}, "b": {"description": "", "definition": "random(30..50)", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "d": {"description": "", "definition": "random(20..35)", "templateType": "anything", "group": "Ungrouped variables", "name": "d"}, "a": {"description": "

  

", "definition": "random(20..30)", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}, "data": {"description": "", "definition": "[ [p,a],[q,b],[r,c],[s,d],[t,f]]", "templateType": "anything", "group": "Ungrouped variables", "name": "data"}, "x": {"description": "", "definition": "random(-5..25#10)", "templateType": "randrange", "group": "Ungrouped variables", "name": "x"}, "Median": {"description": "", "definition": "s-5+10*(100-(a+b))/c", "templateType": "anything", "group": "Ungrouped variables", "name": "Median"}, "c": {"description": "", "definition": "200 -a-b-f-d", "templateType": "anything", "group": "Ungrouped variables", "name": "c"}, "s": {"description": "", "definition": "x+30", "templateType": "anything", "group": "Ungrouped variables", "name": "s"}, "r": {"description": "", "definition": "x+40", "templateType": "anything", "group": "Ungrouped variables", "name": "r"}, "stdev": {"description": "", "definition": "sqrt((a*q^2 + b*p^2+c*s^2 +d*r^2 +f*t^2)/200- (Total/200)^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "stdev"}, "q": {"description": "", "definition": "x+10", "templateType": "anything", "group": "Ungrouped variables", "name": "q"}, "f": {"description": "", "definition": "random(30..40#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "f"}, "mode": {"description": "", "definition": "s-5+10*((c-b)/(2c-(b+d)))", "templateType": "anything", "group": "Ungrouped variables", "name": "mode"}, "t": {"description": "", "definition": "x+50", "templateType": "anything", "group": "Ungrouped variables", "name": "t"}, "mean": {"description": "", "definition": "Total/200", "templateType": "anything", "group": "Ungrouped variables", "name": "mean"}}, "extensions": [], "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}
", "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

\n

", "parts": [{"precision": 0, "precisionType": "dp", "correctAnswerFraction": false, "showFeedbackIcon": true, "allowFractions": false, "showPrecisionHint": true, "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "minValue": "mean", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

\n

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

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

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

", "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "median", "type": "numberentry", "mustBeReducedPC": 0, "marks": "3", "notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "precisionPartialCredit": 0}], "variable_groups": [], "name": "Mean and median from a frequency table with classes 1(b)", "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/"}]}