Fruit Gum Probability Experiment

Fruit Gum Probability Experiment
Loading the math board and drawing, please wait…
2024-06-19 17:27
This example demonstrates understanding probability and statistics through simulating the drawing of fruit gums. The core math concepts involved are probability and statistics, particularly how to quantify the likelihood of events. Construction highlights include using GeoGebra commands like If, Element, Midpoint, IsInRegion, CountIf, Textfield, and objects such as numberOfQuestions, btnValidate, attemptCount, questionCount, correctCount, shuffled, randomQuestions, randomQuestion, imgR1, imgS1, imgB1, imgA1, imgK1, imgTüte, PolyTüte, imgR2, imgR3, imgR4, imgB2, imgB3, imgB4, imgA2, imgA3, imgA4, imgS2, imgS3, imgS4, imgK2, imgK3, imgK4, MR1, MR2, MR3, MR4, MA1, MA2, MA3, MA4, MB1, MB2. Suitable for 7-8th grade students to teach basic probability and statistics.

GeoGebra Commands & Parameters

  1. If(shuffled, Shuffle[1…numberOfQuestions], 1…numberOfQuestions) → randomQuestions
  2. Element(randomQuestions, Mod[questionCount - 1, Length[randomQuestions]] + 1) → randomQuestion
  3. Midpoint(Corner[imgR1, 1], Corner[imgR1, 3]) → MR1
  4. Midpoint(Corner[imgR2, 1], Corner[imgR2, 3]) → MR2
  5. Midpoint(Corner[imgR3, 1], Corner[imgR3, 3]) → MR3
  6. Midpoint(Corner[imgR4, 1], Corner[imgR4, 3]) → MR4
  7. Midpoint(Corner[imgA1, 1], Corner[imgA1, 3]) → MA1
  8. Midpoint(Corner[imgA2, 1], Corner[imgA2, 3]) → MA2
  9. Midpoint(Corner[imgA3, 1], Corner[imgA3, 3]) → MA3
  10. Midpoint(Corner[imgA4, 1], Corner[imgA4, 3]) → MA4
  11. Midpoint(Corner[imgB1, 1], Corner[imgB1, 3]) → MB1
  12. Midpoint(Corner[imgB2, 1], Corner[imgB2, 3]) → MB2
  13. Midpoint(Corner[imgB3, 1], Corner[imgB3, 3]) → MB3
  14. Midpoint(Corner[imgB4, 1], Corner[imgB4, 3]) → MB4
  15. Midpoint(Corner[imgK1, 1], Corner[imgK1, 3]) → MK1
  16. Midpoint(Corner[imgK2, 1], Corner[imgK2, 3]) → MK2
  17. Midpoint(Corner[imgK3, 1], Corner[imgK3, 3]) → MK3
  18. Midpoint(Corner[imgK4, 1], Corner[imgK4, 3]) → MK4
  19. Midpoint(Corner[imgS1, 1], Corner[imgS1, 3]) → MS1
  20. Midpoint(Corner[imgS2, 1], Corner[imgS2, 3]) → MS2
  21. Midpoint(Corner[imgS3, 1], Corner[imgS3, 3]) → MS3
  22. Midpoint(Corner[imgS4, 1], Corner[imgS4, 3]) → MS4
  23. IsInRegion(MR1, PolyTüte(1)) → inTR1
  24. IsInRegion(MR2, PolyTüte(1)) → inTR2
  25. IsInRegion(MR3, PolyTüte(1)) → inTR3
  26. IsInRegion(MR4, PolyTüte(1)) → inTR4
  27. IsInRegion(MA1, PolyTüte(1)) → inTA1
  28. IsInRegion(MA2, PolyTüte(1)) → inTA2
  29. IsInRegion(MA3, PolyTüte(1)) → inTA3
  30. IsInRegion(MA4, PolyTüte(1)) → inTA4
  31. IsInRegion(MB1, PolyTüte(1)) → inTB1
  32. IsInRegion(MB2, PolyTüte(1)) → inTB2
  33. IsInRegion(MB3, PolyTüte(1)) → inTB3
  34. IsInRegion(MB4, PolyTüte(1)) → inTB4
  35. IsInRegion(MK1, PolyTüte(1)) → inTK1
  36. IsInRegion(MK2, PolyTüte(1)) → inTK2
  37. IsInRegion(MK3, PolyTüte(1)) → inTK3
  38. IsInRegion(MK4, PolyTüte(1)) → inTK4
  39. IsInRegion(MS1, PolyTüte(1)) → inTS1
  40. IsInRegion(MS2, PolyTüte(1)) → inTS2
  41. IsInRegion(MS3, PolyTüte(1)) → inTS3
  42. IsInRegion(MS4, PolyTüte(1)) → inTS4
  43. CountIf(a ≟ true, a, ListeA) → AnzahlA
  44. CountIf(a ≟ true, a, ListeB) → AnzahlB
  45. CountIf(a ≟ true, a, ListeK) → AnzahlK
  46. CountIf(a ≟ true, a, ListeR) → AnzahlR
  47. CountIf(a ≟ true, a, ListeS) → AnzahlS
  48. Textfield(input) → inputBox

AI Drawing Prompt Reference

Draw a graph simulating a fruit gum lottery, containing four circular regions representing red, yellow, green and blue fruit gums. Each circular region has four small dots representing four different colored fruit gums. Please add a random lottery function to the graph, allowing users to draw a fruit gum by clicking a button. The lottery result will be displayed on the graph, showing the color and quantity of the drawn fruit gum.
The prompt above was compiled from the original drawing commands and is for reference only.