Correlation and Regression Line

Correlation and Regression Line
Loading the math board and drawing, please wait…
2014-11-24 18:17
This example illustrates the correlation coefficient and regression line for a randomly generated data set. It involves core mathematical concepts like correlation analysis, regression modeling, and data statistics. Constructed using GeoGebra commands such as Random, Sequence, FitLineY, and PMCC. Suitable for high school mathematics education to understand data distribution and linear regression applications.

GeoGebra Commands & Parameters

  1. Random(1, 2) → d
  2. Random(1, 2) → a
  3. Random(2, 8) → c
  4. Random(1, 2) → b
  5. Sequence(Random[0, 100], i, 1, 10) → Randlist
  6. Min(Randlist) → Least
  7. Max(Randlist) → Most
  8. Median(Randlist) → Med
  9. Q1(Randlist) → Q_1
  10. Q3(Randlist) → Q_3
  11. Sort(Randlist) → Sorted
  12. Segment((Least, 2), (Least, 4)) → minseg
  13. Segment((Least, 3), (Q_1, 3)) → Tailseg
  14. Segment((Q_1, 2), (Q_1, 4)) → q1seq
  15. Segment((Q_3, 2), (Q_3, 4)) → q3seq
  16. Segment((Q_1, 2), (Q_3, 2)) → midsegbottom
  17. Segment((Q_1, 4), (Q_3, 4)) → midsegtop
  18. Segment((Most, 2), (Most, 4)) → maxseg
  19. Segment((Most, 3), (Q_3, 3)) → headseg
  20. Segment((Med, 2), (Med, 4)) → medseg
  21. FrequencyTable(classlist, Randlist) → freq
  22. Frequency(true, classlist, Sorted) → CFreq
  23. PointList(Sequence[{Element[classlist, i], Element[CFreq, i]}, i, 1, 20]) → Ogivepoints
  24. Sequence({(i * a) + Random[0, c], (25 * (d - 1)) + ((-1)^(d + 1) * ((i * b) + Random[0, c]))}, i, 1, 10) → BVDSet
  25. PointList(BVDSet) → BVDPoints
  26. FitLineY(BVDPoints) → bfl
  27. Function(((-(x(bfl) / y(bfl))) * x) - z(bfl) / y(bfl), 0, 100) → bflfn
  28. PMCC(BVDPoints) → cc
  29. Corner(1, 1) → Cnr1
  30. Corner(1, 2) → Cnr2
  31. Corner(1, 3) → Cnr3
  32. Corner(1, 4) → Cnr4
  33. Polygon(CN1, CN2, CN3, CN4) → Panel, cn1, cn2, cn3, cn4