Correlation Coefficient and Line of Best Fit by Terry Lee Lindenmuth

Correlation Coefficient and Line of Best Fit by Terry Lee Lindenmuth
Loading the math board and drawing, please wait…
2013-02-22 09:44
In collections AP Statistics
This example demonstrates scatter plots and the line of best fit by moving data points and scatter sliders. Key mathematical concepts include correlation coefficient and linear regression. Commands used include If, Random, FitPoly, PMCC, etc. Suitable for high school math education and learning.

GeoGebra Commands & Parameters

  1. If(scatter ≟ 0, 10.5, 1 / ((5 * scatter))) → recip
  2. Random(-5, 5) → b
  3. Random(-15, 15) → a
  4. Random(-15, 15) → f
  5. Random(-15, 15) → c
  6. Random(-15, 15) → d
  7. Random(-15, 15) → e
  8. Random(-15, 15) → h
  9. Random(-15, 15) → i
  10. Random(-15, 15) → j
  11. Random(-15, 15) → k
  12. Random(-15, 15) → l
  13. Random(-15, 15) → n
  14. Random(-15, 15) → o
  15. Random(-15, 15) → p
  16. Random(-15, 15) → q
  17. Random(-15, 15) → r
  18. Random(-15, 15) → s
  19. Random(-15, 15) → t
  20. Random(-15, 15) → u
  21. Random(-15, 15) → v
  22. Random(-15, 15) → w
  23. Random(0, 1) → sg
  24. If(sg ≟ 0, -1, 1) → plmn
  25. FitPoly(Z, 1) → ZZ
  26. PMCC(Z) → CORR
  27. LaTeX(CORR) → text1
  28. LaTeX(ZZ) → text4

AI Drawing Prompt Reference

Create a scatter plot with randomly generated data points and display the line of best fit. Use sliders to control the distribution of the scatter plot and calculate the correlation coefficient. The data points are randomly generated, the line of best fit is calculated through all data points, and the correlation coefficient is calculated based on the linear relationship of the data points and displayed on the plot.
The prompt above was compiled from the original drawing commands and is for reference only.