Average Deviation

Average Deviation
Loading the math board and drawing, please wait…
2016-08-27 03:00
This example demonstrates the concept of average deviation. Users can change the average deviation by dragging data points. Standard deviation is also shown. Using GeoGebra commands such as Point, RotateText, Intersect, Polygon, Length, Sequence, Segment, SD, users can understand important statistical concepts. Suitable for high school mathematics education and learning.

GeoGebra Commands & Parameters

  1. Point(x = 1) → D_1
  2. RotateText(text2, 90°) → ytitle
  3. Point(xAxis) → A
  4. Intersect(xAxis, yAxis) → B
  5. Point(yAxis) → C
  6. Point(x = 2) → D_2
  7. Point(x = 3) → D_3
  8. Point(x = 4) → D_4
  9. Point(x = 5) → D_5
  10. Point(x = 6) → D_6
  11. Point(x = 7) → D_7
  12. Point(x = 8) → D_8
  13. Polygon(A, B, C, D) → poly1, a, b, c, d
  14. Length(data) → len
  15. Sequence(y(data(i)), i, 1, len) → yvals
  16. Sequence(x(data(i)), i, 1, len) → xvals
  17. Sequence(Segment[data(i), (xvals(i), avmeas)], i, 1, len) → avdevlines
  18. Sequence(abs(yvals(i) - avmeas), i, 1, len) → avdevs
  19. Segment((0, avmeas), (100, avmeas)) → avline
  20. Polygon(E, F, G, H) → poly2, e, f, g, h
  21. SD(yvals) → stddev
  22. Segment((len + 3, avmeas + 0.1), (len + 3, avmeas + 0.1 + avdeviation)) → avdevline
  23. Segment((len + 3.3, avmeas + 0.1), (len + 3.3, avmeas + 0.1 + stddev)) → sdevline