Every quantity reported in the preceding sections is positive: distances, magnitudes, redshifts, invariant masses, Hubble constants. This subsection locates where that positivity enters.
LAYER SIGN SET BY ------------------------------------------------------------------------ ADC count + unsigned integer, hardware ADC - pedestal +/- pedestal from a signal-free window OFC amplitude A=sum a_i(s_i-p) +/- pulse-shape coefficients a_i cell energy +/- cluster energy + seeding threshold rejects negatives photon_pt + lowest public layer m_yy = sqrt(2E1E2(1-cos)) + square root ------------------------------------------------------------------------ CCD ADU + unsigned integer ADU - bias +/- bias from overscan region sky-subtracted flux +/- 3.02% negative [SDSS, measured] template-subtracted FLUXCAL +/- 7.06% negative [SNANA, measured] pre-explosion window only +/- 49.23% negative [signal-free] m = -2.5 log10(f/f0) + LOGARITHM: f<=0 undefined mu = 5 log10(d/10pc) + LOGARITHM d = 10^((mu-25)/5) + output positive for all mu H0 = c z / d + z>0 and d>0 ------------------------------------------------------------------------ parallax +/- 15.65% negative [Gaia, measured] Bailer-Jones distance + PRIOR p(d) ~ d^2 exp(-d/L), d>0 only ------------------------------------------------------------------------ z = lam_obs/lam_lab - 1 +/- bounded below by -1 only STAR +/- 58.91% negative [SDSS, measured] GALAXY + 0.133% negative [SDSS, measured] QSO + 0.000% negative [SDSS, measured]
Three mechanisms, not one. The transforms \(-2.5\log _{10}f\) and \(5\log _{10}d\) cannot represent a negative argument. The exponentially-decreasing space-density prior assigns zero probability to \(d<0\). And the class assignment decides which sample a spectrum belongs to before its redshift is reported.
A quantity carries sign if it is a difference and loses it if it is a logarithm, a square, or a square root. The SDSS sky model, which is the subtracted quantity, is positive in all \(42{,}072\) pixels examined; the result of subtracting it is negative in \(3.02\%\).
The pre-explosion epochs of the supernova light curves — phases \(-150\) to \(-20\) days, where no supernova flux is present — give
The distribution is symmetric about zero: \(49.23\%\) negative and a median pull of \(+0.02\). The mean and standard deviation are not, being carried by a tail in which \(7.6\%\) of epochs exceed three standard deviations. The robust width is \(1.162\), so the quoted uncertainties are underestimated by \(16\%\) in the core and by orders of magnitude in the tail.
The centre is correct and the width is not.
The preceding paragraph presupposes that phases \(-150\) to \(-20\) days contain no signal. Phase is computed as \((\mathrm {MJD}-\mathrm {PEAKMJD})/(1+z)\), and both inputs are model outputs. PEAKMJD is fitted from the light curve using a template, and \(z\) is the spectroscopic redshift.
The window in which the background is estimated is therefore defined by a fit to the object whose background is being estimated. Shifting PEAKMJD moves the window; a supernova with an early rise contributes real flux to what is treated as baseline, and the resulting offset is subtracted from the peak.
Rescaling FLUXCALERR by the robust factor \(1.162\):
The offset estimate is unchanged at \(+1420.25\), or \(5.00\%\) of peak flux, since rescaling all errors by a common factor leaves the weighted mean invariant. The error correction changes significances; it does not change the subtraction.
Writing the ladder without logarithms, using \(\varpi = \operatorname {sign}(f)\sqrt {|f|}\) and \(H_0 = c\,z\,\varpi \), and removing the pre-explosion offset at various multiples:
Three conditions are required for the sign to survive: errors normalised, no logarithm in the parameterisation, and a prior that does not vanish for \(\varpi <0\). All three are matters of representation and were removed here. The fourth, the subtraction offset, is a matter of the model, and the median \(H_0\) does not change sign until the offset is removed at twenty times its estimated value.
For stars the redshift is a line-of-sight velocity and is negative in \(58.9\%\) of cases, with a median of \(-14.6\) km s\(^{-1}\). The representation admits negative values and the pipeline reports them.
For galaxies the fraction is \(0.133\%\) and for quasars zero. This is not a limitation of the representation: the same column, the same fitter, and the same catalogue produce negative values for one class and not the others.
The classes are not, however, given. class is assigned by the same template fit that produces \(z\): a spectrum is called a star, a galaxy, or a quasar according to which template family attains the best \(\chi ^2\), and the redshift reported is the one belonging to that family. The stellar templates are searched over \(|z| \lesssim 0.003\) and the galaxy templates over \(-0.01 < z < 1.0\). An object assigned to the stellar family can therefore report a negative redshift; one assigned to the galaxy family is searched over a range that is \(99\%\) positive.
Class assignment, redshift value, and redshift sign are outputs of a single fit.
SDSS spectra DR17, plates < 1000, class='GALAXY', zWarning=0 12 spectra, 42,072 good pixels columns: flux, ivar, sky, loglam SDSS redshifts SpecObjAll, 400,000 rows, z IS NOT NULL columns: z, zErr, zWarning, class STAR 62,871 / GALAXY 285,869 / QSO 51,260 SNANA light curves Pantheon+ DataRelease, 1,478 SNANA files 127,880 epochs, 1,203 SNe columns: MJD, FLT, FLUXCAL, FLUXCALERR header: SNID, REDSHIFT_HELIO, PEAKMJD Gaia parallaxes DR3 gaia_source, 4,000 rows, random_index<200000 column: parallax Search ranges spReduce1d: GALAXY zmin=-0.01, zmax=1.00 elodie_best.pro: zmin=-0.00333, zmax=+0.00333
Two quantities in the preceding sections were treated as given: the signal-free window in which a supernova’s background is estimated, and the class assignment that determines a spectrum’s redshift search range. Neither is given. Both are outputs of fits to the object whose properties are being measured.
Rest-frame phase in SNANA is
PEAKMJD is not observed. The header declaration in sndata.h states it directly:
float SEARCH_PEAKMJD ; // approx MJD at g-band peak, from LC fit
and the text writer labels it as an input to the fit that will use it:
fprintf(fp, "PEAKMJD: %9.3f # estimate for LC fit codes\n", SNDATA.SEARCH_PEAKMJD );
The estimation method is named in makeDataFiles_params.py — estimate PEAKMJD from fmax-clump method — and its window width is a compiled-in constant:
INPUTS.MJDWIN_SETPKMJD = 60.0; // for default Fmax-clump method
Other survey translators bypass estimation entirely and take the brightest observation:
translate_CSPDR3.py: PEAKMJD = mjd
fout.write('PEAKMJD: %8.2f # at brightest obs \n')
f.write(' PEAKMJD is from brightest observation.\n')
or hard-code a value:
read_data_ztf.py: PEAKMJD = 56908.32 # pkl_phot.meta['fit_t0']
The loop is closed in the code, not by inference:
baseline window <- CUTWIN_TREST TREST <- (MJD - PEAKMJD)/(1+z) PEAKMJD <- light-curve fit (60-day Fmax-clump window) light curve <- FLUXCAL FLUXCAL <- template subtraction subtraction offset<- estimated in the baseline window
The \(49.23\%\) negative fraction and the \(5.00\%\) offset reported in §427 are computed in a window whose location was set by fitting the signal those numbers are used to correct.
The photometric classifier applies outlier rejection with two compiled defaults:
psnid_BEST.c: CHISQMIN_OUTLIER = 999.0 NREJECT_OUTLIER = 0 // new option to reject outlier light curve points
Epochs are removed by their \(\chi ^2\) against the model being fitted. Season boundaries are set by a gap threshold:
snlc_sim.h: TGAP_SEASON_SIMLIB 90.0 // gap (days) to define new season multiseason.c: TGAP : gap in days defines season NREJECT_OUTLIER : number of outliers to reject per season
and the flux-error model carries an explicit term for the effect measured in §427:
sntools_fluxErrModels_legacy.c: // This is anomalous subtraction noise in pre-explosion epochs
The excess scatter in the pre-explosion window is known and parameterised. It is absorbed into the error model rather than propagated as a systematic on the subtraction.
In §427 the redshift sign was found to depend on assigned class: \(58.9\%\) negative for stars, \(0.133\%\) for galaxies, \(0\%\) for quasars. The reason is in the search ranges, which redrock declares as command-line defaults:
redrock/external/desi.py: --zscan-galaxy default='-0.005,1.7,3e-4' --zscan-qso default='0.05,6.0,5e-4' --zscan-star default='-0.002,0.00201,4e-5'
The stellar grid is symmetric about zero. The galaxy grid extends \(0.005\) below zero and \(1.7\) above, so \(0.29\%\) of its span is negative. The quasar grid begins at \(+0.05\) and contains no negative value at all: a quasar template cannot return \(z<0\) under any data.
The SDSS pipeline uses the same structure with different numbers:
spreduce1d.pro: GALAXY zmin = -0.01, zmax = 1.00 elodie_best.pro: if (NOT keyword_set(zmin)) then zmin = -0.00333 if (NOT keyword_set(zmax)) then zmax = 0.00333
Class is then assigned by comparing the fits:
zfind.py: spectype, subtype = parse_fulltype(fulltype) if spectype == 'STAR': ... zrefind.pro: result[indx].rchi2 = res1[*].rchi2 sortstring = result[*].tfile + tcolstring + string(npoly) targets.py: spectype = bestfit['SPECTYPE']
The template family attaining the lowest \(\chi ^2\) supplies both the class and the redshift. A spectrum assigned to the quasar family reports a redshift drawn from a grid with no negative values; one assigned to the stellar family reports from a grid centred on zero. The assignment and the value are the same computation.
redrock adds explicit priors on top of the grid:
A tophat prior sets \(\chi ^2\) penalty to zero inside a window and to inf outside it. Redshifts outside the window are not disfavoured; they are excluded.
QUANTITY SET BY SOURCE --------------------------------------------------------------------------- pre-explosion window TREST = (MJD-PEAKMJD)/(1+z) CUTWIN_TREST PEAKMJD light-curve fit, 60-day window MJDWIN_SETPKMJD=60.0 or brightest observation translate_CSPDR3.py or hard-coded read_data_ztf.py season boundary gap threshold TGAP_SEASON_SIMLIB=90.0 epoch rejection chi2 against the fitted model CHISQMIN_OUTLIER=999.0 pre-explosion scatter absorbed into error model "anomalous subtraction noise in pre-explosion epochs" --------------------------------------------------------------------------- z range, GALAXY grid -0.005 to 1.7 z range, QSO grid +0.05 to 6.0 z range, STAR grid -0.002 to +0.00201 z range, SDSS GALAXY grid -0.01 to 1.00 z range, SDSS star grid -0.00333 to +0.00333 class lowest chi2 among families bestfit['SPECTYPE'] additional prior tophat, inf outside window priors.py ---------------------------------------------------------------------------
The window in which the background is measured is located by fitting the signal. The range in which the redshift may lie is fixed by the class, and the class is decided by the same fit that returns the redshift. In both cases the quantity that would constrain the answer is itself an output of the procedure that produces it.
The preceding subsection showed that the redshift search grid excludes negative values for quasars by construction. This one removes the grid and asks what the spectra themselves determine.
Sixteen SDSS quasar spectra (\(0.1 < z_{\rm cat} < 2.5\)) and sixteen galaxy spectra (\(0.02 < z_{\rm cat} < 0.30\)) were retrieved with the sky column, which carries the subtracted sky model. Redshift was determined by scanning a symmetric grid, \(-0.9 < z < 6.0\) for quasars and \(-0.9 < z < 1.5\) for galaxies, and maximising a line-matching statistic: the mean squared deviation of the flux inside \(\pm 12\) Å of each expected line position, normalised by the local continuum scatter, averaged over lines falling inside the observed window. At least four lines were required.
Two things were varied: which lines are in the list, and how much of the sky model is added back.
The spectra are identical throughout. The wavelength solution is identical. Only the list of rest wavelengths compared against them changes.
For quasars the fraction assigned a negative redshift runs from \(0\%\) to \(81.2\%\). For galaxies it runs from \(0\%\) to \(100\%\): every spectrum in the sample is assigned \(z<0\) under an emission-only list with half the sky model restored.
The mechanism is the observing window. A quasar at \(z \simeq 1.9\) has its ultraviolet lines — Ly\(\alpha \), C iv, Mg ii — redshifted into the \(3800\)–\(9200\) Å range of the spectrograph, while its optical lines would lie beyond \(9200\) Å and are not observed. Matching an optical list against the same spectrum therefore requires \(1+z < 1\), and the fitter returns \(z \simeq -0.150\) because that is where H\(\beta \), [O iii] and H\(\alpha \) can be placed on the features that are present.
This is not a numerical artefact. It is the statement that a set of observed wavelengths does not determine a redshift without a list of rest wavelengths, and that the list admits solutions of either sign. The identification \(\lambda _{\rm obs} = 5008\,(1+z)\) and \(\lambda _{\rm obs} = 1549\,(1+z)\) are both consistent with the same \(\lambda _{\rm obs}\); they differ by which atomic transition is asserted to have produced it.
What the table above shows is that the resolution depends on which several.
Restoring the subtracted sky model raises the negative fraction in every configuration where it is not already zero: for quasars with the full list, \(18.8\% \to 43.8\% \to 50.0\%\) at multipliers \(0\), \(0.5\), \(2.0\); for galaxies with the full list, \(31.2\% \to 87.5\%\); for galaxies with emission lines only, \(56.2\% \to 100\%\).
Sky emission lines sit at fixed observed wavelengths. When they are left in the spectrum they are available to be matched, and being fixed in the observer frame they favour whatever redshift places a template line on them. The subtraction that removes them is a model, and the SDSS sky model examined in §427 is positive in all \(42{,}072\) pixels while the residual after subtraction is negative in \(3.02\%\).
Continuum subtraction moves the result less: for quasars the negative fraction runs \(18.8\%\) at multiplier \(0\) and \(12.5\%\) at \(1.0\); for galaxies \(31.2\%\) to \(43.8\%\).
fixed across all rows: the spectra the wavelength solution the fitting statistic the search grid (symmetric, -0.9 to +6.0) varied: which rest wavelengths are in the list how much of the sky model is restored result: QSO z<0 in 0.0% ... 81.2% GALAXY z<0 in 0.0% ... 100.0%
The catalogue reports \(0\) negative redshifts among \(51{,}260\) quasars. The grid used to produce those values runs from \(+0.05\) upward (§427.1), so no other outcome was available. Opening the grid does not by itself produce negative values — with the full line list and no sky restoration the quasar sample gives \(18.8\%\) — but it makes the question askable, and the answer then depends on the line list.
What the released catalogue records is not that quasar redshifts are positive. It records that a positive-only grid was searched with a list of ultraviolet lines.
Remark 427.1 (The sign of \(z\) is set by the line list). Sixteen SDSS quasar spectra with catalogue redshifts \(0.1<z<2.5\) and sixteen galaxy spectra with \(0.02<z<0.30\) were refitted over a symmetric grid, \(-0.9<z<6.0\) for quasars and \(-0.9<z<1.5\) for galaxies, using only the released flux, ivar and sky columns. The score at each trial redshift is the mean squared deviation from a local continuum at the predicted positions of a chosen line list.
Restoring the subtracted sky model, \(f \to f + \alpha \,\mathrm {sky}\), gives
Varying instead the continuum subtraction, \(f \to f - \alpha \,\bar {f}\) with \(\bar {f}\) a \(301\)-pixel running mean, moves the quasar negative fraction over \(18.8\) to \(31.2\%\) with \(S_+/S_-\) between \(1.13\) and \(1.15\): the discriminant barely exceeds one throughout.
The dominant effect is neither of these. Holding the spectra fixed and changing only which lines are searched for:
The ultraviolet list never returns a negative redshift and the optical list returns one for every spectrum at \(\alpha =1\). The reason is geometric rather than statistical: at \(z\simeq 1.9\) the rest-ultraviolet lines fall inside the observed window, while H\(\alpha \) at \(6564.61\) Å and its neighbours require \(z<0\) to enter it at all. Each list therefore admits only the redshifts that place its own lines in range.
The redshift sign is fixed by the choice of line list, not by the spectrum. In the released pipelines that choice is made by template family, and the template family is selected by the same \(\chi ^2\) comparison that reports the redshift (§427.1). The quasar search grid begins at \(z=+0.05\), so for objects assigned to that family the comparison in this remark is not performed. The catalogue reports \(0\) negative redshifts among \(51{,}260\) quasars, but that is a statement about the grid and the line list, not about the spectra themselves.
The quasar sample of §427 contained no negative redshift in \(51{,}260\) objects. This subsection re-solves the redshift for a subset of those spectra without the grid restriction, using only the released flux arrays.
Twenty-five SDSS quasar spectra with zWarning\(\,=0\) and catalogue redshifts between \(0.271\) and \(2.378\) were taken from plate \(<1200\). For each spectrum a score was computed on a grid \(-0.9 < z < 6.0\) in steps of \(5\times 10^{-4}\), summing the mean squared deviation from a local continuum in \(\pm 12\) Å windows around eleven quasar emission lines, and requiring at least four lines to fall inside the observed range. No template, no prior, no class assignment.
For plate \(266\), fiber \(3\), the strongest emission feature lies at \(3814.17\) Å. Assigning it to each line in turn:
All eleven lie inside \(-0.9 < z < 6\). Five are negative. The catalogue value for this object is \(0.6522\), which corresponds to none of the eleven: it is obtained from the combination of lines, not from any single one.
The determination is therefore not a wavelength ratio but a pattern match against a template. That template is what supplies the sign.
Running the same scan with different subsets of the line list, over fourteen spectra:
Restricting to ultraviolet lines gives a median redshift of \(+1.93\); restricting to optical lines gives \(-0.15\), with \(79\%\) of the sample negative. The two subsets are drawn from the same eleven-line list applied to the same spectra.
The sign of the redshift is determined by which lines are included in the template.
With the full line list and the range opened to \(-0.9\):
Six of twenty-five recover the catalogue value to within \(0.01\). Eighteen return a positive redshift and seven negative. The ratio of the best positive score to the best negative score has median \(1.07\), and in seven cases the negative branch scores higher.
This scan is deliberately cruder than the pipeline: no continuum model, no template weighting, no line-ratio constraints. Its purpose is not to compete with redrock but to show what the score surface looks like when the negative half is not removed in advance. The surface is not empty there. It has maxima, and their heights are comparable to the positive ones.
The redrock defaults are declared on the command line:
--zscan-qso default = '0.05, 6.0, 5e-4' --zscan-galaxy default = '-0.005, 1.7, 3e-4' --zscan-star default = '-0.002, 0.00201, 4e-5'
The quasar grid begins at \(+0.05\). No negative value, and no value below \(0.05\), is evaluated. A quasar template cannot return \(z \le 0\) under any data whatever, and the absence of negative quasar redshifts in the catalogue is a property of that declaration.
Our scan covered \(-0.9\) to \(6.0\), of which \(13.0\%\) is negative. The redrock quasar scan covers \(0.05\) to \(6.0\), of which \(0\%\) is negative. The observed counts follow:
a single observed wavelength -> 11 redshifts, 5 of them negative which line it is assigned to -> template which template family is used -> lowest chi2 among families which redshifts that family may take -> compiled grid bounds QSO grid lower bound -> +0.05 QSO negative redshifts in catalogue -> 0 of 51,260
The redshift of a quasar is not read from its spectrum. It is the value at which an assumed line pattern best matches, drawn from a range whose lower bound was set before the spectrum was taken.