Correlation and Linear Fit: Vocabulary vs. Reading Frequency
Loading the math board and drawing, please wait…
This GeoGebra example demonstrates the statistical correlation and linear fitting between a student's vocabulary size and reading frequency using a scatter plot and a line of best fit. The core mathematical concepts include the Pearson product-moment correlation coefficient (PMCC), linear regression (FitLineY), and scatter plot data distribution. Constructed using key GeoGebra commands such as `FitLineY` and `PMCC` for statistical metrics, `Sequence` and `Segment` for data point generation and connections, and `TextField`, `Polygon`, `If`, and `RotateText` for dynamic labels and geometric overlays on objects A1 through A21 and B1 through B20. This example is suitable for high school or introductory college statistics and algebra courses to teach data correlation and linear regression analysis.
GeoGebra Commands & Parameters
FitLineY(PointList1) → LineFitPMCC(PointList1) → CorCoeffTextfield(A2) → InA2Textfield(A3) → InA3Textfield(A4) → InA4Textfield(A5) → InA5Textfield(A6) → InA6Textfield(A7) → InA7Textfield(A8) → InA8Textfield(A9) → InA9Textfield(A10) → InA10Textfield(A11) → InA11Textfield(A12) → InA12Textfield(A13) → InA13Textfield(A14) → InA14Textfield(A15) → InA15Textfield(A16) → InA16Textfield(A17) → InA17Textfield(A18) → InA18Textfield(A19) → InA19Textfield(A20) → InA20Textfield(A21) → InA21Textfield(B2) → InB2Textfield(B3) → InB3Textfield(B4) → InB4Textfield(B5) → InB5Textfield(B6) → InB6Textfield(B7) → InB7Textfield(B8) → InB8Textfield(B9) → InB9Textfield(B10) → InB10Textfield(B11) → InB11Textfield(B12) → InB12Textfield(B13) → InB13Textfield(B14) → InB14Textfield(B15) → InB15Textfield(B16) → InB16Textfield(B17) → InB17Textfield(B18) → InB18Textfield(B19) → InB19Textfield(B20) → InB20Textfield(B21) → InB21Sequence(Segment[(22, 0 + (7 * i)), (30, 0 + (7 * i))], i, 0, 10) → Linesh1Sequence(Segment[(32, 0 + (7 * i)), (40, 0 + (7 * i))], i, 0, 10) → Linesh2Sequence(Segment[(22 + (4 * i), 0), (22 + (4 * i), 84)], i, 0, 2) → Linesv1Sequence(Segment[(32 + (4 * i), 0), (32 + (4 * i), 84)], i, 0, 2) → Linesv2Segment((22, 84), (30, 84)) → top1Segment((32, 84), (40, 84)) → top2If(LineVisible, "Hide Best Fit Line", "Show Best Fit Line") → LineButtonPolygon((21, y(Corner[1])), Corner[2], Corner[3], (21, y(Corner[4]))) → poly1, a, b, c, dRotateText("Books read", 0) → BottomLegendIf(CorVisible, "Hide Correlation Coefficient", "Show Correlation Coefficient") → CorButtonRotateText("Test score", 90*°) → SideLegend