Correlation and Best Fit Line: Study Time vs. Test Scores

Correlation and Best Fit Line: Study Time vs. Test Scores
Loading the math board and drawing, please wait…
2012-06-02 00:14
This GeoGebra example demonstrates the correlation between the number of practice problems solved (study effort) and test performance, showing a positive linear relationship. Core mathematical concepts include Pearson correlation coefficient (PMCC), linear regression, scatter plots, and the line of best fit (FitLineY). To construct the visualization, the tool utilizes commands like FitLineY to model the linear trend and PMCC to quantify correlation strength, alongside Textfield, Polygon, Sequence, Segment, and RotateText to dynamically plot data points (such as A2 to B30) and annotations. It is ideal for high school and introductory college statistics courses to teach data correlation, regression analysis, and predictive modeling.

GeoGebra Commands & Parameters

  1. FitLineY(PointList1) → LineFit
  2. PMCC(PointList1) → CorCoeff
  3. Textfield(A2) → InA2
  4. Textfield(A3) → InA3
  5. Textfield(A4) → InA4
  6. Textfield(A5) → InA5
  7. Textfield(A6) → InA6
  8. Textfield(A7) → InA7
  9. Textfield(A8) → InA8
  10. Textfield(A9) → InA9
  11. Textfield(A10) → InA10
  12. Textfield(A11) → InA11
  13. Textfield(A12) → InA12
  14. Textfield(A13) → InA13
  15. Textfield(A14) → InA14
  16. Textfield(A15) → InA15
  17. Textfield(A16) → InA16
  18. Textfield(A17) → InA17
  19. Textfield(A18) → InA18
  20. Textfield(A19) → InA19
  21. Textfield(A20) → InA20
  22. Textfield(A21) → InA21
  23. Textfield(B2) → InB2
  24. Textfield(B3) → InB3
  25. Textfield(B4) → InB4
  26. Textfield(B5) → InB5
  27. Textfield(B6) → InB6
  28. Textfield(B7) → InB7
  29. Textfield(B8) → InB8
  30. Textfield(B9) → InB9
  31. Textfield(B10) → InB10
  32. Textfield(B11) → InB11
  33. Textfield(B12) → InB12
  34. Textfield(B13) → InB13
  35. Textfield(B14) → InB14
  36. Textfield(B15) → InB15
  37. Textfield(B16) → InB16
  38. Textfield(B17) → InB17
  39. Textfield(B18) → InB18
  40. Textfield(B19) → InB19
  41. Textfield(B20) → InB20
  42. Textfield(B21) → InB21
  43. Polygon((190, y(Corner[1])), Corner[2], Corner[3], (190, y(Corner[4]))) → poly1, a, b, c, d
  44. Textfield(A22) → InA22
  45. Textfield(A23) → InA23
  46. Textfield(A24) → InA24
  47. Textfield(A25) → InA25
  48. Textfield(A26) → InA26
  49. Textfield(B22) → InB22
  50. Textfield(B23) → InB23
  51. Textfield(B24) → InB24
  52. Textfield(B25) → InB25
  53. Textfield(B26) → InB26
  54. Textfield(A27) → InA27
  55. Textfield(A28) → InA28
  56. Textfield(A29) → InA29
  57. Textfield(A30) → InA30
  58. Textfield(B27) → InB27
  59. Textfield(B28) → InB28
  60. Textfield(B29) → InB29
  61. Textfield(B30) → InB30
  62. Sequence(Segment[(195, (-10) + (7 * i)), (331, (-10) + (7 * i))], i, 0, 15) → Linesh1
  63. Sequence(Segment[(195 + (34 * i), (-10)), (195 + (34 * i), 109)], i, 0, 4) → Linesv1
  64. Segment((195, 109), (331, 109)) → top1
  65. RotateText("Test score", 90*°) → SideLegend