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

PropTypeDefaultDescription
titlestringfrom the modeCard title.
modestring"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.
intensitynumber | string150 (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.
intensityMaxnumbergrid maximum x 1.05Upper bound of the intensity used for sampling by thinning; give it when the intensity has a narrow peak the grid scan could miss.
regionsregion[] | numberone 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.
editablebooleantrueLearner may move/resize regions with their handles and draw new rectangles or disks (spatial modes).
seednumber1Seed of the stream of scatters; scatter j is the same for a given seed however it is reached.
initialScattersnumber1Scatters simulated on load (1-2000), so the histograms start filled; the last one is shown.
showExpectedbooleantrueStart with the theory (region means, Poisson pmf, theoretical correlations and distance law) visible; the learner can toggle it.
showIntensitybooleantrueShade a non-constant intensity (time-mark: the density lambda(t) f(k)).
axesbooleantrueDraw axes and grid; false gives a bare square of dots, as in a textbook figure.
probe[number, number]centre of the windowNearest mode: the starting position of the draggable probe x0.
knumber1Nearest mode: which neighbour (1 = nearest, 2 = second nearest, up to 20). P(R_k > r) = P(fewer than k points in B(x0, r)).
radiusnumbermedian of R_kNearest mode: initial radius r of the dashed test disk, for P(R_k > r).
keepProbabilitynumber | string0.5Thin 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.
showDiscardedbooleantrueThin mode: draw the dropped points as hollow circles.
tRange[number, number][0, 10]Time-mark mode: the time window of arrivals.
markLawstring | {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).
xLabelstring"$x$" (time-mark: "arrival time $t$")Horizontal axis title ($...$ TeX).
yLabelstring"$y$" (time-mark: "mark $k$")Vertical axis title ($...$ TeX).
controlsstring[]all controls shownIds of the hideable controls to show (see the controls registry); core ones always show. Absent = everything. Fitted per page by tooling, not by hand.