Monte Carlo random-sum stopping process to approximate Euler’s number e

Monte Carlo random-sum stopping process to approximate Euler’s number e
Loading the math board and drawing, please wait…
2020-08-18 01:23
This example demonstrates a Monte Carlo stopping-time experiment: repeatedly choose numbers uniformly at random from 0 to 1, accumulate them step by step, and stop as soon as the running sum exceeds 1; then record how many draws were needed. By running (and visualizing) many trials, the construction illustrates a numerical approximation connection to Euler’s number e and the resulting distribution of stopping steps. The key math concepts are uniform random variables, first-passage/stop time, probability-statistics ideas (e.g., expectation/approximation via repeated sampling), and visualization of the empirical distribution such as boxplots. In GeoGebra, the build uses both geometric and logical components: Point and DynamicCoordinates to represent evolving states, Segment/Circle/Intersect to create auxiliary geometric references tied to the process, PolyLine to trace the progression, and If to implement the stopping rule when the accumulated result becomes greater than 1. LaTeX is used to label key quantities (threshold, counts, or derived parameters). The object structure (many sample variables and control/count symbols) supports aggregating repeated runs and displaying statistical summaries. Suitable for advanced high-school and introductory university courses in probability & statistics, and for interactive demonstrations of how randomized stopping processes produce approximations of e.

GeoGebra Commands & Parameters

  1. Point(xAxis) → W
  2. DynamicCoordinates(W, 12, ((Aotros * 100)) / n) → E_1
  3. Point(xAxis) → V
  4. Point(xAxis) → U
  5. Point(xAxis) → T
  6. Point(xAxis) → S
  7. Point(xAxis) → R
  8. Point(xAxis) → J
  9. Point(xAxis) → I
  10. Point(xAxis) → H
  11. Point(xAxis) → G
  12. Point(xAxis) → F
  13. Point(xAxis) → E
  14. DynamicCoordinates(V, 11, ((Aonce * 100)) / n) → D_1
  15. DynamicCoordinates(T, 9, ((Anueve * 100)) / n) → B_1
  16. DynamicCoordinates(S, 8, ((Aocho * 100)) / n) → A_1
  17. DynamicCoordinates(R, 7, ((Asiete * 100)) / n) → Z
  18. DynamicCoordinates(J, 6, ((Aseis * 100)) / n) → Q
  19. DynamicCoordinates(I, 5, ((Acinco * 100)) / n) → P
  20. DynamicCoordinates(H, 4, ((Acuatro * 100)) / n) → O
  21. DynamicCoordinates(G, 3, ((Atres * 100)) / n) → N
  22. DynamicCoordinates(F, 2, ((Ados * 100)) / n) → M
  23. DynamicCoordinates(E, 1, ((Auno * 100)) / n) → K
  24. Segment(A, B) → f
  25. Circle(B, s) → c
  26. Segment(B, D) → g
  27. Intersect(c, g) → C,
  28. PolyLine(L) → h
  29. Segment(M, F) → i
  30. Segment(N, G) → j
  31. Segment(O, H) → k
  32. Segment(P, I) → l
  33. Segment(Q, J) → m
  34. Segment(K, E) → q
  35. Segment(S, A_1) → r
  36. Segment(B_1, T) → t
  37. Segment(C_1, U) → b
  38. Segment(D_1, V) → d
  39. Segment(W, E_1) → f_1
  40. Segment(R, Z) → h_1
  41. If(v ≠ 0, a_1 / v, 0) → b_1
  42. LaTeX($1) → text5

AI Drawing Prompt Reference

Visualize a random walk process where numbers are randomly chosen between 0 and 1 and accumulated step by step, stopping when the sum exceeds 1 and recording the number of draws needed. Run multiple trials to show the distribution of stopping steps, using geometric elements like points and line segments to represent each step and stopping point, dynamic coordinates to label key values, and a polyline to trace the progression, illustrating the approximation to Euler's number e.
The prompt above was compiled from the original drawing commands and is for reference only.