Median-Median Line vs. LSRL for Eleven Points

Median-Median Line vs. LSRL for Eleven Points
Loading the math board and drawing, please wait…
2017-07-02 21:58
This example demonstrates the comparison between the median-median line and the least squares regression line for eleven points. By constructing both lines, students can visually understand the differences between these two linear regression methods. Key mathematical concepts include linear regression, median, and least squares. GeoGebra commands used include FitLineY, Sort, Take, Centroid, ConvexHull, and Line. Suitable for high school mathematics education, particularly in statistics and probability courses.

GeoGebra Commands & Parameters

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