name: op-synth-poisson
description: Poisson-distributed non-negative integer counts with mean lambda; Knuth multiplicative below 30, normal-approximation above.
kind: operator
category: SYNTH
operator: poisson
type: reference
applies_to: inspect, predict, manifest
examples_tags: [synth, cardinality-analysis]
Synth distributions emit per-row values; no Response.Components. No MCP tool runs synth: the CLI (pulse synth from-schema) or Pulse.Synth does (synthetic-data).
Use when
Draws whole-number counts of events per period, such as visits per day, around a chosen average.
Questions it answers:
- How many orders might a store get per hour?
- How do I simulate defect counts per batch?
Use something else:
exponentialwhen you want the time between events, not how many.bernoulliwhen each row is a yes/no outcome.discretewhen you know the exact share of each count.
Params
| Name | Type | Default | Description |
|---|---|---|---|
lambda | float | 1 | Rate parameter; equals both the mean and the variance. Must be > 0. |
Inputs
field type: — numeric: u4/u8/u16/u32/u64, f32/f64. Cast at write time; an integer field saturates silently at its maximum (u4 15) when lambda is large.
Output
Per-row non-negative integer (returned as float64). Two algorithms:
lambda < 30: Knuth’s multiplicative method — exact, drawskuniforms until product< exp(-lambda).lambda >= 30: normal approximationN(lambda, lambda)rounded to nearest non-negative integer.
Contract
- Applies to:
numericfields.
Gotchas
- Knuth runtime is
O(lambda)per row — large lambda would dominate without the normal-approx switch. lambda <= 0→SERVICE_VALIDATIONbefore any row is written.- Variance equals mean; for over-dispersed counts pair with a
lognormalmixer or use rejection sampling viaconstraints. - Same spec and seed ⇒ the same rows, on both branches.