Residuals to a Regression Line

Residuals to a Regression Line
Loading the math board and drawing, please wait…
2018-01-09 06:13
This example demonstrates residuals to a regression line. By analyzing the distance between data points and the regression line, it helps to better understand regression analysis concepts. Key mathematical concepts include regression analysis, residuals, and the Pearson's correlation coefficient. GeoGebra commands used include Element, Length, Sequence, Min, Max, If, PMCC, etc. Suitable for high school mathematics education and learning.

GeoGebra Commands & Parameters

  1. Element(DtYSq, Op1) → DtY0
  2. Element(DtPlSq, Op1) → DtPl
  3. Element(DtXSq, Op1) → DtX0
  4. Length(DtX0) → SizeX
  5. Sequence(Mod[3 + (17 * k), 37] + 30, k, 1, 32) → OpSq
  6. Element(OpSq, seed) → OpNm2
  7. Element(DtY0, Op2) → YVal
  8. Element(DtX0, Op2) → XVal
  9. Min(DtY0) → YMin
  10. Max(DtY0) → YMax
  11. Min(DtX0) → XMn
  12. Max(DtX0) → XMx
  13. If((5 * XScLB) ≤ XScUB, (5 * XScLB), If[(2 * XScLB) ≤ XScUB, (2 * XScLB), XScLB]) → XAxSc
  14. If((5 * YScLB) ≤ YScUB, (5 * YScLB), If[(2 * YScLB) ≤ YScUB, (2 * YScLB), YScLB]) → YAxSc
  15. PMCC(DtX0, DtY0) → R
  16. If(RgLnInt < 0, " - ", " + ") → Sgn1
  17. Element(CnfSq, Op3) → Conf
  18. If(PVal < 0.0001, "< 0.0001", ("= " * PVal)) → PVlTx
  19. Sequence(AdpX(Element[DtX0, k]), k, 1, SizeX) → PltX
  20. Sequence(AdpY(Element[DtY0, k]), k, 1, SizeX) → PltY
  21. Length(DtY0) → SizeY
  22. If(Resid < 0, " - ", " + ") → Sgn2