Creating a Scatter Plot: DP1B-04-P3-Q3 Interactive Exercise

Creating a Scatter Plot: DP1B-04-P3-Q3 Interactive Exercise
Loading the math board and drawing, please wait…
2018-05-18 22:51
This GeoGebra example demonstrates how to create a scatter plot by generating random points on a coordinate plane, with an interactive interface for students to determine whether points lie within specified regions. Core mathematical concepts include coordinate geometry, point location, integer coordinates, and random data generation. The construction uses GeoGebra commands such as Random, Sequence, Point to generate random points, Append and Sort to manage point lists, Segment and Polygon to define region boundaries, and Shuffle and Element to randomize answer options. Additional objects like RotateText, PointLocation, TryAnother, and CheckMark provide interactive feedback. Suitable for middle and high school students (e.g., IB DP Mathematics) learning statistical plotting and coordinate geometry in classroom or self-study settings.

GeoGebra Commands & Parameters

  1. Append(Sequence[Sequence[(1 + j, 1 + i), i, 0, 8], j, 0, 10], PointLocation) → GridSpace
  2. LaTeX("Which\ variable\ should\ be\ on\ which\ axis?") → Instructions
  3. Segment(Origin, (x(Origin), yHeight)) → yaxis
  4. Segment(Origin, (xHeight, y(Origin))) → xaxis
  5. LaTeX("Time") → Item1
  6. LaTeX("Money") → Item2
  7. Polygon(Pt1, Pt1 + Corner[Item1, 3] - Corner[Item1, 4], Pt1 + Corner[Item1, 2] - Corner[Item1, 4], Pt1 + Corner[Item1, 1] - Corner[Item1, 4]) → DragSpace1, pt1, f, g, h
  8. Polygon(Pt2, Pt2 + Corner[Item2, 3] - Corner[Item2, 4], Pt2 + Corner[Item2, 2] - Corner[Item2, 4], Pt2 + Corner[Item2, 1] - Corner[Item2, 4]) → DragSpace2, pt2, i, j, k
  9. LaTeX("\checkmark") → CheckMark
  10. LaTeX("\times") → Wrong
  11. Polygon(Origin, (xHeight, y(Origin)), (xHeight, -10), (x(Origin), -10)) → WhiteSpace1, origin, l, m, n
  12. Polygon((x(Origin), yHeight), (xHeight, yHeight), (xHeight, 30), (x(Origin), 30)) → WhiteSpace2, p, q, r, s
  13. Polygon((x(Origin), -10), (x(Origin), 30), (-10, 30), (-10, -10)) → WhiteSpace3, t, a, b, c
  14. Polygon((xHeight, -10), (xHeight, 30), (30, 30), (30, -10)) → WhiteSpace4, d, e, f_1, g_1
  15. Shuffle({Item1lc, Item2lc}) → ItemList
  16. Element(ItemList, 1) → FirstItem
  17. Element(ItemList, 2) → SecondItem
  18. LaTeX("Paired\ data\ was\ collected\ to\ study\ the\ relationship\ between\ " + FirstItem + (("\\ and\ " * SecondItem)) + ". \, Which\ one\ would\ you\ place\ on\ the\ horizontal\ axis?") → InstructionsQ1
  19. LaTeX(("The\ independent\ variable\ affects\ the\\ dependent\ variable.\\ It\ is\ likely\ that\ " * Item1lc) + "\\ affects\ " + Item2lc + "\ so\ we\\ identify\ " + Item1lc + "\ as\ the\\ independent\ variable\ and\ place\ it\\ on\ the\ horizontal\ axis.") → FeedbackQ1
  20. LaTeX("Drag\ a\ variable\ onto\ the\ horizontal\ axis\\ before\ checking\ your\ work.") → FeedbackNotStarted
  21. Sequence((1 + i, 1), i, 1, 10) → XPointLocations
  22. Sequence((1, 1 + i), i, 1, 8) → YPointLocations
  23. Sequence(Text[(ymult * i), Element[YPointLocations, i] - (0.79, 0.2)], i, 1, 9) → YLabels
  24. Sequence(Text[(xmult * i), Element[XPointLocations, i] - (0.18, 0.7)], i, 1, 10) → XLabels
  25. RotateText(LaTeX[Item2], π / 2) → YLabel
  26. LaTeX(Item1) → XLabel
  27. Point(GridSpace) → Point1
  28. Point(GridSpace) → Point2
  29. Point(GridSpace) → Point3
  30. Point(GridSpace) → Point4
  31. Point(GridSpace) → Point6
  32. Point(GridSpace) → Point5
  33. Sort({Point1, Point2, Point3, Point4, Point5, Point6}) → Points
  34. Sort({(x1 / xmult, y1 / ymult), (x2 / xmult, y2 / ymult), (x3 / xmult, y3 / ymult), (x4 / xmult, y4 / ymult), (x5 / xmult, y5 / ymult), (x6 / xmult, y6 / ymult)} + {(1, 1), (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)}) → Answer
  35. Sequence(TLPoint - (0, (i * Height)), i, 1, 7) → LeftPts
  36. Sequence(TRPoint - (0, (i * Height)), i, 1, 7) → RightPts
  37. Segment(TMPoint, BMPoint) → h_1
  38. Segment(TLPoint, Element[LeftPts, 7]) → LeftSegment
  39. Segment(TRPoint, Element[RightPts, 7]) → RightSegment
  40. Sequence(Segment[Element[LeftPts, i], Element[RightPts, i]], i, 1, 7) → Segments
  41. Segment(TLPoint, TRPoint) → TopLine
  42. Element(LeftPts, 1) → PtA
  43. Element(RightPts, 1) → PtB
  44. Polygon(TLPoint, PtA, PtB, TRPoint) → q1, tlpoint, pta, ptb, trpoint
  45. LaTeX("Points\text{:}") → PointText
  46. LaTeX(x1) → x1Text
  47. LaTeX(x2) → x2Text
  48. LaTeX(x3) → x3Text
  49. LaTeX(x4) → x4Text
  50. LaTeX(x5) → x5Text
  51. LaTeX(x6) → x6Text
  52. LaTeX(y1) → y1Text
  53. LaTeX(y2) → y2Text
  54. LaTeX(y3) → y3Text
  55. LaTeX(y4) → y4Text
  56. LaTeX(y5) → y5Text
  57. LaTeX(y6) → y6Text
  58. LaTeX(Item1) → XColLabel
  59. LaTeX(Item2) → YColLabel
  60. Random(1, 5) → qindex
  61. LaTeX("The\ correct\ answer\ is\ shown.\, See\ where\ you\\ made\ mistakes\ and\ try\ again.") → FBAnsShown
  62. LaTeX("Drag\ all\ the\ points\ onto\ the\ grid\ before\\ checking\ your\ work.") → FBNotStarted2
  63. LaTeX("Correct!") → FBCorrect
  64. LaTeX("One\ or\ more\ of\ the\ points\ is\ incorrect.\,\\Please\ try\ again.") → FBWrong
  65. LaTeX("Paired\ data\ was\ collected\ to\ study\ the\ effect\ of\ " + Item1lc + "\ on\ " + Item2lc + ".\\ Graph\ the\ data\ set.") → InstructionsQ2
  66. LaTeX("\textbf{Instructions\text{:}}\ First,\, drag\ the\ correct\ variable\ to\ the\ horizontal\ axis.") → Instructions2S1
  67. LaTeX("\textbf{Instructions\text{:}}\ Drag\ points\ onto\ the\ grid\ to\ graph\ the\ data\ set. ") → Instructions2S2
  68. LaTeX(("The\ \textbf{independent}\ variable\ affects\ the\\ dependent\ variable.\\ The\ \textbf{independent}\ variable\ goes\ on\\ the\ horizontal\ axis.\\This\ study\ looks\ at\ how\ " * Item1lc) + "\\ affects\ " + Item2lc + ".\\ Thus,\, " + Item1lc + "\ is\ the\\ independent\ variable.") → FeedbackQ2

AI Drawing Prompt Reference

Create a coordinate plane with horizontal and vertical axes from the origin, labeled with tick marks. Randomly place six integer-coordinate points in the grid area. Below the plane, show two draggable labels, one saying 'Time' and the other 'Money', for choosing the horizontal axis variable. Display a question text asking which variable should be on the horizontal axis. Include a feedback area with a checkmark and a cross symbol, plus instructional text for checking answers. The layout should be clean and interactive for students.
The prompt above was compiled from the original drawing commands and is for reference only.