Binomial Distribution: B(n,p) with PDF and CDF

Binomial Distribution: B(n,p) with PDF and CDF
Loading the math board and drawing, please wait…
2013-11-25 14:26
This example demonstrates the probability mass function (PMF) and cumulative distribution function (CDF) of a binomial distribution. Users can adjust parameters n and p to observe changes in the distribution. Key mathematical concepts include binomial distribution, probability and statistics. GeoGebra commands used include Sequence and Segment.

GeoGebra Commands & Parameters

  1. Sequence(k - 1, k, 1, N) → list1
  2. Sequence(Binomial[n, k] * p^(k) * (1 - p)^(n - k), k, 0, n) → list2
  3. Sequence((Element[list1, k], Element[list2, k]), k, 1, N) → list3
  4. Sequence(Sum[Take[list2, 1, k]], k, 1, N) → list4
  5. Sequence((Element[list1, k], Element[list4, k]), k, 1, N) → list5
  6. Sequence((Element[list1, k + 1], Element[list4, k]), k, 1, N) → list6
  7. Sequence(Segment[Element[list5, k], Element[list6, k]], k, 1, N - 1) → list7
  8. Segment((Element[list1, 1] - 5, 0), (Element[list1, 1], 0)) → a
  9. Segment((Element[list1, Length[list1]], 1), (Element[list1, Length[list1]] + 5, 1)) → b

AI Drawing Prompt Reference

Draw a binomial distribution B(n,p) with its probability mass function (PMF) and cumulative distribution function (CDF). Adjust n and p to observe changes in the distribution. First, draw the PMF as a bar chart, then draw the CDF as a line graph, and finally connect the bar chart and the line graph with segments to form the step-like CDF.
The prompt above was compiled from the original drawing commands and is for reference only.