Exploring Regression Lines

Exploring Regression Lines
Loading the math board and drawing, please wait…
2012-02-09 07:24
This example demonstrates the effect on the sum of squared errors when changing the straight line fitted to a small set of data points. Key math concepts include linear regression, least squares method, and sum of squared errors. GeoGebra commands used are OrthogonalLine, Intersect, and Segment to plot data points, fitted lines, and error segments. Suitable for high school students and teachers exploring model optimization in linear regression.

GeoGebra Commands & Parameters

  1. OrthogonalLine(A, xAxis) → d
  2. OrthogonalLine(D, xAxis) → e
  3. OrthogonalLine(C, xAxis) → f
  4. OrthogonalLine(B, xAxis) → g
  5. OrthogonalLine(E, xAxis) → h
  6. Intersect(e, yAxis) → F
  7. Intersect(c, e) → D'
  8. Intersect(d, c) → A'
  9. Intersect(f, c) → C'
  10. Intersect(g, c) → B'
  11. Intersect(h, c) → E'
  12. Segment(A, A') → i
  13. Segment(D', D) → j
  14. Segment(C', C) → k
  15. Segment(B, B') → l
  16. Segment(E', E) → m