Analyzing Water-Use Data with Mean, Mode, and Median

Analyzing Water-Use Data with Mean, Mode, and Median
Loading the math board and drawing, please wait…
2023-07-13 08:37
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

  1. If(questionCount ≟ 3, {inputa + 10, inputb, inputc, inputd, inpute}, {inputa, inputb, inputc, inputd, inpute}) → columnList
  2. Median(columnList) → Med
  3. mean(columnList) → Mean
  4. Textfield(input1) → InputBox1
  5. Textfield(input2) → InputBox2
  6. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, rectangleCorrectS3, rectangleCorrectS4, rectangleCorrectS2, rectangleCorrectS1
  7. Shuffle(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}
  8. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  9. Shuffle(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}
  10. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  11. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  12. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  13. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  14. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  15. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  16. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  17. mean(columnListUrspr) → MeanUrspr
  18. Median(columnListUrspr) → MedUrspr
  19. Sort(columnList) → columnListSorted
  20. Textfield(input4) → InputBox4
  21. Textfield(input5) → InputBox5
  22. Textfield(input6) → InputBox6
  23. Textfield(input7) → InputBox7
  24. Textfield(inputa) → InputBoxA
  25. Textfield(inputb) → InputBoxB
  26. Textfield(inputc) → InputBoxC
  27. Textfield(inputd) → InputBoxD
  28. Textfield(inpute) → InputBoxE
  29. Polygon(I, J, K, L) → q1, i, j, k, l
  30. OrthogonalLine(M, j) → f
  31. Intersect(f, j) → N
  32. Segment(M, N) → g
  33. Segment(O, S) → h
  34. Segment(P, T) → m
  35. Segment(Q, U) → n
  36. Segment(R, V) → p
  37. Segment(I, Z) → q
  38. Segment(L, W) → r
  39. Segment(Z, W) → s
  40. If(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.