Contingency Table & Chi‑Square Test of Pet Preferences by Grade

Contingency Table & Chi‑Square Test of Pet Preferences by Grade
Loading the math board and drawing, please wait…
2012-07-10 21:29
① This example demonstrates how to display a contingency table of student pet preferences (bird, cat, dog, fish) across two grades and perform a chi‑square test of independence. ② Core mathematical concepts: contingency table construction, frequency counts, chi‑square statistic computation, hypothesis testing and confidence intervals. ③ Construction highlights: Textfield for data entry, Segment and Polygon to draw grouped bar segments, Vector for annotation; objects include per‑grade per‑pet count points (e.g., bird9, cat10), summary objects (SumBirdB, etc.), and grade labels (Grade, Grade9, Grade10). ④ Suitable for high‑school statistics and probability courses, introductory college statistics, and as a teaching resource for data visualization and hypothesis testing.

GeoGebra Commands & Parameters

  1. Textfield(B3) → bird9
  2. Textfield(B4) → bird10
  3. Textfield(C3) → cat9
  4. Textfield(C4) → cat10
  5. Textfield(D3) → dog9
  6. Textfield(D4) → dog10
  7. Textfield(E3) → fish9
  8. Textfield(E4) → fish10
  9. Segment(C, D) → b
  10. Segment(E, F) → c
  11. Segment(G, H) → d
  12. Segment(I, J) → e
  13. Segment(A, M) → g
  14. Segment(N, K) → h
  15. Segment(M, K) → i
  16. Segment(O, P) → j
  17. Segment(Q, R) → k
  18. Segment(S, T) → l
  19. Segment(B, L) → m
  20. Polygon(C, N, K, M) → poly1, n, p, q, r
  21. Polygon(C, U, O, A) → GradePoly, s, t, a_1, b_1
  22. Segment(A, S) → a
  23. Segment(K, T) → f
  24. Polygon(S, B, V, D) → poly2, s_1, b_2, v, d_1
  25. Polygon(F, A1, W, H) → poly3, f_1, a1, w, h_1
  26. Polygon(Z, L, T, J) → poly4, z, l_1, t_1, j_1
  27. Vector(A_1, B_1) → u
  28. Vector(C_1, D_1) → u_1
  29. Vector(E_1, F_1) → v_1
  30. Vector(G_1, H_1) → w_1
  31. Polygon(I_1, M_1, M, L_1) → Title, c_1, e_1, g_1, i_1

AI Drawing Prompt Reference

Create a contingency table showing student pet preferences across two grades, with categories for birds, cats, dogs, and fish. Add text fields for entering the count of each pet per grade. Draw grouped bar charts by constructing horizontal and vertical segments and filling polygons to represent each bar. Include grade labels and a title for the chart. Use vectors to annotate key data points and highlight results. The layout should clearly display the frequency counts, allow easy data entry, and present the chi‑square test visualization for statistical analysis.
The prompt above was compiled from the original drawing commands and is for reference only.