GithubHelp home page GithubHelp logo

florent-leclercq / correlations_vs_field Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 133.32 MB

Correlation functions versus field-level inference in cosmology: example with log-normal fields

Home Page: https://florent-leclercq.eu

License: GNU General Public License v3.0

Jupyter Notebook 99.78% Python 0.22%
cosmology cosmological-inference bayesian-data-analysis approximate-bayesian-computation simulation-based-inference likelihood-free-inference data-assimilation markov-chain-monte-carlo

correlations_vs_field's Introduction

correlations_vs_field

arXiv GPLv3 license Website florent-leclercq.eu

Correlation functions versus field-level inference in cosmology: example with log-normal fields

Documentation

This is a companion repository to Leclercq & Heavens 2021, On the accuracy and precision of correlation functions and field-level inference in cosmology, arXiv:2103.04158.

The code contains a python library for log-normal fields, libLN.py and two example configuration files: config_10.py (alpha=1.0, beta=0.5) and config_02.py (alpha=0.2, beta=0.5). The main part of the code is split into several Jupyter notebooks:

  • Inference_LBA.ipynb: likelihood-based analysis of the two-point correlation function (section 3 in Leclercq & Heavens 2021)
  • Inference_SBI.ipynb: simulation-based inference using the two-point correlation function (section 4 in Leclercq & Heavens 2021)
  • Inference_DA_*.ipynb: field-level inference with data assimilation (section 5 in Leclercq & Heavens 2021)
  • Fisher_forecasts.ipynb: Fisher forecasts for the the two-point correlation function and field-level analyses (appendices E and F in Leclercq & Heavens 2021)
  • Plots.ipynb: code to produce the plots of the paper, and some more

The raw data (pools of simulations for simulation-based inference and Markov Chains for data assimilation) are not stored in this repository due to their large size. They are available upon reasonable request to the corresponding author.

In addition to usual python packages such as numpy, scipy, matplotlib, pickle, the code has the following dependencies:

Contributors

Reference

To acknowledge the use of this software, please cite the paper Leclercq & Heavens (2021):

On the accuracy and precision of correlation functions and field-level inference in cosmology
F. Leclercq, A. Heavens
arXiv:2103.04158 [astro-ph.CO] [ADS] [pdf]

@ARTICLE{correlations_vs_field,
    author = {{Leclercq}, Florent and {Heavens}, Alan},
    title = "{On the accuracy and precision of correlation functions and field-level inference in cosmology}",
    journal = {arXiv e-prints},
    keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics, Statistics - Applications},
    year = 2021,
    month = mar,
    eid = {arXiv:2103.04158},
    pages = {arXiv:2103.04158},
    archivePrefix = {arXiv},
    eprint = {2103.04158},
    primaryClass = {astro-ph.CO},
    adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210304158L},
    adsnote = {Provided by the SAO/NASA Astrophysics Data System}
    }

License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. By downloading and using pySELFI, you agree to the LICENSE, distributed with the source code in a text file of the same name.

correlations_vs_field's People

Contributors

florent-leclercq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.