概率与树状图演示 by Dimitris Mirogiannis

概率与树状图演示 by Dimitris Mirogiannis
几何画板及绘图内容加载中,请稍等……
2018-12-09 08:52
①本范例通过动态演示扑克牌抽样的概率过程,直观展示树状图的构建与应用;②涉及核心数学概念包括概率统计、百分数、双曲线、算术平均数、随机变量;③构造中运用了 GeoGebra 命令 Sequence(数列生成)、Join(连接)、Random(随机数生成)、Length(长度计算)、DotPlot(点图绘制)、CountIf(条件计数)、TableText(表格文本)、Sum(求和)、Element(元素提取)等;④适合高中阶段概率统计教学,可用于理解随机事件概率与数据可视化。

GeoGebra 命令及参数

  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