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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | from the mode | Card title. |
| mode | string | "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). |
| p | number | 0.3 | Bernoulli success probability per trial (slider). |
| pSchedule | string | string[] | null | null | Bernoulli: 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. |
| rate | number | 1 (2 for split) | Poisson rate lambda (poisson, split base stream), with a slider. |
| rates | number[] | [1, 0.5] | Merge: rates of the independent streams (1 to 6), one slider each. |
| classProbabilities | number[] | [0.3, 0.7] | Split: probability of each class (normalised; a single p < 1 means [p, 1 - p]). Two classes get a slider. |
| labels | string[] | ["type 1", ...] / ["stream 1", ...] | Names of the split classes or merged streams (plain text). |
| intensity | string | "2 + sin(t)" | Time-change: intensity lambda(t) as an expression in t ("y = ..." and x are accepted); Lambda(t) is integrated numerically. |
| mixing | string | {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. |
| conditionOnN | number | 5 | Conditioned: the number n of arrivals on [0, tMax] (slider). |
| tMax | number | 20 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 strip | Counting window for the count statistic: trials a..b (bernoulli) or (a, b]. Both ends are draggable. |
| windowLengthSlider | boolean | false | Add a slider for the window length (rate scaling: Poisson(lambda * length)). |
| statistic | string | "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). |
| statistics | string[] | all that apply to the mode | Restrict the statistic picker to these values. |
| r | number | 3 | Which arrival the rth statistic times (slider 1 to max(10, r)). |
| focus | number | 0 (split), -1 (merge) | Split/merge: which class or stream the statistic and counting path use; -1 = all arrivals / the merged stream. |
| showGaps | boolean | false | Bracket the gaps G_1, G_2, ... between successive arrivals on the strip. |
| showCountingPath | boolean | true | Show the counting path N(t) of the current run with the expected count. |
| showDuality | boolean | false | With 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. |
| dualityT | number | tMax / 2 | Initial position of the duality time t. |
| conditionOnNoArrivalBefore | number | null | null | Memorylessness: 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. |
| compareTail | number | 3 (bernoulli) or tMax / 4 | The t in P(T_1 > s + t | T_1 > s) versus P(T_1 > t) (slider). |
| showTheory | boolean | true | Overlay the theoretical law and show its mean and variance. |
| showSliders | boolean | true | Show the process parameter sliders (p, lambda, rates, class probability, n). |
| showTimeChange | boolean | true | Time-change: also show the epochs mapped through Lambda, a rate-1 Poisson process. |
| timeUnit | string | "" | Unit shown on the time axis, e.g. "minutes". |
| initialRuns | number | 0 | Runs tallied before the learner acts (up to 5000), so the histogram starts filled. |
| seed | number | string | 1 | Seed of the random strips; the same seed gives the same runs. |
| controls | string[] | all controls shown | Registry 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. |
PreviousNext