Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tier V.C: Persistency

Question: Given the inverted intensity λ(t)\lambda(t) 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 E[Δt∣t0]\mathbb{E}[\Delta t \mid t_0]

How long after time t0t_0 until the next event?

E[Δt]  =  1λ0(homogeneous Poisson; memoryless)\mathbb{E}[\Delta t] \;=\; \frac{1}{\lambda_0} \qquad \text{(homogeneous Poisson; memoryless)}
E[Δt∣t0]  =  ∫t0∞exp⁡ ⁣(−∫t0tλ(u) du)dt(inhomogeneous; depends on starting clock)\mathbb{E}[\Delta t \mid t_0] \;=\; \int_{t_0}^{\infty} \exp\!\left(-\int_{t_0}^{t} \lambda(u)\, \mathrm{d}u\right) \mathrm{d}t \qquad \text{(inhomogeneous; depends on starting clock)}

For a diurnal source, vastly different at noon vs. midnight.

Operational use. Dispatch decisions: arrive during a high-λ\lambda window and the next event is imminent (worth waiting); arrive during a low-λ\lambda window and you’d waste hours. Drives MARS-style dispatch suppression during dormant cycles.

2. Probability of occurrence P ⁣(N(t1,t2)≥1)\mathbb{P}\!\bigl(N(t_1, t_2) \geq 1\bigr)

What’s the chance of at least one event in [t1,t2][t_1, t_2]?

P ⁣(N(t1,t2)≥1)  =  1−exp⁡ ⁣(−λ0 (t2−t1))(homogeneous)\mathbb{P}\!\bigl(N(t_1, t_2) \geq 1\bigr) \;=\; 1 - \exp\!\bigl(-\lambda_0\, (t_2 - t_1)\bigr) \qquad \text{(homogeneous)}
P ⁣(N(t1,t2)≥1)  =  1−exp⁡ ⁣(−∫t1t2λ(t) dt)(inhomogeneous)\mathbb{P}\!\bigl(N(t_1, t_2) \geq 1\bigr) \;=\; 1 - \exp\!\left(-\int_{t_1}^{t_2} \lambda(t)\, \mathrm{d}t\right) \qquad \text{(inhomogeneous)}

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 λ(t∣tprev)\lambda(t \mid t_\text{prev})

For a source with a known recent detection at tprevt_\text{prev}, what’s the posterior intensity going forward?

For Poisson processes (no memory) the intensity is unchanged. For Hawkes / self-exciting processes it is bumped:

λ(t∣tprev)  =  μ+α exp⁡ ⁣(−β(t−tprev))\lambda(t \mid t_\text{prev}) \;=\; \mu + \alpha\, \exp\!\bigl(-\beta(t - t_\text{prev})\bigr)

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 E[N(0,T)]\mathbb{E}[N(0, T)] and credible bounds

Expected number of events in [0,T][0, T], with credible interval from the posterior on λ\lambda.

E[N(0,T)]  =  Λ(T)  =  ∫0Tλ(t) dt\mathbb{E}[N(0, T)] \;=\; \Lambda(T) \;=\; \int_{0}^{T} \lambda(t)\, \mathrm{d}t

(Homogeneous: λ0⋅T\lambda_0 \cdot T.)

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.

ConcernModuleStatus
Intensity functionsplumax.population.intensity✓ in tree
Wait-time / occurrence / cumulative metricsplumax.population.persistency✓ #112
Posterior-aware metric wrapperssame module (posterior_metric)✓ #112
Operational dashboard / report templatesout of scope for plumax; lives in plumax-deploy (future)-

The integral over λ(t)\lambda(t) 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 1/λ01/\lambda_0; plumax’s expected_wait_time uses its own log-spaced survival grid today.


Validation strategy


Open questions