Linear Regression Error Visualization

Linear Regression Error Visualization
Loading the math board and drawing, please wait…
2017-06-01 17:23
This example demonstrates the calculation and visualization of errors in linear regression. It involves core mathematical concepts such as linear regression, derivatives, orthocenter, square, tangent line, and Poisson distribution. Key GeoGebra commands used include Sequence, FitPoly, PMCC, and Segment, with objects like points, recalc, datarange, min, m, b, f, n, max, err, list1, g, yvals, xvals, r, mcalc, h, text1-6, A-B, i, C-D. It is suitable for high school students and data analysis enthusiasts.

GeoGebra Commands & Parameters

  1. Sequence((k, (m * k) + b + RandomNormal[0, err]), k, min, max, (max - min) / n) → list1
  2. FitPoly(list1, 1) → g
  3. PMCC(list1) → r
  4. Segment((7, 3), (13, 3)) → h
  5. Segment((7, 1), (13, 1)) → i