Temperature Diagram: Constructing a Statistical Chart from Random Data

Temperature Diagram: Constructing a Statistical Chart from Random Data
Loading the math board and drawing, please wait…
2022-05-10 16:06
This example demonstrates how to build a temperature‑variation statistical chart in GeoGebra, showing randomly generated temperature data points and the connecting polygonal envelope. Core mathematical concepts include statistical data visualization, random number generation, geometric representation of vectors and segments, and polygon construction. Construction highlights: Segment draws line segments, Point marks data points, Shuffle and Element work with the randomNos series to produce random temperature values, Vector indicates direction of change, and Polygon links points to form the temperature curve envelope. Suitable for high‑school probability and statistics courses, introductory university data‑visualization lessons, and as a GeoGebra construction teaching resource.

GeoGebra Commands & Parameters

  1. Segment((6, 0), (6, 23)) → gl7
  2. Point(gl7) → S
  3. Segment((5, 0), (5, 23)) → gl6
  4. Point(gl6) → R
  5. Segment((4, 0), (4, 23)) → gl5
  6. Point(gl5) → Q
  7. Segment((3, 0), (3, 23)) → gl4
  8. Point(gl4) → P
  9. Segment((2, 0), (2, 23)) → gl3
  10. Point(gl3) → O
  11. Segment((1, 0), (1, 23)) → gl2
  12. Point(gl2) → N
  13. Segment((0, 0), (0, 23)) → gl1
  14. Point(gl1) → M
  15. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos1, {16, 19, 20, 14, 19, 20, 9, 9, 16, 20, 19, 11, 15, 9, 14, 10, 14, 8, 17, 8, 18, 14, 13, 14, 12, 12, 20, 10, 13, 10, 12, 14, 9, 16, 11, 8, 18, 10, 13, 9, 19, 18, 8, 11, 10, 18, 12, 12, 19, 19, 14, 12, 17, 20, 19, 11, 10, 15, 15, 14, 9, 16, 18, 17, 14, 10, 19, 15, 11, 11, 20, 8, 14, 13, 8, 9, 17, 13, 17, 12, 14, 17, 9, 12, 14, 18, 16, 17, 16, 19, 10, 15, 8, 19, 12, 12, 14, 15, 17, 8}
  16. Element(randomNos1, Mod[count, 100] + 1) → a
  17. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos2, {12, 14, 12, 20, 13, 10, 18, 15, 14, 9, 12, 20, 18, 20, 15, 15, 11, 8, 12, 19, 19, 19, 13, 13, 15, 8, 15, 10, 20, 17, 8, 11, 18, 11, 18, 12, 17, 11, 13, 15, 11, 17, 14, 20, 12, 18, 14, 9, 20, 8, 15, 18, 11, 12, 16, 11, 18, 15, 12, 18, 10, 18, 12, 13, 14, 9, 8, 9, 12, 15, 14, 15, 10, 16, 19, 16, 14, 17, 9, 10, 15, 20, 8, 13, 8, 17, 16, 15, 10, 16, 10, 11, 16, 9, 11, 13, 12, 18, 15, 10}
  18. Element(randomNos2, Mod[count, 100] + 1) → b
  19. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos3, {16, 13, 15, 20, 18, 12, 16, 8, 16, 19, 18, 10, 19, 18, 10, 11, 8, 12, 15, 19, 19, 10, 19, 10, 8, 13, 13, 11, 14, 18, 17, 9, 18, 9, 10, 17, 14, 10, 17, 19, 17, 20, 16, 15, 8, 19, 14, 18, 9, 11, 14, 20, 19, 10, 13, 14, 17, 16, 9, 17, 15, 14, 8, 18, 18, 12, 19, 15, 12, 13, 8, 18, 9, 20, 10, 17, 18, 19, 18, 8, 10, 14, 20, 8, 11, 16, 10, 18, 14, 12, 18, 14, 12, 11, 12, 17, 13, 11, 15, 15}
  20. Element(randomNos3, Mod[count, 100] + 1) → c
  21. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos4, {17, 10, 20, 12, 14, 8, 20, 19, 17, 10, 14, 12, 17, 12, 8, 14, 20, 18, 10, 15, 16, 9, 18, 9, 12, 12, 17, 11, 20, 20, 17, 12, 14, 13, 19, 17, 15, 14, 9, 12, 17, 18, 11, 20, 11, 12, 18, 11, 9, 13, 8, 16, 20, 13, 10, 14, 10, 15, 17, 17, 11, 11, 14, 13, 15, 9, 15, 12, 17, 13, 17, 17, 19, 16, 17, 15, 17, 9, 17, 14, 9, 10, 20, 8, 19, 20, 14, 12, 19, 20, 13, 17, 9, 14, 12, 11, 17, 8, 18, 14}
  22. Element(randomNos4, Mod[count, 100] + 1) → d
  23. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos5, {15, 10, 17, 12, 17, 9, 13, 14, 17, 19, 17, 19, 12, 18, 10, 20, 16, 12, 12, 17, 15, 10, 10, 19, 10, 15, 15, 11, 16, 13, 20, 15, 11, 15, 15, 10, 13, 20, 8, 14, 10, 13, 16, 8, 10, 9, 9, 10, 19, 10, 12, 15, 19, 14, 10, 12, 17, 10, 14, 12, 18, 16, 15, 16, 19, 8, 19, 18, 14, 12, 19, 20, 15, 14, 19, 19, 14, 16, 13, 9, 15, 17, 13, 8, 14, 12, 13, 15, 8, 13, 15, 13, 20, 14, 16, 13, 14, 11, 20, 17}
  24. Element(randomNos5, Mod[count, 100] + 1) → e
  25. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos6, {16, 12, 8, 13, 13, 20, 10, 19, 14, 20, 10, 19, 20, 12, 13, 19, 9, 17, 13, 16, 19, 8, 8, 18, 13, 13, 10, 15, 11, 18, 14, 13, 17, 11, 13, 18, 16, 20, 18, 9, 10, 17, 19, 17, 11, 9, 11, 15, 12, 14, 8, 11, 17, 15, 14, 12, 8, 19, 19, 16, 16, 10, 10, 17, 19, 13, 14, 20, 13, 8, 14, 15, 17, 9, 16, 14, 18, 10, 19, 20, 17, 20, 10, 18, 9, 15, 17, 11, 8, 12, 12, 10, 16, 19, 9, 9, 14, 12, 18, 13}
  26. Element(randomNos6, Mod[count, 100] + 1) → f
  27. Shuffle(Sequence[Random[8, 20], i, 1, 100]) → randomNos7, {8, 8, 16, 17, 19, 15, 15, 8, 15, 18, 10, 14, 9, 19, 19, 18, 19, 8, 17, 11, 14, 15, 17, 20, 10, 8, 18, 16, 19, 10, 18, 19, 17, 12, 11, 9, 18, 14, 20, 16, 14, 10, 8, 20, 18, 12, 16, 11, 10, 14, 16, 13, 15, 14, 18, 11, 12, 12, 12, 19, 10, 15, 18, 18, 12, 19, 9, 19, 20, 17, 8, 9, 11, 20, 12, 12, 8, 20, 11, 9, 16, 19, 13, 11, 11, 13, 10, 14, 9, 9, 16, 10, 12, 15, 16, 17, 18, 13, 15, 16}
  28. Element(randomNos7, Mod[count, 100] + 1) → g
  29. Segment(A, B) → h
  30. Segment(B, C) → i
  31. Segment(C, D) → j
  32. Segment(D, E) → k
  33. Segment(E, F) → l
  34. Segment(F, G) → m
  35. Segment(M, N) → p
  36. Segment(N, O) → q
  37. Segment(O, P) → r
  38. Segment(P, Q) → s
  39. Segment(R, S) → f_1
  40. Segment(Q, R) → t
  41. Segment((0, 0), (0, 22)) → axis_y
  42. Point(Circle[(0, 0), 12]) → L
  43. Segment((0, 0), L) → axis_x
  44. Vector((0, 21), (0, 23)) → u
  45. Polygon(T, U, V, W) → q1, t_1, u_1, v, w
  46. Polygon(Z, A_1, B_1, C_1) → q2, z_1, a_1, b_1, c_1
  47. Segment(D_1, E_1) → n
  48. Segment(F_1, G_1) → g_1
  49. Segment(H_1, I_1) → h_1
  50. Segment(J_1, K_1) → i_1
  51. Segment((7, 0), (7, 23)) → gl8

AI Drawing Prompt Reference

Draw a random temperature statistical chart. First create a vertical axis with an arrow at the top and a reference segment from the origin, then draw several vertical guide segments from the bottom to the top at positions 0 through 6 and place points on them. Generate several random temperature values between 8 and 20, select current values from the sequences, and use those values to define temperature data points. Connect adjacent data points with line segments to form a broken temperature curve, and use polygons to enclose the related points as a temperature envelope. Add a few auxiliary segments so the diagram shows random temperature variation and statistical visualization.
The prompt above was compiled from the original drawing commands and is for reference only.