Probability Distribution of Flipping Two Coins

Probability Distribution of Flipping Two Coins
Loading the math board and drawing, please wait…
2015-09-28 09:51
This GeoGebra applet demonstrates the probability distribution of the number of heads when flipping two coins. The applet uses dynamic bar charts combined with labeled probability values to visually illustrate the fundamental concepts of the binomial distribution. Students can observe how the theoretical probabilities—P(0 heads) = 0.25, P(1 head) = 0.5, and P(2 heads) = 0.25—are represented by bars whose heights correspond directly to their assigned probabilities. A key interactive feature is the simulation function, accessible through play buttons that allow users to run virtual coin-flip experiments. As the simulation progresses, students watch in real time how the experimental frequency of each outcome converges toward its theoretical probability, providing an intuitive understanding of the law of large numbers. The bar chart updates dynamically as more tosses are performed, making the relationship between theory and empirical results visually compelling. The applet serves as an effective interactive teaching tool for introductory courses in probability and statistics. It helps students grasp core concepts such as discrete random variables, sample spaces, probability mass functions, and the distinguishing features of a binomial experiment—namely a fixed number of independent trials, two possible outcomes per trial, and a constant probability of success. By manipulating the simulation parameters and observing the resulting distributions, learners develop a deeper, more intuitive understanding of probabilistic reasoning that complements traditional lecture-based instruction. The visual feedback from the animated bars and live probability labels reinforces the connection between abstract mathematical formulas and tangible experimental outcomes, making this applet a valuable resource for both classroom demonstrations and self-directed study.

GeoGebra Commands & Parameters

  1. Vector(C) → u
  2. Sum(B1:B3) → B4
  3. Sequence(Polygon[(k - w + dx2, 0), (k + w + dx2, 0), (k + w + dx2, Element[hs, k + 1]), (k - w + dx2, Element[hs, k + 1])], k, 0, 2) → bars
  4. Sequence(Text[floor((100 * Element[p, k + 1])) + "%", (k + dx2 + dx3, Element[hs, k + 1] + dy)], k, 0, 2) → lblP
  5. Sequence(Text[(100 * Element[p2, k + 1]) + "%", (k, Element[hs2, k + 1] + dy)], k, 0, 2) → lblP2
  6. Sequence(Polygon[(k - w + dx1, 0), (k + w + dx1, 0), (k + w + dx1, Element[hs2, k + 1]), (k - w + dx1, Element[hs2, k + 1])], k, 0, 2) → bars2
  7. Sequence(Text[k, (k, 0) + B], k, 0, 2) → lblNum
  8. Translate(B21, u) → C21
  9. Translate(B22, u) → C22
  10. Translate(B21, Vector[u + (3.5, 0)]) → D21
  11. Translate(B22, Vector[u + (3.5, 0)]) → D22
  12. Segment((-1, 0), (3, 0)) → c

AI Drawing Prompt Reference

Draw a bar chart showing the probability distribution of the number of heads when flipping two coins. Include three vertical rectangular bars side by side representing 0, 1, and 2 heads, with heights corresponding to probabilities of 0.25, 0.5, and 0.25 respectively. Each bar is labeled with its percentage value at the top. A horizontal baseline runs along the bottom with numbers 0, 1, and 2 marked below. The graphic demonstrates a binomial distribution pattern.
The prompt above was compiled from the original drawing commands and is for reference only.