Median-Median Line vs. LSRL for Ten Points

Median-Median Line vs. LSRL for Ten Points
Loading the math board and drawing, please wait…
2017-07-02 21:53
This example demonstrates the comparison between the median-median line and the least squares regression line for ten points. Key mathematical concepts include median line, least squares, and statistics. The construction uses GeoGebra commands such as FitLineY, Sort, and Take. Suitable for high school mathematics education and learning.

GeoGebra Commands & Parameters

  1. FitLineY({A, B, C, D, E, F, G, H, I}) → LSRL
  2. Sort(data) → list1
  3. Take(list1, 1, 3) → list2
  4. Take(list1, 4, 7) → list3
  5. Take(list1, 8, 10) → list4
  6. Centroid(Polygon[K, L, M]) → N
  7. Sort({K, L, M}) → mmm
  8. ConvexHull(list2) → graph1
  9. ConvexHull(list3) → graph2
  10. ConvexHull(list4) → graph3
  11. Line(Centroid[Polygon[{K, L, M}]], Line[Element[mmm, 1], Element[mmm, 3]]) → MEDMED