Calculate Mean, Median, and Mode

Calculate Mean, Median, and Mode
Loading the math board and drawing, please wait…
2016-05-29 17:02
This example demonstrates how to calculate the mean, median, and mode of a set of data. The core mathematical concepts involved include mean (arithmetic average), median (the middle number after sorting), and mode (the most frequently occurring number). Key construction points involve using GeoGebra commands such as Sequence (to generate sequences), CountIf (to count conditions), TableText (to display table text), mean (to calculate the mean), Mode (to calculate the mode), and Median (to calculate the median). It is suitable for middle school students and above for learning and practicing probability and statistics.

GeoGebra Commands & Parameters

  1. Sequence(Random[1, 6], t, 1, n) → L
  2. CountIf(x ≟ 1, L) → B4
  3. CountIf(x ≟ 2, L) → B5
  4. CountIf(x ≟ 3, L) → B6
  5. CountIf(x ≟ 4, L) → B7
  6. CountIf(x ≟ 5, L) → B8
  7. CountIf(x ≟ 6, L) → B9
  8. TableText({{A3}, {A4}, {A5}, {A6}, {A7}, {A8}, {A9}}, "l_|h") → texto3
  9. TableText({{A3, B3}, {A4, B4}, {A5, B5}, {A6, B6}, {A7, B7}, {A8, B8}, {A9, B9}, {A10, B10}}, "l_|h") → texto4
  10. TableText({{A3, B3, C3}, {A4, B4, C4}, {A5, B5, C5}, {A6, B6, C6}, {A7, B7, C7}, {A8, B8, C8}, {A9, B9, C9}, {A10, B10, C10}}, "l_|h") → texto5
  11. TableText({{A3, B3, C3, D3}, {A4, B4, C4, D4}, {A5, B5, C5, D5}, {A6, B6, C6, D6}, {A7, B7, C7, D7}, {A8, B8, C8, D8}, {A9, B9, C9, D9}, {A10, B10, C10, D10}}, "l_|h") → texto6
  12. TableText({{A3, B3, C3, D3, E3}, {A4, B4, C4, D4, E4}, {A5, B5, C5, D5, E5}, {A6, B6, C6, D6, E6}, {A7, B7, C7, D7, E7}, {A8, B8, C8, D8, E8}, {A9, B9, C9, D9, E9}, {A10, B10, C10, D10, E10}}, "l_|h") → texto7
  13. TableText({{A3, B3, C3, D3, E3, F3}, {A4, B4, C4, D4, E4, F4}, {A5, B5, C5, D5, E5, F5}, {A6, B6, C6, D6, E6, F6}, {A7, B7, C7, D7, E7, F7}, {A8, B8, C8, D8, E8, F8}, {A9, B9, C9, D9, E9, F9}, {A10, B10, C10, D10, E10, F10}}, "l_|h") → texto8
  14. mean(L) → A13
  15. Mode(L) → A14
  16. Median(L) → A15
  17. CountIf(x ≟ 1, L) → B18
  18. CountIf(x ≟ 2, L) → B19
  19. CountIf(x ≟ 3, L) → B20
  20. CountIf(x ≟ 4, L) → B21
  21. CountIf(x ≟ 5, L) → B22
  22. CountIf(x ≟ 6, L) → B23
  23. TableText({{A17, B17, C17}, {A18, B18, C18}, {A19, B19, C19}, {A20, B20, C20}, {A21, B21, C21}, {A22, B22, C22}, {A23, B23, C23}, {A24, B24, C24}}, "|_lll") → texto14