With or Without Replacement

With or Without Replacement
Loading the math board and drawing, please wait…
2017-04-06 05:42
This example demonstrates the concept of with or without replacement. Core math concepts involved are probability and statistics. Construction highlights the use of commands like Random, Element, Textfield, RandomElement, and If. Suitable for teaching and learning probability and statistics.

GeoGebra Commands & Parameters

  1. Random(1, 2) → ptype
  2. Random(2, 4) → c
  3. Random(4, 10) → b
  4. Random(4, 10) → a
  5. Element({(a / (a + b))^(c), nPr[a, c] / nPr[a + b, c]}, ptype) → cans
  6. Textfield(ans) → inputBox1
  7. RandomElement({"Not Quite", "Try Again"}) → eres
  8. If(ans ≟ cans, true, false) → acor
  9. RandomElement({"Good Job", "Great!", "Way to Go!", "Awesome"}) → text5
  10. Element(oplist, ptype) → op