Survey Data Venn Diagram Demo

Survey Data Venn Diagram Demo
Loading the math board and drawing, please wait…
2015-11-10 04:05
This example demonstrates how to use a Venn diagram to visualize survey data on device ownership (smartphones, tablets, laptops). Key math concepts include sets, intersections, unions, and probability & statistics. The construction leverages GeoGebra commands like LaTeX for text display and objects such as val7-val1, stepmax, steps, total, xmin-xmax, ymin-ymax, Calc, Hint, Prev, next, Progressbar (PB1-PB15), and c, d, f, g for data input, computation, dynamic visualization, and interactivity. Suitable for high school students learning probability & statistics and set theory, or for data visualization education.

GeoGebra Commands & Parameters

  1. LaTeX((("\text{" * val2) * "}")) → Equaliservalue2
  2. LaTeX((("\text{" * val3) * "}")) → Equaliservalue3
  3. LaTeX((("\text{" * val4) * "}")) → Equaliservalue4
  4. LaTeX((("\text{" * val6) * "}")) → Equaliservalue6
  5. LaTeX((("\text{" * val7) * "}")) → Equaliservalue7
  6. LaTeX((("\text{" * val1) * "}")) → Equaliservalue1
  7. LaTeX((("\text{" * val5) * "}")) → Equaliservalue5
  8. LaTeX("\text{The total number of people surveyed can be found by summing the number }") → QuestionText_6
  9. LaTeX((("\text{Marquis surveyed \textcolor{#000099}{" * first) * "} people. }")) → QuestionText_{10}
  10. LaTeX("\text{Determine the number of people who own all three devices.}") → QuestionText_{11}
  11. LaTeX("\text{people Marquis surveyed own all three devices. }") → QuestionText_{17}
  12. LaTeX("\text{Determine the number of people who own just a smartphone and a laptop.}") → QuestionText_{14}
  13. LaTeX("\text{The number of people who own just a smartphone and a laptop is represented}") → QuestionText_{18}
  14. LaTeX("\text{in the Venn diagram where the “Smartphone” and “Laptop” circles intersect.}") → QuestionText_{19}
  15. LaTeX((("\text{The number \textcolor{#000099}{" * val4) * "} is listed in the intersection of the “Smartphone” and “Laptop”}")) → QuestionText_{23}
  16. LaTeX((("\text{circles.Therefore,\textcolor{#000099}{" * val4) * "} people own both a smartphone and a laptop.}")) → QuestionText_{24}
  17. LaTeX("\text{Finding the number of people who own only a tablet,only a laptop,or both}") → QuestionText_{26}
  18. LaTeX("\text{and both a tablet and a laptop.}") → QuestionText_{29}
  19. LaTeX("\text{Determine the number of people who do not own a tablet. }") → QuestionText_{37}
  20. LaTeX("\text{The number of people who do not own a tablet is represented by the sum of all}") → QuestionText_{39}
  21. LaTeX("\text{the numbers outside of the “Tablet” circle.}") → QuestionText_{38}
  22. LaTeX((("\text{There are \textcolor{#000099}{" * first_2) * "} people who do not own a tablet.}")) → QuestionText_{43}
  23. LaTeX("\text{Determine the number of people Marquis surveyed. }") → QuestionText_{44}
  24. LaTeX("\text{Smartphone}") → QuestionText_5
  25. LaTeX("\text{Tablet}") → QuestionText_{46}
  26. LaTeX("\text{Laptop}") → QuestionText_{45}
  27. LaTeX((("\text{\textcolor{#000099}{" * val1) * "}}")) → QuestionText_{47}
  28. LaTeX((("\text{\textcolor{#000099}{" * val2) * "}}")) → QuestionText_{48}
  29. LaTeX((("\text{\textcolor{#000099}{" * val3) * "}}")) → QuestionText_{49}
  30. LaTeX((("\text{\textcolor{#000099}{" * val4) * "}}")) → QuestionText_{50}
  31. LaTeX((("\text{\textcolor{#000099}{" * val5) * "}}")) → QuestionText_{51}
  32. LaTeX((("\text{\textcolor{#000099}{" * val6) * "}}")) → QuestionText_{52}
  33. LaTeX((("\text{\textcolor{#000099}{" * val7) * "}}")) → QuestionText_{53}
  34. LaTeX("\text{Determine each of the following from the given Venn diagram.}") → QuestionText
  35. LaTeX("\text{S - Smartphone}") → QuestionText_{61}
  36. LaTeX("\text{T - Tablet}") → QuestionText_{62}
  37. LaTeX("\text{L - Laptop}") → QuestionText_{63}
  38. LaTeX("\text{3. the number of people who own just a }") → QuestionText_{74}
  39. LaTeX("\text{4. the number of people who own only a tablet,only a laptop, }") → QuestionText_{73}
  40. LaTeX("\text{Assume that everyone Marquis asked responded to the survey,and everyone owned at least one of the devices. }") → QuestionText_4
  41. LaTeX("\text{The number of people who own all three devices—a smartphone,a tablet, }") → QuestionText_{12}
  42. LaTeX((((("\text{The number \textcolor{#000099}{" * val5) * "} is listed in the intersection of all three circles,so \textcolor{#000099}{") * val5) * "} of the }")) → QuestionText_{13}
  43. LaTeX((("\text{Notice that,as found in the previous step,there are also \textcolor{#000099}{" * val5) * "} people who have }")) → QuestionText_{20}
  44. LaTeX("\text{all three devices.However,we need to determine how many people own}") → QuestionText_{21}
  45. LaTeX("\text{just a smartphone and a laptop,not a tablet as well.}") → QuestionText_{22}
  46. LaTeX("\text{determine the number of people surveyed. }") → QuestionText_8
  47. LaTeX("\text{of people in each category.Add the numbers found in each category to}") → QuestionText_7
  48. LaTeX("\text{three of the circles intersect. }") → QuestionText_{16}
  49. LaTeX("\text{and a laptop—is represented in the portion of the Venn diagram where all}") → QuestionText_{15}
  50. LaTeX("\text{tablet and a laptop.}") → QuestionText_{27}
  51. LaTeX("\text{Determine the number of people who own only a tablet,only a laptop,or both a }") → QuestionText_{25}
  52. LaTeX("\text{means summing the number of people who have only a tablet,only a laptop,}") → QuestionText_{28}
  53. LaTeX("\text{“Laptop” circles intersect.}") → QuestionText_{31}
  54. LaTeX("\text{The number of people who have both is shown where the “Tablet” and}") → QuestionText_{30}
  55. LaTeX("\text{three numbers.}") → QuestionText_{34}
  56. LaTeX((((("\text{There are \textcolor{#000099}{" * val3) * "} people who own only a tablet,\textcolor{#000099}{") * val7) * "} people who own only a laptop,}")) → QuestionText_{32}
  57. LaTeX((("\text{and \textcolor{#000099}{" * val6) * "} people who own both a tablet and a laptop.Find the total of these}")) → QuestionText_{33}
  58. LaTeX((("\text{There are \textcolor{#000099}{" * first_1) * "} people who own only a tablet,only a laptop,or both.}")) → QuestionText_{36}
  59. LaTeX((((((("\text{are \textcolor{#000099}{" * val1) * "},\textcolor{#000099}{") * val4) * "},and \textcolor{#000099}{") * val7) * "}.Find the total of these three numbers.}")) → QuestionText_{41}
  60. LaTeX("\text{The numbers in the diagram that are \textcolor{#000099}{not} included in the “Tablet” circle}") → QuestionText_{40}
  61. LaTeX("\text{1. the number of people Marquis surveyed}") → QuestionText_1
  62. LaTeX("\text{2. the number of people who own all three devices}") → QuestionText_{72}
  63. LaTeX("\text{smartphone and a laptop}") → QuestionText_2
  64. LaTeX("\text{5. the number of people who do not own a tablet}") → QuestionText_3
  65. LaTeX("\text{or both a tablet and a laptop}") → QuestionText_{75}
  66. LaTeX("\mathbf{S}") → QuestionText_{54}
  67. LaTeX("\mathbf{S\&T}") → QuestionText_{55}
  68. LaTeX("\mathbf{T}") → QuestionText_{56}
  69. LaTeX("\mathbf{S\&L}") → QuestionText_{57}
  70. LaTeX("\mathbf{S,T\&L}") → QuestionText_{59}
  71. LaTeX("\mathbf{L\&T}") → QuestionText_{58}
  72. LaTeX("\mathbf{L}") → QuestionText_{60}
  73. LaTeX("\text{are related.}") → QuestionText_{65}
  74. LaTeX("\text{\mathbf{Venn\;diagram} a diagram that shows how two or more sets in a universal set}") → QuestionText_{64}
  75. LaTeX("\text{\mathbf{Intersection} a set whose elements are each in both of two other sets.The}") → QuestionText_{67}
  76. LaTeX("\text{both \textcolor{#000099}{A} and \textcolor{#000099}{B}. }") → QuestionText_{68}
  77. LaTeX("\text{intersection of sets \textcolor{#000099}{A} and \textcolor{#000099}{B},denoted by \textcolor{#000099}{A∩B},is the elements that are in}") → QuestionText_{66}
  78. LaTeX("\text{or both \textcolor{#000099}{A} and \textcolor{#000099}{B}. }") → QuestionText_{71}
  79. LaTeX("\text{sets \textcolor{#000099}{A} and \textcolor{#000099}{B},denoted by \textcolor{#000099}{A∪B},is the set of elements that are in either \textcolor{#000099}{A} or \textcolor{#000099}{B}}") → QuestionText_{70}
  80. LaTeX("\text{\mathbf{Union} a set whose elements are in at least one of two other sets.The union of }") → QuestionText_{69}
  81. LaTeX((((((((((((((((("\text{\textcolor{#000099}{" * val1) * "}\textcolor{#000099}{+") * val2) * "}\textcolor{#000099}{+") * val3) * "}\textcolor{#000099}{+") * val4) * "}\textcolor{#000099}{+") * val5) * "}\textcolor{#000099}{+") * val6) * "}\textcolor{#000099}{+") * val7) * "\;= } \textcolor{#000099}{") * first) * "}}")) → QuestionText_9
  82. LaTeX((((((((("\text{\textcolor{#000099}{" * val1) * "}\textcolor{#000099}{+") * val4) * "}\textcolor{#000099}{+") * val7) * "\;=} \textcolor{#000099}{") * first_2) * "}}")) → QuestionText_{42}
  83. LaTeX((((((((("\text{\textcolor{#000099}{" * val7) * "}\textcolor{#000099}{+") * val3) * "\;+}\textcolor{#000099}{") * val6) * "\;=} \textcolor{#000099}{") * first_1) * "}}")) → QuestionText_{35}