---
title: 'Velocisaurus: EFT for Peculiar Velocities'
url: https://www.emergentmind.com/topics/velocisaurus
type: topic
---

# Velocisaurus: EFT for Peculiar Velocities

`velocisaurus` is a fast Python code released with “Effective Theories of Redshift-Space Galaxy Peculiar Velocities” for computing effective-field-theory predictions for peculiar-velocity statistics in large-scale structure. Its scientific role is to extend the EFT of large-scale structure, already widely used for redshift-space galaxy clustering, to the observables measured in peculiar-velocity surveys and closely related redshift-space distortion analyses. The code targets 2-point, density-weighted pairwise velocity statistics in redshift space, especially the mean pairwise velocity and pairwise velocity dispersion / second moment, together with the redshift-space galaxy power spectrum that generates them. The public release is associated with the repository `https://github.com/sfschen/velocisaurus` [2508.00066].

## 1. Scientific scope and target observables

The code is designed around the family of redshift-space spectra
$$
P^s_{LL'}(k) = \int d^3 s\ e^{ik\cdot s} \left\langle (1 + \delta_{g,s}(s_1))(1+\delta_{g,s}(s_2))\ u_{s,n}^L(s_1) u_{s,n}^{L'}(s_2) \right\rangle_{s=s_1-s_2},
$$
or, equivalently, in real-space variables,
$$
P^s_{LL'}(k) = \int d^3 q\ e^{ik\cdot q} \left\langle e^{ik\cdot\Delta u}\ (1 + \delta_{g}(q_1))(1+\delta_{g}(q_2))\ u_{n}^L(q_1) u_{n}^{L'}(q_2) \right\rangle_{q=q_2-q_1}.
$$
The especially useful combinations are the density-weighted pairwise moments
$$
\tilde{\Xi}_s^{(n)}(k) = \int d^3 s\ e^{ik\cdot s} \left\langle (1 + \delta_{g,s}(s_1))(1+\delta_{g,s}(s_2))\ \Delta u_{n}^n \right\rangle_{s=s_1-s_2},
$$
with
$$
v_s(k) = \tilde{\Xi}^{(1)}_s = 2 P^s_{01}, \qquad \sigma^2_s(k) = \tilde{\Xi}^{(2)}_s = 2P^s_{02} - 2 P_{11}.
$$
Accordingly, `velocisaurus` is aimed at the mean pairwise velocity and pairwise velocity dispersion / second moment, jointly with the redshift-space galaxy power spectrum [2508.00066].

A central conceptual feature is that these velocity statistics are modeled consistently with redshift-space galaxy densities using the same EFT parameter set, up to a finite extension in the generating-function language. This makes the code directly relevant for joint analyses of galaxy clustering and peculiar velocities. The same framework is explicitly connected to upcoming peculiar-velocity surveys and to future applications to the kinetic Sunyaev–Zeldovich effect, for which the paper notes that kSZ velocity statistics “have yet to be predicted within the EFT.” A plausible implication is that `velocisaurus` is intended not merely as a calculator for isolated velocity observables, but as a common inference layer for density–velocity analyses.

## 2. Generating-function formulation

The redshift-space power spectrum is treated as the generating function of the pairwise moments,
$$
P_s(k ; \lambda) = \int d^3 q\ e^{ik\cdot q} \left\langle e^{ik\cdot(\lambda \Delta u)}\ (1 + \delta_{g}(q_1))(1+\delta_{g}(q_2)) \right\rangle,
$$
with moments obtained by differentiation,
$$
\tilde{\Xi}_s^{(n)}(k) = \frac{1}{(ik\mu)^n}\left( \frac{d^n P_s(k;\lambda)}{d \lambda^n} \right)_{\lambda=1}.
$$
Conversely,
$$
P_{s}(k;\lambda) = \sum_{n=0}^\infty \frac{(ik\mu)^n \lambda^n }{n!} \tilde{\Xi}^{(n)}(k).
$$
This relation is central to the code’s scientific role because it permits redshift-space density and velocity observables to be predicted within one EFT framework, with matched bias, counterterm, stochastic, and Fingers-of-God-like parameters [2508.00066].

This generating-function structure is not a purely formal convenience. It organizes the connection between galaxy clustering and pairwise-velocity observables and underlies the code’s claim that \(P\), \(v\), and \(\sigma^2\) can be fit jointly with common EFT coefficients. In that sense, the code’s defining contribution is not only that it computes peculiar-velocity statistics, but that it does so in a way that preserves consistency with the density sector.

## 3. Lagrangian and Eulerian EFT realizations

The theoretical implementation is at next-to-leading, 1-loop order in both Lagrangian and Eulerian formulations of the EFT of large-scale structure [2508.00066]. In Lagrangian perturbation theory, tracer motion is written in terms of displacements \(\Psi\), with redshift-space displacement
$$
\Psi^{(n)}_{s,i} = R^{(n)}_{ij} \Psi^{(n)}_j = \Psi^{(n)}_i + n f(a) n_i n_j \Psi^{(n)}_j,
$$
and biased tracers use the Lagrangian bias expansion
$$
F_g(q) = 1 + b_\delta \delta_0(q) + \frac12 b_{\delta^2} \left( \delta_0(q)^2 - \langle\delta_0^2\rangle \right) + b_{s^2} \left( s_0^2(q) - \langle s_0^2\rangle \right) + b_{O_3} \mathcal{O}_3(q).
$$
The redshift-space power spectrum is then
$$
P_{s}(k) = \int d^3 q\ e^{ik\cdot q} \left\langle e^{ik\cdot\Delta_s}\ F_{g}(q_1)F_{g}(q_2) \right\rangle.
$$

In Eulerian perturbation theory, the code uses the standard one-loop Eulerian bias basis,
$$
\delta_g(x) = c_\delta \delta(x) + \frac12 c_{\delta^2} (\delta^2(x) - \langle\delta^2\rangle) + c_{s^2} (s^2(x) - \langle s^2\rangle) + c_{O_3} O_3^E(x),
$$
and computes real-space moments \(\tilde{\Xi}^{(n)}\), then builds the redshift-space moments through the moment expansion. At 1-loop, real-space moments are nonzero up to \(\tilde{\Xi}^{(4)}\), so, for example,
$$
v_{s}^{\rm 1loop}(k) = v^{\rm 1loop}(k) + (ik\mu) \sigma^{2,\rm 1loop}(k) + \frac{(ik\mu)^2}{2} \tilde{\Xi}^{(3), \rm 1loop}(k) + \frac{(ik\mu)^3}{6}\tilde{\Xi}^{(4), \rm 1loop}(k).
$$

The EFT ingredients are explicit. For redshift-space counterterms, the generating function receives
$$
P_s(k;\lambda) \supset 2\ \big(1 + b_\delta + \lambda f\mu^2 \big) \Big( \beta_0^0 + (\lambda f \beta_2^1 + \lambda^2 f^2 \beta_2^2) \mu^2 + (\lambda^2 f^2 \beta_4^2 + \lambda^3 f^3 \beta_4^3) \mu^4 \Big)\ k^2 P_{\rm L}(k),
$$
with only five independent counterterms needed in the generating function at 1-loop, and therefore the same five controlling all pairwise moments up to that order in real and redshift space. Stochastic terms are
$$
P_s(k; \lambda) \supset  s_0^0 + s_0^2 k^2 + \big(\lambda f s_2^1 + \lambda^2 f^2 s_2^2 \big) (k\mu)^2 ,
$$
and the leading beyond-1-loop FoG-like pieces included are
$$
P_s(k; \lambda) \supset \lambda^4 f^4 \beta_{\rm FOG}\ (k \mu)^4 (b + \lambda f \mu^2)^2 P_{\rm L}(k) + \lambda^4 f^4 s_4^4 (k\mu)^4.
$$
The repeated emphasis is that the same EFT coefficients can be used to fit \(P\), \(v\), and \(\sigma^2\) jointly.

## 4. Infrared resummation and BAO response

What most distinguishes `velocisaurus` scientifically is its treatment of infrared resummation for baryon acoustic oscillations in velocity statistics [2508.00066]. For galaxy densities, long-wavelength bulk flows smear the BAO mainly through the familiar exponential damping \(e^{-k^2\Sigma_d^2/2}\). For peculiar velocities, however, the observables directly probe those bulk flows, so there are additional enhanced terms beyond pure damping. The BAO-displacement scale is
$$
\Sigma^2_d = \frac23 \int \frac{dk}{2\pi^2} \left(1 - j_0(k r_d) + 2 j_2(k r_d)\right) P_{\rm L}(k),
$$
and in redshift space
$$
\Sigma^2_d(\mu) = (1 + f(2+f) \mu^2)\ \Sigma^2_d.
$$

The modified resummation for the wiggle part of the first pairwise moment is
$$
v_{s,w}(k) = e^{-\frac12 k^2 \Sigma^2_d(\mu)} \llbracket v_s(k) \rrbracket_w + i f k\mu (1+f) \Sigma_d^2\ e^{-\frac12 k^2 \Sigma^2_d(\mu)} \llbracket P_s(k) \rrbracket_w,
$$
not just a damped \(\llbracket v_s\rrbracket_w\). At 1-loop,
$$
\llbracket v_s(k) \rrbracket_w^{\rm 1loop} = v^w_{s,\rm lin}(k) + v^w_{s,\rm loop}(k) + \frac12 k^2 \Sigma^2(\mu) v^w_{s,\rm lin}(k) - i f(1+f) k\mu \Sigma^2_d P^w_{s,\rm lin}(k).
$$
Similarly, for the second moment,
$$
\sigma^{2, \rm 1loop}_{s,w}(k) = e^{-\frac12 k^2 \Sigma^2_d(\mu)} \Big( \llbracket \sigma^2_s(k) \rrbracket^{\rm 1loop}_w + 2f(1+f) \Sigma^2_d (ik\mu) \llbracket v_s(k) \rrbracket^{\rm 1loop}_w + \big( (ik\mu)^2 f^2(1+f)^2  \Sigma^4_d + f^2 \Sigma^2_d \big) \llbracket P_s \rrbracket^{\rm 1loop}_w \Big).
$$

The authors describe this as a recursive implementation in powers of the velocity in both Eulerian and Lagrangian approaches: the resummed power spectrum remains the generator, and derivatives with respect to \(\lambda\) generate the connected pieces order by order. In LPT they write
$$
P_s(k;\lambda) = \int d^3 q\ e^{ik\cdot q - \frac12 k_i k_j A^{\rm lin, s}_{ij}(q)} [ \tilde{P}_s ](q;\lambda),
$$
and then
$$
(ik\mu) v_s(k) = \int d^3 q\ e^{ik\cdot q - \frac12 k_i k_j A^{\rm lin, s}_{ij}(q)} \left( -\frac12 k_i k_j (\partial_\lambda A_{ij}^{\rm lin, s}(q))  [\tilde{P}_s ](q;\lambda) +  (ik\mu) [\tilde{v}_s ] (q;\lambda) \right).
$$
This is the Lagrangian analogue of the recursive derivative scheme. A common misconception is that velocity BAO can be modeled by applying the usual exponential-only damping used for galaxy densities. The paper’s analysis indicates that this can fail badly, especially for \(\sigma_s^2\), because peculiar-velocity observables respond directly to long-wavelength bulk flows.

## 5. Implementation profile and likelihood use

The paper is more explicit about the theory backend than about software engineering [2508.00066]. It does not give a detailed software manual, API, or benchmark table for `velocisaurus`; the explicit claims are that it is a fast Python code and that the authors “make our likelihood publicly available as part of velocisaurus.” For that reason, `velocisaurus` should be understood as a public Python implementation of the paper’s EFT predictions for peculiar-velocity observables and associated likelihood machinery, rather than as a general-purpose simulation or reconstruction package.

The implementation is connected to existing numerical methods. LPT calculations build on methods previously developed for `velocileptors`, especially FFTLog/Hankel-transform evaluation of the angular integrals. EPT predictions use the previously implemented one-loop real-space pairwise moments from `velocileptors` and extend them to redshift space with the new resummation. This suggests a division of labor in which `velocisaurus` specializes the peculiar-velocity and redshift-space extensions while reusing established perturbative infrastructure where appropriate.

Practical use is illustrated by the fitting analyses in the paper. The authors fit \(P\), \(v\), and \(\sigma^2\) jointly with common EFT parameters, use wide priors in some tests, vary \(f(z)\), and run Gaussian-likelihood analyses with Cobaya, analytically marginalizing linear parameters. The methodological significance is that the same generating-function-based EFT description underlies both prediction and inference.

## 6. Validation, fitting reach, and scientific relevance

Validation proceeds in two stages [2508.00066]. First, the theory is checked in a Zeldovich universe, where the recursive IR-resummation scheme can be compared to exact Zeldovich predictions. In that setting, the modified resummation captures the BAO phase and amplitude in \(v_s\) and \(\sigma_s^2\), whereas an exponential-only damping scheme can fail badly, especially for \(\sigma_s^2\).

Second, the full EFT predictions are compared to fully nonlinear N-body simulations, specifically 25 AbacusSummit boxes of volume \((2\,h^{-1}\mathrm{Gpc})^3\), using CompaSO halo catalogs for halos with \(\log_{10}(M/(h^{-1}M_\odot))\in(12.5,13.0)\) at \(z=0.1\) and \(z=1.1\). Agreement is shown for the first three redshift-space pairwise moments \(P\), \(v\), \(\sigma^2\), including multipoles. The quoted fitting reach is roughly \(k_{\max}\simeq 0.15\,h\,\mathrm{Mpc}^{-1}\) at \(z=0.1\) and \(k_{\max}\simeq 0.20\,h\,\mathrm{Mpc}^{-1}\) at \(z=1.1\), with some higher multipoles restricted to slightly smaller \(k\). The BAO wiggles isolated from the data are also reproduced well by both Eulerian and Lagrangian predictions.

In fits where all cosmological parameters except the growth rate are fixed, and \(f(z)\) is allowed to vary jointly with the EFT nuisance parameters, the model recovers the true growth rate to better than percent level: the reported constraints are \(1.3\%\) and \(0.9\%\) on \(f(z)\) at \(z=0.1\) and \(z=1.1\), with best-fit values deviating by at most \(0.3\%\) from the truth. This matters because the code is intended for upcoming peculiar-velocity surveys whose statistical precision will demand sub-percent to percent-level modeling accuracy; the authors explicitly state that this is “well beyond the statistical precision required for upcoming peculiar velocity surveys.”

Taken together, these features explain the code’s significance. Standard EFT galaxy-clustering codes focus on density and redshift-space distortion observables, whereas `velocisaurus` targets peculiar velocity statistics themselves in a framework where densities and velocities are derived consistently from the same redshift-space generating function and the same EFT parameter set. Its distinctive methodological contribution is the demonstrated need for modified BAO IR resummation in peculiar-velocity statistics, rather than merely the standard exponential damping used for galaxy densities. That makes it directly relevant for low-redshift peculiar-velocity surveys, joint density–velocity analyses, RSD/BAO inference, and likely future EFT treatments of kSZ observables.

Source: https://www.emergentmind.com/topics/velocisaurus