Statistics and predictions

Every product is measured and compared to a prediction made with CCL for the same tracers, binning and smoothing. Measurements are saved as SACC files next to the product, and plots against the predictions in its plots/ folder.

Power spectra of maps

Map builders (shells, convergence) measure angular power spectra with NaMaster:

  • compute_alms() computes the spherical harmonics of the maps, on the padded and apodized footprint if any (see Shells), and saves them (read by read_alms());

  • compute_cls() computes the decoupled bandpowers of pairs of maps (pairs, or all with auto_only), with the binning b (by default 20 bandpowers log-spaced from ℓ = 8 to 2 nside) and a NaMaster workspace saved with the footprint;

  • predict_cls() predicts them, convolved with the bandpower windows of the workspace (binning='wsp') or averaged in each bin, with the pixel window of the maps (pixel_window), and optionally Gaussian error bars with the noise of the maps;

  • plot_cls() plots both.

Builders also compute moments of smoothed maps (compute_map_moments()), and Gaussian maps with the predicted spectra (generate_gaussian_maps()).

Statistics of catalogs

Catalogs measure, for all pairs of tomographic bins:

  • 'clustering': the angular correlation of galaxies w(θ), against randoms (randoms_per_galaxy per galaxy, shared by all bins with randoms_shared);

  • 'shear': the shear correlations ξ±(θ);

  • 'shear_clustering': galaxy-galaxy lensing γt(θ), for all ordered pairs of lens and source bins.

compute_2pt() measures them with TreeCorr between theta_min and theta_max (ntheta logarithmic bins, bin_slop, and angle_slop with TreeCorr 5), and compute_cls() measures the corresponding power spectra with NaMaster, from maps of the catalogs. subsample uses a random fraction of the galaxies, and remove_mean subtracts the mean shear of each bin. Error bars are shot noise only.

shapes sets the shapes of the shear legs, of the 2pt functions and of the Cls alike (files cat_cls[_{shapes}].fits for the Cls):

  • 'shear' (default): the lensing shear (shear_cols, gamma1 and gamma2 by default), in cat_2pt.fits;

  • 'ia': the intrinsic alignments alone, II for ξ± and gI for γt, in cat_2pt_ia.fits;

  • 'shear_plus_ia': their sum, without shape noise, in cat_2pt_shear_plus_ia.fits;

  • 'observed': the observed ellipticities e1_obs, e2_obs of the catalogs (see Catalogs), with shape noise, in cat_2pt_observed.fits. Their prediction is that of 'shear_plus_ia' (of 'shear' if they do not include the intrinsic alignments), the shape noise having zero mean and the reduced shear being approximated by the shear; the error bars include the shape noise.

The first three are measured on the same galaxies: with \(\gamma\) the shear and \(e^I\) the intrinsic alignments, \(\xi^{\gamma + e^I} = \xi^{GG} + \xi^{GI} + \xi^{IG} + \xi^{II}\), so that GI (with IG) is the difference shear_plus_ia - shear - ia, which the plots of 'ia' also show. Plots are named after the shapes: xi_shear, xi_ia (II) and xi_shear_plus_ia for ξ±, with _x_density for γt (xi_ia_x_density is gI), xi_shear_x_ia for GI, xi_observed for the observed ellipticities, and xi_density for w(θ); those of the Cls are cl_{shapes}_ee, cl_{shapes}_x_density and cl_density.

Predictions

Predictions use two objects of pollux.cosmo, shared by builders and catalogs:

  • Tracer describes an observable: a density (with its linear bias), a shear, intrinsic alignments (with their amplitudes) or a convergence, with its redshift distribution and smoothing. Builders and catalogs give theirs (tracers, density_tracers, lensing_tracers, ia_tracers);

  • TracerSum sums tracers of one field, e.g. the lensing shear and intrinsic alignments of a bin for the shapes 'shear_plus_ia': predictions being bilinear, their spectra are the sums of those of the terms (GG + GI + IG + II), and so are the bandpowers, correlation functions and Gaussian errors of the summed field;

  • Theory predicts their power spectra (angular_cl(), in the Limber approximation), bandpowers (predict_cls()) and correlation functions (predict_2pt(), by Hankel transform), with a matter power spectrum: CCL’s nonlinear one, or that of the baryon model (see Baryons).

Bandpowers are predicted as measured: with the bandpower windows \(W_{b\ell}\) of the NaMaster workspace and the pixel window \(p_\ell\), \(C_b = \sum_\ell W_{b\ell}\, p_\ell^2\, C_\ell\) (binned_cl()). The pixel window is also in the correlation functions of the catalogs, from \(p_\ell^2 C_\ell\) (pixel_window of predict_cls() and predict_2pt()), since galaxies are placed in the pixels of the density maps and the fields are interpolated from pixelized maps. The bilinear interpolation probably adds a window of its own, which the predictions don’t include: ξ- remains low below a few pixels.

A tracer smoothed by a Gaussian of comoving scale s multiplies the matter power spectrum by exp(-k² s² / 2), which is exact in Limber for a transverse smoothing. Scales that change from shell to shell are applied shell by shell, and a smoothing cannot be smaller than the pixel (effective_smooth_Mpc()). Intrinsic alignments beyond NLA use perturbation theory, with their B modes included in ξ± and in the bandpowers of two spin-2 fields (see Intrinsic alignments).

Plots

Plots (pollux.statistics.plotting.plot_pairs()) show one panel per pair of bins, in modes:

  • 'values': data and prediction;

  • 'ratio': data over prediction, minus 1;

  • 'ratio_to_reference': the ratios of the data and of the predictions to those of another product, e.g. a baryonified catalog to the dark-matter-only one.

Vertical lines mark the reference scales of each pair (reference_scales()): the smoothing, the pixel size and the size of the simulation box at the distance of the tracers. Measurements are not expected to follow predictions below the pixel or smoothing scales, nor at angles approaching the box size.