Weak lensing¶
Convergence field¶
Let’s introduce what can only be defined as the protagonist cosmological field of this thesis: the convergence field Dodelson & Schmidt (2021) Blandford et al. (1991) Kilbinger (2015) Bartelmann & Maturi (2017). As explained in the introduction weak lensing happens due to the presence of matter between us and a distant source. In mathematical terms we write this as an integral over the line of sight of the matter overdensity field, weighted accordingly.
With being a measure of the lensing weights; incorporates all of the relevant cosmological parameters, as well as knowledge of the redshift distribution of the source galaxies .
2-point statistics¶
2-point statistics such as correlation functions and power spectra are arguably the most powerful tool of analysis in cosmology. They work as a way to summarise raw data into something simpler, while still retaining most of the relevant information; for examples, allowing us to extract constraints on cosmological parameters.
Full sky¶
Let us start by introducing the statistics of a 3D spherically symmetric field, also known as a full sky field. The 2-point autocorrelation function is defined as the expectation value of the product of a random field with its complex conjugate
Where is the 2D projection of a spherically symmetric 3D field. We can now perform a decomposition in spherical harmonics . Such a decomposition gives rise to the correlation function associated to the harmonic coefficients , the 2D power spectrum ,
In this setup correlation function and power spectrum are therefore related by,
where we have used the identity relating Legendre polynomials to spherical harmonics . Cleaning up the equations we are just left with the well known full sky equation
which relates the angular correlation function to the angular power spectrum.
Flat-sky¶
Most analysis of weak lensing data actually use the flat-sky approximation Nicola et al. (2021) Gao et al. (2023) Matthewson & Durrer (2021) Gao et al. (2023) García-García et al. (2019) Schneider, P. et al. (2002), our work will not be an exception. Such an approximation essentially changes our setup to a flat-sky 2D field, instead of the 2D projection of a 3D one, allowing for simpler analytical expressions. In this setup, harmonic decomposition will not work, we will have to Fourier transform our space instead. To do so, we can assume the existence of a function which is the continuous extension of . Then we say that is the result of a 2D inverse Fourier transformation ,
To prove that is none other than the angular correlation function, we make use of the radial symmetry of the cosmological field. Which simplifies the equation into a 1D integral. Consider the polar coordinate substitution from to , the integral becomes
Lastly, we make use of the identity , where is the zeroth order Bessel function. Which leaves us with
In this form it is clear that Eq. (6) and Eq. (8) are asymptotically equivalent, since it is known that as . This concludes our heuristic proof that the angular correlation function is recovered from an inverse Fourier transformation of the angular power spectrum in the flat-sky approximation. Physically speaking this approximation makes sense when we consider a patch of sky of size L. The wavenumber of the flat-sky angular power spectrum is related to its dimensionless counterpart p by
in other words, it is inversely proportional to the size of the map. Just as we would expect the geometry of a sphere to become flat when zooming in, the flat-sky approximation holds as .
Limber approximation¶
The way we computationally obtain ’s 2-point statistics is with the Limber approximation. We use the code jaxcosmo Campagne et al. (2023) to compute the 2D power spectrum from the 3D matter power spectrum with the efficient Limber approximation,
The assumptions of the Limber approximation are:
flat-sky, as described previously and
the matter power spectrum depends only on modes on the field , essentially setting the modes parallel to the line of sight to zero, .
Such assumptions allow to simplify the relation between and to a one line integral, Eq. (10). It is noteworthy to mention that the Limber approximation introduces significant errors only for modes , as explained in detail in Gao et al. (2023). As far as this work is concerned, we only deal with patches of size , which means we have according to Eq. (9), well within the range for a good approximation.
Field generation¶
Gaussian random field¶
In order to simulate cosmological fields with a specific power spectrum, we make use of Gaussian random fields. They are fast to generate and only need information about the 2-point power spectrum of the field. The algorithm we use for the generation of GRFs is common to most packages and is explained in detail in Bertschinger (2001) Lang & Potthoff (2011). In 1D, assume a pair of functions functions and , related by a Fourier transformation
Let be a Gaussian white noise field and let denote a Fourier transformation, we then define
to be a Gaussian random field. Such a procedure ensures that the covariance of the GRF recovers the correlation function ,
Undefined control sequence: \iiiint at position 61: …y)\right] \\
=&\̲i̲i̲i̲i̲n̲t̲ ̲dx' dy' \frac{d…
\begin{align*}
&\mathbb{E}\left[\phi(x)\phi(y)\right] \\
=&\iiiint dx' dy' \frac{dk}{2\pi} \frac{dl}{2\pi} \, e^{i(kx + ly)} P(k)^{1/2} P(l)^{1/2} e^{-i(kx' + ly')} \mathbb{E}[W(x')W(y')] \\
=& \iint \frac{dk}{2\pi} \frac{dl}{2\pi} \, e^{i(kx + ly)} P(k)^{1/2} P(l)^{1/2} \int dx' \, e^{-i(k+l)x'} \\
=& \int \frac{dk}{2\pi} \, e^{i k(x-y)} P(k) \\
=& \, \xi(x, y).
\end{align*}Where we have used , as white noise is defined by a constant power spectrum.
Rayleigh distribution¶
Since we are dealing with 2D maps, our algorithm will have to be implemented in two dimensions. To do so, we decide to implement the algorithm in Eq. (11) with the use of the Rayleigh distribution . Given two independent Gaussian random variables and , the random variable given by
is said to be Rayleigh distributed. If we then multiply by the complex exponential of a uniformly distributed random variable , we obtain a map of Gaussianly distributed complex numbers, which will substitute the term in Eq. (11). We showcase this equivalency in Fig. 2 for distributions of and . The sequence of transformations in 2D therefore becomes,
Figure 2:Sampling a 2D Gaussian against a Rayleigh distributed amplitude with uniform complex phase. In purple is the complex number with , in cyan is with and .
Lognormal field¶
The universe today is not Gaussian. GRFs are able to capture the 2-point statistics of cosmological fields, but they cannot capture their skewed distribution. A possible way to get closer to the true distribution of the convergence field is with a lognormal transformation Boruah et al. (2022) Leclercq & Heavens (2021) Hilbert, S. et al. (2011) Zhou et al. (2023). In this work we will denote lognormal transformations as and adopt the following convention for both the field and the correlation function,
Where the superscripts L and G respectively stand for lognormal and Gaussian, Var() stands for the variance of the field and is the so-called shift parameter, which is an indicator of the non-Gaussianity of the resulting field.
Gaussian process¶
One way to think of Gaussian processes is as an extension of random vectors to infinite dimensions. Following this train of thought, let’s begin with the concept of a random variable following a normal distribution. We say,
to mean that is a sample of a Gaussian of mean and variance . If we were to get enough samples , we would eventually recover its distribution. The generalisation of this concept to n-dimensions is a collection of random variables, described by a so-called multivariate normal distribution,
Where is a vector of random variables, is the mean vector and the covariance matrix. For a zero mean field, the covariance matrix is formed by the variance of each of the random variables on its diagonal, while the cross correlation terms populate the rest of the matrix.
Definition¶
Adopting the philosophy of Rasmussen Rasmussen & Williams (2005), functions can be thought of as very long vectors of the form . Such a view allows us to extend the definition of multivariate Gaussians, to functions. Defining a Gaussian process, a sample function will be given by:
with and defined as,
Mathematically a GP is defined for a continuous function. Computationally this is not possible and we must treat space as a discrete grid.
Prior and posterior samples¶
Given some and which define a GP, a random sample from said GP would be a function defined on a domain , which is our grid.
Here we adopt the convention . When drawing a sample function from Eq. (17), computationally the operation is equivalent to drawing a vector from a multivariate Gaussian. What we obtain is a so-called prior, or priors, see Fig. 3.
Figure 3:Prior samples of a GP with mean and squared exponential kernel .
Let’s now see how we can introduce knowledge of data points in this system. We divide the grid in training points and test points . To each training point is associated a known value and variance , whereas the values of the function at the test points are unknown. We can summarise this as,
where we have once again adopted the notation , , . At this point, one way to find samples that follow the data would be to blindly draw priors until we get something that goes through all data points. This would be inefficient and computationally wasteful. Instead, we make a better guess for the test function values. This operation is called conditioning, because we condition the joint Gaussians on the training points, this gives
Conditioning can therefore give rise to what is called a posterior sample, Fig. 4. The result is still a multivariate Gaussian, but the mean and variance given by Eq. (19) generate samples that are a better guess of the behaviour of the function outside of the training points.
Figure 4:Summary plot of a GP conditioned to some data. The cyan line is the mean of the GP and the filled region corresponds to . The purple lines are posterior samples, which are distributed Gaussianly around the mean. The data points are clearly marked in black, they are also the points where all samples converge to.
- Dodelson, S., & Schmidt, F. (2021). 13 - Probes of structure: lensing. In S. Dodelson & F. Schmidt (Eds.), Modern Cosmology (Second Edition) (Second Edition, pp. 373–399). Academic Press. https://doi.org/10.1016/B978-0-12-815948-4.00019-X
- Blandford, R. D., Saust, A. B., Brainerd, T. G., & Villumsen, J. V. (1991). The distortion of distant galaxy images by large scale structure. AIP Conference Proceedings, 222(1), 455–458. 10.1063/1.40414
- Kilbinger, M. (2015). Cosmology with cosmic shear observations: a review. Reports on Progress in Physics, 78(8), 086901. 10.1088/0034-4885/78/8/086901
- Bartelmann, M., & Maturi, M. (2017). Weak gravitational lensing. Scholarpedia, 12(1), 32440. 10.4249/scholarpedia.32440
- Nicola, A., García-García, C., Alonso, D., Dunkley, J., Ferreira, P. G., Slosar, A., & Spergel, D. N. (2021). Cosmic shear power spectra in practice. Journal of Cosmology and Astroparticle Physics, 2021(03), 067. 10.1088/1475-7516/2021/03/067
- Gao, Z., Raccanelli, A., & Vlah, Z. (2023). Asymptotic connection between full- and flat-sky angular correlators. Phys. Rev. D, 108(4), 043503. 10.1103/PhysRevD.108.043503
- Matthewson, W. L., & Durrer, R. (2021). The flat sky approximation to galaxy number counts. Journal of Cosmology and Astroparticle Physics, 2021(02), 027. 10.1088/1475-7516/2021/02/027
- Gao, Z., Vlah, Z., & Challinor, A. (2023). Flat-sky Angular Power Spectra Revisited.
- García-García, C., Alonso, D., & Bellini, E. (2019). Disconnected pseudo-C\ell covariances for projected large-scale structure data. Journal of Cosmology and Astroparticle Physics, 2019(11), 043. 10.1088/1475-7516/2019/11/043
- Schneider, P., van Waerbeke, L., Kilbinger, M., & Mellier, Y. (2002). Analysis of two-point statistics of cosmic shear - I. Estimators and covariances. A&A, 396(1), 1–19. 10.1051/0004-6361:20021341
- Campagne, J.-E., Lanusse, F., Zuntz, J., Boucaud, A., Casas, S., Karamanis, M., Kirkby, D., Lanzieri, D., Peel, A., & Li, Y. (2023). JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library. The Open Journal of Astrophysics, 6. 10.21105/astro.2302.05163
- Bertschinger, E. (2001). Multiscale Gaussian Random Fields and Their Application to Cosmological Simulations. The Astrophysical Journal Supplement Series, 137(1), 1. 10.1086/322526
- Lang, A., & Potthoff, J. (2011). Monte Carlo Methods and Applications, 17(3), 195–214. doi:10.1515/mcma.2011.009
- Boruah, S. S., Rozo, E., & Fiedorowicz, P. (2022). Map-based cosmology inference with lognormal cosmic shear maps.
- Leclercq, F., & Heavens, A. (2021). On the accuracy and precision of correlation functions and field-level inference in cosmology. Monthly Notices of the Royal Astronomical Society: Letters, 506(1), L85–L90. 10.1093/mnrasl/slab081