Poisson Arrival Strip

The learner generates random arrival strips (Bernoulli trials or a Poisson process, thinned, merged, conditioned on its count, time-changed or with a random rate), sees each run's counting path, and tallies a statistic over many runs against its theoretical law: window counts (binomial/Poisson), first arrival and gaps (geometric/exponential, memoryless), the r-th arrival (negative binomial/Gamma) and {N(t) >= r} = {S_r <= t}.

Used in: Introduction to Probability Theory

Props

PropTypeDefaultDescription
titlestringfrom the modeCard title.
modestring"poisson"bernoulli (discrete trials with success probability p), poisson (homogeneous, rate), split (independent thinning of one stream into classes), merge (superposition of independent streams), conditioned (n arrivals given N(tMax) = n: uniform order statistics), time-change (nonhomogeneous process with intensity lambda(t)) or mixed (random rate drawn from `mixing` per run).
pnumber0.3Bernoulli success probability per trial (slider).
pSchedulestring | string[] | nullnullBernoulli: time-varying success probability p_n as an expression in n, e.g. "1/n^2"; a list gives a picker (e.g. ["1/n", "1/n^2"] for Borel-Cantelli). Only the count statistic is tallied.
ratenumber1 (2 for split)Poisson rate lambda (poisson, split base stream), with a slider.
ratesnumber[][1, 0.5]Merge: rates of the independent streams (1 to 6), one slider each.
classProbabilitiesnumber[][0.3, 0.7]Split: probability of each class (normalised; a single p < 1 means [p, 1 - p]). Two classes get a slider.
labelsstring[]["type 1", ...] / ["stream 1", ...]Names of the split classes or merged streams (plain text).
intensitystring"2 + sin(t)"Time-change: intensity lambda(t) as an expression in t ("y = ..." and x are accepted); Lambda(t) is integrated numerically.
mixingstring | {family, params}{family: "gamma", params: {shape: 2, rate: 1}}Mixed: law of the random rate (any non-negative sampling-core spec, e.g. "Gamma(shape=2, rate=1)" or "Exp(1)"). A gamma law gives exact negative binomial counts.
conditionOnNnumber5Conditioned: the number n of arrivals on [0, tMax] (slider).
tMaxnumber20 trials (bernoulli), 10 (poisson), 12.566 (time-change), 5 (mixed)Horizon of the strip: number of trials (bernoulli, at most 5000) or the time interval [0, tMax]. Statistics beyond it (first arrival, r-th arrival) are still simulated exactly.
window[a, b]the whole stripCounting window for the count statistic: trials a..b (bernoulli) or (a, b]. Both ends are draggable.
windowLengthSliderbooleanfalseAdd a slider for the window length (rate scaling: Poisson(lambda * length)).
statisticstring"count" ("times" for conditioned)What is tallied over runs: count (in the window), first (first arrival T_1), gap (inter-arrival gaps G_1..G_5 of each run), rth (r-th arrival S_r) or times (all arrival times; conditioned and time-change).
statisticsstring[]all that apply to the modeRestrict the statistic picker to these values.
rnumber3Which arrival the rth statistic times (slider 1 to max(10, r)).
focusnumber0 (split), -1 (merge)Split/merge: which class or stream the statistic and counting path use; -1 = all arrivals / the merged stream.
showGapsbooleanfalseBracket the gaps G_1, G_2, ... between successive arrivals on the strip.
showCountingPathbooleantrueShow the counting path N(t) of the current run with the expected count.
showDualitybooleanfalseWith the rth statistic: a draggable time t on the counting path, and the run-by-run identity {N(t) >= r} = {S_r <= t} with both empirical frequencies and the theory.
dualityTnumbertMax / 2Initial position of the duality time t.
conditionOnNoArrivalBeforenumber | nullnullMemorylessness: switches to the first statistic, keeps only runs with no arrival in [0, s] (s = this value, slider) and tallies T_1 - s against the unconditional law; a toggle turns the conditioning off.
compareTailnumber3 (bernoulli) or tMax / 4The t in P(T_1 > s + t | T_1 > s) versus P(T_1 > t) (slider).
showTheorybooleantrueOverlay the theoretical law and show its mean and variance.
showSlidersbooleantrueShow the process parameter sliders (p, lambda, rates, class probability, n).
showTimeChangebooleantrueTime-change: also show the epochs mapped through Lambda, a rate-1 Poisson process.
timeUnitstring""Unit shown on the time axis, e.g. "minutes".
initialRunsnumber0Runs tallied before the learner acts (up to 5000), so the histogram starts filled.
seednumber | string1Seed of the random strips; the same seed gives the same runs.
controlsstring[]all controls shownRegistry ids of the hideable controls to show (see `controls` in this file): the statistic picker options (stat.*), the theoretical law overlay with its caption and theory rows (law.*) and the split-mode correlation row. The statistic the props choose is always offered. Absent = everything. Fitted per page by component_scopes.py, not by hand.