Exploring Regression Models

Exploring Regression Models
Loading the math board and drawing, please wait…
2017-05-25 16:05
This example uses GeoGebra to help students explore regression models, involving concepts like linear regression and slope calculation. Using commands like Line, Sequence, and FitLineY, students can visually understand the construction of regression models. Suitable for high school math education and learning.

GeoGebra Commands & Parameters

  1. Line(K, L) → k
  2. Sequence((If[Element[matrix1, 3, i] ≟ 0, Element[matrix1, 1, i]], If[Element[matrix1, 3, i] ≟ 0, Element[matrix1, 2, i]]), i, 1, 9) → list1
  3. Sequence((If[Element[matrix1, 3, i] ≟ 1, Element[matrix1, 1, i]], If[Element[matrix1, 3, i] ≟ 1, Element[matrix1, 2, i]]), i, 1, 9) → list2
  4. RemoveUndefined(list1) → list3
  5. RemoveUndefined(list2) → list4
  6. FitLineY(list3) → l
  7. Slope(k) → p
  8. Sequence((Element[x(list3), i], (p * Element[x(list3), i]) + o), i, 1, Length[list3]) → list5
  9. Sequence(Segment[Element[list3, i], Element[list5, i]], i, 1, Length[list3]) → list6
  10. Sum(list6) → r
  11. Sequence(y(Element[list3, i]) - y(Element[list5, i]), i, 1, Length[list2]) → list8
  12. Sequence((x(Element[list5, i]) - Element[list8, i], y(Element[list5, i])), i, 1, Length[list5]) → list9
  13. Sequence((x(Element[list9, i]), y(Element[list3, i])), i, 1, Length[list3]) → list10
  14. Sequence(Polygon[Element[list3, i], Element[list5, i], Element[list9, i], Element[list10, i]], i, 1, Length[list3]) → list11