Although the ae_better_backgrounds algorithm (§E.6) seeks to define a background region that is unbiased, i.e. one where the flux from each neighbor that we expect in the background exactly matches the contamination we expect from that neighbor, the algorithm will sometimes be forced to construct a background that has significant photometric bias over the nominal energy band. This is very undesirable because inaccuracy in the broad band background level translates to inaccuracy in the source significance statistics (§5.10) which are commonly used for pruning the source catalog, as well as inaccuracy in photometry. Thus, the algorithm includes a final step which seeks to adjust the scaling of the background spectrum so as to correct for the photometric bias. That corrected scaling is derived below.
First, note that the algorithm described above produces several important quantities for each source:
: the integer number of in-band counts observed in the background region.
,
: the measures (integrals of the exposure map) of the source and background regions.
For convenience we will denote the nominal background scaling as
.
: the total number (real-valued) of counts from neighboring point sources expected to contaminate the source region, obtained by integrating models of the neighboring sources over the source region.
: the total number (real-valued) of counts from neighboring point sources expected to be observed in the background region, obtained by integrating models of the neighboring sources over the background region..
: the estimated ``photometric bias'' of the background region (with regard to contamination from neighboring point sources), when the nominal scaling is applied.
As said earlier, the algorithm seeks to drive
to zero (among other goals).
Second, we infer the number (real-valued) of background counts observed in the source region but not attributed to detected point sources as
Third, we wish to choose a correction to the background scaling,
, such that the final scaled background is unbiased with respect to our models, i.e.
we have
Note that when there is no photometric bias,
,
, and the nominal background scaling (ratio of the measures of the source and background regions) is used.
When
is positive (we estimate that our background region does not contain enough power from neighboring sources), then
and we choose to subtract more background than the nominal background scaling (
) would call for.
When
is negative then
and we choose to subtract less background than the nominal background scaling would call for.
In the case where the estimated flat background component is zero, i.e. the model predicts more counts from neighboring point sources in the background region than were actually observed (
), then we must assume that
and
are zero, and we have