Creating Box Plots

Creating Box Plots
Loading the math board and drawing, please wait…
2022-05-05 03:08
This example practices creating box plots with random data. A box plot is a statistical chart that shows the distribution of a dataset. The core mathematical concepts involved include the median, quartiles, and data sorting. Using GeoGebra commands such as Segment, Point, Random, Sequence, and Sort, the distribution characteristics of the data can be intuitively demonstrated. Suitable for students at the junior high school level and above learning statistics.

GeoGebra Commands & Parameters

  1. Segment((0, 3), (30, 3)) → p_1
  2. Point(p_1) → T
  3. Point(p_1) → S
  4. Point(p_1) → R
  5. Point(p_1) → Q
  6. Point(p_1) → P
  7. Random(6, 15) → valuesused, 7
  8. Sequence(RandomElement[numbers], k, 1, valuesused) → values, {20, 9, 29, 26, 11, 28, 7}
  9. Sort(values) → valuessorted
  10. If(sort, TableText[valuessorted], TableText[values]) → valuesdisplayed
  11. Median(values) → median
  12. Q1(values) → Q1
  13. Q3(values) → Q3
  14. Segment(D, E) → g
  15. Segment(F, G) → h
  16. Segment(G, K) → i
  17. Segment(K, J) → j
  18. Segment(J, F) → k
  19. Segment(H, I) → l
  20. Segment(L, M) → m
  21. Polygon(F, J, K, G) → q1, f_1, j_1, k_1, g_1
  22. Segment(O, N) → n
  23. Segment(B, A) → q
  24. Segment(P, Q) → r
  25. Segment((x(Q), 4), (x(Q), 2)) → t
  26. Segment((x(Q), 4), (x(S), 4)) → c
  27. Segment((x(Q), 2), (x(S), 2)) → d
  28. Segment((x(R), 4), (x(R), 2)) → a
  29. Segment((x(S), 4), (x(S), 2)) → b
  30. Segment(S, T) → s
  31. Polygon((x(Q), 4), (x(S), 4), (x(S), 2), (x(Q), 2)) → q2, e, h_1, i_1, l_1
  32. Segment(P, U) → f
  33. Segment(Q, V) → r_1
  34. Segment(R, W) → s_1
  35. Segment(S, Z) → t_1
  36. Segment(T, A_1) → a_1
  37. Segment((x(P), 3.5), (x(P), 2.5)) → m_1
  38. Segment((x(T), 3.5), (x(T), 2.5)) → n_1

AI Drawing Prompt Reference

Draw a box plot to show data distribution, including a horizontal baseline with seven randomly distributed points above it, colored differently for original and sorted data. Construct the box plot on the baseline, marking the median, first quartile, and third quartile, and connect these points with lines to form the box and whiskers.
The prompt above was compiled from the original drawing commands and is for reference only.