Surveys in St. FLINKering - Multi-Field Tables and Contingency Tables

Surveys in St. FLINKering - Multi-Field Tables and Contingency Tables
Loading the math board and drawing, please wait…
2025-02-12 17:46
In collections Kreuztabellen
This GeoGebra example demonstrates how to organize and present statistical data using interactive multi-field tables (Mehrfeldertafeln) and four-field tables (Vierfeldertafeln). The core mathematical concepts involve contingency tables and four-fold tables in probability and statistics, used to display the joint distribution of two categorical variables. The construction uses GeoGebra commands such as Element, Sequence, Textfield, Join, If, and Text, creating multiple input fields (e.g., input22 to input65) and answer lists (SolList01, SolList02, etc.), with random question generation (randomQuestions) and a validation button (btnValidate) for automatic checking. This material is suitable for grades 7-8, helping students practice converting data into cross-tabulations and four-fold tables, and enhancing their data representation skills.

GeoGebra Commands & Parameters

  1. Element(randomQuestions, Mod[questionCount - 1, Length[randomQuestions]] + 1) → randomQuestion
  2. Sequence(InputList01(k) ≟ SolList01(k), k, 1, Length[InputList01]) → CorrectList01
  3. Sequence(InputList02(k) ≟ SolList02(k), k, 1, Length[InputList02]) → CorrectList02
  4. Sequence(InputList03(k) ≟ SolList03(k), k, 1, Length[InputList03]) → CorrectList03
  5. Textfield(input) → inputBox
  6. Join({Sequence[Segment[Corner[4] + (RasterPixMat * ((k * RasterStepXY), 0)), Corner[4] + (RasterPixMat * ((k * RasterStepXY), RasterMaxY))], k, 0, RasterMaxX / RasterStepXY], Sequence[Segment[Corner[4] + (RasterPixMat * (0, (k * RasterStepXY))), Corner[4] + (RasterPixMat * (RasterMaxX, (k * RasterStepXY)))], k, 0, RasterMaxY / RasterStepXY]}) → RasterStrecken
  7. Join({Sequence[Text[UnicodeToLetter[65 + k], Midpoint[Corner[4] + (RasterPixMat * ((k * RasterStepXY), RasterMaxY)), Corner[4] + (RasterPixMat * (((k + 1) * RasterStepXY), RasterMaxY))], false, true, 0, -1], k, 0, RasterMaxX / RasterStepXY - 1], Sequence[Text[("" * k), Midpoint[Corner[4] + (RasterPixMat * (RasterMaxX, ((k - 1) * RasterStepXY))), Corner[4] + (RasterPixMat * (RasterMaxX, (k * RasterStepXY)))], false, true, 1, 0], k, 1, RasterMaxY / RasterStepXY]}) → RasterBeschriftung
  8. Sequence(Sequence[Corner[4] + (RasterPixMat * ((k * RasterStepXY), (m * RasterStepXY))), k, 0, RasterMaxX / RasterStepXY], m, 0, RasterMaxY / RasterStepXY) → RasterPunkte
  9. Element({4, 6, 4}, randomQuestion) → AnzahlZeilen
  10. Element({6, 5, 7}, randomQuestion) → AnzahlSpalten
  11. If(randomQuestion ≟ 3, 1.1, 0.9) → zeile1
  12. If(randomQuestion ≟ 1, 4, randomQuestion ≟ 2, 3.5, 2.75) → spalte1
  13. If(randomQuestion ≟ 3, 2, 2.5) → spalte3
  14. If(randomQuestion ≟ 3, 2, 2.5) → spalte4
  15. If(randomQuestion ≟ 3, 3, randomQuestion ≟ 2, 2.5, 2.5) → spalte5
  16. If(randomQuestion ≟ 3, 2, 2.5) → spalte6
  17. Sequence(Sequence[PosTable + (Sum[ListSpalte, k], (-Sum[ListZeile, m])), k, 0, AnzahlSpalten], m, 0, AnzahlZeilen) → TablePosMat
  18. Textfield(input22) → InputBox22
  19. Textfield(input23) → InputBox23
  20. Textfield(input24) → InputBox24
  21. Textfield(input25) → InputBox25
  22. Textfield(input26) → InputBox26
  23. Textfield(input27) → InputBox27
  24. Textfield(input32) → InputBox32
  25. Textfield(input33) → InputBox33
  26. Textfield(input34) → InputBox34
  27. Textfield(input35) → InputBox35
  28. Textfield(input36) → InputBox36
  29. Textfield(input37) → InputBox37
  30. Textfield(input42) → InputBox42
  31. Textfield(input43) → InputBox43
  32. Textfield(input44) → InputBox44
  33. Textfield(input45) → InputBox45
  34. Textfield(input46) → InputBox46
  35. Textfield(input47) → InputBox47
  36. Textfield(input25) → InputBox55
  37. Textfield(input62) → InputBox62
  38. Textfield(input63) → InputBox63
  39. Textfield(input64) → InputBox64
  40. Textfield(input65) → InputBox65
  41. If(randomQuestion ≟ 1, Length[RemoveUndefined[InputList01]] ≟ Length[InputList01], randomQuestion ≟ 2, Length[RemoveUndefined[InputList02]] ≟ Length[InputList02], randomQuestion ≟ 3, Length[RemoveUndefined[InputList03]] ≟ Length[InputList03]) → clickableBtnValidate
  42. Textfield(input031) → InputBox031
  43. Textfield(input032) → InputBox032
  44. Textfield(input033) → InputBox033
  45. Textfield(input034) → InputBox034
  46. Textfield(input035) → InputBox035
  47. Textfield(input036) → InputBox036
  48. Textfield(input52) → InputBox52
  49. Textfield(input53) → InputBox53
  50. Textfield(input54) → InputBox54
  51. Text("\textsf{\bold{Lösung:}}", Midpoint[TablePosMat(1, 1), TablePosMat(2, 2)] + (0, 0.05), false, true, 0, 0) → txtSolutionTable

AI Drawing Prompt Reference

This is an interactive statistical table generator. Users input data into multiple input boxes, and the graphic automatically creates multi-field or four-field tables based on a randomly generated question. It includes an input area, table drawing area, answer list, and a validation button. The construction order is: first generate a random question, then input data, then compute table positions and draw tables, finally display answers and validation results.
The prompt above was compiled from the original drawing commands and is for reference only.