Poisson Point Scatter
A spatial Poisson scatter in a window: the learner draws, moves and resizes regions, generates new scatters (one, or hundreds at a time), and compares each region's count with its Poisson law of mean equal to the integrated intensity, including the correlation of counts in disjoint versus overlapping regions. Other modes show the distance from a draggable probe to the nearest (or k-th nearest) point, thinning into independent kept and dropped processes, and the time-mark plane of a marked process (e.g. customers still in service in an infinite-server queue).
Used in: Introduction to Probability Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | from the mode | Card title. |
| mode | string | "count" | count: counts in regions vs Poisson(mu(A)); nearest: distance from a probe x0 to the k-th nearest point; thin: keep each point with probability keepProbability, dropped points hollow; time-mark: points (arrival time t, mark k) of a marked Poisson process. |
| window | [[xmin, xmax], [ymin, ymax]] | "unit-square" | [[0, 1], [0, 1]] | The observation window W (spatial modes). Points exist only inside it, so region means and nearest-distance laws include edge effects. |
| intensity | number | string | 150 (time-mark: 2) | Intensity: a constant or an expression in x, y (spatial; e.g. "100*x", "300*exp(-((x-0.5)^2+(y-0.5)^2)/0.05)") or in t (time-mark; e.g. "30*t"). Negative values count as 0. A non-constant intensity is shaded. |
| intensityMax | number | grid maximum x 1.05 | Upper bound of the intensity used for sampling by thinning; give it when the intensity has a narrow peak the grid scan could miss. |
| regions | region[] | number | one rectangle (nearest: none; time-mark: [{inService: 60% of tRange}]) | Up to 4 regions: {rect: [[x0, x1], [y0, y1]]}, {disk: {center: [x, y], radius}} or, in time-mark mode, {inService: tau} (the set t <= tau < t + k); each may carry a label (default A, B, C, D). A number n gives n preset disjoint rectangles; [] starts with none and the Draw rect tool active. |
| editable | boolean | true | Learner may move/resize regions with their handles and draw new rectangles or disks (spatial modes). |
| seed | number | 1 | Seed of the stream of scatters; scatter j is the same for a given seed however it is reached. |
| initialScatters | number | 1 | Scatters simulated on load (1-2000), so the histograms start filled; the last one is shown. |
| showExpected | boolean | true | Start with the theory (region means, Poisson pmf, theoretical correlations and distance law) visible; the learner can toggle it. |
| showIntensity | boolean | true | Shade a non-constant intensity (time-mark: the density lambda(t) f(k)). |
| axes | boolean | true | Draw axes and grid; false gives a bare square of dots, as in a textbook figure. |
| probe | [number, number] | centre of the window | Nearest mode: the starting position of the draggable probe x0. |
| k | number | 1 | Nearest mode: which neighbour (1 = nearest, 2 = second nearest, up to 20). P(R_k > r) = P(fewer than k points in B(x0, r)). |
| radius | number | median of R_k | Nearest mode: initial radius r of the dashed test disk, for P(R_k > r). |
| keepProbability | number | string | 0.5 | Thin mode: retention probability p, a constant or an expression in x, y (clipped to [0, 1]); kept points form a Poisson process of intensity p lambda, dropped ones (1 - p) lambda, independently. |
| showDiscarded | boolean | true | Thin mode: draw the dropped points as hollow circles. |
| tRange | [number, number] | [0, 10] | Time-mark mode: the time window of arrivals. |
| markLaw | string | {family, params} | {family: "exponential", params: {mean: 1}} | Time-mark mode: law of each mark (e.g. a service time), any spec the sampling core accepts ("Exp(rate=0.5)", {family: "gamma", params: {shape: 2, rate: 1}}). Marks are independent of the arrivals. |
| markRange | [number, number] | [0, 98% quantile of markLaw] | Time-mark mode: visible range of the mark axis. Regions may extend beyond it (counts still include those points). |
| xLabel | string | "$x$" (time-mark: "arrival time $t$") | Horizontal axis title ($...$ TeX). |
| yLabel | string | "$y$" (time-mark: "mark $k$") | Vertical axis title ($...$ TeX). |
| controls | string[] | all controls shown | Ids of the hideable controls to show (see the controls registry); core ones always show. Absent = everything. Fitted per page by tooling, not by hand. |
PreviousNext