Correlation as the Mean of Rectangle Areas

Correlation as the Mean of Rectangle Areas
Loading the math board and drawing, please wait…
2015-07-17 04:44
This GeoGebra example demonstrates a geometric interpretation of the Pearson correlation coefficient (PMCC) as the mean area of rectangles constructed from triangle vertices and the centroid. Given a triangle with vertices A, B, C and its centroid G, rectangles are formed using each vertex and the centroid as opposite vertices. The mean of these rectangle areas is shown to relate to the correlation coefficient of the data points. The construction involves core concepts from statistics (correlation), geometry (centroid, rectangles, areas), and their interplay. Key GeoGebra commands include Polygon, OrthogonalLine, Intersect, PMCC, and LaTeX for displaying formulas. Objects include the triangle, centroid, perpendicular lines, intersection points, rectangles, and auxiliary elements. This resource is suitable for high school or undergraduate students to visualize the geometric meaning of correlation, and for teachers to enrich lessons connecting statistics and geometry.

GeoGebra Commands & Parameters

  1. Polygon(A, B, C) → poly1, c, a, b
  2. OrthogonalLine(D, yAxis) → d
  3. OrthogonalLine(D, xAxis) → e
  4. OrthogonalLine(E, xAxis) → f
  5. OrthogonalLine(E, yAxis) → g
  6. OrthogonalLine(F, yAxis) → h
  7. OrthogonalLine(F, xAxis) → i
  8. Intersect(yAxis, d) → I
  9. Intersect(xAxis, e) → J
  10. Intersect(f, xAxis) → K
  11. Intersect(yAxis, h) → L
  12. Intersect(yAxis, g) → M
  13. Intersect(i, xAxis) → N
  14. Polygon(H, I, D, J) → poly2, h_1, i_1, d_1, j
  15. Polygon(H, K, E, M) → poly3, h_2, k, e_1, m
  16. Polygon(H, L, F, N) → poly4, h_3, l, f_1, n
  17. PMCC({A, B, C}) → r
  18. LaTeX(r, true, true) → text1
  19. Polygon(D, F, E) → poly5, e_2, d_2, f_2
  20. OrthogonalLine(G, xAxis) → p
  21. OrthogonalLine(G, yAxis) → q
  22. OrthogonalLine(A, q) → s
  23. OrthogonalLine(A, p) → t
  24. OrthogonalLine(C, q) → a_1
  25. OrthogonalLine(C, p) → b_1
  26. OrthogonalLine(B, q) → c_1
  27. OrthogonalLine(B, p) → g_1
  28. Intersect(p, t) → O
  29. Intersect(q, c_1) → P
  30. Intersect(q, s) → Q
  31. Intersect(p, g_1) → R
  32. Intersect(p, b_1) → S
  33. Intersect(q, a_1) → T
  34. Polygon(Q, A, O, G) → poly6, q_1, a_2, o_1, g_2
  35. Polygon(G, P, B, R) → poly7, g_3, p_1, b_2, r_1
  36. Polygon(G, S, C, T) → poly8, g_4, s_1, c_2, t_1

AI Drawing Prompt Reference

Draw a triangle and mark its centroid. Construct rectangles using each vertex and the centroid as opposite corners. Draw perpendicular lines from the centroid and each vertex to the x and y axes, creating intersection points that form additional rectangles. Calculate and display the mean area of these rectangles, which should relate to the Pearson correlation coefficient calculated from the triangle's vertices. The final image should include the original triangle, the centroid, perpendicular lines, intersection points, multiple rectangles, and the formula for the correlation coefficient.
The prompt above was compiled from the original drawing commands and is for reference only.