skip to main content

gaia data release 4 documentation

16.4 Results and Quality Assessment

16.4.12 Products in the extragalactic tables

Author(s): Despina Hatzidimitriou, Ludovic Delchambre

Here we present and discuss results for extragalactic sources published by the UGC and QSOC modules in tables galaxy_candidates, qso_candidates, and grav_lens_redshift. We note that these tables also contain products from the DSC module. We refer to Section 16.4.7.1 for information on the results and performance of the DSC products.

16.4.12.1 UGC products

The galaxy_candidates table contains 6 388 643  sources that have been classified as candidate galaxies and assigned redshifts by UGC (redshift_ugc), after applying the requirements for publication described in Section 16.3.10.5. The left panel of Figure 16.136 shows their distribution across the sky. As evident from the figure, no data are published in regions of the sky (shown in white) associated with high stellar density and/or high extinction, including the Galactic disk, the Bulge, the Magellanic Clouds, M31, and the globular cluster 47 Tuc, as they are excluded by the geometric selection (see Section 16.3.10.5). It is noted that the source density decreases toward the edges of the Galactic disk, where extinction is higher; unlike the masked regions, these areas are not excluded by the geometric selection and therefore remain affected by extinction.

Refer to caption
Figure 16.136: Left: Sky map of sources in UGC output table in Gaia DR4. Right: Sky distribution of sources with redshifts estimated by UGC, in Gaia DR3.

The right panel of Figure 16.136 shows the sky distribution of the 1 367 153  candidate galaxies published by UGC in Gaia DR3. A comparison of the left and right panels of Figure 16.136 demonstrates that artefacts related to the Gaia scanning law are largely removed in Gaia DR4, resulting in a much smoother distribution.

Figure 16.137 presents a histogram of the redshift distribution of the 6 388 643  sources (in red). The distribution peaks at approximately z≃0.18 and exhibits an abrupt decline beyond z≃0.4. This behaviour arises because UGC assigns high redshift values to poorly classified spectra (predominantly of stellar origin), leading to artificial peaks at redshifts around 0.4 and beyond, at slightly different positions in the individual 11-SVM outputs. The objects related to these peaks are not published (see Section 16.3.10.5), resulting in the apparent abrupt drop in the published source counts beyond z≃0.4. For comparison, the redshift distribution of candidate galaxies in Gaia DR3 is also shown in the same figure as a histogram (in blue). It is evident that Gaia DR4 includes significantly more objects, particularly at redshifts z>0.1. This difference is primarily due to the different magnitude limits applied in the respective galaxy_candidates tables, with Gaia DR3 limited to G≃21 and Gaia DR4 extending to G≃21.5, enabled by the improved quality of the XP spectra. Indeed, more than half (53%) of the 6 388 643  Gaia DR4 sources have G magnitudes in the range 21−21.5.

Refer to caption
Figure 16.137: Redshift distribution for the 6 388 643  UGC sources (red). The apparent drop beyond redshift_ugc ≃ 0.4 is due to the exclusion of objects that do not pass the filtering criteria. For comparison, the redshift distribution of candidate galaxies in Gaia DR3 is shown in blue. The sharp peak visible in the Gaia DR3 distribution at low redshift is largely due to erroneous redshift estimates; a similar behaviour is observed in the Gaia DR4 UGC predictions as a narrow high-density peak at z≈0.4, which has been removed from the published data.

For each candidate galaxy with a redshift estimated by UGC, the galaxy_candidates table provides the corresponding prediction interval, defined by the limits redshift_ugc_upper and redshift_ugc_lower. This interval represents the range of true redshift values associated with the predicted value at the 95% confidence level.

The midpoint of the prediction interval provides an estimate of the prediction bias of the redshift estimator, given by r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c−(r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢u⁢p⁢p⁢e⁢r+r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c⁢_⁢l⁢o⁢w⁢e⁢r)/2, as follows from the definition of the limits (see Section 16.3.10.4). Similarly, half the width of the interval defines the prediction uncertainty.

The prediction limits and the derived bias for all sources are shown in Figure 16.138. The non-linearity in the prediction accuracy of the UGC redshift estimator is clearly visible (see also Section 16.3.10.10 for details on the individual SVM-R models). Redshift estimates below z≈0.35 are generally reliable, although values below z≈0.05 show evidence of bias. At higher redshifts (z≳0.35), the performance degrades significantly, and the corresponding estimates should be treated with caution.

Refer to caption
Figure 16.138: Prediction interval limits for the UGC redshift estimates as a function of redshift_ugc. The lower and upper limits (redshift_ugc_lower and redshift_ugc_upper) are shown together with the one-to-one relation (red line). The midpoint of the interval reflects the prediction bias, while its width provides an estimate of the prediction uncertainty. The deviation from linearity illustrates the variation of bias and uncertainty with redshift. The estimator performs well for z≲0.35, while significant degradation is observed at higher redshifts.

The left panel of Figure 16.139 presents the derived redshifts as a function of G. A single source at G =13.677 and redshift r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c=0.052 is not shown in this diagram. Most sources follow the expected trend, with fainter objects generally corresponding to higher redshifts. A distinct population of sources is also visible at redshifts ≥0.35, with G covering the entire range from ≃16−21.5mag. This population does not follow the expected correlation and likely reflects contamination by misclassified stellar sources (see Section 16.3.10.7).

The right panel of Figure 16.139 shows the distribution of the 6,388,643 UGC sources in the (G-GRP) versus (GBP-G) diagram. The sources define a well-populated locus consistent with expectations for galaxies over the corresponding redshift range. The spread around this locus reflects the combined effects of intrinsic spectral diversity, redshift, and extinction.

Refer to caption
Figure 16.139: Left Panel: Relation of r⁢e⁢d⁢s⁢h⁢i⁢f⁢t⁢_⁢u⁢g⁢c as a function of G for the 6 388 643  UGC sources in DR4. Right Panel: Colour (G-GRP) - colour (GBP-G) diagram of the 6 388 643  UGC sources in Gaia DR4.

Internal Validation
A total of 533 844  sources with SDSS class GALAXY in the EmpLib library, which was constructed from SDSS DR17 extragalactic sources (Section 16.3.10.9), are found in common with the galaxy_candidates table. This corresponds to 98.6% of the SDSS GALAXY-class sources in EmpLib (with G ≤21.5), indicating a very high level of completeness. Note that the number of sources used for training and testing (as described in Section 16.3.10.10) was somewhat smaller, as the G-band magnitude calibration was revised after the training sample had been defined.

In contrast, of the 575 661  sources with SDSS class QSO in EmpLib (with G ≤21.5), only 6 999  are included in the output table, corresponding to 1.12%. This demonstrates that the sample is highly pure with respect to QSO contamination.

The difference between the redshifts estimated by UGC and the reference redshifts from SDSS has a mean of 0.002 and a standard deviation of 0.033. Figure 16.140 shows the differences between the UGC-derived redshifts and the SDSS DR17 reference redshifts as a function of SDSS redshift for the 533 844  EmpLib sources with SDSS class GALAXY. The differences remain small over the redshift range for which the UGC classifier was trained, particularly at redshifts below 0.35.

Refer to caption
Figure 16.140: Difference between the redshifts estimated by UGC (redshift_ugc) and the reference redshifts from SDSS DR17 (zSDSS), shown as a function of zSDSS, for 533 844  sources classified as GALAXY in SDSS and included in the EmpLib. The colour scale indicates the source density. The black lines mark the ±0.033 interval, corresponding to the standard deviation of the redshift differences.

16.4.12.2 QSOC products

To test the QSOC performance, we compared the predictions of all distinct sources from the qso_candidates and grav_lens_redshift tables to those from spectroscopically confirmed quasars contained in the eighth version of the Milliquas catalogue of Flesch (2023). Using a 1′′ search radius, we found 558 400 sources in common, amongst which 76.7% have an absolute redshift difference that is |Δ⁢z|<0.1. We should however stress here that sources from the grav_lens_redshift table have a lower fraction of sources with |Δ⁢z|<0.1 (77.3%) compared to sources from the qso_candidates table that are elected as eligible by QSOC (92.5% with |Δ⁢z|<0.1 if bit 7 is set in the source_selection_flags flags, or equivalently, if zscore_qsoc>0.5 and redshift_qsoc_logprob>3). Figure 16.141 shows the comparison of the Milliquas and QSOC redshifts. Various structures can be identified based on this figure:

  • •

    A main diagonal of good predictions along the dotted line.

  • •

    Off-diagonal lines that are due to mismatches between template emission lines (see Section 16.3.11.2) and observed emission lines. Common mismatches include, by order of importance: Mg ii misidentified as Hβ; Lyα misidentified as C iii; Lyα misidentified as C iv; C iv misidentified as Mg ii; Lyα misidentified as Mg ii and C iii misidentified as C iv. Generally, if we assume that a spectral feature at rest-frame wavelength λtrue is falsely identified by QSOC as another spectral feature at λfalse, then the predicted redshift, z^, can be expressed as a function of the true redshift, z, as z^=(z+1)⁢λtrueλfalse−1.

  • •

    Horizontal lines of constant predictions. These correspond to redshift regions where a single emission line is covered by the BP+RP wavelength range, which happens at z≈0.5, where only Hβ is contained in RP and at z≈1 where only Mg ii is contained in BP. These two specific redshift regions then offer less constraints in order to fit observed spectra that fail to be represented at any other trial redshift. This notably includes stars that are processed by QSOC. These obtain redshift predictions that are usually close to z≈0.5 because stellar spectra can obviously not be reproduced using quasar templates and because the colour likelihood (see Equation 16.66) and the redder colour of stars tend to favour this region over the z≈1 region.

  • •

    A background of false predictions that are associated to sources with G≳20.5 mag. For such low S/N sources, BP/RP spectra and integrated fluxes convey very little informations and the sole useable quantity is the observed G magnitude such that the redshift inference is mostly based on the absolute magnitude likelihood (Equation 16.67). Not surprisingly, the redshift that is reported then resides in the range 1≲z≲2 where most of the faint quasars are expected according to the quasar luminosity function of (Palanque-Delabrouille et al. 2016, see their Figure 12, for example).

Refer to caption
Figure 16.141: Comparison of the QSOC redshifts against redshifts from the eighth version of the Milliquas catalogue of Flesch (2023).

As one might be interested in absolute errors on the redshift that differ from the |d⁢z|<0.1 threshold we selected, we show in Figure 16.142 the fraction of sources having |d⁢z| less than a variety of alternative threshold values taken in the range [10−4,10]. We note that QSOC succeeds in predicting redshifts down to a precision of |d⁢z|<0.05, where 73.6% of the sources meet this criterion, but then quickly drops for lower threshold values as, for example, 57.8% of the sources have |d⁢z|<0.02 while only 37.3% have |d⁢z|<0.01, which is also the median uncertainty on the QSOC redshift. Erroneous predictions are not uniformly distributed over the G magnitude range, as seen in Figure 16.143. Although, 91.3% of the sources with G<20 mag have |d⁢z|<0.1, this ratio drops to 85.2% for 20<G<20.5 mag and to 52.1% for G>20.5 mag. This however represents a huge improvement with respect to Gaia DR3, where only 79.3%, 53.6% and 35.1% of the sources with G<20 mag, 20<G<20.5 mag, and G>20.5 mag respectively had |d⁢z|<0.1 (Delchambre et al. 2023).

Refer to caption
Figure 16.142: Normalized cumulative distribution of the QSOC absolute redshift error. The red line shows the fraction of QSOC predictions having an absolute error on the redshift, |d⁢z|, that is lower than the number in the abscissa. For comparison purposes, we show in blue the corresponding Gaia DR3 curve from Delchambre et al. (2023).
Refer to caption
Figure 16.143: Fraction of sources having an absolute redshift error |d⁢z|<0.1 with respect to G magnitude in Gaia DR3 (blue) and Gaia DR4 (red). The black curve corresponds the normalized Gaia DR4 source distribution.

QSOC itself provides various quality estimators (see Section 16.3.11.5), amongst which the log-posterior probability, redshift_qsoc_logprob from Equation 16.62, is unequivocally the most efficient. By looking at the fraction of sources having |d⁢z|<0.1 with respect to the log-posterior probability, as shown in Figure 16.144, we see a sharp rise of both the number of sources and of the fraction of sources with |d⁢z|<0.1 up to a log-posterior probability of 3, where already more than 80% of the sources have |d⁢z|<0.1. In a pragmatic way, we thus selected a threshold of redshift_qsoc_logprob>3 to consider the QSOC predictions as reliable and accordingly reached 91.4% of the sources with |d⁢z|<0.1, while preserving 67.9% of the total amount of sources. Let us note that most of the rejected sources have a low S/N, with a median magnitude of G=20.76 mag while it is of G=19.8 mag for the set of reliable predictions.

If we look more closely to the difference between the QSOC and the Milliquas redshifts of the reliable predictions, as shown in Figure 16.145, we can note that systematic effects are present in the QSOC redshift predictions. The cause of this issue can be traced back to mismatches between the observed BP/RP spectra and the simulated internally-calibrated BP/RP templates we use for predicting the redshift (see Section 16.3.11.2). This mismatch comes from the known imperfections of the CU5 instrument model that cause shifts in the order of ±0.2 pixel in pseudo-wavelengths that corresponds to shifts of about ±5 nm in wavelengths (Montegriffo et al. 2023, Section 8). As these variations are of the same order of magnitude as the median redshift uncertainty (σz≈0.01), it may be desirable to correct for this systematic effect. We thus provide a tabulated version of the logarithmic redshift bias, Zbias, where the unbiased redshift, z′, is computed from

z′=exp⁡(Z−Zbias)−1withZ=log⁡(z+1) (16.80)

while its associated 0.15866 and 0.84134 quantiles are respectively given by

zlow′=exp⁡(Z−Zbias−σZ)−1zup′=exp⁡(Z−Zbias+σZ)−1withσZ=log⁡(zup+1)−log⁡(zlow+1)2, (16.81)

in agreement with Equation 16.72.

The normalized logarithmic redshift error,

Δ⁢Z′σZ′=log⁡(z′+1)−log⁡(ztrue+1)12⁢[log⁡(zup′+1)−log⁡(zlow′+1)] (16.82)

where ztrue corresponds to the Milliquas redshift, then approximately follows a Gaussian distribution of mean μ=−0.019 and standard deviation σ=1.2735, though with larger tails owing to incorrect predictions and to the unavailability of the uncertainty on the Milliquas redshifts. The underestimation of the redshift uncertainty can mostly be attributed to the fact that our model is too coarse to fully reproduce the observed BP/RP spectra, as for example, we only use a single quasar template (plus offset) to fit the observed spectra in our formulation of the coefficient log-likelihood. However, a larger number of templates was proved to drastically increase the ambiguity between the redshift predictions, in the sense that many trial redshifts then yielded similar values of the log-posterior probabilities, which eventually strongly degraded the QSOC redshift prediction capability. Users interested in correcting for this underestimation of the uncertainty should accordingly inflate σZ from Equation 16.81 by a factor of 1.2735 before evaluating zlow′ and zup′. For completeness, we should mention that the underestimation of the logarithmic redshift uncertainty, and thus of the associated correction factor, concurrently depend on the source redshift such that ad-hoc inflation factors should ideally be derived.

Refer to caption
Figure 16.144: Fraction of sources having an absolute redshift error |d⁢z|<0.1 with respect to the Gaia DR4 log-posterior probability (red). The black curve corresponds the normalized Gaia DR4 source distribution.
Refer to caption
Figure 16.145: Difference between the QSOC redshifts having redshift_qsoc_logprob>3 and redshifts from the eighth version of the Milliquas catalogue of Flesch (2023). The black curve represents the median difference and corresponds to the redshift correction bias provided on the Gaia DR4 cosmos webpages.

A second quality estimator, closely related to the log-posterior probability, is the probability that the intrinsic source redshift stands within the predicted lower and upper confidence intervals, redshift_qsoc_prob. This estimator, and its formulation in Equation 16.73, however assume that our model (quasars BP/RP templates, colours and luminosity function) can accurately reproduce our observations, which is not the case as previously mentioned. Nevertheless, this estimator remains of interest because it is intuitive to understand and because it is still proportional to the true probability that the redshift stands within its confidence intervals (from Equation 16.81), as seen in Figure 16.146. Accordingly, the probability that the true redshift stands within the [zlow′,zup′] confidence interval is simply given by redshift_qsoc_prob/1.4324.

Refer to caption
Figure 16.146: Fraction of sources having zlow′<z<zup′ with respect to redshift_qsoc_prob where zlow′ and zup′ are defined in Equation 16.81 and where z is the redshift from the eighth version of the Milliquas catalogue of Flesch (2023). The black curve corresponds the normalized Gaia DR4 source distribution, which peaks at erf⁡12=0.6827, that is the probability for a normal random variable to stand within its 1-sigma confidence interval, as expected.

Amongst other quality estimators, the ccfratio_qsoc quantifies how much the redshift selection was influenced by the colour and absolute magnitude likelihood instead of the coefficients log-likelihood but usually takes values very close to one, except for very faint sources which mitigates its interest compared to redshift_qsoc_logprob or to simple cuts on the G magnitude. On its side, the zscore_qsoc estimator is an efficient way of assessing whether the source processed by QSOC is effectively a quasar and find most of its interest in identifying quasars from the grav_lens_redshift table. We however defer its discussion to the end of this section. All quality estimators are summarized in the flags_qsoc field which indicates potential error that may occur during the redshift prediction based on predefined cuts on the quality estimators and on information from the internal calibration procedure. flags_qsoc is composed of a combination of twelve binary flags as shown in Figure 16.147. On overall, 21.7% of the sources raised no warning flags (flags_qsoc=0). These have 96.5% of predictions with |d⁢z|<0.1. The most frequent flags are the Z_LOWSCORE (4), Z_NOTOPTIMAL(8) and Z_BADSPEC (16) flags with 64.1%, 53.5% and 33.4% of the sources raising them, respectively, although 67.4%, 64.1% and 52% still succeed in having |d⁢z|<0.1. Flags Z_MISSINGG (32) and Z_MISSINGEXTINCTION (1024) are never raised in Gaia DR4, but used to be during the development phase.

Refer to caption
Figure 16.147: Distribution of the QSOC binary flags. Bit indices, i, are indexed from one, such that each flag corresponds to a value of 2i−1, except for i=0 which represent the absence of flags being raised (Z_NOWARNING). The blue histogram corresponds to the fraction of sources having |d⁢z|<0.1 amongst those raising one of the binary flag.

The distribution of the zscore_qsoc for sources contained in the grav_lens_redshift table is shown in Figure 16.148 for both sources with significant proper motions or parallaxes, that are hence considered as stars, and sources found in the Milliquas catalogue. The distribution of the zscore_qsoc takes values, that are either very close to zero or very close to one, mostly depending on the object’s type (star or quasar) as, for example, a cut of the form zscore_qsoc>0.5 allows us to discard 64.8% of the stars while retaining 93.7% of the quasars. Stars with zscore_qsoc>0.5 can further be identified through the value of their predicted redshift, as 37.5% of them either stand in 0.4<z<0.6 or in the 0.9<z<1.1 ranges. We concurrently did a cross-match of these contaminating stars with the SIMBAD database of Wenger et al. (2000) and found that 31% of them are classified as RR Lyrae stars; 22.2% as stars; 17% as eclipsing binaries while 14.5% are extragalactic sources, mainly galaxies, quasars and Seyfert I/II AGNs. We should also mention here that sources in common between the qso_candidates and grav_lens_redshift tables usually have slightly different predictions (99% have a relative error on the produced astrophysical parameters below 10−6) owing to the fact that these two tables come from two distinct runs of QSOC.

Refer to caption
Figure 16.148: Distribution of the QSOC Zscore of the sources contained in the grav_lens_redshift table (black). The distribution of the sources with absolute proper motions or parallaxes higher than 5-σ are considered are stars and are shown in the blue histogram. The distribution of quasars from the Milliquas catalogue of Flesch (2023) are shown in the red histogram.

Finally, QSOC provides an alternative redshift, redshiftalt_qsoc, that is the second most probable according to the log-posterior probability function from Equation 16.62. Amongst the 21.3% of the sources having |d⁢z|>0.1, 36% have an absolute error on the alternative redshift that is below 0.1. redshiftalt_qsoc also comes along with its associated confidence intervals, redshiftalt_qsoc_lower and redshiftalt_qsoc_upper; probability to stand within its confidence interval, redshiftalt_qsoc_prob, and value of the log-posterior probability, redshiftalt_qsoc_logprob.