The third worked example of the modeling cycle. Examples 1 and 2 turned one overpass into one emission rate. A year of overpasses gives a catalogue, and the question becomes how persistent the source is. The usual first answer is the share of overpasses with a detection. Deriving what that share actually measures shows it mixes the source with the sensor, so the next model describes the source in its own time: events at a rate, sizes from a distribution, thinned by what each instrument can see while it is looking. Its likelihood is derived here, it has a closed-form posterior when the rate is constant, and the questions operations ask become integrals of the fitted rate.
Keywords:persistencythinned point processprobability of detectionemission inventorymodeling cycleplumax¶
A generative story of when the facility emits, how big each event is, and who saw it. Events arrive as a Poisson process with a daily cycle, sizes are lognormal, and an event is detected with the instrument’s detection probability if an overpass window covers it.
Fit the story to the catalogue with NUTS over the rate, the sizes and the detection curves. The likelihood counts the detections and also the windows that saw nothing, through the number of events each window should have caught.
Read off what operations ask for, as functions of the fitted rate: the chance of at least one event in the next h hours, the expected wait for the next one, and the mass emitted over a period.
i indexes detected events, w coverage windows and j instruments. Ndet, Nwindow and Nhit count detections, overpass windows and windows with a detection. Time t is in days; the hour of the day is its fractional part.
Symbol
Role
Shape
Unit
ti,Qi
observation · time and emission rate of detection i
R, R
days, kg h⁻¹
ρ(t)
state · event rate (intensity)
function of t
events day⁻¹
Λ(t1,t2)
est · expected events between two times, ∫t1t2ρ
R
events
p(Q;μQ,σQ)
state · size distribution of events
density
(kg h⁻¹)⁻¹
Pd(j)(Q)
const · probability that instrument j detects an event of size Q
[0,1]
—
Peff,w
est · share of events detectable in window w
[0,1]
—
tdur
const · event duration
R
h
M
out · methane emitted in the window [0,T]
R
kg
T
const · horizon of the metrics
R
days
h
const · length of a visit
R
h
t0,Δt
const · start of the wait, and the wait for the next event
The simplest persistency is a fraction: overpasses with a detection over overpasses. As a model, it says every overpass is a coin flip with the same probability θfrac:
Nhit∣θfrac∼Binomial(Nwindow,θfrac) and θfrac∣Nhit∼Beta(1+Nhit,1+Nwindow−Nhit)
That is testable: split the overpasses by instrument or by hour and see whether one θfrac fits them all. It does not, and the reason can be derived. Suppose the facility is a Poisson source with rate ρ and an overpass sees the events of the window w before it. The number of detectable events in the window is Poisson with mean ΛwPeff,w (thinning a Poisson process keeps it Poisson), so
θfrac,w=P(at least one detection at w)=1−exp(−ΛwPeff,w) and Peff,w=∫p(Q)Pd(jw)(Q)dQ
Describe the facility, not the looking. Card 1 is the generative story; its likelihood follows in three steps.
The second sum is what the fraction threw away. An overpass with no detection is evidence, and how much it is worth depends on who was looking: an empty pass by the sensitive instrument says the source was probably quiet; an empty pass by the coarse one says little.
The closed form. With a constant rate, known Peff,w and a Gamma prior ρ∼Gamma(a0,b0) (shape a0, rate b0 in day), the time part of eq. (11) is ρ∑w∣w∣Peff,w−Ndetlogρ, so the posterior is again Gamma:
A point-process model predicts counts. Split the overpasses into groups the fit did not single out (by instrument, and by morning and afternoon) and compare observed with expected detections:
χ2=g∑E[Ng](Ng−E[Ng])2 and E[Ng]=w∈g∑ΛwPeff,w
With a handful of groups, values up to about the number of groups are what chance gives. Model 1 fails this test between instruments, as eq. (10) says it must. Model 2 passes between instruments, because Peff,w is in the prediction. If it still fails between morning and afternoon, the misfit has a pattern in time of day, which a constant rate cannot produce: the rate itself varies.
A week at the facility: events, windows, detections
A week of the facility. Events (bars, height = size) arrive at a rate that peaks in the evening; overpass windows (shaded) fall in daylight; detections (filled) are the events inside a window and above the instrument’s curve. Most events are never looked at, and the evening, where the facility is busiest, is never looked at at all.
with t in days. Equation (11) is unchanged; only Λw now depends on when each window falls. The model is plumax’s DiurnalSinusoidalIntensity, so the change to the fit is one word, intensity="diurnal".
The outer loop on persistency
Model 1 · Detection fractionone coin per overpass
18% or 5%depending on the instrument
compare: the fraction depends on who lookeda property of the sensor, not the source
Model 2 · Thinned process, constant rateρ, p(Q) and a detection curve per instrument
ρ=2.04±0.41 per dayfits between instruments
compare: afternoon windows see more than predictedthe rate changes through the day
Model 3 · With a daily cycleρ(t)=max(0,ρ0+Acos(2π(t−tpeak)))
fits by hour of dayevening only by extrapolation
The outer loop on persistency. The first change replaces a property of the sensor by a model of the source; the second gives the source’s rate the time dependence the residual counts asked for.
with equality only when Pd is flat. Summing the detected events misses both the events nobody looked at (all but a few percent of them) and the small events that were looked at and missed. A catalogue therefore overstates the typical event and understates the total, both at once.
A generative story for events: an intensity, a mark and a detection curve per instrument, all in plumax.population
today
2 · Model-based inference
tmtpp_iw_model under NUTS, with coverage windows and each detection’s own uncertainty; the conjugate posterior of eq. (12) as its referee for a constant rate
today
3 · Emulator
Skipped: the fit of one facility-year is seconds to a minute
—
4 · Emulator-based inference
A variational fit takes this place at the scale of a national catalogue
—
5 · Amortized inference
From a region and a window of history straight to the posterior of rate, sizes and totals
—
6 · Improve
Simulation-based calibration of the whole fit (run_sbc); self-exciting and covariate-driven rates (plumax#115); real catalogues with their coverage (plumax#111)
The framing of fraction against intensity follows plumax’s docs/theory/population/03_persistency.md; the metrics docs/design/06_tier5c_persistency.md; the six-step mapping docs/design/06_tier5_population.md. Lines marked today call names that exist in plumax at 290f31f, newer than the submodule pin; today* marks a name whose arguments are sketched. Eq. (14) is written with the peak hour as its parameter; check the phase convention of DiurnalSinusoidalIntensity before reading its phase_hours as a peak. The facility, its instruments and every number in the running example are illustrative and computed from the stated settings.