Line of Best Fit Guessing Game

Line of Best Fit Guessing Game
Loading the math board and drawing, please wait…
2012-06-11 22:44
In collections Games
Given at most 7 points, try to find the line of best fit. This example involves the concept of linear regression in statistics, using commands like FitLineY to construct points, lines, and intersections. Suitable for middle school and above students for geometric construction and data analysis practice.

GeoGebra Commands & Parameters

  1. Textfield(a) → inputBox1
  2. Point(yAxis) → A
  3. Line(A, B) → b
  4. Textfield(C) → inputBox2
  5. Textfield(D) → inputBox3
  6. Textfield(E) → inputBox4
  7. Textfield(F) → inputBox5
  8. Textfield(G) → inputBox6
  9. Textfield(H) → inputBox7
  10. Textfield(I) → inputBox8
  11. Line(C, yAxis) → c
  12. Line(D, c) → d
  13. Line(E, d) → e
  14. Line(F, c) → f
  15. Line(G, c) → g
  16. Line(H, d) → h
  17. Line(I, e) → i
  18. Intersect(c, b) → J
  19. Intersect(d, b) → K
  20. Intersect(e, b) → L
  21. Intersect(f, b) → M
  22. Intersect(g, b) → N
  23. Intersect(h, b) → O
  24. Intersect(i, b) → P
  25. Segment(C, J) → j
  26. Segment(D, K) → k
  27. Segment(E, L) → l
  28. Segment(F, M) → m
  29. Segment(G, N) → n
  30. Segment(H, O) → p
  31. Segment(I, P) → q
  32. FitLineY({C, D, E, F}) → R
  33. FitLineY({C, D, E, F, G}) → S
  34. FitLineY({C, D, E, F, G, H}) → T
  35. FitLineY({C, D, E, F, G, H, I}) → U