---
title: "Redshift-Space Distortions Interactive Lab | Sandbox Physics"
description: "Is the cosmic web stretched toward us because distances are wrong, or because galaxies move? Mostly because galaxies move."
canonical_url: "https://sandboxphysics.com/labs/redshift-space-distortions/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/redshift-space-distortions/"
last_modified: "2026-11-17"
---

# Redshift-Space Distortions

**Is the cosmic web stretched toward us because distances are wrong, or because galaxies move?** Mostly because galaxies move. A redshift mixes distance with velocity along our line of sight. Galaxies falling into large structures squash them along that line, and fast orbits inside clusters stretch each cluster into a finger pointing at us. A wrong distance scale also stretches the map, but it stretches every scale by the same factor, so fitting the pattern scale by scale tells the two apart.

Move 20,000 synthetic galaxies from true positions to redshift space, turn the line of sight, and fit growth, random motion and a distance error together.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

Model assumptions

All galaxies are synthetic. They come from one Zel’dovich realisation of a linear cold-dark-matter spectrum in a periodic box 235 megaparsecs on a side at redshift 0.5, selected with a large-scale bias of about 2. No survey data are shown. The line of sight is plane-parallel. Coherent infall uses the same Zel’dovich displacement scaled by the growth rate you set. Random motion inside groups is a Gaussian with the dispersion you set, given to every galaxy alike, so the fingers are a model and not a simulation of real clusters. A distance error is a single stretch along the line of sight, the Alcock–Paczynski effect, applied to the measured power. The fit uses the linear Kaiser formula times a Gaussian damping, only on wavelengths longer than about 40 megaparsecs, takes the bias as known, and reports a growth rate equal to twice the fitted distortion parameter. One box this small cannot separate growth from a distance stretch well: across 12 random boxes the fitted growth rate scatters by about 0.4, so a single reading is not a measurement of gravity.

## What the redshift map measures

Measured in your browser from the synthetic catalogue; no survey data are shown.

Monopole and quadrupole over real-space power $P_0(k)/P(k),\ P_2(k)/P(k)$

Pair correlation across and along the line of sight $\xi(r_\perp,r_\parallel)$

Teal: monopole Amber: quadrupole Points: measured; solid: joint fit Gray dashed: linear Kaiser for the set growth rate White dashed contours: same galaxies in real space

How the measurement works

Each mode of the redshift-space power is divided by the real-space power of the same galaxies in narrow bins of scale and angle. Only a simulation allows this; it removes most of the sampling scatter of one small box. A survey has no real-space copy, so its errors are much larger.

## Read growth from the shape of a redshift map

**Background** A galaxy survey turns each redshift into a distance with Hubble’s law. Galaxies also move, and the part of their velocity along our line of sight adds to the redshift, so the map is drawn in redshift space, not in real space.

**Why it matters** How fast galaxies fall into structures depends on how strongly gravity pulls, so the distortion measures the growth rate of structure. The same map is also distorted if the distance scale is wrong, and that has to be separated first.

- **Focus question**: When a map looks stretched along the line of sight, how do you tell motion from a wrong distance?
- **One-sentence intuition**: Coherent infall squashes large scales and random orbits stretch small ones, while a wrong distance stretches every scale by one factor.

### Core mathematical model

#### Where a redshift puts a galaxy

$$
\mathbf{s}=\mathbf{x}+\frac{(1+z)\,\mathbf{v}\cdot\hat{\mathbf{n}}}{H(z)}\,\hat{\mathbf{n}}
$$

Only the velocity along the line of sight $\hat{\mathbf{n}}$ moves the galaxy, and only along that line. At redshift 0.5, $300\ \mathrm{km\,s^{-1}}$ shifts it by about $3.4\,h^{-1}\mathrm{Mpc}$.

#### Kaiser squashing on large scales

$$
P_s(k,\mu)=\bigl(b+f\mu^2\bigr)^2P(k),\qquad \beta=\frac{f}{b}
$$

Here $\mu$ is the cosine between the wavevector and the line of sight, $b$ the galaxy bias and $f$ the growth rate. Infall boosts clustering along the line of sight, which squashes structures in the map.

#### Fingers of God damp small scales

$$
P_s(k,\mu)=\bigl(b+f\mu^2\bigr)^2P(k)\,e^{-k^2\mu^2\sigma^2},\qquad \sigma=\frac{(1+z)\,\sigma_v}{H(z)}
$$

Random orbits smear each group along the line of sight. The Gaussian factor is an empirical model; it is trusted only on the large scales used in the fit.

#### A wrong distance scale stretches everything

$$
k_t=k\sqrt{1+(s^2-1)\mu^2},\qquad \mu_t=\frac{s\,\mu}{\sqrt{1+(s^2-1)\mu^2}}
$$

If assumed distances along the line of sight are $s$ times the true ones, an observed mode at $(k,\mu)$ is a true mode at $(k_t,\mu_t)$. This Alcock–Paczynski stretch is the same at every scale.

### Common difficulties

#### Not every anisotropy is growth

**Typical misconception** Any squashing along the line of sight measures the growth rate.

**Better mental model** A distance stretch below one also squashes the map, and random motion partly hides infall. Only a fit that frees all three can attribute the squashing to growth.

### Run the experiment

1. 01

   #### Watch galaxies move into redshift space

   Keep the default preset and watch the right window as the loop slides galaxies from true positions to redshift positions.

   **What to observe:** Long filaments across the line of sight sharpen, while compact groups grow streaks pointing at the observer.

2. 02

   #### Separate the two effects

   Choose Coherent infall, then Fingers of God, and compare the correlation map.

   **What to observe:** Infall flattens the contours along the line of sight; random motion stretches the innermost contours along it.

3. 03

   #### Fake a distortion with distances

   Choose Wrong distance: stretched, then switch to the fixed-distance readout.

   **What to observe:** The joint fit finds the stretch and no growth. With distances assumed right, the fit invents random motion instead.

4. 04

   #### Turn the line of sight

   Drag the observer around the redshift-space window.

   **What to observe:** The streaks and the squashing turn with the observer, while the real-space window stays the same.

Physical conclusion

Fit growth, random motion and the distance stretch together, scale by scale, and quote the growth rate only with its uncertainty from that joint fit.

## Related experiments and articles

Redshift-space distortions · Reading path

### From a moving galaxy to a growth measurement

Articles on this path that use this experiment, followed by the other experiments they suggest.

1. [Article **Why do galaxy maps point at us?**](https://sandboxphysics.com/stories/redshift-space-distortions/why-galaxy-maps-point-at-us/)
2. [Article **How a redshift moves a galaxy**](https://sandboxphysics.com/stories/redshift-space-distortions/how-a-redshift-moves-a-galaxy/)
3. [Article **Multipoles of a squashed map**](https://sandboxphysics.com/stories/redshift-space-distortions/multipoles-of-a-squashed-map/)
4. [Article **Growth or a distance error?**](https://sandboxphysics.com/stories/redshift-space-distortions/growth-or-distance-error/)
5. [Article **Measure multipoles from a frozen catalogue**](https://sandboxphysics.com/stories/redshift-space-distortions/measure-multipoles-from-a-frozen-catalogue/)
6. [Article **How Guzzo et al. measured growth from redshift distortions in 2008**](https://sandboxphysics.com/stories/redshift-space-distortions/reading-guzzo-2008-growth-from-distortions/)

Fields & matter · Starter path

## From a field to an electron microscope

Map an electric field and steer a charged particle. Then find the electron's wavelength and use electron beams to see a crystal and a surface.

[Start here → **Make an Electric Field Visible** Move the probe around a dipole and check that the field always points downhill on the potential landscape. Observe · 8 min](https://sandboxphysics.com/labs/electric-field/)

1. [1 Make an Electric Field Visible](https://sandboxphysics.com/labs/electric-field/)
2. [2 A Charge Bending through Fields](https://sandboxphysics.com/labs/charged-particle/)
3. [3 Electron Wavelength & Voltage](https://sandboxphysics.com/labs/electron-wavelength/)
4. [4 Electron Diffraction & Reciprocal Space](https://sandboxphysics.com/labs/electron-diffraction/)
5. [5 TEM Bright Field, Dark Field & SAED](https://sandboxphysics.com/labs/tem-mode-selector/)
6. [6 SEM Secondary-Electron Topography](https://sandboxphysics.com/labs/sem-topography/)

[View the full path →](https://sandboxphysics.com/topics/fields-and-matter/#starter-path)
