Galton Board Simulation
Loading the math board and drawing, please wait…
In collections
!Statistics
This example simulates the Galton board to illustrate the binomial distribution. It involves core concepts of probability and statistics. By adjusting parameters r, p, and n, one can observe changes in the binomial distribution. It uses GeoGebra commands like Sequence and BarChart for construction. Suitable for high school and above students or teachers for teaching and learning probability and statistics.
GeoGebra Commands & Parameters
Sequence(Sequence[Random[0, 1] - 0.5, i, 1, r - 1], j, 1, max) → MSequence(Sum[Element[M, n], i], i, 1, r - 1) → pomak_xSequence((Element[pomak_x, i], p - i), i, 1, r - 1) → putanjaSequence(Sum[Element[M, i]], i, 1, max) → ishodiSequence(CountIf[x ≟ i, Take[ishodi, 1, n]], i, ((-r)) / 2 + 0.5, r / 2 - 0.5) → frekvencijeSequence(i, i, ((-r)) / 2 + 0.5, r / 2 - 0.5) → pretinciSequence(Text[Element[frekvencije, k], (k - r / 2 + 0.5 - 1.1, -1.5)], k, 1, r + 1) → txtrezSequence(Segment[(i, 0), (i, p - r)], i, ((-r)) / 2, r / 2) → pregradeSequence(Sequence[(i, j), i, (j - p) / 2 - 0.5, 1 + (p - j) / 2], j, p - r + 1, p) → čBarChart(pretinci, (40 / max * frekvencije), 0.8) → dijagramSequence(((nCr[r - 1, i] * 0.5^(r - 1)) * n), i, 0, r - 1) → tfrekBarChart(pretinci, (40 / max * tfrek)) → tdijagramSequence(Text[Element[tfrek, k], (k - r / 2 + 0.5 - 1.1, -1.5)], k, 1, r + 1) → txttfrek
AI Drawing Prompt Reference
Draw a Galton board simulation with a triangular structure of r levels, each containing p pins. Simulate the path of balls falling through the pins and count the balls at each level. Use bar charts to display the actual frequencies and theoretical frequencies. Adjust r and p values to observe changes in the distribution.
The prompt above was compiled from the original drawing commands and is for reference only.