390 One Plate, Re-reduced

The preceding subsections trace dependencies in code. This one exercises them: a single SDSS plate is taken from the archive and the redshift determination is repeated under altered choices.

Plate \(3586\), MJD \(55181\), reduction v5_13_2. The archive supplies the raw CCD frames (sdR-*.fit.gz), the calibrated co-added spectra (spPlate), the published best fit per fibre (spZbest), and — decisively — the full candidate list (spZall), containing every template fit that was evaluated: \(1000\) fibres \(\times \) \(134\) candidates.

390.0.1 The gain applied to this plate

The ADU-to-electron conversion is selected from opGain.par by the rule gains.MJD lt mjd, taking the most recent entry strictly earlier than the observation. For MJD \(55181\):

\[ \begin {array}{lllr} \text {camera} & \text {entry MJD} & \text {gain} & \text {note} \\ \hline \mathrm {b1} & 50000 & (1.048,\,1.048,\,1.018,\,1.006) & \texttt {"Initial"} \\ \mathrm {b2} & 50000 & (1.040,\,0.994,\,1.002,\,1.010) & \texttt {"Initial"} \\ \mathrm {r1} & 55131 & (1.966,\,1.566,\,1.542,\,1.546) & \texttt {""} \\ \mathrm {r2} & 55141 & (1.956,\,1.618,\,1.538,\,1.538) & \texttt {""} \\ \end {array} \]

The two red cameras take entries whose note field is the empty string. The r1 entry is the one examined in SDSS-gain, at which the amplifier gains dropped by \(25\) to \(43\%\) from the preceding entry with no recorded reason. This plate was observed \(50\) days after that transition. Had it been observed \(51\) days earlier, the red arms would have been converted with the values of MJD \(50000\), differing by up to \(43\%\).

390.0.2 A third of the candidate table is not a fit

Of the \(134\,000\) rows in spZall, \(43\,260\) — \(32.3\%\) — have DOF \(=0\), TFILE empty, RCHI2 \(=0\) and Z \(=0\). No fit was performed. Because the reduced chi-square is recorded as zero rather than as missing, a naive minimisation over the released table selects these rows in every fibre: applying \(\arg \min \chi ^2_\nu \) to the file as distributed reproduces the published classification for \(11.7\%\) of fibres and the published redshift for \(2.6\%\).

The exclusion of these rows is performed inside the pipeline and is not recorded in the file. Restricting to \(\mathrm {DOF} > 0\) leaves \(90\,740\) rows, \(91\) per fibre, and then

\[ \arg \min _{\text {candidates}} \chi ^2_\nu \;\longrightarrow \; \text {published CLASS: } 100.0\%, \quad \text {published } z \text { to } 10^{-4}: 100.0\% . \]
The published result is exactly the minimum-\(\chi ^2_\nu \) candidate, and everything below is computed on a reproduction that agrees with the archive on all \(1000\) fibres.
390.0.3 The template set decides the classification

The candidate list contains four template files. Restricting which are admitted, with no other change:

\[ \begin {array}{lrrrrrr} \text {template set} & \text {GALAXY} & \text {QSO} & \text {STAR} & \text {CLASS chg} & |\Delta z|>10^{-3} & \max |\Delta z| \\ \hline \text {all} & 677 & 206 & 117 & - & - & - \\ \text {no CV star} & 680 & 207 & 113 & 4 & 5 & 6.55 \\ \text {no QSO} & 830 & 0 & 170 & 206 & 190 & 6.25 \\ \text {no star} & 748 & 252 & 0 & 117 & 62 & 6.99 \\ \text {galaxy only} & 1000& 0 & 0 & 323 & 244 & 6.25 \\ \text {QSO only} & 0 & 1000& 0 & 794 & 553 & 7.01 \\ \end {array} \]

Removing the quasar templates reclassifies \(206\) of \(1000\) objects and moves \(190\) redshifts by more than \(10^{-3}\). Removing the stellar templates reclassifies \(117\). The maximum redshift change is \(\Delta z \approx 7\).

The removal of a single template file — spEigenCVstar-55734.fits, which contributes one candidate per fibre — changes four classifications.

390.0.4 The margin between first and second

Ordering each fibre’s candidates by \(\chi ^2_\nu \) and comparing the top two:

\[ \begin {array}{lr} \text {percentile of } \chi ^2_\nu (2)-\chi ^2_\nu (1) & \text {value} \\ \hline 1\% & 0.000063 \\ 5\% & 0.000365 \\ 10\% & 0.000975 \\ 25\% & 0.015159 \\ 50\% & 0.044354 \\ 75\% & 0.108919 \\ \end {array} \]

Selecting the second candidate instead of the first changes the classification for \(472\) of \(1000\) objects and moves \(685\) redshifts by more than \(10^{-3}\), with median \(|\Delta z| = 0.0108\) and maximum \(6.55\). Among the \(472\) reclassifications the median separating \(\chi ^2_\nu \) is \(0.044\).

The transitions are

\[ \begin {array}{lr} \mathrm {GALAXY} \to \mathrm {QSO} & 420 \\ \mathrm {QSO} \to \mathrm {GALAXY} & 32 \\ \mathrm {QSO} \to \mathrm {STAR} & 9 \\ \mathrm {STAR} \to \mathrm {GALAXY},\ \mathrm {GALAXY} \to \mathrm {STAR} & 4,\ 4 \\ \mathrm {STAR} \to \mathrm {QSO} & 3 \\ \end {array} \]

The narrowest cases:

\[ \begin {array}{rlrlrr} \text {fibre} & \text {1st} & z_1 & \text {2nd} & z_2 & \Delta \chi ^2_\nu \\ \hline 238 & \mathrm {GALAXY} & 0.33369 & \mathrm {QSO} & 3.89720 & 0.000014 \\ 334 & \mathrm {QSO} & 1.07210 & \mathrm {GALAXY} & 0.17625 & 0.000049 \\ 302 & \mathrm {STAR} & -0.00080 & \mathrm {QSO} & 5.94503 & 0.000063 \\ 910 & \mathrm {QSO} & 4.08971 & \mathrm {GALAXY} & 0.70862 & 0.000261 \\ 576 & \mathrm {QSO} & 0.74582 & \mathrm {STAR} & 0.00333 & 0.000331 \\ \end {array} \]

Fibre \(238\) is assigned \(z = 0.334\) rather than \(z = 3.897\) on a reduced chi-square difference of \(1.4\times 10^{-5}\), over \(4487\) degrees of freedom. Fibre \(302\) is a star at \(z \approx 0\) rather than a quasar at \(z = 5.945\) on a difference of \(6.3\times 10^{-5}\).

390.0.5 The warning threshold

SDSS sets the SMALL_DELTA_CHI2 bit of ZWARNING when the separation between the two best fits falls below a threshold. Varying that threshold over the measured distribution:

\[ \begin {array}{lrr} \text {threshold} & \text {flagged} & \% \\ \hline 0.001 & 102 & 10.2 \\ 0.002 & 141 & 14.1 \\ 0.005 & 181 & 18.1 \\ 0.010 & 210 & 21.0 \\ 0.020 & 305 & 30.5 \\ 0.050 & 541 & 54.1 \\ \end {array} \]

Between a threshold of \(0.001\) and one of \(0.05\), the fraction of this plate declared unreliable runs from \(10\%\) to \(54\%\).

390.0.6 One object

Fibre \(1\), published as GALAXY at \(z = 0.99366\) with ZWARNING \(= 4\):

\[ \begin {array}{llrr} \text {CLASS} & \text {template} & z & \chi ^2_\nu \\ \hline \mathrm {GALAXY} & \texttt {spEigenGal} & 0.99366 & 1.26113 \\ \mathrm {GALAXY} & \texttt {spEigenGal} & 0.46477 & 1.26521 \\ \mathrm {QSO} & \texttt {spEigenQSO} & 5.90249 & 1.28004 \\ \mathrm {QSO} & \texttt {spEigenQSO} & 1.11519 & 1.28009 \\ \mathrm {QSO} & \texttt {spEigenQSO} & 5.75821 & 1.28074 \\ \mathrm {STAR} & \texttt {spEigenStar} & -0.00398 & 1.28601 \\ \end {array} \]
over a candidate range \(z \in [-0.004,\ 6.032]\) and \(\chi ^2_\nu \in [1.261,\ 1.352]\), on \(4487\) degrees of freedom.

The whole span of the redshift determination for this object — from \(z=0\) to \(z=6\) — is contained within a \(7\%\) range of reduced chi-square, and the published value is separated from the runner-up by \(0.004\).

390.0.7 Summary
\[ \begin {array}{lll} \text {what is varied} & \text {what changes} & \text {magnitude} \\ \hline \text {gain entry (obs.\ 51 d earlier)} & \text {ADU}\to e^- & \text {up to }43\% \\ \text {including } \mathrm {DOF}=0 \text { rows} & \text {reproduction of } z & 100\% \to 2.6\% \\ \text {template set} & \text {CLASS} & 4\text {--}794 \text { of } 1000 \\ \text {1st} \to \text {2nd candidate} & \text {CLASS} & 472 \text { of } 1000 \\ & z & \text {median } 0.011,\ \max 6.55 \\ \texttt {SMALL\_DELTA\_CHI2} \text { threshold} & \text {fraction flagged} & 10\% \text { to } 54\% \\ \end {array} \]

None of this is a claim that the published redshifts are wrong. The minimum-\(\chi ^2_\nu \) rule was reproduced exactly, and the archive is internally consistent. What the exercise establishes is the size of the margin: for \(47\%\) of the objects on this plate the classification, and with it the redshift, is decided by a difference in reduced chi-square whose median is \(0.044\) and whose first percentile is \(6\times 10^{-5}\).

STAGE 0  sdR (raw ADU)
   |  gain, overscan, bias          <- opGain.par, 24 lines
   v
STAGE 1  electron units + inverse variance
   |  wavelength solution from spArc <- lamphgcdne.dat, "DRL declares"
   v
STAGE 2  spCFrame (calibrated spectrum)
   |  air->vac, heliocentric        <- Ciddor constants, APO coordinates
   v
STAGE 3  spPlate (coadded)
   |  template chi2(z)              <- spEigen{Gal,Star,QSO,CVstar}
   v
STAGE 4  z, CLASS

ADC counts
  |  gain: 24 hand-entered lines, note = ""
  v
electrons
  |  wavelength solution <- arc list <- Ritz <- LOPT
  |                                              ^
  |                      observed lines ---------'
  |                             ^
  '-----------------------------'
spectrum
  |  four template files; median chi2_nu margin 0.044,
  |  1st percentile 6e-5
  v
z
  |  peculiar-velocity correction <- f = Omega_m^0.55 <- FRW
  v
zHD
  |  fiducial cosmology <- Planck posterior
  v
D_M / r_d
  |  r_d <- CAMB / CLASS <- default.ini = Planck 2018 best fit
  v
BAO likelihood
  |
  v
LCDM parameters
  |
  '--> CLASS default.ini  (closes to r_d)
  '--> Omega_m            (closes to zHD)

Two arrows return. The parameter set feeds the Boltzmann-code defaults from which \(r_d\) is computed, and it feeds the growth rate \(f = \Omega _m^{0.55}\) used to correct the redshifts. What is confirmed is that values constructed under a background are consistent with that background. At the bottom of the chain are twenty-four hand-entered gain values, two of which carry an empty note field, and a classification decided at the first percentile by a reduced chi-square difference of \(6\times 10^{-5}\).

pict

Figure 338: SDSS plate 3586 re-reduced from the released candidate table. (a) Redshift of the best-fitting and second-best-fitting candidate per fibre. (b) Distribution of the reduced chi-square margin separating them, split by whether the classification changes; the SDSS SMALL_DELTA_CHI2 threshold of \(0.01\) is marked. (c) Fraction of the plate declared unreliable as that threshold is varied. (d) Classification of all 1000 fibres under six template sets. (e) Redshift shift induced by removing template files. (f) All 91 candidates for fibre 1, spanning \(z \in [-0.004, 6.03]\) within a \(7\%\) range of \(\chi ^2_\nu \). (g) Including the 43,260 rows with \(\mathrm {DOF}=0\) reduces agreement with the published redshifts from \(100\%\) to \(2.6\%\). (h) Class transitions when the runner-up is taken. (i) Margin against the resulting redshift change.

pict

Figure 339: (a) The complete gain history distributed in opGain.par, four amplifiers per camera. Crosses mark entries whose note field is the empty string. (b) The entries selected for plate 3586 by the rule gains.MJD lt mjd.

390.1 The Same Survey, Two Numbers

The bao_data repository distributed with cobaya contains two generations of DESI BAO measurements, desi_* and desi_2024_*, for the same tracers over the same sky. At redshifts where both are defined the values differ.

\[ \begin {array}{llrrr} \text {tracer} & \text {quantity} & z & \text {earlier} & \text {2024} \\ \hline \mathrm {LRG}\ 0.4\text {--}0.6 & D_H/r_d & 0.510 & 21.8629 & 20.9833 \\ \mathrm {LRG}\ 0.4\text {--}0.6 & D_M/r_d & 0.510 & 13.5876 & 13.6200 \\ \mathrm {LRG}\ 0.6\text {--}0.8 & D_H/r_d & 0.706 & 19.4553 & 20.0787 \\ \mathrm {LRG}\ 0.6\text {--}0.8 & D_M/r_d & 0.706 & 17.3507 & 16.8465 \\ \mathrm {Ly}\alpha & D_H/r_d & 2.330 & 8.6315 & 8.5226 \\ \mathrm {Ly}\alpha & D_M/r_d & 2.330 & 38.9890 & 39.7084 \\ \end {array} \]

The largest change is \(4.0\%\), in \(D_H/r_d\) at \(z=0.510\). Statistical uncertainties on these quantities are typically \(1\)–\(2\%\).

The effective redshifts also move: \(0.930\) against \(0.934\) for the LRG\(+\)ELG sample, \(1.317\) against \(1.321\) for ELG. The same galaxies are assigned different effective redshifts in the two reductions.

390.1.1 Three values for one forest

At \(z = 2.330\) the Lyman-\(\alpha \) measurement appears three times:

\[ \begin {array}{lr} \texttt {desi\_gaussian\_bao\_Lya} & D_H/r_d = 8.6315 \\ \texttt {desi\_2024\_gaussian\_bao\_Lya} & 8.5226 \\ \texttt {desi\_2024\_eboss\_gaussian\_bao\_Lya} & 8.7171 \\ \end {array} \]
a spread of \(2.3\%\). The third combines the DESI forest with eBOSS; the first two are DESI alone in successive reductions. All three are distributed simultaneously, and which is used is a configuration choice.
390.1.2 The denominator

Every one of these quantities is a ratio to the sound horizon. The nine DESI configuration files each carry

# Fiducial sound horizon with which data have been stored
rs_fid: 1  # Mpc

recording that the division has already been performed. The likelihood then requests rdrag from the Boltzmann code, whose distributed defaults are a Planck posterior.

What is compared against theory is therefore a ratio whose numerator was obtained under an assumed cosmology and whose denominator is supplied by the theory being tested.