Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.86 KB

cosmo_theories_likes.rst

File metadata and controls

40 lines (24 loc) · 1.86 KB

Cosmological theory codes and likelihoods

Models in Cosmology are usually split in two: ℳ = 𝒯 + ℰ, where

  • 𝒯, the theoretical model, is used to compute observable quantities 𝒪
  • , the experimental model, accounts for instrumental errors, foregrounds... when comparing the theoretical observable with some data 𝒟.

In practice the theoretical model is encapsulated in one or more theory codes (CLASS <theory_class>, CAMB <theory_camb>...) and the experimental model in a likelihood, which gives the probability of the data being a realization of the given observable in the context of the experiment:


ℒ[𝒟 | ℳ] = ℒ[𝒟 | 𝒪,ℰ]

Each iteration of a sampler reproduces the model using the following steps:

  1. A new set of theory+experimental parameters is proposed by the sampler.
  2. The theory parameters are passed to the theory codes, which compute one or more observables.
  3. The experimental parameters are passed to each of the likelihoods, which in turn ask the theory code for the current value of the observables they need, and use all of that to compute a log-probability of the data.

cobaya wraps the most popular cosmological codes under a single interface, documented below. The codes themselves are documented in the next sections, followed by the internal likelihoods included in cobaya.

Cosmological theory code

theories.cosmo.BoltzmannBase

theories.cosmo.PowerSpectrumInterpolator

Cosmological theory code inheritance

theorys