skip to main content

gaia data release 4 documentation

14.4 Spectral analysis

14.4.2 Comparison of spectra

To compare the coefficients of the BP/RP spectra obtained from Equation 14.1, we use two different techniques that are the χ2 approach and the Wasserstein distance. As lensed images may be composed of a subset of the multiplet’s components (e.g. a multiplet composed of 4 lensed images, plus a lensing galaxy or a contaminating star), we consider all combinations of 2–6 components within these multiplets. Comparison techniques must hence be able to assess whether 2–6 components have similar SED all together. We do not compare the spectra of multiplets composed of 7 components or more as these presumably belong to regions of high stellar density, where we expect many stellar contaminants to be present.

For a set of N spectral BP/RP coefficients, 𝒄bp(i) and 𝒄rp(i), the chi-square approach aims to find a mean vector, 𝒎xp, and scaling coefficients associated with the i-th set of coefficients, sxp(i), that minimize

χxp2=∑i=1N‖𝗪xp(i)⁢(𝒄xp(i)−𝒎xp⁢sxp(i))‖2s.t.‖𝒎xp‖2=1 (14.7)

where xp stands for BP/RP and where 𝗪xp(i) is the inverse of the Cholesky decomposition of the covariance matrix associated with 𝒄xp(i), 𝝨xp(i), such that [𝝨xp(i)]−1=[𝗪xp(i)]T⁢𝗪xp(i) (see Gaia Collaboration et al. 2023b, Appendix C, for a detailed implementation of Equation 14.7). Because any absorption of the quasar light by the lensing galaxy predominantly affects BP, Equation 14.7 is minimized separately for BP and RP and later combined into

χν2=χBP2+χRP2νBP+νRP (14.8)

where νxp is the degree of freedom associated with χxp2. Multiplets composed of similar spectra thus have χν2≈1. Finally, to ease the comparison of the χν2, we use the cubic root transformation of Wilson and Hilferty (1931),

𝚐𝚘𝚏=9⁢ν2⁢(χν23+29⁢ν−1), (14.9)

which asymptotically follows a standard Gaussian distribution once ν=νbp+νrp is large (here 124≤ν≤620 if all 𝝨xp(i) have a full-rank and all BP/RP coefficient are available).

This chi-square approach is complemented by a comparison based on the Wasserstein distance (Kantorovich 1942, 2006). If fxp(i)⁢(x) is the linear interpolation of the spectral coefficients 𝒄xp(i)∈ℝK over the uniform grid of abscissa 𝒙=1K−1⁢(0,…,K−1), then the 1-Wasserstein distance between the i-th and j-th spectral coefficients is given by

dxp(i,j)=∫01|Fxp(i)⁢(z)Fxp(i)⁢(1)−Fxp(j)⁢(z)Fxp(j)⁢(1)|⁢𝑑z (14.10)

where Fxp(i)⁢(z)=∫0zfxp(i)⁢(x)⁢𝑑x. A value of dxp(i,j)≪1 implies that components i and j have similar spectral coefficients in xp and hence similar SED. The Wasserstein distance of a set of N components from a given combination is then computed as the maximal value of dxp(i,j) taken over all combination’s components i,j for xp={bp,rp}.