Random Dot Plot

Random Dot Plot
Loading the math board and drawing, please wait…
2014-03-31 04:59
This example demonstrates the generation of a random dot plot, showing data distribution. Key mathematical concepts include data distribution and median. Using GeoGebra commands such as Point, DotPlot, MeanX, etc., a random dot plot can be constructed. Suitable for statistics education.

GeoGebra Commands & Parameters

  1. Point(xAxis) → min
  2. Point(xAxis) → max
  3. Sort(Sequence[Random[Mn, Mx], i, 1, n]) → listrandom
  4. DotPlot(listrandom) → listrandomdot
  5. MeanX(listrandomdot) → a
  6. Mod(n, 2) → parity
  7. If(parity ≟ 1, Element[listrandomdot, ceil(n / 2)], (Element[listrandomdot, n / 2] + Element[listrandomdot, n / 2 + 1]) / 2) → B
  8. Sort(Sequence[f(RandomNormal[cent, stdv]), i, 1, n]) → listnormal
  9. DotPlot(listnormal) → listnormaldot
  10. If(parity ≟ 1, Element[listnormaldot, ceil(n / 2)], (Element[listnormaldot, n / 2] + Element[listnormaldot, n / 2 + 1]) / 2) → D
  11. MeanX(listnormaldot) → c
  12. SD(listnormal) → StDv
  13. Segment(C - (StDv, 0), C + (StDv, 0)) → g
  14. If(d, Max[8, Max[y(listrandomdot)]], Max[8, Max[y(listnormaldot)]]) → maxY
  15. Min(-1, Mn - 2) → minX
  16. Max(10, Mx + 2) → maxX
  17. Textfield(cent) → inputBox1
  18. Textfield(stdv) → inputBox2
  19. Median(listnormal) → mednorm
  20. Median(listrandom) → medran
  21. Sequence(abs(Element[listnormal, i] - mednorm), i, 1, n) → resnorm
  22. Sequence(abs(Element[listrandom, i] - medran), i, 1, n) → resran
  23. Median(resnorm) → MADnorm
  24. Median(resran) → MADran

AI Drawing Prompt Reference

Draw a random dot plot to show data distribution, including two sets of data: one is randomly generated data points, and the other is normally distributed data points. First, plot the dot plots for both sets of data, then calculate and mark the mean and median for each set. Finally, draw line segments representing the standard deviation of the mean and label the mean, median, and standard deviation for both sets.
The prompt above was compiled from the original drawing commands and is for reference only.