Analytic auto-differentiable ΛCDM cosmography
Abstract
I present general analytic expressions for distance calculations (comoving distance, time coordinate, and absorption distance) in the standard ΛCDM cosmology, allowing for the presence of radiation and for non-zero curvature. The solutions utilise the symmetric Carlson basis of elliptic integrals, which can be evaluated with fast numerical algorithms that allow trivial parallelisation on GPUs and automatic differentiation without the need for additional special functions. I introduce a PyTorch-based implementation in the phytorch.cosmology package and briefly examine its accuracy and speed in comparison with numerical integration and other known expressions (for special cases). Finally, I demonstrate an application to high-dimensional Bayesian analysis that utilises automatic differentiation through the distance calculations to efficiently derive posteriors for cosmological parameters from up to 106 mock type Ia supernovæ using variational inference.
- Publication:
-
Journal of Cosmology and Astroparticle Physics
- Pub Date:
- July 2023
- DOI:
- 10.1088/1475-7516/2023/07/065
- arXiv:
- arXiv:2212.01937
- Bibcode:
- 2023JCAP...07..065K
- Keywords:
-
- Machine learning;
- supernova type Ia - standard candles;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- Astrophysics - Cosmology and Nongalactic Astrophysics
- E-Print:
- matches published version