Fashion‑Conscious Number Monster: Hypergeometric Distribution & Geometry Constru

Fashion‑Conscious Number Monster: Hypergeometric Distribution & Geometry Constru
Loading the math board and drawing, please wait…
2022-08-03 06:59
This example demonstrates an interactive exercise that randomly selects items (Shuffle) and uses conditional logic (If) to build geometric figures, illustrating the hypergeometric distribution in a visual geometry context. Core concepts include hypergeometric probability, tree diagrams, hyperbolas, solid geometry (cuboids), and polygon construction. Construction highlights: Polygon and Segment draw shapes, Element picks list entries, and UI objects such as show1‑show6, validate, showanswer, showsolution, btnValidate, btnTryAgain, btnNew provide hints, answer checking, and retry mechanisms. It is suitable for high‑school probability and solid geometry lessons, as well as introductory university probability courses seeking dynamic visual aids.

GeoGebra Commands & Parameters

  1. Shuffle({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}) → bsp, {10, 5, 3, 1, 4, 2, 7, 9, 11, 12, 8, 6}
  2. If(bsp(questionCount) ≟ 6 ∧ show3 ≟ true ∧ sel6 ≟ true, true, If[bsp(questionCount) ≟ 2 ∧ show1 ≟ true ∧ sel2 ≟ true, true, If[bsp(questionCount) ≟ 3 ∧ show2 ≟ true ∧ sel3 ≟ true, true, If[bsp(questionCount) ≟ 7 ∧ show4 ≟ true ∧ sel7 ≟ true, true, If[bsp(questionCount) ≟ 4 ∧ show2 ≟ true ∧ sel4 ≟ true, true, If[bsp(questionCount) ≟ 1 ∧ show1 ≟ true ∧ sel1 ≟ true, true, If[bsp(questionCount) ≟ 5 ∧ show3 ≟ true ∧ sel5 ≟ true, true, If[bsp(questionCount) ≟ 12 ∧ show6 ≟ true ∧ sel12 ≟ true, true, If[bsp(questionCount) ≟ 11 ∧ show6 ≟ true ∧ sel11 ≟ true, true, If[bsp(questionCount) ≟ 10 ∧ show5 ≟ true ∧ sel10 ≟ true, true, If[bsp(questionCount) ≟ 9 ∧ show5 ≟ true ∧ sel9 ≟ true, true, If[bsp(questionCount) ≟ 8 ∧ show4 ≟ true ∧ sel8 ≟ true, true, false]]]]]]]]]]]) → correct
  3. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 1, 4, 9, 6, 2, 8, 2, 3, 10, 7, 8, 2, 10, 3, 6, 7, 3, 5, 10, 5, 4, 7, 7, 4, 5, 9, 3, 6, 8, 8, 6, 10, 3, 8, 3, 9, 8, 0, 0, 2, 3, 5, 6, 5, 1, 2, 9, 3, 6, 9, 9, 1, 6, 2, 1, 6, 7, 7, 10, 7, 10, 7, 5, 2, 8, 9, 0, 3, 6, 8, 1, 2, 1, 7, 2, 6, 1, 9, 7, 5, 4, 1, 7, 7, 10, 9, 5, 10, 7, 6, 7, 0, 1, 2, 7, 7, 4, 5, 4}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {0, 9, 3, 3, 1, 8, 3, 3, 7, 10, 9, 1, 8, 5, 5, 10, 3, 9, 8, 4, 10, 0, 0, 5, 0, 0, 0, 1, 9, 10, 8, 6, 9, 1, 6, 0, 3, 4, 4, 5, 5, 9, 6, 4, 3, 6, 4, 5, 6, 0, 10, 4, 0, 9, 8, 5, 4, 5, 9, 3, 3, 8, 0, 6, 4, 2, 5, 10, 3, 9, 7, 9, 10, 0, 10, 1, 9, 10, 4, 5, 8, 7, 7, 1, 9, 9, 8, 5, 6, 3, 2, 10, 1, 9, 9, 2, 4, 1, 0, 1}
  7. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  8. Segment(C, D) → f
  9. Segment(E, F) → g
  10. Segment(C_{1}, D_{1}) → f_{1}
  11. Segment(E_{1}, F_{1}) → g_{1}
  12. Segment(C_{2}, D_{2}) → f_{2}
  13. Segment(E_{2}, F_{2}) → g_{2}
  14. Segment(G, H) → h
  15. Segment(I, J) → i
  16. Segment(G_{1}, H_{1}) → h_{1}
  17. Segment(I_{1}, J_{1}) → i_{1}
  18. Segment(G_{2}, H_{2}) → h_{2}
  19. Segment(I_{2}, J_{2}) → i_{2}
  20. Segment(G_{4}, H_{4}) → h_{3}
  21. Segment(I_{4}, J_{4}) → i_{3}
  22. Segment(G_{5}, H_{5}) → h_{4}
  23. Segment(I_{5}, J_{5}) → i_{4}
  24. Segment(G_{6}, H_{6}) → h_{5}
  25. Segment(I_{6}, J_{6}) → i_{5}
  26. If(bsp(questionCount) ≟ 6 ∧ show3 ≟ true, true, If[bsp(questionCount) ≟ 2 ∧ show1 ≟ true, true, If[bsp(questionCount) ≟ 3 ∧ show2 ≟ true, true, If[bsp(questionCount) ≟ 7 ∧ show4 ≟ true, true, If[bsp(questionCount) ≟ 4 ∧ show2 ≟ true, true, If[bsp(questionCount) ≟ 1 ∧ show1 ≟ true, true, If[bsp(questionCount) ≟ 5 ∧ show3 ≟ true, true, If[bsp(questionCount) ≟ 12 ∧ show6 ≟ true, true, If[bsp(questionCount) ≟ 11 ∧ show6 ≟ true, true, If[bsp(questionCount) ≟ 10 ∧ show5 ≟ true, true, If[bsp(questionCount) ≟ 9 ∧ show5 ≟ true, true, If[bsp(questionCount) ≟ 8 ∧ show4 ≟ true, true, false]]]]]]]]]]]) → correct1
  27. Segment(M, O) → j
  28. Segment(P, Q) → k
  29. Segment(R, S) → l

AI Drawing Prompt Reference

Visualize a randomly selected item combination, construct geometric shapes like polygons and segments using conditional logic, to illustrate the hypergeometric distribution. Start by randomly generating a set of numbers, then draw rectangles and segments based on conditions, and finally combine these elements into a complex geometric structure to show the connection between probability and geometry.
The prompt above was compiled from the original drawing commands and is for reference only.