Linear Regression t-test for Slope

Linear Regression t-test for Slope
Loading the math board and drawing, please wait…
2017-03-15 06:06
This example demonstrates the graphical phenomenon of the Linear Regression t-test for the slope. It involves core mathematical concepts such as linear regression, hypothesis testing, and slope calculation. The construction utilizes GeoGebra commands and objects like Shuffle, Sequence, FitLineY, TableText, Slope, Segment, DotPlot, and If. Suitable for high school and above mathematics learners and researchers.

GeoGebra Commands & Parameters

  1. Shuffle(ycoor) → list3, {5, 10, 7, 6, 9, 1, 2, 8, 3, 2}
  2. Sequence((Element[xcoor, i], Element[list3, i]), i, 1, Length[xcoor]) → list1
  3. FitLineY(list1) → f
  4. Sequence((Element[xcoor, i], Element[ycoor, i]), i, 1, Length[xcoor]) → list2
  5. FitLineY(list2) → g
  6. TableText({Append["x", xcoor], Append["y", ycoor]}, "l_|h") → text1
  7. TableText({Append["x", xcoor], Append["y", list3]}, "l_|h") → text2
  8. Slope(f) → b_{ 1}
  9. Slope(g) → b_1
  10. FitLineY(list1) → h
  11. Segment((b_1, 0), (b_1, 1)) → i
  12. DotPlot(slopedata, true, 1) → list4
  13. If(Length[slopedata] < 5, slopedata, Take[slopedata, Length[slopedata] - 4, Length[slopedata]]) → list5