AI Grounds
Open AI Grounds on a desktop
These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.
AI Grounds
These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.
Guided discovery
Change the event chance. Separate waiting time from arrival count.
One-second model: independent ticks, the same event chance p each second, at most one event per tick. Scenarios are illustrative parameter choices.
Chance on each independent tick, not events per second. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.
How long to count events. The waiting law keeps the same p. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.
Geometric: exact tick probabilities. Wait counts the successful second; it can be longer than this window.
Fixed scale: 0–100% probability
Poisson count approximation: most useful for small per-second p. 9+ pools all counts nine and above, not one outcome.
Fixed scale: 0–100% probability
P(wait ≤ 20 s): ≈ 33.24% · P(wait > 60 s): ≈ 29.76% · Median wait: 35 s. Median is the earliest tick with at least 50% chance of an event by then.
Average first-event wait over many independent runs.
50 s
1 / p = 1 / 0.02
An average, not a scheduled arrival.
Average events in 5 minutes; both models share this mean.
6
μ = 60 × 5 × 0.02
A count can exceed one or be fractional.
Expected events per minute at the current chance.
1.2/min
λ = 60p events/minute
Changing Window keeps this rate fixed.
Two different approximations: small p supports Poisson counts; small μ (rate × time) supports the linear probability shortcut.
1 − (1 − p)300
1 − e−μ · exact for Poisson, approximate for ticks
Outside the probability range. An expected count is not a probability; this value is not clipped.
One illustrative pseudorandom run: one draw per second with fixed seed 3209. Actual count: 5; expected count: 6. Changing p reuses draws; extending Window preserves earlier events. A sample is not a probability distribution.
Event seconds: 169, 171, 205, 212, 221. The window endpoint can cut off a wait; it is not treated as a completed inter-event gap.
W is the integer tick of the first event; K is the number of events in the window. N = 60 × Window seconds; μ = Np. All numbers shown above are rounded for display.
Chance 2% per second; window 5 minutes; mean wait 50 seconds; expected count 6. At least one event: exact tick ≈ 99.77%, Poisson approximation ≈ 99.75%, linear shortcut 600%, outside probability range.