Mean-Median-Mode Interactive Demonstration

Mean-Median-Mode Interactive Demonstration
Loading the math board and drawing, please wait…
2019-10-22 02:09
① This example demonstrates the positions and relationships of mean, median, and mode in a dataset through an interactive histogram and data table. ② Core mathematical concepts include measures of central tendency in descriptive statistics, frequency distribution, data sorting, and grouped statistics. ③ Construction highlights: using GeoGebra commands such as Median, mean, Sequence, Sum, Element, TableText, Vector, and Textfield, it builds objects for data input, frequency counting, sorted search, calculation of mean/median/mode, visual bar charts, and text displays, including ListFrequencyVariableSearch, MatrixAllSortedSearch, medianvaluesearch, modevaluesearch, etc., with dynamic adjustment via sliders or text fields. ④ Suitable for middle school statistics lessons and introductory college statistics courses, helping students understand how different central tendency measures respond to data distributions.

GeoGebra Commands & Parameters

  1. Median(Take[ListCategory, 2, 5], Take[ListFrequencyVariableSearch, 2, 5]) → medianvaluesearch
  2. mean(Take[ListCategory, 2, 5], Take[ListFrequencyVariableSearch, 2, 5]) → meanvaluesearch
  3. Sequence(If[i < 5, "+", ""], i, 1, 5) → ListAddSign
  4. Sequence(Element[ListCategory, i] + "×" + (Element[ListFrequencyVariableSearch, i] + Element[ListAddSign, i]), i, 2, 5) → CategoryFrequencyProductList
  5. Sum(CategoryFrequencyProductList) → TextSumCategoryFrequency
  6. Sum(Take[ListFrequencyVariableSearch, 2]) → totalfrequency
  7. Sequence(Element[MatrixAllSortedSearch, 1, i], i, 1, totalfrequency) → ListAllSortedSearch
  8. Sequence(Element[MatrixAllSortedSearch, 1, i], i, 1, totalfrequency) → ListAllSortedNum
  9. Element(Mode[ListAllSortedSearch], 1) → modevaluesearch
  10. TableText({ListCategory, ListFrequencyVariableText}, "c|_") → Table1Problem
  11. Sequence(Polygon[(i - 1, 0), (i, 0), (i, Element[ListAllSortedSearch, i]), (i - 1, Element[ListAllSortedSearch, i])], i, 1, totalfrequency) → DataVisualBar
  12. Sequence(Text[Element[ListAllSortedSearch, i], (i - 1, Element[(ListAllSortedSearch * 1.1), i])], i, 1, totalfrequency) → DataVisualText
  13. Median(Take[ListCategory, 2, 5], Take[ListFrequencyNum, 2, 5]) → medianvalue1
  14. TableText({ListCategory, ListFrequencyVariableSearch}, "c|_") → Table3HiddenSearch
  15. TableText({ListCategory, ListFrequencyNum}, "c|_") → Table2Solution
  16. Vector((((2 * medianposition) - 1) / 2, (Element[ListAllSortedSearch, medianposition] * 1.3) + 2), (((2 * medianposition) - 1) / 2, (Element[ListAllSortedSearch, medianposition] * 1.2))) → medianpositionpointer
  17. Textfield(targetmode) → inputBox1
  18. Textfield(targetmedian) → inputBox2
  19. Textfield(targetmean) → inputBox3