Question: Given the inverted intensity from Tier V.B, when will the next emission event happen, and what’s the probability of an event during a specified window?
This is the operational layer, which is what an LDAR (Leak Detection and Repair) crew or a satellite-tasking dispatcher actually consumes. The full derivations of each metric live in the persistency theory page; this page summarises the metrics and how they slot into the plumax API.
The four operational metrics¶
1. Expected wait time ¶
How long after time until the next event?
For a diurnal source, vastly different at noon vs. midnight.
Operational use. Dispatch decisions: arrive during a high- window and the next event is imminent (worth waiting); arrive during a low- window and you’d waste hours. Drives MARS-style dispatch suppression during dormant cycles.
2. Probability of occurrence ¶
What’s the chance of at least one event in ?
Operational use. This is the “wrench-turning” probability: if a maintenance window is 4 hours, what’s the chance the leak shows itself during that window? It drives whether to schedule the visit.
3. Conditional intensity given prior detection ¶
For a source with a known recent detection at , what’s the posterior intensity going forward?
For Poisson processes (no memory) the intensity is unchanged. For Hawkes / self-exciting processes it is bumped:
This captures the empirical observation that super-emitters “cluster”.
Operational use. Prioritisation: a source with a recent detection is more likely to repeat-emit in the next 24 h. Re-task a high-resolution satellite (GHGSat [ghgsat], Carbon Mapper [carbon_mapper]) on top of a TROPOMI alert [s5p_tropomi].
4. Cumulative event count and credible bounds¶
Expected number of events in , with credible interval from the posterior on .
(Homogeneous: .)
Operational use. Annual reporting, regulatory compliance. “How many emission events should we expect this year at this facility class, with 95% credible interval?”
API shape¶
A thin wrapper around plumax.population.intensity:
import jax
from plumax.population.persistency import (
expected_count,
expected_wait_time,
occurrence_probability,
posterior_metric,
)
from plumax.population.point_process import PoissonRatePosterior
# Shapes: N_E = 1,000 posterior draws of the event rate λ
# today (plumax)
# λ | n ~ Gamma(α₀ + n, β₀ + A T), with 200 events over 100 days
posterior = PoissonRatePosterior(alpha=201.0, beta=100.0, n_events=200, exposure=100.0)
key = jax.random.key(0)
key_wait, key_occurrence, key_count = jax.random.split(key, 3)
# today (plumax)
# 𝔼[Δt | t₀] = ∫₀^∞ exp(−Λ(t₀, t₀ + s)) ds, from t₀ = 18:00 [days]
wait = posterior_metric( # samples (N_E,)
expected_wait_time, posterior, 0.75, key=key_wait
)
# today (plumax)
# P(N(t, t + h) ≥ 1) = 1 − exp(−Λ(t, t + h)), from 08:00 for h = 4 hours
occurrence = posterior_metric( # samples (N_E,)
occurrence_probability, posterior, 8 / 24, 4 / 24, key=key_occurrence
)
# today (plumax)
# 𝔼[N(t, t + h)] = Λ(t, t + h), over a year
count = posterior_metric( # samples (N_E,)
expected_count, posterior, 0.0, 365.0, key=key_count
)Each metric takes an intensity (a registry name or any of the 13 equinox kernels from plumax.population.intensity), a start time and, for a window, a horizon, all in days. posterior_metric then maps a metric over the draws of a fitted posterior (Gamma-Poisson, log-linear or the full TMTPP) and returns the samples with their quantiles, so the UQ propagates in full and there are no point estimates. The conditional intensity of section 3 needs a Hawkes kernel, which is still open (#115).
Module layout¶
Tier V.C module layout: concern, target module and status.
| Concern | Module | Status |
|---|---|---|
| Intensity functions | plumax.population.intensity | ✓ in tree |
| Wait-time / occurrence / cumulative metrics | plumax.population.persistency | ✓ #112 |
| Posterior-aware metric wrappers | same module (posterior_metric) | ✓ #112 |
| Operational dashboard / report templates | out of scope for plumax; lives in plumax-deploy (future) | - |
The integral over in the wait-time formula is closed-form for a few intensity choices (constant, exponential decay). Otherwise it is an integral to infinity, which integrix’s An integral to infinity treats with tanh-sinh quadrature and checks against ; plumax’s expected_wait_time uses its own log-spaced survival grid today.
Validation strategy¶
Homogeneous limit. For constant , all four metrics have closed-form formulas; the implementation should match to machine precision.
MC self-consistency. Sample event times from a known via thinning, compute the empirical wait time / occurrence frequency, compare to the closed-form metric. Tests both the metric implementation and the simulator.
Posterior coverage. For a synthetic source with known , the 95% credible interval on should contain the truth ~95% of the time across replicates.
Diurnal sanity. A solar-heated tank with peak at 14:00 should have . This is a numerical sanity check rather than a formal test, but it catches sign errors.