Reading Data from Bar Charts: Statistics and Probability

Reading Data from Bar Charts: Statistics and Probability
Loading the math board and drawing, please wait…
2022-06-27 13:51
This example demonstrates how to read data from bar charts, covering statistical analysis and probability concepts. Key mathematical ideas include data interpretation, chart analysis, and statistical inference. Construction involves using GeoGebra commands like Textfield, Polygon, Shuffle, and Append to create bar charts. Suitable for elementary students or teachers for classroom exercises and data analysis teaching.

GeoGebra Commands & Parameters

  1. Textfield(aInput) → InputBox1
  2. Textfield(bInput) → InputBox2
  3. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {0, 2, 6, 1, 4, 4, 9, 3, 2, 5, 3, 3, 7, 6, 3, 4, 3, 4, 0, 3, 9, 8, 1, 10, 10, 10, 1, 4, 10, 4, 10, 8, 8, 4, 3, 2, 5, 6, 5, 9, 9, 4, 6, 7, 2, 9, 3, 1, 2, 10, 1, 4, 4, 1, 6, 8, 10, 7, 5, 2, 3, 0, 8, 3, 6, 3, 5, 5, 9, 6, 7, 10, 0, 2, 8, 8, 6, 1, 0, 8, 8, 1, 2, 6, 5, 1, 8, 7, 5, 1, 7, 6, 9, 7, 5, 2, 5, 6, 4, 2}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {2, 0, 2, 4, 7, 5, 3, 6, 7, 5, 7, 10, 7, 9, 10, 1, 4, 2, 7, 10, 10, 8, 7, 4, 2, 8, 7, 0, 5, 4, 10, 2, 1, 5, 8, 10, 4, 6, 3, 7, 5, 10, 6, 2, 4, 6, 6, 8, 0, 4, 6, 10, 8, 7, 10, 6, 2, 4, 5, 4, 3, 1, 4, 9, 10, 3, 6, 10, 6, 3, 6, 8, 1, 9, 3, 5, 3, 6, 4, 6, 0, 0, 9, 6, 6, 0, 9, 5, 1, 4, 2, 8, 9, 0, 2, 2, 6, 2, 4, 5}
  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(C, E) → g
  16. Segment(C, D) → h
  17. Polygon(I, H, G, F) → v1, i, h_1, g_1, f_1
  18. Polygon(J, K, M, L) → v2, j, k, m, l
  19. Polygon(N, O, Q, P) → v3, n, o, q, p
  20. Polygon(R, S, U, T) → v4, r, s_1, u, t
  21. Polygon(Z, A_1, W, V) → v5, z_1, a_1, w, v
  22. SpeechBubble((-4, 7), Corner[textSpeachB, 1], Corner[textSpeachB, 2], Corner[textSpeachB, 3]) → speachBubble
  23. Segment(B_1, C_1) → a
  24. Segment(E_1, D_1) → b
  25. Textfield(cInput) → InputBox3
  26. Sequence((-0.5, i), i, 1, 5) → l1
  27. RotateText(Text17, 90°) → Text22
  28. RotateText(Text18, 90°) → Text23
  29. RotateText(Text19, 90°) → Text24
  30. RotateText(Text20, 90°) → Text25
  31. RotateText(Text21, 90°) → Text26
  32. Segment(F_1, G_1) → c
  33. Segment(H_1, I_1) → d
  34. SpeechBubbleLeft((-4, 8.5), 10.5, 0.5) → Vieleck1
  35. SpeechBubbleLeft((-4, 7.15), 11.5, 1.8) → Vieleck2
  36. SpeechBubbleLeft((-4, 8.4), 10.5, 0.5) → Vieleck3
  37. SpeechBubbleLeft((-4, 8.4), 9.7, 0.5) → Vieleck4
  38. SpeechBubbleLeft((-4, 8.5), 10.5, 0.6) → Vieleck5
  39. SpeechBubbleLeft((-4, 8.5), 9.5, 0.5) → Vieleck6
  40. SpeechBubbleLeft((-4, 7.8), 8.3, 1.2) → Vieleck7
  41. SpeechBubbleLeft((-4, 7.8), 9.2, 1.2) → Vieleck8
  42. SpeechBubbleLeft((-4, 7.8), 8.8, 1.2) → Vieleck9
  43. Polygon(J_{2}, K_{2}, M_{2}, L_{2}) → v2_{1}, j_{1}, k_{1}, m_{1}, l_{1}
  44. Polygon(N_{2}, O_{2}, Q_{1}, P_{2}) → v3_{1}, n_{1}, o_{1}, q_{1}, p_{1}
  45. Polygon(R_{1}, S_{1}, U_{1}, T_{1}) → v4_{1}, r_{1}, s_{2}, u_{1}, t_{1}
  46. Polygon(Z_{1}, A_{2}, W_{1}, V_{1}) → v5_{1}, z_{2}, a_{2}, w_{1}, v_{1}
  47. Polygon(I_{2}, H_{2}, G_{2}, F_{2}) → v1_{1}, i_{1}, h_{2}, g_{2}, f_{2}
  48. Polygon(N_{3}, O_{3}, Q_{2}, P_{3}) → v3_{2}, n_{2}, o_{2}, q_{2}, p_{2}
  49. Polygon(R_{2}, S_{2}, U_{2}, T_{2}) → v4_{2}, r_{2}, s_{3}, u_{2}, t_{2}
  50. Polygon(Z_{2}, A_{3}, W_{2}, V_{2}) → v5_{2}, z_{3}, a_{3}, w_{2}, v_{2}
  51. Segment(RefP, RefPAdd) → b_1
  52. Midpoint(Corner[geoMove, 1], Corner[geoMove, 3]) → D_2
  53. OrthogonalLine(I_3, gl2) → c_1
  54. OrthogonalLine(H_3, gl2) → d_1
  55. OrthogonalLine(G_3, gl2) → e_1
  56. OrthogonalLine(F_3, gl2) → i_2
  57. OrthogonalLine(E_3, gl2) → j_2
  58. OrthogonalLine(D_3, gl2) → k_2
  59. OrthogonalLine(C_3, gl2) → l_2
  60. OrthogonalLine(B_3, gl2) → m_2
  61. OrthogonalLine(E_2, gl2) → b_2
  62. OrthogonalLine(J_3, gl2) → c_2
  63. Intersect(gl2, c_1) → K_3
  64. Intersect(d_1, gl2) → L_3
  65. Intersect(e_1, gl2) → M_3
  66. Intersect(i_2, gl2) → Q_3
  67. Intersect(c_2, gl2) → R_3
  68. Intersect(j_2, gl2) → S_3
  69. Intersect(k_2, gl2) → T_3
  70. Intersect(l_2, gl2) → U_3
  71. Intersect(m_2, gl2) → V_3
  72. Intersect(b_2, gl2) → W_3
  73. Segment(I_3, K_3) → d_2
  74. Segment(H_3, L_3) → e_2
  75. Segment(G_3, M_3) → f_3
  76. Segment(F_3, Q_3) → g_3
  77. Segment(J_3, R_3) → h_3
  78. Segment(E_3, S_3) → i_3
  79. Segment(D_3, T_3) → j_3
  80. Segment(C_3, U_3) → k_3
  81. Segment(B_3, V_3) → l_3
  82. Segment(E_2, W_3) → m_3
  83. Translate({v1, v2, v3, v4, v5}, (0, 0)) → l2

AI Drawing Prompt Reference

Draw a chart with five rectangles and five triangles. The rectangles are formed by points A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, and the triangles are formed by points A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z. First, draw rectangle ABCD, then rectangle EFGH, followed by rectangle IJKL, and rectangle MNOP. Next, draw triangle AEF, triangle BFG, triangle CHI, triangle DJK, triangle ELM, triangle FNM, triangle GNO, triangle HOP, triangle IQP, triangle JRQ, triangle KSR, triangle LST, triangle MUT, triangle NVP, triangle OYW, and triangle PZX.
The prompt above was compiled from the original drawing commands and is for reference only.