{"base":{"id":"alcm-36-02","subject":"Combined Maths","title":"Mean, median and mode","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["classes 0–10, 10–20, 20–30, 30–40, 40–50 with f = 5, 8, 12, 10, 5 (n = 40)","midpoints 5, 15, 25, 35, 45","Σfx = 25 + 120 + 300 + 350 + 225 = 1020",{"t":"x̄ = 1020/40 = 25.5","note":"estimate from grouped data"}]},"say":["Tap to find the mean.","The data.","Midpoints.","Sum.","Mean."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Mean","title":"x̄ = Σfx/Σf","body":"For a frequency table, multiply each value (or class midpoint) by its frequency, add, and divide by the total frequency."},{"mode":"fig","work":{"title":"Write it like this","lines":["take a = 25, c = 10: u = −2, −1, 0, 1, 2","Σfu = −10 − 8 + 0 + 10 + 10 = 2","ū = 2/40 = 0.05",{"t":"x̄ = 25 + 10 × 0.05 = 25.5 ✓","note":"same answer"}]},"say":["Tap for coding.","Coded values.","Sum.","Coded mean.","Decode."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Coding","title":"u = (x − a)/c","body":"Subtracting a and dividing by c makes the arithmetic easier. Then x̄ = a + c ū."},{"mode":"fig","work":{"title":"Write it like this","lines":["n/2 = 20; cumulative 5, 13, 25 → class 20–30","median = 20 + (20 − 13)/12 × 10 ≈ 25.83",{"t":"mode = L + d₁/(d₁ + d₂) × c","note":"d₁ = 12 − 8 = 4,  d₂ = 12 − 10 = 2"},"mode = 20 + 4/6 × 10 ≈ 26.67"]},"say":["Tap for the formulas.","Find the class.","Median.","Mode formula.","Mode."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Median and mode","title":"Interpolation in a class","body":"Median = L + ((n/2 − F)/f) c, where L is the lower boundary of the median class, F the cumulative frequency before it, f its frequency, c its width."},{"mode":"plot","controls":[{"id":"X","label":"X","min":0,"max":40,"step":1,"value":6}],"view":[-1,-1,41,3],"axes":{"xs":5,"ys":10,"xl":"x","yl":""},"pts":[{"x":2,"y":0,"col":"b"},{"x":3,"y":0,"col":"b"},{"x":4,"y":0,"col":"b"},{"x":5,"y":0,"col":"b"},{"x":"X","y":0,"col":"o","t":"X"},{"x":"(14+X)/5","y":1.5,"col":"r","t":"mean"},{"x":"iff(gt(3,X),3,iff(gt(X,4),4,X))","y":0.8,"col":"g","t":"median"}],"ptitle":"Effect of an outlier","rows":["data: 2, 3, 4, 5, {X|0}",["mean = {(14+X)/5|2}","r"],["median = {iff(gt(3,X),3,iff(gt(X,4),4,X))|1}","g"]],"note":"The median resists extreme values; the mean uses every value.","st":"mean {(14+X)/5|2}, median {iff(gt(3,X),3,iff(gt(X,4),4,X))|1}","eyebrow":"Explore","title":"Mean versus median","body":"Five values: 2, 3, 4, 5 and one value X you control. Make X very large: the mean follows it, but the median stays at 4."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"x: 1, 2, 3   f: 2, 5, 3","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Mean","body":"Σfx/Σf.","question":"Values 1, 2, 3 with frequencies 2, 5, 3. Mean?","options":["2.1","2","3.33"],"answer":0,"right":"Correct. 21/10.","wrong":"Not quite. Σfx = 2 + 10 + 9 = 21."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Averages in detail","items":[{"tag":"Choosing","title":"Which average?","body":"Mean: uses all data, good for symmetric data. Median: best with outliers or skewed data. Mode: the only one for qualitative data."},{"tag":"Combining groups","title":"Mean of two groups","body":"Group 1: n₁ values, mean x̄₁; group 2: n₂, x̄₂. Combined mean = (n₁x̄₁ + n₂x̄₂)/(n₁ + n₂)."},{"tag":"Ungrouped median","title":"Position (n + 1)/2","body":"Order the data; the median is the value in position (n + 1)/2 (average the two middle values if n is even)."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Using class limits for midpoints","body":"Use the midpoint of each class for x, not its upper or lower end."},{"tag":"Common mistake","title":"Forgetting to decode","body":"After coding, convert back: x̄ = a + cū."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"For the data 2, 4, 6, 8, 10 — mean?:","options":["5","6","30"],"answer":1,"right":"Correct. Mean = sum/n; median = middle; mode = most frequent.","wrong":"Not quite. Order the data first for the median."},{"level":"easy","question":"For the data 3, 7, 7, 9, 12 — median?:","options":["7","9","7.6"],"answer":0,"right":"Correct. Mean = sum/n; median = middle; mode = most frequent.","wrong":"Not quite. Order the data first for the median."},{"level":"easy","question":"For the data 3, 7, 7, 9, 12 — mode?:","options":["9","3","7"],"answer":2,"right":"Correct. Mean = sum/n; median = middle; mode = most frequent.","wrong":"Not quite. Order the data first for the median."},{"level":"easy","question":"For the data 1, 2, 3, 4 — median?:","options":["2","2.5","3"],"answer":1,"right":"Correct. Mean = sum/n; median = middle; mode = most frequent.","wrong":"Not quite. Order the data first for the median."},{"level":"easy","question":"For the data 5, 5, 5, 5 — mean?:","options":["5","20","0"],"answer":0,"right":"Correct. Mean = sum/n; median = middle; mode = most frequent.","wrong":"Not quite. Order the data first for the median."},{"level":"easy","question":"x: 0, 1, 2 with f: 3, 5, 2 — mean?","options":["1","0.9","3"],"answer":1,"right":"Correct. Mean = Σfx/Σf.","wrong":"Not quite. Find the middle position in the cumulative frequency."},{"level":"easy","question":"x: 1, 2, 3, 4 with f: 1, 2, 3, 4 — mean?","options":["2.5","10","3"],"answer":2,"right":"Correct. Mean = Σfx/Σf.","wrong":"Not quite. Find the middle position in the cumulative frequency."},{"level":"easy","question":"x: 5, 10 with f: 4, 6 — mean?","options":["7.5","10","8"],"answer":2,"right":"Correct. Mean = Σfx/Σf.","wrong":"Not quite. Find the middle position in the cumulative frequency."},{"level":"easy","question":"x: 10, 20, 30 with f: 2, 2, 6 — mode?","options":["30","20","6"],"answer":0,"right":"Correct. Mean = Σfx/Σf.","wrong":"Not quite. Find the middle position in the cumulative frequency."},{"level":"easy","question":"x: 1, 2, 3 with f: 4, 1, 4 — median?","options":["1","3","2"],"answer":2,"right":"Correct. Mean = Σfx/Σf.","wrong":"Not quite. Find the middle position in the cumulative frequency."},{"level":"medium","question":"Grouped data: classes 0–10, 10–20, 20–30, 30–40 with f = 4, 10, 16, 10. Estimated mean?","options":["20","25","23"],"answer":2,"right":"Correct. Use midpoints 5, 15, 25, 35; median = L + ((n/2 − F)/f)c.","wrong":"Not quite. n/2 = 20, F = 14, f = 16."},{"level":"medium","question":"Grouped data: classes 0–10, 10–20, 20–30, 30–40 with f = 4, 10, 16, 10. Median class?","options":["10–20","30–40","20–30"],"answer":2,"right":"Correct. Use midpoints 5, 15, 25, 35; median = L + ((n/2 − F)/f)c.","wrong":"Not quite. n/2 = 20, F = 14, f = 16."},{"level":"medium","question":"Grouped data: classes 0–10, 10–20, 20–30, 30–40 with f = 4, 10, 16, 10. Median (interpolation)?","options":["25","23.75","20"],"answer":1,"right":"Correct. Use midpoints 5, 15, 25, 35; median = L + ((n/2 − F)/f)c.","wrong":"Not quite. n/2 = 20, F = 14, f = 16."},{"level":"medium","question":"Grouped data: classes 0–10, 10–20, 20–30, 30–40 with f = 4, 10, 16, 10. Modal class?","options":["20–30","10–20","30–40"],"answer":0,"right":"Correct. Use midpoints 5, 15, 25, 35; median = L + ((n/2 − F)/f)c.","wrong":"Not quite. n/2 = 20, F = 14, f = 16."},{"level":"medium","question":"Grouped data: classes 0–10, 10–20, 20–30, 30–40 with f = 4, 10, 16, 10. Mode by formula (d₁ = 6, d₂ = 6)?","options":["23","26","25"],"answer":2,"right":"Correct. Use midpoints 5, 15, 25, 35; median = L + ((n/2 − F)/f)c.","wrong":"Not quite. n/2 = 20, F = 14, f = 16."},{"level":"medium","question":"With coding u = (x − 50)/10, ū = −0.4. x̄ = ?","options":["46","49.6","54"],"answer":0,"right":"Correct. x̄ = a + c·ū; combined mean = total sum / total count.","wrong":"Not quite. Shifts add, scalings multiply."},{"level":"medium","question":"The mean of 5 numbers is 8. A sixth number 14 is added. New mean?","options":["11","9","8"],"answer":1,"right":"Correct. x̄ = a + c·ū; combined mean = total sum / total count.","wrong":"Not quite. Shifts add, scalings multiply."},{"level":"medium","question":"Mean of 20 values is 15 and of another 30 values is 20. Combined mean?","options":["17.5","18","35"],"answer":1,"right":"Correct. x̄ = a + c·ū; combined mean = total sum / total count.","wrong":"Not quite. Shifts add, scalings multiply."},{"level":"medium","question":"Adding 5 to every value changes the mean by…","options":["+5","×5","0"],"answer":0,"right":"Correct. x̄ = a + c·ū; combined mean = total sum / total count.","wrong":"Not quite. Shifts add, scalings multiply."},{"level":"medium","question":"Doubling every value changes the median by…","options":["×2","+2","nothing"],"answer":0,"right":"Correct. x̄ = a + c·ū; combined mean = total sum / total count.","wrong":"Not quite. Shifts add, scalings multiply."},{"level":"hard","question":"The mean of 1, 3, x, 7, 9 is 5. x = ?","options":["4","5","6"],"answer":1,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"Values 2, 4, x, 8 have median 5 (x between 4 and 8). x = ?","options":["6","5","4"],"answer":0,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"Frequency f of x = 3 if 1, 2, 3 have frequencies 2, 3, f and mean 2.3:","options":["4","6","5"],"answer":2,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"A mean of 12 was computed from 10 values, but one value 25 was misread as 15. Correct mean?","options":["11","12.5","13"],"answer":2,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"For a symmetric distribution, mean, median and mode are…","options":["equal","different","zero"],"answer":0,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"Which average is best for house prices with a few mansions?","options":["mean","median","mode"],"answer":1,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"Which average is the only one for shoe-colour data?","options":["mean","mode","median"],"answer":1,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"Σ(x − x̄) = ?","options":["n","x̄","0"],"answer":2,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"The value a minimising Σ(x − a)² is…","options":["the mean","the median","the mode"],"answer":0,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."},{"level":"hard","question":"The value a minimising Σ|x − a| is…","options":["the mean","the median","the mode"],"answer":1,"right":"Correct. Set up equations from the definitions.","wrong":"Not quite. Corrected sum = old sum + (correct − wrong)."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Mean","meaning":"Σfx/Σf."},{"word":"Median","meaning":"The middle value."},{"word":"Mode","meaning":"The most frequent value."},{"word":"Modal class","meaning":"The class with the highest frequency."},{"word":"Coding","meaning":"u = (x − a)/c."},{"word":"Outlier","meaning":"A value far from the rest."}]},{"type":"checklist","id":"check","title":"I can…","items":["find the mean of grouped data, with coding","find the median and mode of grouped data","choose a suitable average"]},{"type":"sources","id":"sources","title":"Sources","items":["NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level II 5.2)."]}],"slug":"mean-median-mode"},"overlay":null}