Difference of Two Dice

Difference of Two Dice
Loading the math board and drawing, please wait…
2015-01-20 20:24
This example demonstrates the statistical distribution of the difference when rolling two dice twice. It involves core math concepts like Probability & Statistics. Constructed using GeoGebra commands/objects such as Sequence, CountIf, BarChart, TableText. Suitable for high school students learning probability statistics.

GeoGebra Commands & Parameters

  1. Sequence(Random[1, 6], j, 1, k) → W1
  2. Sequence(Random[1, 6], j, 1, k) → W2
  3. Sequence(abs(Element[W1, j] - Element[W2, j]), j, 1, k) → Differenz
  4. CountIf(x ≟ 0, First[Differenz, n]) → Anzahl0
  5. CountIf(x ≟ 1, First[Differenz, n]) → Anzahl1
  6. CountIf(x ≟ 2, First[Differenz, n]) → Anzahl2
  7. CountIf(x ≟ 3, First[Differenz, n]) → Anzahl3
  8. CountIf(x ≟ 4, First[Differenz, n]) → Anzahl4
  9. CountIf(x ≟ 5, First[Differenz, n]) → Anzahl5
  10. BarChart(A1:F1, A2:F2) → a
  11. TableText({{A1, B1, C1, D1, E1, F1}, {A2, B2, C2, D2, E2, F2}}, "|_") → Text1

AI Drawing Prompt Reference

Create a statistical distribution bar chart showing the frequency of differences when rolling two dice twice, by generating random numbers for dice rolls, calculating the absolute difference of each pair, counting occurrences of each difference, and displaying the results as bars, with a data table next to the chart.
The prompt above was compiled from the original drawing commands and is for reference only.