Eye Color Statistics: Reading Tables and Diagrams

Eye Color Statistics: Reading Tables and Diagrams
Loading the math board and drawing, please wait…
2022-06-27 21:52
This GeoGebra example uses eye color as a real-world context to help students read, compare, and interpret data from tables and diagrams. It focuses on basic statistics and probability concepts such as categorical data, frequency, data interpretation, and simple probability reasoning. The construction uses Point, Segment, and Polygon to create diagram elements, Textfield, Join, and RotateText for prompts and answers, and Shuffle, Element, Append, Remove, and Sequence to manage multiple exercises, random choices, and solution lists. OrthogonalLine and Intersect support layout or validation, while objects such as exNum, listeSol, sol1-sol4, validate, showanswer, attemptCount, and correctCount enable checking, hints, retries, and new problems. It is suitable for grades 5-6 introductory statistics and probability practice, classroom activities, or independent review.

GeoGebra Commands & Parameters

  1. Join({{0}, Shuffle[Sequence[1, maxExNum, 1]]}) → listeExVal
  2. Textfield(aInput) → InputBox1
  3. Textfield(bInput) → InputBox2
  4. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  5. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {1, 3, 1, 6, 6, 8, 10, 3, 9, 10, 5, 9, 3, 3, 6, 6, 1, 4, 2, 8, 3, 1, 0, 5, 5, 4, 6, 3, 6, 7, 9, 4, 0, 3, 6, 7, 5, 9, 9, 0, 9, 10, 7, 10, 4, 10, 10, 7, 7, 9, 10, 5, 8, 10, 9, 8, 1, 0, 10, 10, 10, 7, 9, 9, 5, 5, 2, 8, 9, 4, 6, 7, 0, 1, 3, 3, 0, 5, 3, 0, 2, 8, 10, 2, 5, 5, 4, 9, 3, 8, 0, 4, 5, 4, 8, 6, 2, 9, 6, 0}
  6. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  7. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {4, 9, 4, 0, 8, 4, 2, 10, 9, 3, 2, 4, 1, 8, 10, 4, 4, 7, 0, 0, 8, 1, 4, 7, 5, 0, 2, 8, 6, 3, 8, 4, 1, 3, 3, 4, 8, 4, 7, 3, 8, 1, 10, 2, 2, 6, 5, 0, 2, 10, 7, 9, 6, 7, 3, 9, 0, 0, 0, 5, 1, 0, 0, 8, 5, 7, 9, 0, 3, 4, 3, 4, 1, 10, 1, 2, 3, 0, 8, 8, 0, 5, 7, 8, 1, 0, 1, 7, 3, 4, 2, 2, 8, 7, 5, 2, 10, 7, 1, 1}
  8. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  9. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  10. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  11. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  12. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  13. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  14. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  15. Sequence((j, 0), j, -1, 3) → l2
  16. Sequence((-2, i), i, 1, 6) → l1
  17. Point(l1) → A
  18. Point(l1) → B
  19. Point(l2) → E
  20. Segment((-2, 0), B) → f
  21. Segment((-2, 0), E) → g
  22. Polygon((-1.3, 0), (-1.1, 0), (-1.1, 3), (-1.3, 3)) → v1, h, i, j, k
  23. Polygon((-0.9, 0), (-0.7, 0), (-0.7, 5), (-0.9, 5)) → v2, l, m, n, p
  24. Polygon((-0.3152017796441485, 0), (-0.11520177964414854, 0), (-0.11520177964414854, 4), (-0.3152017796441485, 4)) → v3, q, r, s, t
  25. Polygon((0.1, 0), (0.3, 0), (0.3, 2), (0.1, 2)) → v4, a, b, c, d
  26. Polygon((0.7, 0), (0.9, 0), (0.9, 2), (0.7, 2)) → v5, e, f_1, g_1, h_1
  27. Polygon((1.1, 0), (1.3, 0), (1.3, 1), (1.1, 1)) → v6, i_1, j_1, k_1, l_1
  28. Polygon((1.7, 0), (1.9, 0), (1.9, 2), (1.7, 2)) → v7, m_1, n_1, p_1, q_1
  29. Polygon((2.1, 0), (2.3, 0), (2.3, 1), (2.1, 1)) → v8, r_1, s_1, t_1, a_1
  30. RotateText(Text20, 90°) → Text22
  31. OrthogonalLine(J, gl2) → b_1
  32. OrthogonalLine(I, gl2) → c_1
  33. OrthogonalLine(H, gl2) → d_1
  34. OrthogonalLine(G, gl2) → e_1
  35. OrthogonalLine(F, gl2) → f_2
  36. Intersect(gl2, b_1) → K
  37. Intersect(gl2, c_1) → L
  38. Intersect(gl2, d_1) → M
  39. Intersect(gl2, e_1) → N
  40. Intersect(gl2, f_2) → O
  41. Segment(J, K) → g_2
  42. Segment(I, L) → h_2
  43. Segment(H, M) → i_2
  44. Segment(G, N) → j_2
  45. Segment(F, O) → k_2

AI Drawing Prompt Reference

Draw an interactive bar chart for eye‑color statistics: a horizontal axis labeled with eight eye‑color categories, a vertical axis scaled 0‑10, eight rectangular bars whose heights are set by randomly generated frequencies and spaced apart; below the chart place a rectangular feedback area with two text input boxes for student answers; on the left draw vertical grid lines using orthogonal lines intersecting the horizontal axis to mark scale ticks; add a rotated 90° prompt text at the top; the figure should support random problem switching, answer validation, hints and retry.
The prompt above was compiled from the original drawing commands and is for reference only.