Analyzing Water-Use Data with Mean, Mode, and Median
Loading the math board and drawing, please wait…
This GeoGebra lesson uses a real-life context (“Wasserverbrauch”, water consumption) to help students explore how to describe a data set’s central tendency. It focuses on three core statistics: arithmetic mean (mean), mode, and median. Students learn to compute these values by first organizing the data (shuffle, then sort), determining the median from the ordered list, and identifying the mode from frequency. Construction details reflected in the command structure include interactive controls such as dropdowns (dropDown1, dropDown2) and text inputs (inputa–inpute, input1–input7), data manipulation with Shuffle and Sort, data handling with Element plus Append/Remove and lists (e.g., columnList, Med/Mean variables), logic flow using If and validate, and UI/response elements like Textfield, showanswer/showsolution, and btnValidate. Suitable for grades 5–6 and introductory probability & statistics practice on interpreting numerical summaries.
GeoGebra Commands & Parameters
If(questionCount ≟ 3, {inputa + 10, inputb, inputc, inputd, inpute}, {inputa, inputb, inputc, inputd, inpute}) → columnListMedian(columnList) → Medmean(columnList) → MeanTextfield(input1) → InputBox1Textfield(input2) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, rectangleCorrectS3, rectangleCorrectS4, rectangleCorrectS2, rectangleCorrectS1Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 0, 3, 8, 5, 6, 3, 3, 4, 8, 2, 6, 9, 7, 3, 6, 2, 6, 2, 0, 7, 1, 6, 5, 4, 5, 8, 6, 9, 4, 10, 9, 0, 6, 0, 0, 9, 6, 5, 3, 3, 0, 5, 5, 9, 3, 5, 8, 0, 6, 2, 9, 4, 8, 10, 4, 5, 0, 10, 5, 5, 9, 3, 5, 7, 1, 9, 0, 7, 0, 4, 0, 10, 9, 1, 0, 6, 5, 10, 4, 0, 0, 9, 1, 0, 10, 6, 6, 8, 9, 3, 10, 9, 1, 6, 5, 3, 6, 10, 3}Element(randomNosForX, Mod[questionCount, 100] + 1) → numXShuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {9, 8, 10, 5, 1, 4, 0, 9, 0, 9, 8, 10, 8, 0, 2, 6, 9, 10, 4, 8, 10, 10, 7, 7, 3, 2, 3, 6, 8, 5, 8, 7, 1, 9, 1, 3, 6, 0, 2, 10, 5, 0, 0, 4, 8, 2, 6, 2, 3, 8, 7, 9, 5, 5, 5, 8, 8, 6, 3, 9, 5, 9, 3, 2, 6, 5, 1, 10, 7, 0, 8, 2, 10, 2, 8, 7, 6, 10, 3, 2, 3, 2, 7, 5, 2, 9, 5, 9, 9, 7, 7, 10, 1, 10, 8, 0, 0, 10, 7, 1}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) → numYwithoutRepeatmean(columnListUrspr) → MeanUrsprMedian(columnListUrspr) → MedUrsprSort(columnList) → columnListSortedTextfield(input4) → InputBox4Textfield(input5) → InputBox5Textfield(input6) → InputBox6Textfield(input7) → InputBox7Textfield(inputa) → InputBoxATextfield(inputb) → InputBoxBTextfield(inputc) → InputBoxCTextfield(inputd) → InputBoxDTextfield(inpute) → InputBoxEPolygon(I, J, K, L) → q1, i, j, k, lOrthogonalLine(M, j) → fIntersect(f, j) → NSegment(M, N) → gSegment(O, S) → hSegment(P, T) → mSegment(Q, U) → nSegment(R, V) → pSegment(I, Z) → qSegment(L, W) → rSegment(Z, W) → sIf(questionCount < 4, (-5.03412, 6.55313), (-5.03412, 7)) → PSol
AI Drawing Prompt Reference
Create a window with 5 input boxes for entering 5 numbers. Calculate and display the mean and median of these numbers. Generate a list of random numbers, and use two of them as X and Y coordinates. Draw a rectangle and a line perpendicular to the Y-axis that intersects the top side of the rectangle, with the intersection point as one of the endpoints of the line.
The prompt above was compiled from the original drawing commands and is for reference only.