【統計圖:箱形圖、幹葉圖、直方圖及累積頻數圖】Statistical Diagrams: Box Plots, Stem-and-Leaf, Histograms and Cumulative Frequency
SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20
箱形圖顯示五數概括:最小值、Q₁、中位數、Q₃、最大值。幹葉圖保留每一個數據。當組距不同時,直方圖用頻數密度 = 頻數 ÷ 組距。累積頻數曲線可由 50%、25%、75% 水平讀出中位數及四分位數。A box plot shows the five-number summary: minimum, Q₁, median, Q₃, maximum. A stem-and-leaf display keeps every value. A histogram uses frequency density = frequency ÷ class width when the widths differ. A cumulative frequency curve gives the median and quartiles by reading across from 50%, 25% and 75%.
拖動 Q₃:箱變長,四分位數間距 Q₃ − 4 增大,中位數及鬚則不動。Q₃ = 9 即例題 1。 Drag Q₃: the box stretches, the IQR = Q₃ − 4 grows, and the median and whiskers stay where they are. Q₃ = 9 is Example 1. 自己試試 → Try it yourself →
統計圖重點 Diagram Facts
五數概括Five-number summarymin, Q₁, median, Q₃, max
四分位數間距Interquartile rangeIQR = Q₃ − Q₁
頻數密度Frequency densityfrequency / class width
圓形圖的角度Pie chart anglefrequency / total × 360°
累積頻數Cumulative frequency對應各組的上組界繪畫Plot against the upper class boundary
When the classes have different widths, the height of a bar is the frequency density = frequency ÷ class width, so the area of each bar is proportional to its frequency.
改變紅色組別的闊度:高度隨之下降,使面積(頻數 60)保持不變。 Change the width of the red class: its height drops so that the area (the frequency 60) stays the same.
Plot cumulative frequency against the upper class boundary. Go across from 50% of the total to the curve and down to the axis for the median; use 25% and 75% for Q₁ and Q₃.
移動水平線 p:向右到曲線,再向下到橫軸。在 50 處讀出中位數。 Move the level p: go across to the curve and down to the axis. At 50 you read the median.
Statistical diagrams are learnt from primary school onwards. This page lists all the types HKDSE can test: bar chart, pie chart, stem-and-leaf diagram, broken-line graph, frequency polygon, cumulative frequency polygon and box-and-whisker diagram.
A bar chart is made of a series of vertical or horizontal rectangles. The horizontal axis usually shows the categories and the vertical axis the amount or proportion. It compares data between categories, for example the sales of different products or the income of different months. Look at the height or length of each bar for trends and differences, and read the labels on both axes carefully.
Example: a company's revenue over five years (million dollars): 2019: 20, 2020: 25, 2021: 30, 2022: 28, 2023: 32. Draw a bar chart of the revenue of each year.
A pie chart is based on a circle (360°) divided into parts whose sizes show their proportions of the whole, for example market share or the structure of spending. Remember: value ÷ total = angle ÷ 360° = percentage ÷ 100.
Example: in a class 40% are boys and 60% are girls. Boys: 0.40 × 360° = 144°; girls: 0.60 × 360° = 216°.
In a stem-and-leaf diagram each number is split into a "stem" (usually the leading digit or digits) and a "leaf" (the last digit). It shows the distribution of the data, especially for a small data set. Note the unit of the stem: if it is "tens", write only the tens digit, not the tens value, and do not put commas between the leaves.
A broken-line graph is made of line segments joining data points and shows how data change with time, for example a share price over time or the temperature over the seasons. HKDSE often tests the time-speed and time-distance graphs, with time on the horizontal axis.
Time-speed graph of a car: a rising segment means speeding up, a falling segment slowing down, a horizontal segment constant speed. Time-distance graph: the slope is the speed: a straight segment means constant speed, a flatter segment means slowing down, a horizontal segment means the car has stopped (speed 0), and a steeper segment means speeding up.
A frequency polygon joins the frequency points of each group with straight segments. The height at each point is the frequency of that group, and the x-axis shows the classes or groups. It shows the distribution of the data, especially for continuous data, and helps you look at its shape and centre.
Example: a frequency table of exam marks: 60–69: 5, 70–79: 8, 80–89: 12, 90–100: 6. Plot each frequency at the class mid-value (64.5, 74.5, 84.5, 95) and join the points.
A cumulative frequency polygon is a variation of the frequency polygon. It shows not the frequency of each group but the cumulative frequency: each height is the number of values up to the upper class boundary of that group. It shows how the data build up and helps you read, for example, how many observations are below a given value. You can read the median and the quartiles from it.
箱形圖 Box and Whisker Diagram Box-and-whisker Diagram
箱形圖(Box and Whisker Diagram)是一種用於顯示數據集中的分佈情況的統計圖表,它提供了數據的五個摘要統計量:最小值、下四分位數(Q1)、中位數(Q2)、上四分位數(Q3)和最大值。除此之外,它還能夠檢測數據的離群值。箱由 Q1 畫到 Q3(箱的長度就是四分位數間距),中間一條線是中位數,兩邊的鬚伸展到最小值和最大值。
A box-and-whisker diagram shows the distribution of a data set with five summary values: the minimum, the lower quartile (Q1), the median (Q2), the upper quartile (Q3) and the maximum. It can also help to spot outliers. The box runs from Q1 to Q3 (its length is the inter-quartile range) with a line at the median, and the whiskers run to the minimum and the maximum.
⚠️ 累積頻數要對應上組界 Plot cumulative frequency at the upper boundary累積頻數要到該組結束才完整,所以要在上組界描點,而不是組中值。The cumulative frequency up to a class is only complete at the end of the class, so plot the point at the upper class boundary, not the mid-value.
⚠️ 組距不等的直方圖 A histogram with unequal classes若各組組距不同,直方圖的高度是頻數密度,而不是頻數。面積才與頻數成正比。If the classes have different widths, the height is the frequency density, not the frequency. The area is proportional to the frequency.