Quartiles and Box Plot (Comparing Two Data Sets)
Loading the math board and drawing, please wait…
In collections
S2,3,5 Statistics
This GeoGebra example demonstrates how to compute quartiles and construct box plots for two random data sets for visual comparison. Using commands such as BoxPlot, Median, Mean, Mode, Frequency, and Sort, it dynamically displays data sorting, median, mean, mode, and frequency distribution. Interactive buttons allow users to regenerate random data via the Shuffle function and observe real-time updates of the box plots. Each box plot highlights the five key statistics: minimum value, lower quartile (Q1), median (Q2), upper quartile (Q3), and maximum value. This interactive visualization helps students understand how to compare the central tendency and dispersion of two data sets side by side. By shuffling the data repeatedly, learners can see how different distributions affect the shape and position of the box plots, reinforcing concepts such as interquartile range, outliers, symmetry, and skewness. The applet is particularly useful for exploring how sample size and data spread influence the five-number summary, making abstract statistical measures concrete and visually intuitive. Students benefit from hands-on experimentation, as they can immediately connect numerical computations with graphical representations.
GeoGebra Commands & Parameters
SelectedElement(listNx) → nXSequence(Segment[(0, i), (20, i)], i, seperation, (20 * seperation), seperation) → listGridPoint(listGrid) → APoint(listGrid) → BPoint(listGrid) → CPoint(listGrid) → DPoint(listGrid) → EPoint(listGrid) → FPoint(listGrid) → GPoint(listGrid) → HPoint(listGrid) → IPoint(listGrid) → JSort(listDataX) → listDataXsortedMean(listDataX) → meanXIf(nX ≥ 11, 0.7, If[nX ≥ 9, 0.85, 1]) → scaleMedian(listDataX) → medianXRay((0, 0), (1, 0)) → bMode(listDataX) → listModeXSequence(Random[0, 20], i, 1, nX) → listRandXFrequency(listRandX) → listFreqXSort(listRandX) → listRandSortXFlatten(Zip[Sequence[(seperation * i), i, 1, k], k, listFreqX]) → listHeightXShuffle(Zip[(h, k), h, listRandSortX, k, listHeightX]) → listPositionXPoint(listGrid) → KPoint(listGrid) → LPoint(listGrid) → MPoint(listGrid) → NPoint(listGrid) → OPoint(listGrid) → PPoint(listGrid) → QPoint(listGrid) → RPoint(listGrid) → SPoint(listGrid) → TSelectedElement(listNy) → nYSequence(Random[0, 20], i, 1, nY) → listRandYSort(listRandY) → listRandSortYFrequency(listRandY) → listFreqYSort(listDataY) → listDataYsortedFlatten(Zip[Sequence[(seperation * (i + 10)), i, 1, k], k, listFreqY]) → listHeightYShuffle(Zip[(h, k), h, listRandSortY, k, listHeightY]) → listPositionYMean(listDataY) → meanYMedian(listDataY) → medianYMode(listDataY) → listModeYBoxPlot(5.4, 1, listDataY) → boxplotYBoxPlot(1.4, 1, listDataX) → boxplotX
AI Drawing Prompt Reference
Draw two side-by-side box plots to compare two sets of random data. The left box plot displays the five-number summary of the first data set: minimum, lower quartile, median, upper quartile, and maximum. The right box plot shows the same five statistics for the second data set. Below each box plot, vertical bar charts represent the frequency distribution of values in the corresponding data set, with bar heights indicating frequency. The graphic includes horizontal grid lines for reference, clearly showing the differences in central tendency and dispersion between the two random samples for easy comparison.
The prompt above was compiled from the original drawing commands and is for reference only.