---
title: "Reading the ruler along and across the line of sight"
description: "A wrong distance scale stretches the acoustic shell into an ellipse. Derive the two dilation parameters, fit them in wedges, and judge a detection."
canonical_url: "https://sandboxphysics.com/stories/baryon-acoustic-oscillations/along-and-across-the-line-of-sight/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/baryon-acoustic-oscillations/along-and-across-the-line-of-sight/"
last_modified: "2026-11-14"
---

[Baryon acoustic oscillations](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/)

# Reading the ruler along and across the line of sight

Sandbox Physics · 2026-11-14

A survey converts redshifts and angles into positions with an assumed cosmology. If the assumed distance along the line of sight is off by a factor $q_\parallel$ and the distance across it by $q_\perp$, the round acoustic shell appears as an ellipsoid. Fitting that ellipsoid gives two dilation parameters, $\alpha_\parallel$ and $\alpha_\perp$. Each is a ratio of distance over sound horizon, compared with the assumed cosmology: $\alpha_\parallel$ measures the expansion rate and $\alpha_\perp$ the transverse distance. This chapter derives both, shows how wedges of the correlation function separate them, and explains how to judge whether a fitted bump is a detection.

It uses the estimator and the jackknife from the [previous chapter](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/counting-galaxy-pairs-with-randoms/).

## Two distances from one pair

Take two galaxies at nearly the same redshift $z$, separated by a small redshift difference $\Delta z$ and a small angle $\Delta\theta$. In a flat universe their comoving separations along and across the line of sight are

$$
s_\parallel = D_H(z)\,\Delta z, \qquad s_\perp = D_M(z)\,\Delta\theta ,
$$

where the Hubble distance and the transverse comoving distance are

$$
D_H(z) = \frac{c}{H(z)}, \qquad D_M(z) = \int_0^z \frac{c\,dz'}{H(z')} .
$$

The survey measures $\Delta z$ and $\Delta\theta$. To get separations it must assume $D_H$ and $D_M$. Call the assumed values $D_H^{\mathrm{fid}}$ and $D_M^{\mathrm{fid}}$, for fiducial.

## What a wrong assumption does to the shell

Define the true-over-assumed ratios $q_\parallel = D_H/D_H^{\mathrm{fid}}$ and $q_\perp = D_M/D_M^{\mathrm{fid}}$. The separations the survey computes are

$$
s_\parallel^{\mathrm{fid}} = \frac{s_\parallel}{q_\parallel}, \qquad s_\perp^{\mathrm{fid}} = \frac{s_\perp}{q_\perp} .
$$

A shell of true radius $r_d$ becomes an ellipsoid with semi-axis $r_d/q_\parallel$ along the line of sight and $r_d/q_\perp$ across it. If the assumed distances are too short, $q > 1$ and the shell looks too small.

The survey compares what it sees with a template built for a fiducial sound horizon $r_d^{\mathrm{fid}}$. The template's ring sits at $r_d^{\mathrm{fid}}$. The dilation that maps the template onto the data is

$$
\alpha_\parallel = q_\parallel\,\frac{r_d^{\mathrm{fid}}}{r_d} = \frac{D_H(z)/r_d}{D_H^{\mathrm{fid}}(z)/r_d^{\mathrm{fid}}}, \qquad \alpha_\perp = q_\perp\,\frac{r_d^{\mathrm{fid}}}{r_d} = \frac{D_M(z)/r_d}{D_M^{\mathrm{fid}}(z)/r_d^{\mathrm{fid}}} .
$$

This is equation 1.1 of DESI 2024 III, written with $D_H = c/H$. The survey never measures $q$ alone. A survey that assumed the right distances but the wrong ruler sees exactly the same shift as one that assumed the wrong distances and the right ruler.

DESI often reports two combinations instead:

$$
\alpha_{\mathrm{iso}} = \bigl(\alpha_\parallel\,\alpha_\perp^2\bigr)^{1/3}, \qquad \alpha_{\mathrm{AP}} = \frac{\alpha_\parallel}{\alpha_\perp} .
$$

The first scales an overall size and corresponds to the volume-averaged distance $D_V = \bigl(z\,D_M^2\,D_H\bigr)^{1/3}$. The second measures only the shape, the Alcock-Paczynski distortion, and is independent of $r_d$.

## Separating the directions with wedges

Let $\mu = s_\parallel/s$ be the cosine of the angle between a pair and the line of sight. A pair seen at fiducial separation $s$ and angle $\mu$ has, in template units, the separation

$$
s_{\mathrm{t}} = s\,\sqrt{\alpha_\parallel^2\,\mu^2 + \alpha_\perp^2\,\bigl(1 - \mu^2\bigr)} .
$$

The Lab splits pairs into two wedges: a transverse wedge with $\mu < 1/2$ and a line-of-sight wedge with $\mu \ge 1/2$. Pairs are spread evenly in $\mu$, so the average of $\mu^2$ over the transverse wedge is $1/12$ and over the line-of-sight wedge $7/12$. The ring then shows up in each wedge near

$$
s_{\mathrm{peak}} \approx \frac{r_d^{\mathrm{fid}}}{\sqrt{\langle\mu^2\rangle\,\alpha_\parallel^2 + \bigl(1 - \langle\mu^2\rangle\bigr)\,\alpha_\perp^2}} .
$$

This is an approximation, because the average of a square root is not the square root of the average. A Lab test checks it against simulated catalogues and finds the wedge peaks within $5\,\mathrm{Mpc}$ for three different pairs of ratios.

Worked example. Set $q_\parallel = 1.10$ and $q_\perp = 1$ with the fiducial ruler $r_d = r_d^{\mathrm{fid}} = 147.05\,\mathrm{Mpc}$. The line-of-sight wedge peaks near $147.05/\sqrt{(7/12)(1.21) + 5/12} = 138.8\,\mathrm{Mpc}$, and the transverse wedge near $147.05/\sqrt{(1/12)(1.21) + 11/12} = 145.8\,\mathrm{Mpc}$. The line-of-sight peak moves by 8 Mpc, the transverse one by 1 Mpc. The Lab's preset with these settings fits $\alpha_\parallel = 1.096 \pm 0.012$ and $\alpha_\perp = 1.004 \pm 0.008$.

The weights also explain why the Lab measures $\alpha_\perp$ better than $\alpha_\parallel$. The transverse wedge depends almost only on $\alpha_\perp$, with weight $11/12$. The line-of-sight wedge mixes $7/12$ of $\alpha_\parallel$ with $5/12$ of $\alpha_\perp$. So $\alpha_\perp$ is constrained by both wedges and $\alpha_\parallel$ mainly by one. DESI 2024 III notes for the same reason that its transverse and radial measurements are correlated, at about 40 percent.

## Fitting and judging a detection

In each wedge the Lab's model is the template, dilated and averaged over the wedge, times an amplitude $B$, plus a smooth broadband $a_0 + a_1/s + a_2/s^2$. The amplitude and broadband terms enter linearly, so for every pair $(\alpha_\parallel, \alpha_\perp)$ on a grid they are solved exactly. That leaves a surface $\chi^2(\alpha_\parallel, \alpha_\perp)$. The best fit is its minimum, and the one-standard-deviation range of each parameter is where the minimum over the other parameter rises by $\Delta\chi^2 = 1$.

Two checks matter before reading a number.

First, does the interval close inside the grid? If $\chi^2$ is still within 1 of its minimum at $\alpha = 0.8$ or $1.2$, the data do not bound the parameter. The Lab then labels the parameter unbounded.

Second, is there a bump at all? The Lab's naive detection is

$$
N_\sigma = \sqrt{\chi^2_{\mathrm{no\,template}} - \chi^2_{\mathrm{min}}} ,
$$

the improvement from adding the template to the broadband alone. It has no correction for trying many values of $\alpha$. A template with a free position and amplitude can always find some upward wiggle in noise. In the No sound wave at all preset, where the catalogue holds no shells, the Lab still reports $2.3\sigma$, with $\alpha_\parallel$ at the edge of the grid. Six more shell-free catalogues, with seeds 31 to 36, give $1.1$ to $3.4\sigma$, and three of the six reach about $3\sigma$. So a naive 3 sigma from a fit like this is not yet a detection. The Lab calls a bounded peak a detection only above $4.5\sigma$, and a real analysis would calibrate that threshold on many simulated catalogues.

For comparison, the default catalogue gives $15.7\sigma$ with $\chi^2 = 19.2$ for 43 degrees of freedom. That $\chi^2$ is low because the Lab uses only the diagonal of its jackknife covariance and neighbouring bins are positively correlated. DESI 2024 III quotes, for its 300,017 bright galaxies after reconstruction, $\alpha_{\mathrm{iso}} = 0.9829 \pm 0.0185$ with $\chi^2 = 17.3$ for 19 degrees of freedom, and a detection of $4.0\sigma$.

## What the Lab leaves out

Galaxies move. Their peculiar velocities add to their redshifts, which squashes structure along the line of sight on large scales and stretches it inside clusters. The Lab places galaxies at their true positions, so its anisotropy comes only from the distance ratios. Real analyses fit these redshift-space distortions with extra broadband freedom.

Gravity also moves galaxies over the history of the universe. Eisenstein, Seo and White estimate displacements of about $10\,\mathrm{Mpc}$, which broaden the peak, and a shift of its position at the level of $0.5$ percent at first order. DESI uses reconstruction to undo much of this. The Lab's shells have a fixed width and no shift.

## Lab tasks

1. Drag the box corner until the line-of-sight ratio reads $1.10$ and the transverse ratio $1.00$. Compare the two fitted stretches with the worked example.
2. Open the Every assumed distance too long preset. Predict both wedge peak positions, then check them on the chart.
3. Open the No sound wave at all preset and note the naive detection and whether the stretch is bounded.

## Exercises

1. Show that $\alpha_{\mathrm{iso}} = \dfrac{D_V/r_d}{D_V^{\mathrm{fid}}/r_d^{\mathrm{fid}}}$ when $D_V = \bigl(z\,D_M^2\,D_H\bigr)^{1/3}$.
2. Predict both wedge peaks for $q_\parallel = q_\perp = 0.92$ with the fiducial ruler.
3. From $\alpha_\parallel = 1.096 \pm 0.012$ and $\alpha_\perp = 1.004 \pm 0.008$, ignoring their correlation, compute $\alpha_{\mathrm{AP}}$ and its error.
4. A survey finds $\alpha_\parallel = 0.98$. Is the true $D_H/r_d$ at that redshift larger or smaller than in the fiducial cosmology? Is the expansion rate higher or lower, if $r_d$ is fixed?
5. Why does $\alpha_{\mathrm{AP}}$ not depend on $r_d$?

Answers

1. $\alpha_\parallel\alpha_\perp^2 = \dfrac{D_H D_M^2/r_d^3}{D_H^{\mathrm{fid}} (D_M^{\mathrm{fid}})^2/(r_d^{\mathrm{fid}})^3}$. Multiply top and bottom by $z$ and take the cube root: the result is $(D_V/r_d)/(D_V^{\mathrm{fid}}/r_d^{\mathrm{fid}})$.
2. Both $\alpha$ equal $0.92$, so the square root is $0.92$ in each wedge and both peaks sit at $147.05/0.92 = 159.8\,\mathrm{Mpc}$. The ring grows without changing shape.
3. $\alpha_{\mathrm{AP}} = 1.096/1.004 = 1.092$. The relative errors add in quadrature: $\sqrt{(0.012/1.096)^2 + (0.008/1.004)^2} = 0.0135$, so the error is $1.092 \times 0.0135 = 0.015$.
4. $\alpha_\parallel < 1$ means $D_H/r_d$ is 2 percent smaller than fiducial. With $r_d$ fixed, $D_H = c/H$ is smaller, so the expansion rate at that redshift is 2 percent higher than assumed.
5. In the ratio $\alpha_\parallel/\alpha_\perp$ the factor $r_d^{\mathrm{fid}}/r_d$ appears in both and cancels. It depends only on $D_H/D_M$, the shape of the shell.

Sources: [DESI 2024 III, equations 1.1 and 1.2 and the BGS results](https://arxiv.org/abs/2404.03000v1), [Eisenstein, Seo and White 2007, displacements and peak shift](https://arxiv.org/abs/astro-ph/0604361v1), [DESI DR2 Results II, distance definitions](https://arxiv.org/abs/2503.14738v3).

[Drag the box corner until only the line-of-sight ratio is 1.10 and read both fitted dilations.](https://sandboxphysics.com/labs/baryon-acoustic-ruler/)

## Sources

1. [DESI 2024 III, equations 1.1 and 1.2 and the BGS results](https://arxiv.org/abs/2404.03000v1)
2. [Eisenstein, Seo and White 2007, displacements and peak shift](https://arxiv.org/abs/astro-ph/0604361v1)
3. [DESI DR2 Results II, distance definitions](https://arxiv.org/abs/2503.14738v3)

## Keep reading

Baryon acoustic oscillations · Reading path

### From a sound wave to galaxy pair counts and DESI distances

1. [Article **How can pairs of galaxies measure the universe?**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/how-galaxy-pairs-measure-the-universe/)
2. [Article **How far sound travelled before the drag epoch**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/how-far-sound-travelled-before-the-drag-epoch/)
3. [Article **Counting galaxy pairs against a random catalogue**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/counting-galaxy-pairs-with-randoms/)
4. [You are here **Reading the ruler along and across the line of sight**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/along-and-across-the-line-of-sight/)
5. [Article **Measure a correlation function from a DESI data patch**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/measure-a-desi-patch-correlation-function/)
6. [Article **How to read the DESI BAO results**](https://sandboxphysics.com/stories/baryon-acoustic-oscillations/reading-desi-bao-results/)
