Binomial Distribution Image Generator

Binomial Distribution Image Generator
Loading the math board and drawing, please wait…
2018-01-28 18:34
This example demonstrates the generation and visualization of the binomial distribution. It involves core mathematical concepts such as binomial distribution, probability & statistics, equations, and geometric construction. Key GeoGebra commands used include SelectedIndex, Sequence, Segment, Point, Sort, Element, Take, and BarChart for constructing the image. Suitable for high school students and mathematics enthusiasts for learning probability & statistics, teaching demonstrations, or data analysis.

GeoGebra Commands & Parameters

  1. SelectedIndex(L_6) → mode
  2. Sequence(i, i, 0, n) → L_3
  3. Segment((0, 0), (n, 0)) → g
  4. Point(g) → B
  5. Point(g) → A
  6. Sort({A, B}) → L_4
  7. Element(L_4, 2) → BB
  8. Element(L_4, 1) → AA
  9. Sequence(BinomialDist[n, p, i, false], i, 0, n) → L_5
  10. Take(L_5, min + 1.5, max + 1.5) → L_1
  11. Take(L_3, min + 1.5, max + 1.5) → L_2
  12. BarChart(L_2, L_1, 1) → b
  13. BarChart(L_3, L_5, 1) → a
  14. Element(texts, mode) → text1

AI Drawing Prompt Reference

Create a bar chart of the binomial distribution. Start with a horizontal axis from zero to the number of trials. Place two draggable points on this axis to define a sub-range. Based on these points, extract the corresponding probability values and integer indices, then draw two bar charts: one for the full distribution and one for the selected sub-range. Finally, display a text label that changes according to the selection mode. The figure includes the axis, bars, two control points, and dynamic text.
The prompt above was compiled from the original drawing commands and is for reference only.