Rolling Dice and Flipping Coins: Frequency Bar Charts and Random Outcomes

Rolling Dice and Flipping Coins: Frequency Bar Charts and Random Outcomes
Loading the math board and drawing, please wait…
2022-06-27 13:52
This GeoGebra activity demonstrates how random experiments such as rolling a die six times and flipping a coin many times can be represented with bar charts, and why small samples may produce different bar heights while repeated trials make frequencies more stable. It focuses on frequency, relative frequency, bar diagrams, data interpretation, and basic probability ideas. The construction uses Textfield for prompts and answer boxes, Polygon, Segment, Point, OrthogonalLine, Intersect, and Translate to build chart elements and visual feedback, while Shuffle, Sequence, Append, and Remove support random data handling and updates. SpeechBubbleRight, validation objects, hints, and answer/solution text make it suitable for grades 5–6 or early secondary statistics and probability lessons, classroom discussion, and formative assessment.

GeoGebra Commands & Parameters

  1. Textfield(aInput) → InputBox1
  2. Textfield(bInput) → InputBox2
  3. Polygon(B_1, (x(B_1) + 1.4, y(B_1)), (x(B_1) + 1.4, y(B_1) - 1), (x(B_1), y(B_1) - 1)) → rectangleCorrect, c, d, e, i_1
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 10, 0, 9, 8, 8, 0, 1, 6, 2, 2, 3, 10, 4, 4, 0, 1, 9, 2, 10, 5, 10, 5, 7, 6, 2, 4, 2, 6, 7, 5, 9, 9, 3, 3, 8, 3, 0, 3, 5, 5, 9, 4, 4, 5, 2, 4, 9, 4, 5, 8, 2, 3, 9, 8, 5, 8, 7, 9, 9, 5, 6, 8, 6, 8, 3, 7, 10, 0, 5, 4, 8, 3, 10, 3, 5, 10, 0, 9, 5, 6, 7, 3, 0, 0, 10, 2, 7, 8, 4, 3, 1, 0, 4, 1, 8, 3, 1, 5, 5}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {7, 0, 2, 10, 6, 4, 8, 2, 2, 0, 4, 0, 2, 10, 0, 9, 2, 1, 7, 8, 5, 9, 8, 8, 1, 10, 4, 3, 9, 10, 0, 3, 9, 3, 7, 10, 0, 2, 8, 7, 2, 0, 7, 10, 4, 10, 0, 0, 6, 0, 7, 0, 1, 7, 9, 6, 9, 10, 7, 7, 2, 0, 4, 1, 8, 5, 8, 4, 3, 5, 10, 0, 5, 1, 6, 9, 0, 3, 8, 2, 2, 5, 2, 3, 8, 3, 4, 7, 6, 7, 5, 2, 7, 0, 1, 10, 9, 9, 4, 10}
  7. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  8. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  9. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  10. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  11. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  12. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  13. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  14. Defined((aInput * bInput)) → fixed
  15. Segment(D, C) → g
  16. Segment(D, E) → h
  17. Sequence((i, 0), i, 0.25, 6.25, 1) → l1
  18. Sequence((i, 0), i, 0.75, 6.75, 1) → l2
  19. Point(l1) → F
  20. Point(l2) → G
  21. Polygon(F, G, I, H) → v1, f_1, g_1, i, h_1
  22. Point(l1) → R
  23. Point(l2) → S
  24. Polygon(R, S, K, J) → v2, r, s_1, k, j
  25. Point(l1) → T
  26. Point(l2) → U
  27. Polygon(T, U, M, L) → v3, t, u, m, l
  28. Point(l1) → V
  29. Point(l2) → W
  30. Point(l1) → Z
  31. Point(l2) → A_1
  32. Polygon(Z, A_1, Q, P) → v5, z_1, a_1, q, p
  33. Sequence((0, k), k, 1, 6) → l3
  34. Point(l1) → H_1
  35. Point(l2) → I_1
  36. Polygon(H_1, I_1, G_1, F_1) → v6, j_1, k_1, l_1, m_1
  37. Point(l1) → L_1
  38. Point(l2) → M_1
  39. Polygon(L_1, M_1, K_1, J_1) → v7, n_1, p_1, q_1, r_1
  40. Point(l1) → T_1
  41. Point(l2) → U_1
  42. Polygon(T_1, U_1, O_1, N_1) → v8, t_1, u_1, o_1, b_1
  43. Point(l1) → V_1
  44. Point(l2) → W_1
  45. Polygon(V_1, W_1, Q_1, P_1) → v9, v_1, w_1, c_1, d_1
  46. Point(l1) → Z_1
  47. Point(l2) → A_2
  48. Polygon(Z_1, A_2, S_1, R_1) → v10, e_1, a_2, s_2, f_2
  49. Point(l1) → D_2
  50. Point(l2) → E_2
  51. Polygon(D_2, E_2, C_2, B_2) → v11, d_2, e_2, c_2, b_2
  52. Point(l1) → H_2
  53. Point(l2) → I_2
  54. Polygon(H_2, I_2, G_2, F_2) → v12, h_2, i_2, g_2, j_2
  55. Point(l1) → L_2
  56. Point(l2) → M_2
  57. Polygon(L_2, M_2, K_2, J_2) → v13, l_2, m_2, k_2, n_2
  58. Point(l1) → P_2
  59. Point(l2) → Q_2
  60. Polygon(P_2, Q_2, O_2, N_2) → v14, p_2, q_2, o_2, r_2
  61. Point(l1) → T_2
  62. Point(l2) → U_2
  63. Polygon(T_2, U_2, S_2, R_2) → v15, t_2, u_2, s_3, f_3
  64. Point(l1) → Z_2
  65. Point(l2) → A_3
  66. Polygon(Z_2, A_3, W_2, V_2) → v16, z_2, a_3, w_2, v_2
  67. Point(l1) → D_3
  68. Point(l2) → E_3
  69. Polygon(D_3, E_3, C_3, B_3) → v17, d_3, e_3, c_3, b_3
  70. Point(l1) → J_3
  71. Point(l2) → K_3
  72. Polygon(J_3, K_3, G_3, F_3) → v18, j_3, k_3, g_3, h_3
  73. Point(l1) → L_3
  74. Point(l2) → M_3
  75. Polygon(L_3, M_3, I_3, H_3) → v19, l_3, m_3, i_3, n_3
  76. Point(l1) → P_3
  77. Point(l2) → Q_3
  78. Polygon(P_3, Q_3, O_3, N_3) → v20, p_3, q_3, o_3, r_3
  79. Point(l1) → T_3
  80. Point(l2) → U_3
  81. Polygon(T_3, U_3, S_3, R_3) → v21, t_3, u_3, s_{4}, f_4
  82. Point(l1) → Z_3
  83. Point(l2) → A_4
  84. Polygon(Z_3, A_4, W_3, V_3) → v22, z_3, a_4, w_3, v_3
  85. Point(l1) → D_4
  86. Point(l2) → E_4
  87. Polygon(D_4, E_4, C_4, B_4) → v23, d_4, e_4, c_4, b_4
  88. Polygon(B_{6}, (x(B_{6}) + 1.4, y(B_{6})), (x(B_{6}) + 1.4, y(B_{6}) - 1), (x(B_{6}), y(B_{6}) - 1)) → rectangleCorrect_{1}, c_{5}, d_{5}, e_{5}, i_{4}
  89. SpeechBubbleRight(F_4, 3, 1) → Vieleck1
  90. OrthogonalLine(L_4, gl2) → n
  91. OrthogonalLine(K_4, gl2) → g_4
  92. OrthogonalLine(J_4, gl2) → h_4
  93. OrthogonalLine(I_4, gl2) → j_4
  94. OrthogonalLine(H_4, gl2) → k_4
  95. OrthogonalLine(G_4, gl2) → l_4
  96. Intersect(n, gl2) → M_4
  97. Intersect(g_4, gl2) → N_4
  98. Intersect(h_4, gl2) → O_4
  99. Intersect(j_4, gl2) → P_4
  100. Intersect(k_4, gl2) → Q_4
  101. Intersect(l_4, gl2) → R_4
  102. Segment(G_4, R_4) → m_4
  103. Segment(H_4, Q_4) → n_4
  104. Segment(I_4, P_4) → p_4
  105. Segment(J_4, O_4) → q_4
  106. Segment(K_4, N_4) → r_4
  107. Segment(L_4, M_4) → t_4
  108. Translate({v1, v2, v3, v5}, (0, 0)) → l4
  109. Translate({v6, v7, v8, v9, v10, v11}, (0, 0)) → l5
  110. Translate({v12, v13, v14, v15, v16, v17}, (0, 0)) → l6
  111. Translate({v18, v19, v20, v21, v22, v23}, (0, 0)) → l7

AI Drawing Prompt Reference

Draw a complex figure containing multiple polygons. First, create two parallel line segments and mark several points on each segment. Then, use these points to construct multiple quadrilaterals and pentagons. Specifically, select four points on the first line segment and corresponding four points on the second line segment, connecting these points to form four quadrilaterals. Next, select three new points on each line segment and connect them to form two pentagons. Finally, select two more new points on each line segment and connect them to form another quadrilateral. All polygons should be symmetrically and evenly distributed.
The prompt above was compiled from the original drawing commands and is for reference only.