Probability and Tree Diagram Demo by Dimitris Mirogiannis

Probability and Tree Diagram Demo by Dimitris Mirogiannis
Loading the math board and drawing, please wait…
2018-12-09 08:52
This example dynamically demonstrates the probability process of drawing playing cards, visually showing the construction and application of tree diagrams. It involves core math concepts like probability & statistics, percentages, hyperbolas, arithmetic mean, and random variables. GeoGebra commands used include Sequence, Join, Random, Length, DotPlot, CountIf, TableText, Sum, and Element for constructing the visualization. Suitable for high school probability & statistics teaching, helping understand random event probabilities and data visualization.

GeoGebra Commands & Parameters

  1. Sequence(LaTeX["" + (w) + "\spadesuit", true], w, 2, 10) → L_1
  2. Join({L_1, L_2}) → spades
  3. Sequence(LaTeX["" + (w) + "\heartsuit", true], w, 2, 10) → L_3
  4. Join({L_3, L_4}) → hearts
  5. Sequence(LaTeX["" + (w) + "\clubsuit", true], w, 2, 10) → L_5
  6. Join({L_5, L_6}) → clubs
  7. Sequence(LaTeX["" + (w) + "\diamondsuit", true], w, 2, 10) → L_7
  8. Join({L_7, L_8}) → diamond
  9. Join({clubs, diamond, hearts, spades}) → deck
  10. Random(1, 52) → a
  11. Length(deck) → b
  12. DotPlot(win, false, 0.2) → L_9
  13. CountIf(x ≟ -7, win) → zero
  14. CountIf(x ≟ 5, win) → five
  15. CountIf(x ≟ 10, win) → ten
  16. CountIf(x ≟ 30, win) → thirty
  17. TableText({{"-7 €", " 5 €", "10 €", " 30 €"}, {zero, five, ten, thirty}}, "c|h") → text2
  18. Sum(win) → c
  19. Sum(win) → total
  20. Element(deck, a) → ww