Guess the Correlation!
Loading the math board and drawing, please wait…
In collections
Statistics Demonstrations
Statistics Demonstrations
Statistics Demonstrations
Statistics Demonstrations
Statistics Demonstrations
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
Random(-10, 10) → dRandom(-10, 10) → bRandom(-10, 10) → aRandom(-10, 10) → cRandom(Min[c, d], Max[c, d]) → A1Random(Min[c, d], Max[c, d]) → A2Random(Min[c, d], Max[c, d]) → A3Random(Min[c, d], Max[c, d]) → A4Random(Min[c, d], Max[c, d]) → A5Random(Min[c, d], Max[c, d]) → A6Random(Min[c, d], Max[c, d]) → A7Random(Min[c, d], Max[c, d]) → A8Random(Min[c, d], Max[c, d]) → A9Random(Min[c, d], Max[c, d]) → A10Random(Min[c, d], Max[c, d]) → A11Random(Min[c, d], Max[c, d]) → A12Random(Min[c, d], Max[c, d]) → A13Random(Min[c, d], Max[c, d]) → A14Random(Min[c, d], Max[c, d]) → A15Random(Min[c, d], Max[c, d]) → A16Random(Min[c, d], Max[c, d]) → A17Random(Min[c, d], Max[c, d]) → A18Random(Min[c, d], Max[c, d]) → A19Random(Min[c, d], Max[c, d]) → A20PMCC(list1) → rFitLineY(list1) → eTextfield(rcheck) → inputBox1If(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.