掷骰子与抛硬币:频率柱状图与随机结果比较
几何画板及绘图内容加载中,请稍等……
本范例通过掷骰子与抛硬币两个随机实验,演示如何用柱状图记录并比较不同结果的出现频率,帮助学生理解小样本随机波动与大量重复下频率趋于稳定的关系。核心概念包括随机试验、频数、频率、柱状图、数据读取与解释,以及概率统计中的基本规律。构造上利用 Textfield 输入问题与答案,Polygon、Segment、Point、OrthogonalLine、Intersect、Translate 绘制柱形、坐标线和图形元素,Shuffle、Sequence、Append、Remove 处理随机序列与数据更新,SpeechBubbleRight 和反馈对象提供提示、验证与答案展示。适合小学五至六年级或初中入门统计概率课堂,用于数据图表解读、随机模拟和小组探究活动。
GeoGebra 命令及参数
Textfield(aInput) → InputBox1Textfield(bInput) → InputBox2Polygon(B_1, (x(B_1) + 1.4, y(B_1)), (x(B_1) + 1.4, y(B_1) - 1), (x(B_1), y(B_1) - 1)) → rectangleCorrect, c, d, e, i_1Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 10, 0, 9, 8, 8, 0, 1, 6, 2, 2, 3, 10, 4, 4, 0, 1, 9, 2, 10, 5, 10, 5, 7, 6, 2, 4, 2, 6, 7, 5, 9, 9, 3, 3, 8, 3, 0, 3, 5, 5, 9, 4, 4, 5, 2, 4, 9, 4, 5, 8, 2, 3, 9, 8, 5, 8, 7, 9, 9, 5, 6, 8, 6, 8, 3, 7, 10, 0, 5, 4, 8, 3, 10, 3, 5, 10, 0, 9, 5, 6, 7, 3, 0, 0, 10, 2, 7, 8, 4, 3, 1, 0, 4, 1, 8, 3, 1, 5, 5}Element(randomNosForX, Mod[questionCount, 100] + 1) → numXShuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {7, 0, 2, 10, 6, 4, 8, 2, 2, 0, 4, 0, 2, 10, 0, 9, 2, 1, 7, 8, 5, 9, 8, 8, 1, 10, 4, 3, 9, 10, 0, 3, 9, 3, 7, 10, 0, 2, 8, 7, 2, 0, 7, 10, 4, 10, 0, 0, 6, 0, 7, 0, 1, 7, 9, 6, 9, 10, 7, 7, 2, 0, 4, 1, 8, 5, 8, 4, 3, 5, 10, 0, 5, 1, 6, 9, 0, 3, 8, 2, 2, 5, 2, 3, 8, 3, 4, 7, 6, 7, 5, 2, 7, 0, 1, 10, 9, 9, 4, 10}Element(randomNosForY, Mod[questionCount, 100] + 1) → numYAppend(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayXAppend(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayYRemove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeatRemove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeatElement(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeatElement(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeatDefined((aInput * bInput)) → fixedSegment(D, C) → gSegment(D, E) → hSequence((i, 0), i, 0.25, 6.25, 1) → l1Sequence((i, 0), i, 0.75, 6.75, 1) → l2Point(l1) → FPoint(l2) → GPolygon(F, G, I, H) → v1, f_1, g_1, i, h_1Point(l1) → RPoint(l2) → SPolygon(R, S, K, J) → v2, r, s_1, k, jPoint(l1) → TPoint(l2) → UPolygon(T, U, M, L) → v3, t, u, m, lPoint(l1) → VPoint(l2) → WPoint(l1) → ZPoint(l2) → A_1Polygon(Z, A_1, Q, P) → v5, z_1, a_1, q, pSequence((0, k), k, 1, 6) → l3Point(l1) → H_1Point(l2) → I_1Polygon(H_1, I_1, G_1, F_1) → v6, j_1, k_1, l_1, m_1Point(l1) → L_1Point(l2) → M_1Polygon(L_1, M_1, K_1, J_1) → v7, n_1, p_1, q_1, r_1Point(l1) → T_1Point(l2) → U_1Polygon(T_1, U_1, O_1, N_1) → v8, t_1, u_1, o_1, b_1Point(l1) → V_1Point(l2) → W_1Polygon(V_1, W_1, Q_1, P_1) → v9, v_1, w_1, c_1, d_1Point(l1) → Z_1Point(l2) → A_2Polygon(Z_1, A_2, S_1, R_1) → v10, e_1, a_2, s_2, f_2Point(l1) → D_2Point(l2) → E_2Polygon(D_2, E_2, C_2, B_2) → v11, d_2, e_2, c_2, b_2Point(l1) → H_2Point(l2) → I_2Polygon(H_2, I_2, G_2, F_2) → v12, h_2, i_2, g_2, j_2Point(l1) → L_2Point(l2) → M_2Polygon(L_2, M_2, K_2, J_2) → v13, l_2, m_2, k_2, n_2Point(l1) → P_2Point(l2) → Q_2Polygon(P_2, Q_2, O_2, N_2) → v14, p_2, q_2, o_2, r_2Point(l1) → T_2Point(l2) → U_2Polygon(T_2, U_2, S_2, R_2) → v15, t_2, u_2, s_3, f_3Point(l1) → Z_2Point(l2) → A_3Polygon(Z_2, A_3, W_2, V_2) → v16, z_2, a_3, w_2, v_2Point(l1) → D_3Point(l2) → E_3Polygon(D_3, E_3, C_3, B_3) → v17, d_3, e_3, c_3, b_3Point(l1) → J_3Point(l2) → K_3Polygon(J_3, K_3, G_3, F_3) → v18, j_3, k_3, g_3, h_3Point(l1) → L_3Point(l2) → M_3Polygon(L_3, M_3, I_3, H_3) → v19, l_3, m_3, i_3, n_3Point(l1) → P_3Point(l2) → Q_3Polygon(P_3, Q_3, O_3, N_3) → v20, p_3, q_3, o_3, r_3Point(l1) → T_3Point(l2) → U_3Polygon(T_3, U_3, S_3, R_3) → v21, t_3, u_3, s_{4}, f_4Point(l1) → Z_3Point(l2) → A_4Polygon(Z_3, A_4, W_3, V_3) → v22, z_3, a_4, w_3, v_3Point(l1) → D_4Point(l2) → E_4Polygon(D_4, E_4, C_4, B_4) → v23, d_4, e_4, c_4, b_4Polygon(B_{6}, (x(B_{6}) + 1.4, y(B_{6})), (x(B_{6}) + 1.4, y(B_{6}) - 1), (x(B_{6}), y(B_{6}) - 1)) → rectangleCorrect_{1}, c_{5}, d_{5}, e_{5}, i_{4}SpeechBubbleRight(F_4, 3, 1) → Vieleck1OrthogonalLine(L_4, gl2) → nOrthogonalLine(K_4, gl2) → g_4OrthogonalLine(J_4, gl2) → h_4OrthogonalLine(I_4, gl2) → j_4OrthogonalLine(H_4, gl2) → k_4OrthogonalLine(G_4, gl2) → l_4Intersect(n, gl2) → M_4Intersect(g_4, gl2) → N_4Intersect(h_4, gl2) → O_4Intersect(j_4, gl2) → P_4Intersect(k_4, gl2) → Q_4Intersect(l_4, gl2) → R_4Segment(G_4, R_4) → m_4Segment(H_4, Q_4) → n_4Segment(I_4, P_4) → p_4Segment(J_4, O_4) → q_4Segment(K_4, N_4) → r_4Segment(L_4, M_4) → t_4Translate({v1, v2, v3, v5}, (0, 0)) → l4Translate({v6, v7, v8, v9, v10, v11}, (0, 0)) → l5Translate({v12, v13, v14, v15, v16, v17}, (0, 0)) → l6Translate({v18, v19, v20, v21, v22, v23}, (0, 0)) → l7
AI 绘图提示语参考
绘制一个包含多个多边形的复杂图形。首先,创建两条平行线段,每条线段上标记若干点。然后,使用这些点构造多个四边形和五边形。具体来说,在第一条线段上选择四个点,在第二条线段上选择对应的四个点,分别连接这些点形成四个四边形。再在每条线段上选择三个新的点,连接这些点形成两个五边形。最后,在每条线段上再选择两个新的点,连接这些点形成一个新的四边形。所有多边形应尽量保持对称和均匀分布。
以上提示语为根据原始绘图命令整理而来,仅供参考。