Calculate Mean and Median of Weekly Temperatures

Calculate Mean and Median of Weekly Temperatures
Loading the math board and drawing, please wait…
2015-09-26 00:27
This example demonstrates the temperature data recorded by Karina at noon for one week and requires calculating the mean and median of these data. Key mathematical concepts include the methods of calculating mean and median. Using GeoGebra commands such as Sum, LaTeX, Sort, Element, etc., the process of sorting data, calculation, and results can be visually demonstrated. Suitable for students at junior high school level and above to learn statistical concepts.

GeoGebra Commands & Parameters

  1. Sum({a, b, d, e, f, g, h}) → total
  2. LaTeX((((("\text{ \textcolor{#000099}{=\frac{" * total) * "}{") * 7) * "}}}")) → text6
  3. LaTeX("\text{ \textcolor{#000099}{≈}}") → text7
  4. LaTeX((("\text{ \textcolor{#000099}{" * average) * "}}")) → text8
  5. Sort({a, b, d, e, f, g, h}) → ascending
  6. LaTeX("\text{Find the median temperature.}") → text10
  7. LaTeX("\text{Since there are an odd number of values, the median is the temperature in the middle.}") → text13
  8. Element(ascending, 1) → sort1
  9. Element(ascending, 2) → sort2
  10. Element(ascending, 3) → sort3
  11. Element(ascending, 4) → sort4
  12. Element(ascending, 5) → sort5
  13. Element(ascending, 6) → sort6
  14. Element(ascending, 7) → sort7
  15. TableText({{LaTeX[(("\text{ \textcolor{#000099}{" * sort1) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort2) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort3) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort4) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort5) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort6) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort7) * "}}")]}}, "h") → text12
  16. TableText({{LaTeX[(("\text{ \textcolor{#000099}{" * sort1) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort2) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort3) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort4) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort5) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort6) * "}}")], LaTeX[(("\text{ \textcolor{#000099}{" * sort7) * "}}")]}}, "h") → text14
  17. Median({a, b, d, e, f, g, h}) → median
  18. LaTeX((("\text{The median temperature is \textcolor{#000099}{" * median) * "° F}.}")) → text15
  19. LaTeX((("\text{" * a) * "}")) → text16
  20. LaTeX((("\text{" * b) * "}")) → text17
  21. LaTeX((("\text{" * d) * "}")) → text18
  22. LaTeX((("\text{" * e) * "}")) → text19
  23. LaTeX((("\text{" * f) * "}")) → text20
  24. LaTeX((("\text{" * g) * "}")) → text21
  25. LaTeX((("\text{" * h) * "}")) → text22
  26. Mean({a, b, d, e, f, g, h}) → mean
  27. LaTeX("\text{Find the mean temperature.}") → text4
  28. LaTeX("\text{To find the mean, add the temperatures, then divide the result by the number of temperatures recorded, \textcolor{#000099}{ 7}.}") → text4_1
  29. LaTeX((((((((((((((((("\text{ \textcolor{#000099}{\frac{" * a) * "+") * b) * "+") * d) * "+") * e) * "+") * f) * "+") * g) * "+") * h) * "}{") * 7) * "}}}")) → text5
  30. LaTeX("\text{To find the median, first order the data set from least to greatest:}") → text11
  31. TableText({{LaTeX["\mathbf{Day}"], LaTeX["\text{1}"], LaTeX["\text{2}"], LaTeX["\text{3}"], LaTeX["\text{4}"], LaTeX["\text{5}"], LaTeX["\text{6}"], LaTeX["\text{7}"]}, {LaTeX["\mathbf{Noon \;temperature \;(° F)}"], LaTeX[(("\text{" * a) * "}")], LaTeX[(("\text{" * b) * "}")], LaTeX[(("\text{" * d) * "}")], LaTeX[(("\text{" * e) * "}")], LaTeX[(("\text{" * f) * "}")], LaTeX[(("\text{" * g) * "}")], LaTeX[(("\text{" * h) * "}")]}}, "l|_") → Tabletext
  32. LaTeX("\text{Karina recorded the temperature each day for one week, as shown in the table.}") → Question
  33. LaTeX("\text{\mathbf{mean} the average value of a data set, found by summing all values and dividing by}") → text27
  34. LaTeX("\text{the number of data points}") → text2
  35. LaTeX("\text{and 50% is greater than it.}") → text3
  36. LaTeX("\text{\mathbf{median} the middle-most value of a data set; 50% of the data is less than this value, }") → text28
  37. LaTeX((("\text{The mean temperature is approximately \textcolor{#000099}{" * average) * "° F}.}")) → text9

AI Drawing Prompt Reference

Create a table showing the noon temperature for each day of the week from lowest to highest. Then calculate and label the mean and median temperatures. The mean temperature is the sum of all temperatures divided by 7, and the median temperature is the middle temperature in the sorted list.
The prompt above was compiled from the original drawing commands and is for reference only.