Best Fit Line by Dr Brooks

Best Fit Line by Dr Brooks
Loading the math board and drawing, please wait…
2013-12-31 22:05
In collections statistics
This example demonstrates how to draw the best fit line using GeoGebra. Key mathematical concepts include straight lines and least squares method. Using GeoGebra commands such as OrthogonalLine, Point, Intersect, etc., the best fit line can be constructed. Suitable for high school mathematics education and learning.

GeoGebra Commands & Parameters

  1. OrthogonalLine(A, xAxis) → a
  2. OrthogonalLine(B, xAxis) → b
  3. OrthogonalLine(C, xAxis) → c
  4. OrthogonalLine(D, xAxis) → d
  5. OrthogonalLine(E, xAxis) → e
  6. Point(yAxis) → Y
  7. Intersect(a, g) → A'
  8. Intersect(b, g) → B'
  9. Intersect(c, g) → C'
  10. Intersect(d, g) → D'
  11. Intersect(e, g) → E'
  12. If((distancesum > (-0.02)) ∧ (distancesum < 0.02), 0, distancesum) → distancesum'
  13. Segment(E, E') → e'
  14. Segment(D, D') → d'
  15. Segment(C, C') → c'
  16. Segment(B, B') → b'
  17. Segment(A, A') → a'
  18. Midpoint(a') → A''
  19. Midpoint(b') → B''
  20. Midpoint(c') → C''
  21. Midpoint(d') → D''
  22. Midpoint(e') → E''
  23. OrthogonalLine((6, 0), xAxis) → l
  24. Intersect(l, g) → W
  25. Segment((6, 0), W) → w'
  26. Segment(W, W') → w''
  27. OrthogonalLine((0, 6), yAxis) → m
  28. Intersect(m, g) → Z
  29. Segment((0, 6), Z) → z
  30. Segment(Z, Z') → z'
  31. Segment(O, (3 + distancesum' / 4, 5)) → f