随机抛硬币模拟与点图展示
几何画板及绘图内容加载中,请稍等……
所属专题
Statistics and Probability with Mr Downes
Permutation, Combination and Probability
GGBChat4: Statistics 1
① 本范例演示随机抛掷最多 25 枚硬币,并以点图展示每次样本中正面朝上的数量分布。② 涉及核心数学概念为概率实验、二项分布、样本均值与统计图形。③ 作图要点:使用 If 判断硬币正反、DotPlot 绘制点图、Mean 计算平均正面数、Sum 累加、Textfield 与 InputBox 交互、Button 控制重复模拟,对象包括 sampsize、samp、headlist、button1、button2、samples、meanhead、text1、inputBox1 等。④ 适合初中/高中概率统计教学、课堂演示或自学探究。
GeoGebra 命令及参数
If(sampsize ≤ 25, sampsize, 25) → sampDotPlot(headlist) → list1Mean(headlist) → meanheadTextfield(sampsize) → inputBox1If(A7 ≤ samp, Random[0, 1], 0) → A8If(B7 ≤ samp, Random[0, 1], 0) → B8If(C7 ≤ samp, Random[0, 1], 0) → C8If(D7 ≤ samp, Random[0, 1], 0) → D8If(E7 ≤ samp, Random[0, 1], 0) → E8If(F7 ≤ samp, Random[0, 1], 0) → F8If(G7 ≤ samp, Random[0, 1], 0) → G8If(H7 ≤ samp, Random[0, 1], 0) → H8If(I7 ≤ samp, Random[0, 1], 0) → I8If(J7 ≤ samp, Random[0, 1], 0) → J8If(K7 ≤ samp, Random[0, 1], 0) → K8If(L7 ≤ samp, Random[0, 1], 0) → L8If(M7 ≤ samp, Random[0, 1], 0) → M8If(N7 ≤ samp, Random[0, 1], 0) → N8If(O7 ≤ samp, Random[0, 1], 0) → O8If(P7 ≤ samp, Random[0, 1], 0) → P8If(Q7 ≤ samp, Random[0, 1], 0) → Q8If(R7 ≤ samp, Random[0, 1], 0) → R8If(S7 ≤ samp, Random[0, 1], 0) → S8If(T7 ≤ samp, Random[0, 1], 0) → T8If(U7 ≤ samp, Random[0, 1], 0) → U8If(V7 ≤ samp, Random[0, 1], 0) → V8If(W7 ≤ samp, Random[0, 1], 0) → W8If(X7 ≤ samp, Random[0, 1], 0) → X8If(Y7 ≤ samp, Random[0, 1], 0) → Y8If(A7 ≤ samp, If[A8 ≟ 1, "H", "T"]) → A1If(B7 ≤ samp, If[B8 ≟ 1, "H", "T"]) → B1If(C7 ≤ samp, If[C8 ≟ 1, "H", "T"]) → C1If(D7 ≤ samp, If[D8 ≟ 1, "H", "T"]) → D1If(E7 ≤ samp, If[E8 ≟ 1, "H", "T"]) → E1If(F7 ≤ samp, If[F8 ≟ 1, "H", "T"]) → F1If(G7 ≤ samp, If[G8 ≟ 1, "H", "T"]) → G1If(H7 ≤ samp, If[H8 ≟ 1, "H", "T"]) → H1If(I7 ≤ samp, If[I8 ≟ 1, "H", "T"]) → I1If(J7 ≤ samp, If[J8 ≟ 1, "H", "T"]) → J1If(K7 ≤ samp, If[K8 ≟ 1, "H", "T"]) → K1If(L7 ≤ samp, If[L8 ≟ 1, "H", "T"]) → L1If(M7 ≤ samp, If[M8 ≟ 1, "H", "T"]) → M1If(N7 ≤ samp, If[N8 ≟ 1, "H", "T"]) → N1If(O7 ≤ samp, If[O8 ≟ 1, "H", "T"]) → O1If(P7 ≤ samp, If[P8 ≟ 1, "H", "T"]) → P1If(Q7 ≤ samp, If[Q8 ≟ 1, "H", "T"]) → Q1If(R7 ≤ samp, If[R8 ≟ 1, "H", "T"]) → R1If(S7 ≤ samp, If[S8 ≟ 1, "H", "T"]) → S1If(T7 ≤ samp, If[T8 ≟ 1, "H", "T"]) → T1If(U7 ≤ samp, If[U8 ≟ 1, "H", "T"]) → U1If(V7 ≤ samp, If[V8 ≟ 1, "H", "T"]) → V1If(W7 ≤ samp, If[W8 ≟ 1, "H", "T"]) → W1If(X7 ≤ samp, If[X8 ≟ 1, "H", "T"]) → X1If(Y7 ≤ samp, If[Y8 ≟ 1, "H", "T"]) → Y1Sum(A8:Y8) → numheads
AI 绘图提示语参考
绘制一个模拟抛硬币实验的统计图。图中包含一个可输入数字的输入框,用于设定每次实验抛硬币的数量(最多25枚)。下方显示一排硬币结果,正面标记为H,反面标记为T。右侧生成一个点图,横轴表示每次实验中正面朝上的次数,纵轴表示该次数出现的频率。点图上方显示所有实验正面次数的平均值。通过点击按钮可重复进行多次实验,每次实验的点都会添加到点图中,形成分布。整体布局清晰,适合教学演示。
以上提示语为根据原始绘图命令整理而来,仅供参考。