Discrete and Continuous Distributions

Discrete and Continuous Distributions
Loading the math board and drawing, please wait…
2015-05-26 15:08
This example explores the relationship between probability mass function (pmf) or density and cumulative distribution function (cdf) to help students understand discrete and continuous distributions. Key mathematical concepts include types of distributions in probability statistics, pmf, and cdf. Using GeoGebra commands such as Point, Sequence, Integral, etc., students can dynamically explore the relationship between these functions. Suitable for high school probability and statistics education.

GeoGebra Commands & Parameters

  1. Point(xAxis) → UniformPDFbottomleft
  2. Line(DragLinePoint1, DragLinePoint2) → DragSlider
  3. Sequence(((nCr[n, i] * binomialp^(i)) * (1 - binomialp)^(n - i)), i, 0, n) → BinomialMasses, {0.03125, 0.15625, 0.3125, 0.3125, 0.15625, 0.03125}
  4. Point({0, y2position}) → Origin2
  5. Integral(exppdf, 0, x(DragPoint)) → Expintegral
  6. Point({ProbBarxPosition, Max[0, Min[(1 / 6 * floor(x(DragPoint))), 1]] + y2position}) → Die1ProbPoint
  7. OrthogonalLine(Die1ProbPoint, yAxis) → Die1ProbLine
  8. Sequence(Segment[(i, 0), (i, Element[BinomialMasses, i + 1])], i, 0, Min[floor(x(DragPoint)), n]) → BinomialPMF, {0.03125}
  9. Line(DragLinePoint1_1, DragLinePoint2_1) → DragSlider_1
  10. Point(DragSlider_1) → DragPoint_1
  11. Sequence(Segment[(i, 0), (i, Element[BinomialMasses, i + 1])], i, Max[0, floor(x(DragPoint)) + 1], n) → BinomialPMF_1, {0.15625, 0.3125, 0.3125, 0.15625, 0.03125}
  12. Sequence(Sum[BinomialMasses, i], i, 1, n + 1) → BinomialCDFvalues, {0.03125, 0.1875, 0.5, 0.8125, 0.96875, 1}
  13. Line((0, y2position), xAxis) → xAxis2
  14. Sequence(Point[{i, (1 / 6 * i) + y2position}], i, 1, 6) → Die1CDFcut, {(1, -1.2333333333333332), (2, -1.0666666666666667), (3, -0.8999999999999999), (4, -0.7333333333333333), (5, -0.5666666666666667), (6, -0.3999999999999999)}
  15. Sequence(Point[{i, (1 / 6 * (i - 1)) + y2position}], i, 1, 6) → Die1CDFcut_1, {(1, -1.4), (2, -1.2333333333333332), (3, -1.0666666666666667), (4, -0.8999999999999999), (5, -0.7333333333333333), (6, -0.5666666666666667)}
  16. Line((0, expcdf(x(DragPoint))), xAxis) → ExpProbLine
  17. Segment((n, 1 + y2position), (20, 1 + y2position)) → BinomialCDF1line
  18. Sequence(Segment[(i - 1, Element[BinomialCDFvalues, i] + y2position), (i, Element[BinomialCDFvalues, i] + y2position)], i, 1, n) → BinomialCDFlines, {1, 1, 1, 1, 1}
  19. Point({n, 1 + y2position}) → BinomialCDFcut1
  20. Sequence(Point[{i - 1, Element[BinomialCDFvalues, i] + y2position}], i, 1, n) → BinomialCDFcut, {(0, -1.36875), (1, -1.2125), (2, -0.8999999999999999), (3, -0.5874999999999999), (4, -0.4312499999999999)}
  21. Sequence(Point[{i - 1, Element[BinomialCDFvalues, i - 1] + y2position}], i, 2, n + 1) → BinomialCDFcut_1, {(1, -1.36875), (2, -1.2125), (3, -0.8999999999999999), (4, -0.5874999999999999), (5, -0.4312499999999999)}
  22. Point({0, y2position}) → BinomialCDFcut0
  23. Textfield(n) → inputBox1
  24. Segment((0, y2position), (-20, y2position)) → BinomialCDF0line
  25. Segment((0, y2position), (0, Element[BinomialCDFvalues, 1] + y2position)) → BinomialCDFjump0
  26. OrthogonalLine((x(DragPoint), Element[BinomialCDFvalues, ceil(x(DragPoint))] + y2position), yAxis) → BinomialProbLine
  27. Line((0, 1 + y2position), xAxis) → BinomialProbLine1
  28. Line((0, y2position), xAxis) → BinomialProbLine0
  29. Sequence(Segment[(i, 0), (i, 1 / 6)], i, Max[ceil(x(DragPoint)), 1], 6) → Die1PMF, {0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666}
  30. Sequence(Segment[(i, 0), (i, 1 / 6)], i, 1, Min[floor(x(DragPoint)), 6]) → Die1PMF_1, {}
  31. Sequence((lambda^(k) * exp((-lambda)) / k!), k, 0, 20) → PoissonMasses, {0.1353352832366127, 0.2706705664732254, 0.2706705664732254, 0.1804470443154836, 0.0902235221577418, 0.03608940886309672, 0.012029802954365574, 0.0034370865583901638, 0.0008592716395975409, 0.00019094925324389798, 0.000038189850648779595, 0.000006943609208869018, 0.0000011572682014781697, 1.7804126176587226E-7, 2.5434465966553178E-8, 3.391262128873757E-9, 4.2390776610921964E-10, 4.987150189520231E-11, 5.541277988355812E-12, 5.832924198269276E-13, 5.832924198269276E-14}
  32. Sequence(Segment[(k, 0), (k, Element[PoissonMasses, k + 1])], k, 0, floor(x(DragPoint))) → PoissonPMF_1, {0.1353352832366127}
  33. Polygon({(15 / 20 * Corner[3]) + (5 / 20 * Corner[2]), Corner[3], (17 / 24 * Corner[3]) + (7 / 24 * Corner[4]), (x((17 / 24 * Corner[3]) + (7 / 24 * Corner[4])), y((15 / 20 * Corner[3]) + (5 / 20 * Corner[2])))}) → filler
  34. Sequence(Segment[(k, 0), (k, Element[PoissonMasses, k + 1])], k, ceil(x(DragPoint)), 20) → PoissonPMF, {0.2706705664732254, 0.2706705664732254, 0.1804470443154836, 0.0902235221577418, 0.03608940886309672, 0.012029802954365574, 0.0034370865583901638, 0.0008592716395975409, 0.00019094925324389798, 0.000038189850648779595, 0.000006943609208869018, 0.0000011572682014781697, 1.7804126176587226E-7, 2.5434465966553178E-8, 0, 0, 0, 0, 0, 0}
  35. Sequence(Sum[PoissonMasses, i], i, 1, 21) → PoissonCDFvalues, {0.1353352832366127, 0.4060058497098381, 0.6766764161830635, 0.8571234604985472, 0.9473469826562889, 0.9834363915193857, 0.9954661944737513, 0.9989032810321414, 0.999762552671739, 0.9999535019249829, 0.9999916917756316, 0.9999986353848405, 0.999999792653042, 0.9999999706943037, 0.9999999961287697, 0.9999999995200318, 0.9999999999439396, 0.9999999999938112, 0.9999999999993524, 0.9999999999999357, 0.999999999999994}
  36. Sequence(Segment[(i - 1, Element[PoissonCDFvalues, i] + y2position), (i, Element[PoissonCDFvalues, i] + y2position)], i, 1, 20) → PoissonCDFlines, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
  37. Sequence(Point[{i - 1, Element[PoissonCDFvalues, i] + y2position}], i, 1, 20) → PoissonCDFcut, {(0, -1.264664716763387), (1, -0.9939941502901618), (2, -0.7233235838169364), (3, -0.5428765395014528), (4, -0.452653017343711), (5, -0.41656360848061424), (6, -0.4045338055262486), (7, -0.4010967189678585), (8, -0.40023744732826094), (9, -0.400046498075017), (10, -0.4000083082243683), (11, -0.40000136461515945), (12, -0.40000020734695796), (13, -0.4000000293056962), (14, -0.40000000387123025), (15, -0.4000000004799681), (16, -0.4000000000560603), (17, -0.40000000000618874), (18, -0.4000000000006475), (19, -0.4000000000000642)}
  38. Sequence(Point[{i - 1, Element[PoissonCDFvalues, i - 1] + y2position}], i, 2, 20) → PoissonCDFcut_1, {(1, -1.264664716763387), (2, -0.9939941502901618), (3, -0.7233235838169364), (4, -0.5428765395014528), (5, -0.452653017343711), (6, -0.41656360848061424), (7, -0.4045338055262486), (8, -0.4010967189678585), (9, -0.40023744732826094), (10, -0.400046498075017), (11, -0.4000083082243683), (12, -0.40000136461515945), (13, -0.40000020734695796), (14, -0.4000000293056962), (15, -0.40000000387123025), (16, -0.4000000004799681), (17, -0.4000000000560603), (18, -0.40000000000618874), (19, -0.4000000000006475)}
  39. Point({0, 0 + y2position}) → PoissonCDFcut0
  40. OrthogonalLine((x(DragPoint), Element[PoissonCDFvalues, ceil(x(DragPoint))] + y2position), yAxis) → PoissonProbLine
  41. Line((0, y2position), xAxis) → PoissonProbLine0
  42. Sequence((geometricp * (1 - geometricp)^(i)), i, 0, 20) → GeometricMasses, {0.25, 0.1875, 0.140625, 0.10546875, 0.0791015625, 0.059326171875, 0.04449462890625, 0.0333709716796875, 0.025028228759765625, 0.01877117156982422, 0.014078378677368164, 0.010558784008026123, 0.007919088006019592, 0.005939316004514694, 0.004454487003386021, 0.0033408652525395155, 0.0025056489394046366, 0.0018792367045534775, 0.001409427528415108, 0.001057070646311331, 0.0007928029847334983}
  43. Sequence(Sum[GeometricMasses, i], i, 1, 21) → GeometricCDFvalues, {0.25, 0.4375, 0.578125, 0.68359375, 0.7626953125, 0.822021484375, 0.86651611328125, 0.8998870849609375, 0.9249153137207031, 0.9436864852905273, 0.9577648639678955, 0.9683236479759216, 0.9762427359819412, 0.9821820519864559, 0.9866365389898419, 0.9899774042423815, 0.9924830531817861, 0.9943622898863396, 0.9957717174147547, 0.996828788061066, 0.9976215910457995}
  44. Sequence(Segment[(k, 0), (k, Element[GeometricMasses, k + 1])], k, ceil(x(DragPoint)), 20) → GeometricPMF_1, {0.1875, 0.140625, 0.10546875, 0.0791015625, 0.059326171875, 0.04449462890625, 0.0333709716796875, 0.025028228759765625, 0.01877117156982422, 0.014078378677368164, 0.010558784008026123, 0.007919088006019592, 0.005939316004514694, 0.004454487003386021, 0.0033408652525395155, 0.0025056489394046366, 0.0018792367045534775, 0.001409427528415108, 0.001057070646311331, 0.0007928029847334983}
  45. Sequence(Segment[(k, 0), (k, Element[GeometricMasses, k + 1])], k, 0, floor(x(DragPoint))) → GeometricPMF, {0.25}
  46. Sequence(Segment[(i - 1, Element[GeometricCDFvalues, i] + y2position), (i, Element[GeometricCDFvalues, i] + y2position)], i, 1, 20) → GeometricCDFlines, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
  47. Sequence(Point[{i - 1, Element[GeometricCDFvalues, i] + y2position}], i, 1, 20) → GeometricCDFcut, {(0, -1.15), (1, -0.9624999999999999), (2, -0.8218749999999999), (3, -0.7164062499999999), (4, -0.6373046874999999), (5, -0.5779785156249999), (6, -0.5334838867187499), (7, -0.5001129150390624), (8, -0.4750846862792968), (9, -0.45631351470947257), (10, -0.4422351360321044), (11, -0.4316763520240783), (12, -0.4237572640180587), (13, -0.417817948013544), (14, -0.413363461010158), (15, -0.41002259575761846), (16, -0.4075169468182138), (17, -0.40563771011366034), (18, -0.40422828258524524), (19, -0.4031712119389339)}
  48. Sequence(Point[{i - 1, Element[GeometricCDFvalues, i - 1] + y2position}], i, 2, 20) → GeometricCDFcut_1, {(1, -1.15), (2, -0.9624999999999999), (3, -0.8218749999999999), (4, -0.7164062499999999), (5, -0.6373046874999999), (6, -0.5779785156249999), (7, -0.5334838867187499), (8, -0.5001129150390624), (9, -0.4750846862792968), (10, -0.45631351470947257), (11, -0.4422351360321044), (12, -0.4316763520240783), (13, -0.4237572640180587), (14, -0.417817948013544), (15, -0.413363461010158), (16, -0.41002259575761846), (17, -0.4075169468182138), (18, -0.40563771011366034), (19, -0.40422828258524524)}
  49. Point({0, y2position}) → GeometricCDFcut0
  50. OrthogonalLine((x(DragPoint), Element[GeometricCDFvalues, ceil(x(DragPoint))] + y2position), yAxis) → GeometricProbLine
  51. Line((0, UniformCDF(x(DragPoint))), xAxis) → UniformProbLine
  52. Point({a, 1 / (b - a)}) → UniformPDFtopleft
  53. Point({b, 1 / (b - a)}) → UniformPDFtopright
  54. If(x(DragPoint) > a, Integral[UniformPDF, a, Min[x(DragPoint), b]]) → UniformIntegral
  55. If(x(DragPoint) > 0, Integral[GammaPDF, 0, x(DragPoint)]) → GammaIntegral
  56. Line((0, GammaCDF(x(DragPoint))), xAxis) → GammaProbLine
  57. Textfield(r) → inputBox4
  58. Sequence((6 - abs(i - 7)) / 36, i, 2, 12) → Die2Masses, {0.027777777777777776, 0.05555555555555555, 0.08333333333333333, 0.1111111111111111, 0.1388888888888889, 0.16666666666666666, 0.1388888888888889, 0.1111111111111111, 0.08333333333333333, 0.05555555555555555, 0.027777777777777776}
  59. Sequence(Segment[(i, 0), (i, Element[Die2Masses, i - 1])], i, 2, Min[floor(x(DragPoint)), 12]) → Die2PMF, {}
  60. Sequence(Segment[(i, 0), (i, Element[Die2Masses, i - 1])], i, Max[2, floor(x(DragPoint)) + 1], 12) → Die2PMF_1, {0.027777777777777776, 0.05555555555555555, 0.08333333333333333, 0.1111111111111111, 0.1388888888888889, 0.16666666666666666, 0.1388888888888889, 0.1111111111111111, 0.08333333333333333, 0.05555555555555555, 0.027777777777777776}
  61. Sequence(Sum[Die2Masses, i], i, 1, 11) → Die2CDFvalues, {0.027777777777777776, 0.08333333333333333, 0.16666666666666666, 0.2777777777777778, 0.4166666666666667, 0.5833333333333334, 0.7222222222222223, 0.8333333333333335, 0.9166666666666669, 0.9722222222222224, 1.0000000000000002}
  62. Sequence(Segment[(i, Element[Die2CDFvalues, i - 1] + y2position), (i + 1, Element[Die2CDFvalues, i - 1] + y2position)], i, 2, 11) → Die2CDFlines, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
  63. Segment((2, y2position), (2, Element[Die2CDFvalues, 1] + y2position)) → Die2CDFjumps0
  64. Sequence(Point[{i, Element[Die2CDFvalues, i - 1] + y2position}], i, 2, 12) → Die2CDFcut, {(2, -1.3722222222222222), (3, -1.3166666666666667), (4, -1.2333333333333332), (5, -1.1222222222222222), (6, -0.9833333333333332), (7, -0.8166666666666665), (8, -0.6777777777777776), (9, -0.5666666666666664), (10, -0.48333333333333306), (11, -0.4277777777777775), (12, -0.3999999999999997)}
  65. Sequence(Point[{i, Element[Die2CDFvalues, i - 2] + y2position}], i, 3, 12) → Die2CDFcut_1, {(3, -1.3722222222222222), (4, -1.3166666666666667), (5, -1.2333333333333332), (6, -1.1222222222222222), (7, -0.9833333333333332), (8, -0.8166666666666665), (9, -0.6777777777777776), (10, -0.5666666666666664), (11, -0.48333333333333306), (12, -0.4277777777777775)}
  66. Point({2, y2position}) → Die2CDFcut0
  67. Sequence(Sum[MinDiceMasses, i], i, 1, 6) → MinDiceCDFvalues, {0.3055555555555556, 0.5555555555555556, 0.75, 0.8888888888888888, 0.9722222222222222, 1}
  68. Sequence(Segment[(i, 0), (i, Element[MinDiceMasses, i])], i, Max[ceil(x(DragPoint)), 1], 6) → MinDicePMF, {0.3055555555555556, 0.25, 0.19444444444444445, 0.1388888888888889, 0.08333333333333333, 0.027777777777777776}
  69. Sequence(Segment[(i, 0), (i, Element[MinDiceMasses, i])], i, 1, Min[floor(x(DragPoint)), 6]) → MinDicePMF_1, {}
  70. Sequence(Segment[(i, Element[MinDiceCDFvalues, i] + y2position), (i + 1, Element[MinDiceCDFvalues, i] + y2position)], i, 1, 5) → MinDiceCDFlines, {1, 1, 1, 1, 1}
  71. Segment((1, y2position), (1, Element[MinDiceCDFvalues, 1] + y2position)) → MinDiceCDFjump0
  72. Sequence(Point[{i, Element[MinDiceCDFvalues, i] + y2position}], i, 1, 6) → MinDiceCDFcut, {(1, -1.0944444444444443), (2, -0.8444444444444443), (3, -0.6499999999999999), (4, -0.5111111111111111), (5, -0.4277777777777777), (6, -0.3999999999999999)}
  73. Sequence(Point[{i, Element[MinDiceCDFvalues, i - 1] + y2position}], i, 2, 6) → MinDiceCDFcut_1, {(2, -1.0944444444444443), (3, -0.8444444444444443), (4, -0.6499999999999999), (5, -0.5111111111111111), (6, -0.4277777777777777)}
  74. Point({1, y2position}) → MinDiceCDFcut0
  75. Line((x(DragPoint), Element[MinDiceCDFvalues, floor(x(DragPoint))] + y2position), xAxis) → MinDiceProbLine
  76. Line((0, 1 + y2position), xAxis) → MinDiceProbLine1
  77. Line((0, y2position), xAxis) → MinDiceProbLine0
  78. Line((x(DragPoint), Element[Die2CDFvalues, floor(x(DragPoint)) - 1] + y2position), xAxis) → Die2ProbLine
  79. Line((0, 1 + y2position), xAxis) → Die2ProbLine1
  80. Sequence(Segment[(i, (1 / 6 * (i - 1)) + y2position), (i, (1 / 6 * i) + y2position)], i, 1, Min[floor(x(DragPoint)), 6]) → Die1CDFjumps, {}
  81. Sequence(Segment[(i, (1 / 6 * (i - 1)) + y2position), (i, (1 / 6 * i) + y2position)], i, Max[1, ceil(x(DragPoint))], 6) → Die1CDFjumps_1, {0.16666666666666674, 0.16666666666666652, 0.16666666666666674, 0.16666666666666663, 0.16666666666666663, 0.16666666666666674}
  82. Sequence(Segment[(i, Element[Die2CDFvalues, i - 2] + y2position), (i, Element[Die2CDFvalues, i - 1] + y2position)], i, 3, Min[12, floor(x(DragPoint))]) → Die2jumps, {}
  83. Sequence(Segment[(i, Element[Die2CDFvalues, i - 2] + y2position), (i, Element[Die2CDFvalues, i - 1] + y2position)], i, Max[3, ceil(x(DragPoint))], 12) → Die2jumps_1, {0.05555555555555558, 0.08333333333333348, 0.11111111111111094, 0.13888888888888906, 0.16666666666666663, 0.13888888888888895, 0.11111111111111116, 0.08333333333333337, 0.05555555555555558, 0.02777777777777779}
  84. Segment((2, y2position), (2, Element[Die2CDFvalues, 1] + y2position)) → Die2CDFjumps0_1
  85. Sequence(Segment[(i, Element[MinDiceCDFvalues, i - 1] + y2position), (i, Element[MinDiceCDFvalues, i] + y2position)], i, Max[2, ceil(x(DragPoint))], 6) → MinDicejumps, {0.25, 0.19444444444444442, 0.13888888888888884, 0.08333333333333337, 0.02777777777777779}
  86. Sequence(Segment[(i, Element[MinDiceCDFvalues, i - 1] + y2position), (i, Element[MinDiceCDFvalues, i] + y2position)], i, 2, Min[6, floor(x(DragPoint))]) → MinDicejumps_1, {}
  87. Segment((1, y2position), (1, Element[MinDiceCDFvalues, 1] + y2position)) → MinDiceCDFjump0_1
  88. Sequence(Segment[(i, Element[BinomialCDFvalues, i] + y2position), (i, Element[BinomialCDFvalues, i + 1] + y2position)], i, 1, Min[floor(x(DragPoint)), n]) → BinomialCDFjumps, {}
  89. Sequence(Segment[(i, Element[BinomialCDFvalues, i] + y2position), (i, Element[BinomialCDFvalues, i + 1] + y2position)], i, Max[1, ceil(x(DragPoint))], n) → BinomialCDFjumps_1, {0.15625, 0.3125, 0.3125, 0.15625, 0.03125}
  90. Segment((0, y2position), (0, Element[BinomialCDFvalues, 1] + y2position)) → BinomialCDFjump0_1
  91. Sequence(Segment[(i, Element[GeometricCDFvalues, i] + y2position), (i, Element[GeometricCDFvalues, i + 1] + y2position)], i, 1, Min[19, floor(x(DragPoint))]) → GeometricCDFjumps, {}
  92. Sequence(Segment[(i, Element[GeometricCDFvalues, i] + y2position), (i, Element[GeometricCDFvalues, i + 1] + y2position)], i, Max[1, ceil(x(DragPoint))], 19) → GeometricCDFjumps_1, {0.1875, 0.140625, 0.10546875, 0.0791015625, 0.059326171875, 0.04449462890625, 0.0333709716796875, 0.025028228759765625, 0.01877117156982422, 0.014078378677368164, 0.010558784008026123, 0.007919088006019592, 0.005939316004514694, 0.004454487003386021, 0.0033408652525395155, 0.0025056489394046366, 0.0018792367045534775, 0.001409427528415108, 0.001057070646311331}
  93. Segment((0, y2position), (0, Element[GeometricCDFvalues, 1] + y2position)) → GeometricCDFjumps0
  94. Segment((0, y2position), (0, Element[GeometricCDFvalues, 1] + y2position)) → GeometricCDFjumps0_1
  95. Sequence(Segment[(i, Element[PoissonCDFvalues, i] + y2position), (i, Element[PoissonCDFvalues, i + 1] + y2position)], i, Max[1, ceil(x(DragPoint))], 19) → PoissonCDFjumps, {0.2706705664732253, 0.2706705664732254, 0.18044704431548364, 0.09022352215774176, 0.03608940886309675, 0.01202980295436562, 0.0034370865583901455, 0.0008592716395975364, 0.00019094925324392165, 0.00003818985064873992, 0.000006943609208831525, 0.0000011572682014904245, 1.780412617335969E-7, 2.5434465977802745E-8, 0, 0, 0, 0, 0}
  96. Sequence(Segment[(i, Element[PoissonCDFvalues, i] + y2position), (i, Element[PoissonCDFvalues, i + 1] + y2position)], i, 1, Min[19, floor(x(DragPoint))]) → PoissonCDFjumps_1, {}
  97. Segment((0, y2position), (0, y2position + Element[PoissonCDFvalues, 1])) → PoissonCDFjumps0
  98. Segment((0, y2position), (0, y2position + Element[PoissonCDFvalues, 1])) → PoissonCDFjumps0_1
  99. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, Max[0, Min[(1 / 6 * floor(x(DragPoint))), 1]] + y2position), (ProbBarxPosition, Max[0, Min[(1 / 6 * floor(x(DragPoint))), 1]] + y2position)}) → Die1ProbBar
  100. Max(0, Min[(1 / 6 * floor(x(DragPoint))), 1]) → Die1Prob_1
  101. Element(Die2CDFvalues, ceil(x(DragPoint)) - 2) → Die2Prob
  102. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, Die2Prob + y2position), (ProbBarxPosition, Die2Prob + y2position)}) → Die2ProbBar
  103. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, 1 + y2position), (ProbBarxPosition, 1 + y2position)}) → Die2ProbBar1
  104. Point({-0.9, 0.5 + y2position}) → ProbPosition
  105. Text("0", ProbPosition) → Die2ProbSeg0
  106. Element(MinDiceCDFvalues, ceil(x(DragPoint)) - 1) → MinDiceProb
  107. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, MinDiceProb + y2position), (ProbBarxPosition, MinDiceProb + y2position)}) → MinDiceProbBar
  108. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, 1 + y2position), (ProbBarxPosition, 1 + y2position)}) → MinDiceProbBar1
  109. Element(BinomialCDFvalues, ceil(x(DragPoint))) → BinomialProb
  110. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, BinomialProb + y2position), (ProbBarxPosition, BinomialProb + y2position)}) → BinomialProbBar
  111. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, 1 + y2position), (ProbBarxPosition, 1 + y2position)}) → BinomialProbBar1
  112. Element(GeometricCDFvalues, ceil(x(DragPoint))) → GeometricProb
  113. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, GeometricProb + y2position), (ProbBarxPosition, GeometricProb + y2position)}) → GeometricProbBar
  114. Text(0, ProbPosition) → Geometric0
  115. Element(PoissonCDFvalues, ceil(x(DragPoint))) → PoissonProb
  116. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, PoissonProb + y2position), (ProbBarxPosition, PoissonProb + y2position)}) → PoissonProbBar
  117. Text(0, ProbPosition) → PoissonProbSeg0
  118. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, Expintegral + y2position), (ProbBarxPosition, Expintegral + y2position)}) → ExpProbBar
  119. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, UniformProb + y2position), (ProbBarxPosition, UniformProb + y2position)}) → UniformProbBar
  120. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, GammaProb + y2position), (ProbBarxPosition, GammaProb + y2position)}) → GammaProbBar
  121. Textfield(gammaAlpha) → inputBox5
  122. Textfield(a) → inputBox2
  123. Textfield(binomialp) → inputBox6
  124. Textfield(b) → inputBox3
  125. Point(xAxis) → UniformPDFbottomright
  126. Line(A, B) → DragLine2
  127. Textfield(geometricp) → inputBox7
  128. Textfield(lambda) → PoissonInput
  129. Textfield(expAlpha) → inputBox8
  130. Vector(Origin2, Origin2 + (0, 1.2)) → yAxis2
  131. Segment((0, y2position + 1), ((-4 * AxisIndentHeight), y2position + 1)) → yAxis2points
  132. Segment(UniformPDFbottomleft, UniformPDFtopleft) → UniformPDFleftjump
  133. Segment(UniformPDFbottomright, UniformPDFtopright) → UniformPDFrightjump
  134. Sequence(Text[i, (i - 0.07, y2position - (2 * AxisIndentHeight) - 0.035)], i, -40, 40) → xAxis2labels, {"-40", "-39", "-38", "-37", "-36", "-35", "-34", "-33", "-32", "-31", "-30", "-29", "-28", "-27", "-26", "-25", "-24", "-23", "-22", "-21", "-20", "-19", "-18", "-17", "-16", "-15", "-14", "-13", "-12", "-11", "-10", "-9", "-8", "-7", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40"}
  135. Sequence(Segment[(i, y2position), (i, y2position - AxisIndentHeight)], i, -40, 40) → xAxis2points, {0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018, 0.020000000000000018}
  136. Normal(nmean, nstdev, x, false) → normpdf
  137. Integral(normpdf, Min[nmean - (10 * nstdev), x(Corner[1])], x(DragPoint)) → NormIntegral
  138. Line((0, normcdf(x(DragPoint))), xAxis) → NormProbLine
  139. Polygon({(ProbBarxPosition, y2position), (ProbBarxPosition + ProbBarWidth, y2position), (ProbBarxPosition + ProbBarWidth, NormIntegral + y2position), (ProbBarxPosition, NormIntegral + y2position)}) → NormProbBar
  140. Textfield(nmean) → inputBox9
  141. Textfield(nstdev) → inputBox10

AI Drawing Prompt Reference

Draw the relationship between discrete and continuous distributions. First, plot the probability mass function (pmf) and cumulative distribution function (cdf) for binomial, Poisson, and geometric distributions. Then, draw the pmf and cdf for binomial distribution, followed by the pmf and cdf for Poisson distribution, and finally the pmf and cdf for geometric distribution.
The prompt above was compiled from the original drawing commands and is for reference only.