Hanlin Math: Frequency Distribution and Statistical Charts
Loading the math board and drawing, please wait…
This GeoGebra applet demonstrates frequency distribution and the creation of statistical charts within the context of middle school mathematics. The applet utilizes commands such as Sequence and spreadsheet objects to dynamically generate histograms and frequency distribution tables, allowing students to interactively explore how raw data is organized, grouped, and visualized.
Through this applet, students can observe the entire process of constructing a frequency distribution from start to finish. They begin by entering or selecting a dataset, after which the applet automatically partitions the data into appropriate intervals or class groups. The corresponding frequency for each group is calculated in real time and displayed in an accompanying frequency distribution table. Simultaneously, a histogram is rendered, providing a clear visual representation of how the data is distributed across the defined classes.
The interactive nature of the applet encourages exploration. Students can adjust parameters such as the number of classes, the class width, or the dataset itself, and immediately see how these changes affect both the numerical table and the graphical output. This dynamic feedback helps learners develop a deeper intuition for concepts like class boundaries, class marks, cumulative frequency, and the relationship between tabular and graphical representations of data.
The use of the Sequence command enables efficient generation of sequences of values and labels, while the spreadsheet object serves as a flexible workspace where students can manually inspect intermediate calculations. Together, these tools bridge the gap between abstract statistical procedures and concrete, observable results.
This applet is particularly well suited for classroom instruction on introductory statistics and data analysis. It supports lessons on organizing raw data, computing relative frequencies, and interpreting histograms and frequency polygons. By making the connection between algebraic commands and statistical visualization explicit, the applet also reinforces computational thinking alongside mathematical reasoning.
Teachers can use this resource as a demonstration tool, a guided exploration activity, or an independent learning module. It is appropriate for students in middle school and early high school who are encountering frequency distributions and statistical charts for the first time, as well as for any learner seeking a clearer, more intuitive grasp of fundamental data analysis concepts.
GeoGebra Commands & Parameters
Sequence(Text[i], i, 1.0, 40.0) → seatnumtextSequence(Text[Element[score, i]], i, 1.0, 40.0) → scoretextSequence(1.0, i, 1.0, 8.0) → xs_1Sequence(0.6, i, 1.0, 11.0) → ys_1mytable(A, xs_1, ys_1) → 表格das(seatnumtext, 座號點集合) → 座號das(titletext, 抬頭點集合) → 抬頭Sequence(poly4[A + (Sum[xs_1, 0.0 + 2.0 * i], 0.0), A + (Sum[xs_1, 0.0 + 2.0 * i], -(Sum[ys_1])), A + (Sum[xs_1, 1.0 + 2.0 * i], -(Sum[ys_1])), A + (Sum[xs_1, 1.0 + 2.0 * i], 0.0)], i, 0.0, 3.0) → 座號區塊das(scoretext, 分數點集合) → 分數Sequence(i * 組距, i, 0.0, floor(100.0 / 組距)) → 分配表組別上邊界Sequence(i * 組距, i, 1.0, floor(100.0 / 組距) + 1.0) → 分配表組別下邊界Sequence(CountIf[x ≥ Element[分配表組別上邊界, i], score], i, 1.0, floor(100.0 / 組距) + 1.0) → 分配表累積次數_1Sequence(If[i < floor(100.0 / 組距), Element[分配表累積次數_1, i] - Element[分配表累積次數_1, i + 1.0], Element[分配表累積次數_1, i]], i, 1.0, floor(100.0 / 組距)) → 分配表組次數Sequence(0.6, i, 1.0, floor(100.0 / 組距) + 1.0) → ys_2mytable(B, xs_2, ys_2) → 次數分配表das(分配表抬頭文字, 分配表抬頭定位點) → 分配表抬頭Sequence(Text[Element[分配表組別上邊界, i]] + "~" + (Text[Element[分配表組別下邊界, i]]), i, 1.0, floor(100.0 / 組距)) → 分配表組別文字locpty(B + (0.2, -(Sum[ys_2, 1.0]) - 0.4), {Sum[xs_2, 1.0]}, Take[ys_2, 2.0, Length[ys_2]]) → 分配表組別定位點das(分配表組別文字, 分配表組別定位點) → 分配表組別locpty(B + (Sum[xs_2, 2.0] + 0.6, -(Sum[ys_2, 1.0]) - 0.4), Take[xs_2, 3.0, 3.0], Take[ys_2, 2.0, Length[ys_2]]) → 分配表組次數定位點Sequence(Text[Element[分配表組次數, i]], i, 1.0, Length[分配表組次數]) → 分配表組次數文字das(分配表組次數文字, 分配表組次數定位點) → 集合1locpty(B + (Sum[xs_2, 3.0] + 0.6, -(Sum[ys_2, 1.0]) - 0.4), Take[xs_2, 4.0, 4.0], Take[ys_2, 2.0, Length[ys_2]]) → 分配表累積次數定位點Sequence(Text[Sum[分配表組次數, i]], i, 1.0, Length[分配表組次數]) → 分配表累積次數文字das(分配表累積次數文字, 分配表累積次數定位點) → 集合2Sequence(Sum[分配表組次數, i], i, 1.0, Length[分配表組次數]) → 分配表累積次數Sequence(100.0 * Element[分配表組次數, i] / Sum[分配表組次數], i, 1.0, Length[分配表組次數]) → 分配表相對次數Sequence(Text[Element[分配表相對次數, i]], i, 1.0, Length[分配表組次數]) → 分配表相對次數文字locpty(B + (Sum[xs_2, 4.0] + 0.6, -(Sum[ys_2, 1.0]) - 0.4), Take[xs_2, 5.0, 5.0], Take[ys_2, 2.0, Length[ys_2]]) → 分配表相對次數定位點das(分配表相對次數文字, 分配表相對次數定位點) → 集合4Sequence(Sum[分配表相對次數, i], i, 1.0, Length[分配表相對次數]) → 分配表相對累積次數Sequence(Text[Element[分配表相對累積次數, i]], i, 1.0, Length[分配表相對累積次數]) → 分配表相對累積次數文字locpty(B + (Sum[xs_2, 5.0] + 0.6, -(Sum[ys_2, 1.0]) - 0.4), Take[xs_2, 6.0, 6.0], Take[ys_2, 2.0, Length[ys_2]]) → 分配表相對累積次數定位點das(分配表相對累積次數文字, 分配表相對累積次數定位點) → 集合5Segment(C, C + (11.0, 0.0)) → a_xSegment(C, C + (0.0, 7.0)) → a_ySequence(C + ((i - 1.0) * 10.0 / (Length[分配表組別上邊界] - 1.0) + 1.0, 0.0), i, 1.0, Length[分配表組別上邊界]) → 橫刻度點集合Sequence(Text[Element[分配表組別上邊界, i]], i, 1.0, Length[分配表組別上邊界]) → 分配表組別上邊界文字das(分配表組別上邊界文字, 橫刻度點集合 + (-(0.2), -(0.5))) → 集合3Sequence(Segment[C + ((i - 1.0) * 10.0 / (Length[分配表組別上邊界] - 1.0) + 1.0, -(0.1)), C + ((i - 1.0) * 10.0 / (Length[分配表組別上邊界] - 1.0) + 1.0, 0.1)], i, 1.0, Length[分配表組別上邊界]) → 橫刻度Object(If[c_3, If[c_4, "分配表相對累積次數", "分配表累積次數"], If[c_4, "分配表相對次數", "分配表組次數"]]) → objsSequence(C + (0.0, (i - 1.0) * 7.0 / 縱軸格數), i, 1.0, 縱軸格數 + 1.0) → 縱刻度點集合Sequence(mybar[Element[橫刻度點集合, i], {10.0 / (Length[分配表組別上邊界] - 1.0), Element[objs, i] * 7.0 / Max[objs]}], i, 1.0, Length[分配表組別上邊界] - 1.0) → 長條圖Sequence(Text[(i - 1.0) * Max[objs] / 縱軸格數], i, 1.0, 縱軸格數 + 1.0) → 縱刻度文字Sequence(Segment[C + (-(0.1), (i - 1.0) * 7.0 / 縱軸格數), C + (11.0, (i - 1.0) * 7.0 / 縱軸格數)], i, 1.0, 縱軸格數 + 1.0) → 縱刻度das(縱刻度文字, (-1.0, -(0.15)) + 縱刻度點集合) → 集合6Sequence((If[c_3, x(Element[橫刻度點集合, i + 1.0]), x((Element[橫刻度點集合, i] + Element[橫刻度點集合, i + 1.0]) / 2.0)], y(C) + Element[objs, i] * 7.0 / Max[objs]), i, 1.0, Length[分配表組別上邊界] - 1.0) → 折線圖頂點集合Sequence(Segment[Element[折線圖頂點集合, i], Element[折線圖頂點集合, i + 1.0]], i, 1.0, Length[折線圖頂點集合] - 1.0) → 折線圖線集合
AI Drawing Prompt Reference
Create an educational statistical chart interface for middle school math. On the left, show a data table with two columns for seat numbers and scores, containing 40 rows. On the right, generate a frequency distribution table with columns for class intervals, class frequencies, cumulative frequencies, relative frequencies, and cumulative relative frequencies. Below, draw a histogram with score intervals on the x-axis and frequency on the y-axis, overlaid with a line graph for cumulative or relative frequencies. Include a title at the top. All values update dynamically with the data.
The prompt above was compiled from the original drawing commands and is for reference only.