Guess the Correlation!

Guess the Correlation!
Loading the math board and drawing, please wait…
2013-05-20 21:00
This example demonstrates how to guess the correlation of a random scatter plot. It involves core math concepts like Pearson's correlation coefficient (PMCC), linear function fitting, and coordinate geometry. GeoGebra commands used include Random for point generation, PMCC for correlation calculation, FitLineY for line fitting, and Textfield/If for displaying results. Suitable for middle school students and above for understanding data distribution and correlation analysis.

GeoGebra Commands & Parameters

  1. Random(-10, 10) → d
  2. Random(-10, 10) → b
  3. Random(-10, 10) → a
  4. Random(-10, 10) → c
  5. Random(Min[c, d], Max[c, d]) → A1
  6. Random(Min[c, d], Max[c, d]) → A2
  7. Random(Min[c, d], Max[c, d]) → A3
  8. Random(Min[c, d], Max[c, d]) → A4
  9. Random(Min[c, d], Max[c, d]) → A5
  10. Random(Min[c, d], Max[c, d]) → A6
  11. Random(Min[c, d], Max[c, d]) → A7
  12. Random(Min[c, d], Max[c, d]) → A8
  13. Random(Min[c, d], Max[c, d]) → A9
  14. Random(Min[c, d], Max[c, d]) → A10
  15. Random(Min[c, d], Max[c, d]) → A11
  16. Random(Min[c, d], Max[c, d]) → A12
  17. Random(Min[c, d], Max[c, d]) → A13
  18. Random(Min[c, d], Max[c, d]) → A14
  19. Random(Min[c, d], Max[c, d]) → A15
  20. Random(Min[c, d], Max[c, d]) → A16
  21. Random(Min[c, d], Max[c, d]) → A17
  22. Random(Min[c, d], Max[c, d]) → A18
  23. Random(Min[c, d], Max[c, d]) → A19
  24. Random(Min[c, d], Max[c, d]) → A20
  25. PMCC(list1) → r
  26. FitLineY(list1) → e
  27. Textfield(rcheck) → inputBox1
  28. If(abs(r - rcheck) < 0.25, "You are pretty close", "You'll do better next time") → text1

AI Drawing Prompt Reference

Create a random scatter plot and calculate the Pearson correlation coefficient for the points. Then fit a best-fit line. Display the correlation coefficient and provide feedback based on how close it is to the user's input. Start by generating random points, calculate the correlation and fit the line, then show the results and feedback.
The prompt above was compiled from the original drawing commands and is for reference only.