emldetect
案例说明了如何用稀疏且依赖位置的均值标定补充解析公式。独立运行的 M1/M2
emldetect 模拟还表明,PN
参考拟合器系数不能直接转移。位置与宽度结构可以复用,但其系数取决于配置。该核支持拟合幅度阈值穿越图和目录空间选择概率。两种用途都仍在拟合幅度坐标中。X-ray sensitivity calculations often replace the Cash-statistic likelihood-ratio improvement, , with one expected value. Near a detection threshold, its conditional width is also needed. We derive explicit pixel-sum expressions for the leading expected-data location and projected variance of from a three-parameter point-spread-function (PSF) fit. The mean extends earlier analytic sensitivity calculations. The projected variance is our main analytic result. At low signal, we use the observable-conditioned kernel
Here
is fitted amplitude,
is local background,
is the pixelized PSF,
is the fitting mask,
labels the fitter and instrument,
and
are the analytic location and variance, and
and
correct their low-signal mean and standard deviation. Across
810,987 clean XMM-Newton PN band-4 reference-fitter
realizations, the 266,837 high-signal fits have a
standardized-residual mean of
and width of
.
Compact, separately fitted functions of
describe the low-signal changes in mean and standard deviation. We test
the passing fractions on held-out data at
,
8, and 10. The mean error is
for raw Fisher theory and
after both corrections. The empirical-bin benchmark is
.
Whole-position validation shows that the mean correction alone cannot
determine the width correction. A targeted paired simulation finds that
centroid relocation and position maximization give the largest positive
contribution to the low-signal shift. This result applies to the
integer-grid reference fitter. A standalone emldetect case
study shows how the analytic formula can be supplemented by a sparse
position-dependent mean calibration. Standalone M1/M2
emldetect simulations also show that the PN
reference-fitter coefficients do not transfer directly. The
location–scale structure is reusable, but its coefficients are
configuration specific. The kernel supports fitted-amplitude
threshold-crossing maps and catalog-space selection probabilities. Both
uses remain in the fitted-amplitude coordinate.
This section defines the source-detection problem and states the analytic contribution.
emldetect
拟合一个幅度和两个位置坐标 (Cruddace et al. 1988; Watson et al. 2009)。它报告
,即
的不完全伽马变换。该统计量用于目录条目、探测阈值和灵敏度图。Poisson-count source detection fits a source model above a known
background. A Poisson model describes random counts around an expected
number. A likelihood ratio compares how well two models explain the same
data. In the standard Cash-statistic formulation (Cash
1979), the improvement is
.
Apart from a constant,
equals twice the negative Poisson log-likelihood. Detection pipelines
often report a monotone transform of
as a “detection likelihood.” Here monotone means that the transform
preserves the order of
values. In the XMM-Newton Science Analysis System,
emldetect fits one amplitude and two position coordinates
(Cruddace et al. 1988;
Watson et al.
2009). It reports
,
an incomplete-gamma transform of
.
This statistic is used for catalog entries, detection thresholds, and
sensitivity maps.
emldetect (Carrera et al. 2007; Rosen et al. 2016; Traulsen et al. 2019;
Watson et al. 2009;
Webb et al.
2020)。Major X-ray surveys use sensitivity maps and source-count methods
(Cappelluti et al.
2009; Georgakakis et al. 2008; Laird et al. 2009; Luo et al. 2017, e.g.,; Mateos et al. 2008; Puccetti et al. 2009;
Wang et al. 2016; Xue et al. 2011).
Poisson source detection and likelihood-ratio limits have a long history
in high-energy astrophysics (Broos et al. 2010, e.g.,;
Gehrels 1986; Kashyap et al. 2010; Kraft et al. 1991; Protassov et al.
2002; Starck et al.
2002). XMM-Newton source catalogs use emldetect
(Carrera et al. 2007; Rosen et al. 2016; Traulsen et al. 2019;
Watson et al. 2009;
Webb et al.
2020).
We use only as the ordered threshold scale defined by SAS. We do not treat it as a calibrated frequentist false-alarm probability. The usual null reference assumes regular model parameters away from boundaries. This assumption fails here. Source amplitude lies on a boundary, and source position is undefined under the null (Chernoff 1954; Protassov et al. 2002; Self & Liang 1987). Monte Carlo experiments by Stewart (2009) tested the corresponding Cash-statistic reference. It was useful for representative searches after negative-amplitude solutions were excluded. The low-count Cash statistic can also differ from its high-count limit (Bonamente 2020). We do not try to settle this null-calibration question. We use the conversion between and for one purpose. It translates a chosen pipeline threshold into the statistic modeled below.
The practical threshold range has low signal. For many XMM-Newton applications, sensitivity maps use of order 6–10. Source counts are steep in this range, and Poisson fluctuations matter. A small threshold shift can therefore change the inferred limiting flux. Eddington bias also matters. Near the detection boundary, upward fluctuations are selected more often. The selected sample then differs from the full parent distribution (Eddington 1913; Wang 2004).
esensmap
也在 3XMM 和 4XMM 流水线中采用了 emldetect 形式的解析 Cash
模型 (Rosen et al. 2016; Traulsen et al.
2019)。New-ANGELS XMM
巡天在拟合流量而不是注入流量处计算了相关期望 (Huang et al. 2025,
appendix)。谱拟合优度问题中也存在 Cash 统计量的矩 (Kaastra
2017)。这些矩描述的量不同于本文研究的源模型相对背景模型的改进量。The analytical mean is already known in related forms. Stewart (2009) derived an
amplitude-only Cash-statistic expectation for sensitivity calculations.
That work extended an earlier matched-filter study (Stewart 2006). SAS esensmap
also uses an emldetect-style analytic Cash model in the
3XMM and 4XMM pipelines (Rosen et al. 2016; Traulsen et al. 2019). The New-ANGELS
XMM survey evaluated a related expectation at fitted flux instead of
injected flux (Huang et al. 2025,
appendix). Cash-statistic moments also exist for spectral
goodness-of-fit problems (Kaastra 2017). Those moments describe a
different quantity from the source-versus-background improvement studied
here.
The unresolved quantity is the conditional width of the detection improvement. We find no earlier explicit pixel-sum variance for after fitting amplitude and two position coordinates. We also find no fitted-observable threshold calculation that carries this width forward. We therefore separate the problem into analytic location and scale terms plus an empirical low-count correction. The Asimov term is the expected-data likelihood contrast and gives the location. The related Kullback–Leibler quantity measures the expected log-likelihood difference. A Fisher/Wald projection gives the leading variance (Cowan et al. 2011; Wilks 1938). Fisher projection removes fluctuation directions absorbed by fitted parameters. Our result is the pixelized Poisson-imaging version of related Fisher analyses of joint photometry and astrometry (Mendez et al. 2014).
The projection identity is standard. Our new step is its explicit pixel-sum form for a free-position Poisson PSF fit. We also validate it near the detection threshold. The quantity is the predicted three-parameter variance. It uses only the fitted amplitude, background, PSF, and mask. It has no fitted coefficient. The empirical functions and give small low-count corrections. They do not replace the analytic formula.
The resulting model has a common structure but not a universal set of empirical coefficients:
Here is the pixelized PSF, and is the fitting mask. The PSF describes how a point source is spread across image pixels. The quantity is fitted source amplitude, and is local background. The term is the analytic three-parameter location. The index names the effective fitter and search configuration. The functions and correct the low-count location and width, respectively. They must be estimated separately. A correct mean removes gradients within a bin before the width is measured. It does not set the width. We apply the nonlinear incomplete-gamma transform from to only after constructing this distribution.
emldetect
的流水线专属标定案例。该节还检验配置之间的转移。第 6
节给出拟合幅度阈值穿越和目录用途。第 7 和第 8
节给出适用范围限制和结论。Section 2 gives the conditioning and selection rules. Section 3
derives the analytic location and Fisher-projected variance. Section 4
validates the reference-fitter kernel and its separate low-count
corrections. Section 5 presents a pipeline-specific calibration case
study with standalone emldetect. It also tests transfer
across configurations. Section 6 gives fitted-amplitude threshold
crossings and catalog uses. Sections 7 and 8 give the scope limits and
conclusions.
This section defines the fitted-observable distribution and the rules used to study it. The central quantity is , the Cash-statistic improvement, conditioned on fitted data:
Here conditioning means holding the listed fitted quantities fixed.
Here is the fitted source amplitude. The symbol is the local background in counts per pixel. The symbol is the pixelized PSF, and is the fitting mask. The index records the search and optimizer settings. Section 3 derives the leading location and variance. Section 4 measures low-count corrections with a matched reference fitter. Section 5 studies a standalone pipeline calibration. Section 6 gives two uses in fitted-amplitude space.
This subsection explains why the model conditions on fitted amplitude. In simulations, labels the injected source amplitude. It is the right variable for the separate generation model . However, catalog sources do not have an observed . It is therefore not the conditioning variable in our fitted-observable kernel. We use only for generation checks. All moment estimates are conditioned on . Conditioning on tests behavior at a known injected flux. Conditioning on tests the kernel after fitting a source. Only the second case is used for our kernel and fitted-amplitude crossing maps.
This subsection separates the predicted mean from the remaining random part. For each source or fake-source trial, we evaluate the theory at the observed fitted quantities:
and the residual is
For a sample or bin,
The symbol is the predicted mean for a three-parameter fit. The observed variance equals only when is nearly constant across the bin. Otherwise, mixing fitted amplitudes or positions adds variance outside the conditional theory. We therefore estimate a local conditional mean in the cells used for the width. We subtract this local trend before computing the standard deviation. The mean is needed for this step, but the remaining width is a separate target. Binning by mixes fitted amplitudes and can increase the apparent position dependence. A cut on observed , , or the residual has a second problem. It removes part of the distribution whose moments are being measured. We use neither operation below.
This subsection shows how we convert a detection threshold without selecting on a noisy observed value. The statistic is a nonlinear, order-preserving tail-probability transform of :
with and for the single-source three-parameter fit. The corresponding inverse is Here is the threshold in Cash-improvement space. The function is the regularized upper incomplete gamma function. It gives the upper-tail probability of a gamma distribution. The notation means inversion in its second argument. Thus correspond to , respectively. A Gaussian residual in is therefore not Gaussian after transformation to . Selecting on observed also selects the noisy quantity being measured. This removes the lower part of the residual distribution and raises its mean near the threshold. We instead convert threshold ranges to with the three-parameter convention. We then use predicted conditions such as $\mu_{3p,\rm ref}\in[\Delta C_\mathrm{ML6},\Delta C_\mathrm{ML10}]$. An equivalent choice uses bins whose typical predicted lies in that interval. The conditioning then remains independent of the observed random fluctuation in .
This section derives the analytic location and projected variance. The model has one free amplitude and two free position coordinates. The Kullback–Leibler/Asimov construction and the Fisher/Wald projection identity are standard likelihood tools (Cowan et al. 2011; Wilks 1938). Here Kullback–Leibler means the expected log-likelihood difference between two models. The Asimov construction evaluates a statistic on the expected data. The Fisher/Wald projection removes noise directions absorbed by fitted parameters. Our new result is their explicit pixel-sum form for a free-position Poisson PSF fit. We also validate this form. The projected variance, not the analytical mean alone, is the main theoretical contribution.
This subsection defines the pixelized source and background model. Consider a fitting region with pixels indexed by . The observed counts are independent Poisson random variables:
For one source on a locally known background, the fitted model is
Here is the expected background in pixel . The symbol is the source amplitude in the image-model units. The function is the pixelized PSF template shifted to position . We denote this pixelized PSF by . The PSF is normalized over the full template grid, . The mask value then selects the fitting footprint, denoted by . Thus is the total source amplitude in the template convention. It is not the source count inside the fitting mask. In the PN band-4 validation runs, is usually a constant within the fitting region. The notation also allows a background that varies by pixel.
A binary fitting mask selects the pixels in the fit. The main results use these binary masks. A weighted extension allows fractional weights. When the weights are exactly 0 or 1, it reduces to the binary convention used here.
This subsection defines the Cash statistic and fixes the sign of its improvement. After dropping constants that do not depend on the model parameters, the Cash statistic is
The null model contains only the background, . The likelihood-ratio Cash improvement is
With this sign convention, a better source fit gives positive . At a fixed fitted model , the statistic becomes
This subsection derives the expected-data location at the fitted result. The observable-conditioned theory evaluates its moments at
Here is the fitted source amplitude. The coordinates and are its fitted image position.
The Asimov image (the expected dataset where observed counts equal the model expectation; Cowan et al. 2011) uses for this fitted model. Substitution into the Cash improvement gives the leading conditional location:
For a constant background and normalized PSF , this gives the explicit pixel sum:
The symbol is the predicted location for a three-parameter fit. This mean depends on the full pixel sum over the PSF and mask. A Gaussian width or a few low-order PSF moments cannot determine it. However, those summaries can still be useful checks.
If position is fixed and only amplitude is fitted, Equation ([eq:mu3p]) reduces to the expectation used by Stewart (2009). The notation and treatment of a small empirical offset differ. Our extension adds three features. It conditions on the reported fitted amplitude, includes the fitting mask, and carries both fitted position directions into the variance.
Writing , Eq. [eq:mu3p] becomes . This is twice the per-pixel Poisson Kullback–Leibler divergence, summed over the fitting region. Here the divergence measures the expected log-likelihood difference between background and source-plus-background models. It is the Asimov location in a local likelihood-ratio approximation (Cowan et al. 2011). It does not mean that the finite-count, free-position distribution is exactly noncentral . Here noncentral means a chi-square distribution shifted away from its null case. Because is never negative, .
The mean and variance have different approximation orders. The mean is a leading Asimov quantity. It inserts the expected counts into the Cash improvement. It does not include the Poisson fluctuations absorbed by the fit. This missing behavior includes the finite position search and its maximum. In contrast, the variance includes a first-order correction for this absorption. It uses the Fisher projection in Section 3.6. This difference motivates separate empirical location and scale functions at low fitted signal. Position parameters can move toward a local upward fluctuation. This maximum-search behavior is similar in structure to a finite look-elsewhere effect (Gross & Vitells 2010). Here this effect means the increase that can occur when many positions are searched. The paired test in Section 4 measures this mechanism only for the bounded integer-grid reference fitter. Section 5 keeps pipeline-specific effects separate.
This subsection gives the linear constraints created by fitting the parameters. The best-fit parameters satisfy the score equations. For any fitted parameter ,
Linearizing around the fitted model, write
The first-order score constraint is
There are three such constraints:
These constraints make a three-parameter fit different from an unconstrained Poisson sum. The fit absorbs fluctuations along the amplitude and position directions. We must remove these directions when computing the residual variance.
This subsection gives the variance before accounting for parameter fitting. At a fixed source model, is exactly a linear combination of independent Poisson counts. Define , , and . Then
These mean and variance expressions are exact for a fixed model with a binary mask. The symbol is the projected three-parameter variance derived below. The fixed-model variance is its first term. Only the projection term uses a local approximation.
At fixed fitted model, the first-order stochastic part of is
If the fitted parameters were not constrained by the score equations, the variance of this linear residual would be
The term is useful as a check. However, it is not the final variance of the fitted likelihood ratio. It ignores that , , and were chosen to maximize the likelihood. The Fisher projection below subtracts a squared term that cannot be negative. Thus is an upper bound on the projected variance in the local Gaussian approximation.
This subsection projects out the three fluctuation directions absorbed by the fit. Define the Fisher information matrix for the three fitted parameters:
For , the entries are
The covariance between the residual and the score direction is encoded by
Explicitly,
Under the Gaussian/Fisher approximation, the score constraints remove the residual projection along the fitted parameters. This is the imaging form of the usual Fisher/Wald projection. It follows from the multivariate Gaussian conditional-variance identity: where denotes the vector of linearized score constraints. The resulting variance is
Equation ([eq:var3p]) is the central analytic result. The first term is the variance of the fixed-model linear residual. The second removes the fluctuation absorbed when amplitude and position are fitted again. Both terms use the fitted source model, pixelized PSF, background, and mask. They do not use an injected amplitude.
The projection can be computed conveniently via the block structure of the Fisher matrix. Writing where contains the -position cross terms. The matrix is the position block for and . The projection becomes Here . This block form shows the position projection directly. It is also convenient for a large grid of and values. If only is fitted, the position directions disappear. The formula then reduces to the amplitude-only one-parameter expression.
This subsection states when the projected variance can be used. The variance is a local Gaussian/Fisher approximation around the fitted model. It should work when the likelihood surface is close to a parabola near its maximum. The fitted source must also be strong enough that position fitting does not absorb isolated Poisson noise features. The variance check conditioned on is presented in Section 4.3 and Figure [fig:deltac-scatter-variance]. That section also gives a global low- correction for the remaining width deficit. Fisher/Wilks approximations fail at the boundary. They are also incomplete in the low-signal threshold band. We therefore measure the remaining location and width corrections in Section 4. By itself, Equation ([eq:var3p]) is not a validated tail model at –10.
emldetect 是闭源程序。它内部的像素化
PSF、优化器和搜索网格不能用于逐项理论检验。因此,我们构建了一个符合解析假设的参考拟合器。这个设计把两类误差分开。参考拟合器测量低
下的理论侧误差。与 emldetect
的比较随后测量新增的实现侧误差。This section tests the analytic location and scale with a matched
reference fitter. It also measures separate low-count corrections. SAS
emldetect is a closed program. Its internal pixelized PSF,
optimizer, and search grid are unavailable for a term-by-term theory
test. We therefore built a reference fitter that follows the analytic
assumptions. This design separates two sources of error. The reference
fitter measures theory-side error at low
.
A comparison with emldetect then measures added
implementation-side error.
Table [tab:assumption-checklist] compares the assumptions of each fitter with the theory. A “partial” entry means that the fitter has the named feature but does not match every mathematical detail.
lll Independent Poisson pixels & Match: pixelwise
likelihood & Match: same Poisson draws
Known constant background & Match: same scalar & Partial: map,
exposure, and detector mask
Same PSF object in generation and fit & Match: same
psfgen array & Partial: the ELLBETA PSF is sampled
internally
Binary fitting mask & Match: Boolean circle & Partial: detector
mask and fractional cut
Continuous interior
optimum & Partial: position grid and bounded
& Partial: interior status not saved
Maximum-likelihood fit & Match: best grid likelihood & Match:
free-position likelihood fit
The reference fitter performs a maximum-likelihood search. However, it is not a fully continuous three-parameter optimizer. It tests a integer position grid. At each position, it fits an amplitude within fixed bounds. Low-signal residuals can therefore contain grid selection and boundary effects. The matched experiment remains the main test of Equation ([eq:var3p]) and the low-count location–scale model. Section 5 measures the added standalone-pipeline difference. An interior optimum lies away from all parameter boundaries.
This subsection describes the matched PN band-4 simulations and their selection rules. The simulations span 17 detector positions, eight injected source strengths, and six background levels. Each grid cell has 1000 realizations. The design contains 816,000 fits. The location–scale analysis retains 810,987 clean rows. We require , , finite moments, and successful fits.
The paired standalone simulation used the same 17-position layout as the reference grid. Positions P6 and P10 were not generated because their input files were invalid at that time. Position P3 was generated but excluded. It lies at an off-axis angle of 6.3 arcmin and an azimuth of 180 degrees. At the detector edge, its fitting-mask coverage is only about 0.55. This incomplete area breaks the constant-background assumption of the residual calibration. The remaining paired sample has 14 positions.
psfgen 生成了像素化 PN 第 4 波段 PSF
模板。匹配的源拟合不调用
emldetect。它们使用整数网格位置搜索、有界的标量幅度拟合和
的圆形掩膜。参考拟合器验证保留每个探测器位置。对于独立运行的比较,我们从目录的
列读取经验统计量。我们用
进行转换,并采用
。We generated the pixelized PN band-4 PSF templates with
psfgen under XMM-Newton SAS v20.0.0. The matched source
fits do not call emldetect. They use an integer-grid
position search, bounded scalar amplitude fitting, and an
circular mask. The reference-fitter validation keeps every detector
position. For standalone comparisons, we read the empirical statistic
from the catalog
column. We convert it using
with
.
Each simulated source is fitted with a three-parameter Poisson likelihood. For every row, we evaluate the theory at the fitted source strength:
Here is the predicted three-parameter location, and is its Fisher-projected variance. We define the diagnostic residual as
This raw standardized residual is measured in units of the predicted standard deviation. The validation is conditioned on observables. The prediction uses the fitted amplitude , not the injected amplitude .
Figure [fig:deltac-scatter-variance] is the main raw-data check for the matched experiment. It shows three facts required by the model. The pixel-sum location follows the main mean trend. The remaining low-signal shift is smooth. The Fisher-projected scale approaches the observed width at high signal. Rows show three representative detector radii. Colors show five backgrounds. The right column is the main variance check. It measures the standard deviation from , not from raw . Thus a mean gradient within a bin does not appear as extra width. Dashed curves are descriptive fits to the same PN band-4 sample. We define the normalized and functions below.

This subsection tests the location and scale in low- and high-signal regimes. Table [tab:ref-fitter-validation] gives both cases. At high signal (), the standardized residual has mean and width under realization resampling. The position-resampling errors are and , respectively. Thus the Asimov location and projected scale agree with the matched model. At , the mean is predicted standard-deviation units ( by position). The width is ( by position). A low-count model must therefore correct location and scale separately.
Bootstrap resampling measures sampling uncertainty by repeatedly drawing from the available realizations or detector positions. We report both types in the table.
lrrr
& 137,310 &
(
by position) &
(
by position)
& 266,837 &
(
by position) &
(
by position)
This subsection gives compact functions for the low-count location and scale corrections. Define the raw normalized residual The calibration estimates its location and scale as functions of , the observable expected likelihood strength. We use because it is the simplest fitted-observable coordinate that captures the low-count trend. This choice is practical, not derived. The function gives the normalized mean shift. The function gives the normalized width. Our preferred compact forms are with and
Each function has three fitted coefficients. We fitted both functions to the same 810,987 rows. These fits are therefore in-sample descriptions. The out-of-sample threshold test in the next subsection is the independent check.
The conditional location and width are therefore
The weighted root-mean-square error (RMSE) uses 32 bins. It is for and for under realization resampling (position-resampling errors: and , respectively). Both functions approach the Fisher limits, and , as increases. The low-count location shift resembles the empirical additive offset discussed by Stewart (2009). However, our shift is not constant and is not interpreted as the same correction.

This subsection tests threshold-passing probabilities on held-out data. We use fixed values for , 8, and 10. No row is selected by observed , , or a residual. In the realization-block split, each sample is indexed by its place in the simulation run. Across the three thresholds, the mean absolute error is for the uncorrected Fisher kernel. It falls to after the location correction and after both corrections. The last value is close to the empirical-bin benchmark. Leave-one-position-out and leave-one-background-out tests give the same ordering (Table [tab:kernel-oos]).
The standard error is half the central 68% range of 1000 bootstrap replicates; because resampling with replacement duplicates rows, the bootstrap mean of an absolute-error metric is slightly above the point estimate, so we quote the standard error rather than the raw percentile range.
lrrrr Realization block: point estimate
SE &
&
&
&
Position-resampling SE &
&
&
&
Leave one position out & 0.0136 & 0.00277 & 0.00228
&
Leave one background out & 0.0136 & 0.00252 & 0.00211
&
The location correction gives the largest improvement. The width term gives a smaller but measured gain. The paired MAE decrease is under realization resampling ( by position). Both gains exceed six standard errors. The corrected result nearly reaches the empirical cell benchmark, which uses no fitted curve. This result calibrates threshold-passing probabilities in the matched reference fitter. It does not show that transformed values are Gaussian. It is also not an injection-completeness measurement at fixed .
This subsection checks the full residual shape and several percentiles. The corrected residual is . Across all 810,987 clean rows, its mean is , and its standard deviation is 0.999. Its skewness is 0.0164, and its excess kurtosis is . Across the three broad bands, skewness ranges from to 0.0959. Excess kurtosis ranges from to 0.154.
Skewness measures asymmetry. Excess kurtosis measures tail weight and peak shape relative to a normal distribution.
The corrected Gaussian kernel reproduces all six tested percentiles well enough for the threshold-crossing calculation. In the threshold band , the empirical fractions at nominal 2.3%, 10%, 16%, 50%, 84%, and 90% are 1.91%, 9.91%, 16.24%, 50.59%, 83.56%, and 89.48%. The largest departure is 0.595 percentage points. The 2.3th and 10th percentiles used for conservative cuts differ by 0.395 and 0.0897 percentage points. Both differences are below 0.5 percentage points. Across the three broad bands and the pooled sample, these two lower-tail departures never exceed 0.438 percentage points. The broad-band skewness has magnitude below 0.096, and the excess kurtosis has magnitude below 0.154. The strongest non-Gaussian shape occurs at , where the skewness reaches about . This is far below the threshold, where is about 14. Therefore, the lower-percentile crossings in Section 6 are supported for the matched PN band-4 kernel. Figure [fig:residual-shape-calibration] summarizes the shape and percentile checks.

This subsection tests whether the mean correction can also predict the width correction. Both and vary with . They therefore show a strong pooled association. We tested an affine, or straight-line, function of the fitted mean correction. The test asks whether it can replace the independently fitted . Across 17 held-out whole-position groups, the independent and mean-linked width models give RMSE 0.0409 and 0.0455. Their ratio is 1.11. A ratio of one would mean equal held-out errors. We chose the limit of 1.10 before inspecting the result. It allows at most a 10% loss from the smaller model. This is a practical tolerance, not a law inferred from the data. After removing the common trend, we measure ranked association with Spearman correlation. The residual correlations between location and width are overall and for . The mean must be modeled before estimating the width because it removes gradients. However, the width needs its own correction function. This grouped test reuses the reference sample. It compares models but is not an independent confirmation data set.
emldetect
具有相同的分量收支。This subsection studies the source of the low-signal shift and its
configuration limits. A targeted paired rerun saved four likelihood
components: oracle, amplitude-only, relocated-position, and full fits.
The oracle component evaluates the fixed model at the injected amplitude
and position. The rerun contains 96,000 fits across four
detector positions. Among 49,193 clean rows with
,
amplitude fitting contributes
to the mean raw
budget. Centroid relocation and position maximization contribute
.
Negative oracle-noise and fitted-conditioning terms cancel much of this
gain. The total fitted shift is therefore
.
This supports a finite-position maximum-search explanation in the
integer-grid reference fitter. Its structure is similar to
look-elsewhere behavior (Gross & Vitells 2010). It does not
establish the same component budget for continuous fitting or standalone
emldetect.
Within the matched PN band-4 configuration, the compact kernel leaves RMS location trends of 0.0073 across positions. The trend is 0.0377 across backgrounds. This stability applies only within the tested configuration. It does not make the coefficients universal. The index in Equation ([eq:master-kernel]) includes PSF preparation, fitting mask, search range, and optimizer. Section 5 shows that changing these choices can change the sign of and the scale .
This subsection states what the matched validation does and does not support. High-signal agreement alone would not justify threshold use. For the current PN band-4 configuration, –10 lies mostly below . The held-out tests in Section 4.4 address this gap for the matched reference fitter. They validate the compact location–scale kernel over the tested threshold range. They do not establish an exact Gaussian tail at any smaller signal. They also do not establish the behavior of another optimizer or PSF convention.
emldetect
所需的额外信息。End-to-end fake-source injection remains the correct method for
absolute survey completeness. It includes candidate generation, source
confusion, background-map construction, and every pipeline cut. Modern
simulation-calibrated survey analyses use this approach (Brunner et al.
2022; Liu et al.
2022). The analytic formula has a different purpose.
Equations ([eq:mu3p]) and ([eq:var3p]) keep
the continuous dependence on background, PSF, and mask. A matched
simulation then calibrates two dimensionless functions,
and
.
It need not tabulate a dense distribution at every position and flux.
Section 5 tests the extra information needed for standalone
emldetect.
emldetect
所需的额外标定。它还检验该标定能否转移到其他配置。匹配参考拟合器把统计理论单独分离出来。不过,emldetect
使用不同的优化器、内部像素化 PSF、搜索面和掩膜约定。我们把独立运行的 PN
第 4
波段实验作为标定案例。第一个结果是依赖位置的均值穿越标定。它不是绝对完备度测量。第二个结果是转移检验。它表明,不能假定该标定或参考拟合器的
和
系数适用于其他相机、波段或搜索配置。下文的索引
表示这一拟合器和仪器的组合配置。This section tests the extra calibration needed for standalone SAS
emldetect. It also tests whether the calibration transfers
to other configurations. The matched reference fitter isolates the
statistical theory. However, emldetect uses a different
optimizer, internal pixelized PSF, search surface, and mask convention.
We use the standalone PN band-4 experiment as a calibration case study.
The first result is a position-dependent calibration of the mean
crossing. It is not an absolute completeness measurement. The
second result is a transfer test. It shows that neither this calibration
nor the reference-fitter
and
coefficients can be assumed for another camera, band, or search
configuration. The index
below names this combined fitter and instrumental configuration.
emldetect
与该模型完全一致,阈值极限就可由相应方程得到。这里右侧是
,即
Cash
改进量阈值。实际中,未标定理论在该波段只是一个临界可用的近似。它的最大
误差在
、
和
时分别为 19.9%、15.6% 和
13.3%。误差随位置变化,而不是一个常数偏移。This subsection calibrates the standalone mean crossing across
detector position. The raw theory supplies the Asimov location
The left side is the predicted three-parameter mean. It depends on the
fitted source amplitude, local background, pixelized PSF, and fitting
mask. If standalone emldetect exactly matched this model,
the threshold limit would follow from
Here the right side is , the Cash-improvement threshold. In practice, the uncalibrated theory is only a borderline approximation in this band. Its maximum errors are 19.9% at , 15.6% at , and 13.3% at . The error varies with position. It is not one constant offset.
emldetect 链的主要检查。它的格式与图[fig:deltac-scatter-variance]
相同。以可观测量为条件的结构仍然可见。不过,相对于参考拟合器理论,独立流水线增加了依赖位置的残差。因此,该图说明最终标定需要两部分:解析方程和经验
修正。Figure [fig:emldetect-scatter-variance]
is the main check for the standalone-emldetect chain. It
has the same format as Figure [fig:deltac-scatter-variance].
The observable-conditioned structure remains visible. However, the
standalone pipeline adds a position-dependent residual relative to the
reference-fitter theory. The figure therefore motivates two parts in the
final calibration: the analytic equation and an empirical
correction.

emldetect
残差定义为We therefore define the standalone emldetect residual
as
emldetect Cash 改进量。我们按照单图像
约定转换它。
是 emldetect
的拟合幅度。标定后的阈值方程为Here
is the standalone emldetect Cash improvement. We convert it
with the single-image
convention. The quantity
is the fitted emldetect source amplitude. The calibrated
threshold equation is
emldetect 给出的
大于原始理论。此时,灵敏度极限所需的理论阈值更低。如果
,所需源幅度更高。The sign follows from the residual definition. If
,
standalone emldetect gives a larger
than the raw theory at the same fitted strength. The theoretical
threshold needed for the sensitivity limit is then lower. If
,
the required source amplitude is higher.
emldetect 分析每次实现。排除边缘案例后,网格包含 14 个 PN
第 4 波段位置。我们用式([eq:detml-inverse]) 在
空间中定义目标阈值带。数据行按参考理论预测选择。阈值样本不按观测到的
或
选择。这两个值都包含正被标定的随机波动和实现残差。我们改用以可观测量为条件的理论给出的预测参考
进行选择。我们在
处构建基线标定网格。下文的不确定性收支包括向
和
的转移。The calibration uses paired fake-source simulations. We analyze every
realization with both the reference fitter and standalone SAS
emldetect. After excluding the edge case, the grid has 14
PN band-4 positions. We define the target threshold band in
space with Equation ([eq:detml-inverse]). Rows are
selected by the reference-theory prediction:
The threshold sample is not selected by observed
or observed
.
Both values contain the random fluctuation and implementation residual
being calibrated. Instead, selection uses the predicted reference
from the observable-conditioned theory. We build the baseline
calibration grid at
.
The uncertainty budget below includes transfer to
and
.
We estimate the residual at each detector position from the threshold-band sample. The interpolation coordinate combines off-axis radius with a four-quadrant direction label. This label is used only for interpolation. It is not a physical detector azimuth or a general PSF measure. We tested physical azimuth but did not use it. It gave poorer coverage on the sparse interpolation grid.
This subsection tests interpolation at detector positions excluded from model fitting. The paired standalone simulation used the same 17-position layout as the reference grid. Positions P6 and P10 were not generated because their input files were invalid at that time. We also exclude P3. It lies at an off-axis angle of 6.3 arcmin and an azimuth of 180 degrees. At the detector edge, its fitting-mask coverage is only about 0.55. This incomplete area breaks the constant-background assumption of the residual calibration. The remaining grid has 14 positions.
Validation leaves each position out in turn. The calibration uses only the remaining positions. We compare its predicted with the held-out position’s internal reference limit .
The reference fitter from Section 4 defines . At each simulated source strength, we first compute the median across repetitions. We then fit a smooth spline, which is a curve joined from smooth pieces. It describes median against source strength. The root is where this spline crosses . The held-out position does not enter the interpolation model.
This test measures interpolation of the pipeline’s internal threshold map. It is not an absolute test against observations or injection-recovery fractions. Such a test requires dense fake-source injections at representative positions. We report the error as
Table [tab:unified-validation] summarizes this conditional interpolation test. At , the preferred 2D interpolation has a 4.1% median error. Its maximum is 11.0% within the region covered by the other calibration points. This region contains 10 of 14 held-out positions. Nearest-position assignment covers all 14 positions. Its maximum error is 17.2%. Background transfer from to – adds at most 5.7% error in at . Both errors decrease at higher thresholds.
lccc Mean crossing: median error (inside region) &
4.1% & 3.1% & 2.6%
Mean crossing: maximum error (inside region) & 11.0% & 9.1%
& 7.8%
Mean crossing: maximum error (all positions) & 17.2% & 12.7%
& 10.1%
Background transfer max
(–)
& 5.7% & 4.1% & 3.2%
The uncalibrated theory has a maximum error of 19.9% at (7.2% median). It is therefore only a borderline standalone approximation at this lowest threshold. A global scalar correction fails at (maximum error 21.6%). This confirms that the residual depends on position. We prefer the 2D interpolation inside its covered region. Nearest-position assignment is the tested fallback for the 14-position sample. These percentages are interpolation errors relative to an internal crossing. They are not completeness or absolute sensitivity errors.
This subsection tests whether the PN band-4 coefficients transfer to standalone M1/M2 configurations. We apply the reference and coefficients without change. Table [tab:m1m2-transfer] shows that the location RMSE becomes worse. The width-ratio RMSE becomes smaller, but the joint transfer fails. This result does not reject the location–scale model. It shows that both and require new calibration for each fitter and instrumental configuration.
lrr Mean RMSE & 1.22 & 2.03
Width-ratio RMSE & 0.215 & 0.156
This section treats detection as a random threshold-crossing event. It gives two uses in fitted-amplitude space. Application I interprets a traditional threshold-selected catalog. Application II defines percentile crossings and their catalog-space effective area. Section 7 states the limit for true-flux population inference.
This subsection defines the forward distribution and its percentile curves. For each detector position, we first convert the operational threshold to its single-image three-parameter value. For example, corresponds to under the convention. We then perform the distribution calculation in space. The statistic is used only as the final operational threshold scale.
The index names the calibrated fitter and instrumental configuration. For such a configuration, define
Here is fitted amplitude, is detector position, and is local background. The symbols and are the local pixelized PSF and fitting mask. The functions and correct the mean and width. With the Gaussian residual approximation, the local kernel is
and the corresponding th percentile curve is
Here is the standard-normal quantile, or percentile value. The percentile calculation needs both a calibrated mean residual and a threshold-band scatter model in space. Section 4 shows that the matched PN band-4 kernel reproduces all six tested percentiles within 0.6 percentage points in the threshold band. The 2.3th and 10th percentiles used for conservative cuts are within 0.5 percentage points. Their lower-percentile crossings are therefore supported for this matched kernel.
This subsection shows how the forward kernel can interpret a traditional threshold-selected catalog. A source is selected by an observed detection statistic, such as . This is equivalent to . We interpret this catalog threshold through the forward kernel in Equation ([eq:deltac-forward-kernel]).
For a source with measured , the fitted-amplitude posterior distribution in catalog space is
The posterior is the distribution after using the measured statistic. Here is a source-count prior in the fitted-amplitude coordinate. A prior states the expected source distribution before using the measured statistic. For a threshold-selected sample, the corresponding expression is
with
Under the Gaussian residual approximation, this passing probability is the area of a normal distribution above the threshold. We evaluate it in space. The prior is required for this inverse calculation. The catalog-space effective area at fitted amplitude is
Here indexes sky or detector pixels, and is the area of one pixel. This effective area is weighted by passing probability. It is not a step function based on one limiting amplitude.
This subsection uses the kernel to make fitted-amplitude percentile maps. It asks what fitted amplitude lets a chosen fraction of realizations exceed the threshold. This is a forward calculation, not an inversion of a noisy -selected sample. The map calculation fixes and evaluates . It therefore needs no slope or source-count index.
The usual sensitivity-map calculation is recovered as the mean-curve crossing
Percentile crossings are obtained by solving
for a chosen . The corrected Gaussian kernel supports all six tested percentile crossings for the matched PN band-4 configuration. They agree within 0.6 percentage points in the threshold band. The 2.3th and 10th percentiles used for conservative cuts agree within 0.5 percentage points. Their crossings give high passing fractions. The 84th and 90th percentile crossings place 16% and 10% of realizations above threshold, respectively. Table [tab:threshold-crossing-terms] defines the terms used here.
lll Mean limit &
& Corrected fitted-amplitude mean crossing (Asimov when
)
97.7% threshold crossing &
& Nominally 97.7% expected to pass
90% threshold crossing &
& Nominally 90% expected to pass
84% threshold crossing &
& Nominally 84% expected to pass
50% threshold crossing &
& Nominally 50% expected to pass
16% threshold crossing &
& Nominally 16% expected to pass
10% threshold crossing &
& Nominally 10% expected to pass
Injection 50% completeness &
& Fake-source recovery
Applying the same crossing rule to every detector pixel gives a mean-threshold map or a supported percentile-threshold map. We can turn each map into a fitted-amplitude effective-area curve. For each trial fitted amplitude, we count pixels whose local limiting amplitude is lower:
$$\Omega_{p,\rm fit}(S) = \sum_j \Omega_j\, I\!\left[S_\mathrm{lim}^{(p)}(j) \le S\right],$$
Here indexes sky or detector pixels. The symbol names the percentile curve in Equation ([eq:percentile-threshold-crossing]). This catalog-space quantity depends on local background, PSF, mask, threshold, and residual calibration.
This section states the evidence limits and the uses that they support. Table [tab:evidence-tiers] gives a summary. The analytic separation of location and scale is the general result. The numerical and functions belong to one effective PSF, mask, search range, and fitter. A new camera or energy band changes the PSF. A new pipeline can also change its internal PSF pixel grid and fitting state. This can happen even when the stored injection template stays fixed. Quantitative transfer therefore requires matched calibration. A camera label alone is not enough.
In this table, and are the analytic three-parameter location and variance. The functions and are their configuration-specific low-count corrections.
lll Analytic
& Derived at local Fisher order & Matched three-parameter fits
in the validated likelihood regime
PN band-4 reference
& Out-of-sample validated & Reference-fitter threshold
probabilities in tested support
PN band-4 standalone mean grid & Leave-one-position-out case study
& Internal mean-crossing interpolation only
M1/M2 standalone transfer & Unchanged PN coefficients fail &
Recalibrate
PN multiband standalone & Not tested here & No coefficient,
width, or tail claim
Official 4XMM catalogs & Not validated here & No weak-source
completeness or catalog correction
Position accounting sets another limit. The matched reference validation uses 17 positions. The paired standalone simulation used the same layout, but P6 and P10 were not generated because their inputs were invalid. We excluded P3 because its detector-edge fitting-mask coverage is about 0.55. The standalone results therefore cover 14 positions.
The matched simulations fit isolated point sources in single images with a specified local background. The tested derivation does not cover extended sources, crowded fields, multi-image likelihoods, or merged observations. It also excludes background-estimation uncertainty and other numbers of fitted parameters. We validate the reference kernel in PN band 4. The standalone mean grid covers only –. Its sector coordinate is not a physical PSF parameter. The M1/M2 experiment clearly shows failed transfer. However, the exact internal ELLBETA fit and search object was not saved. The test therefore cannot identify the missing fitter-state variable needed for transfer.
No catalog-selected sample provides core evidence for the weak-source kernel. Near a catalog threshold, the full parent distribution is unknown. A likelihood-selected catalog alone cannot measure the conditional width of missing sources. Official catalog selection also includes stacking, source confusion, vignetting, changing background maps, and joint multi-band decisions. Other survey pipelines use end-to-end simulations to calibrate these effects as one system (Brunner et al. 2022; Evans et al. 2024; Liu et al. 2022).
We did not calibrate the standalone width. Its percentile curves require new whole-position tests of the distribution tails. The effective areas in Section 6 are catalog-space quantities. They are not a true-flux selection function. A population-level Eddington correction needs a source prior and the joint model . It must also include the full catalog selection event in its normalization.
This section summarizes the analytic result, its validation, and its limits. The main result is the leading Fisher approximation to the conditional width: The Fisher projection removes the amplitude and two position directions absorbed by the fit. The resulting is a direct formula. It depends only on fitted amplitude, background, pixelized PSF, and mask. It has no fitted coefficient. The companion expression extends the amplitude-only analytic Cash-sensitivity calculation of Stewart (2009). Earlier matched-filter sensitivity work is given by Stewart (2006). The empirical and functions give small low-count corrections to the analytic location and variance. They do not replace these formulas. Their subscript identifies the fitter and instrumental configuration.
In the matched PN band-4 reference fitter, 266,837 high-signal fits give a standardized residual mean of and width of (position-resampling errors: and , respectively). At low signal, the empirical location–scale kernel is It describes 810,987 clean fits. In realization-block validation, the mean passing-fraction error uses , 8, and 10. It decreases from for raw Fisher theory to after both corrections. The empirical-bin benchmark is . The width improvement is smaller than the location improvement. Its paired decrease is under realization resampling ( by position). Both gains exceed six standard errors. A grouped test also rejects replacing with a function of alone. The mean centers the residual and removes cell gradients. It does not determine the conditional width.
emldetect
仍可作为流水线专属层使用。PN 第 4 波段实验测量内部均值穿越的插值。在
时,其最大误差在覆盖区域内为 11.0%,在全部位置上为
17.2%。这些不是完备度误差。它的宽度尚未标定。M1/M2
检验给出第二项限制。不做改变的 PN
系数转移失败。可以复用的结果是解析位置–宽度结构,而不是通用系数表。Standalone emldetect remains useful as a
pipeline-specific layer. The PN band-4 experiment measures interpolation
of an internal mean crossing. At
,
its maximum errors are 11.0% inside the covered region and 17.2% across
all positions. These are not completeness errors. Its width is not
calibrated. The M1/M2 test gives a second limit. Unchanged PN
coefficients fail to transfer. The reusable result is the analytic
location–scale structure, not a universal coefficient table.
The calibrated matched kernel defines fitted-amplitude crossing probabilities and effective area. It reproduces all six tested percentiles within 0.6 percentage points in the threshold band. The 2.3th and 10th percentiles used for conservative cuts agree within 0.5 percentage points. Their lower-percentile crossings are therefore supported for the matched PN band-4 kernel. These limits tie the empirical coefficients to the PSF, search, and fitter configuration in which they were measured.
emldetect 标志。DOI
和许可证将在投稿前加入。在审稿期间,机器可读的标定表和绘图代码保留在项目产物中。The calibration grid and cross-validation tables will be deposited in
a persistent archive upon publication. The deposit will also include
figure scripts, SAS configuration files, and minimal reproduction
scripts. These scripts will record commands, random seeds, PSF
parameters, and emldetect flags. The DOI and license will
be inserted before submission. During review, machine-readable
calibration tables and figure code remain with the project
artifacts.
R.H. developed the statistical model, simulations, analysis code, and initial manuscript. Draft note: coauthor roles will be completed using the CRediT taxonomy after all authors approve the submission version.
Draft note: the competing-interest declaration will be confirmed by all authors before submission.
This work acknowledges support from the National Natural Science Foundation of China. Draft note: grant identifiers will be added after author confirmation.
This study uses numerical simulations and archival calibration products. It involves no human participants, animals, or personally identifiable data.
Draft note: a disclosure consistent with the policy of the selected journal will be finalized before submission.
This appendix checks the choice of conditioning variable. Figure 1 shows the result. The simulations know the injected source strength . However, the theory and matched calibration condition on fitted amplitude . At fixed fitted , residual distributions from different groups overlap closely. The offset in the lowest bin is the low-signal beyond-Fisher bias from Section 4.2. It is not evidence for conditioning on .
This research has made use of data obtained from the XMM-Newton satellite, an ESA science mission with instruments and contributions directly funded by ESA Member States and NASA.