CosmoFit.S8Likelihood

class CosmoFit.S8Likelihood(cosmology, version='kids1000')[source]

Bases: BaseLikelihood

A single Gaussian S8 = sigma8 * sqrt(Omega_m / 0.3) constraint from a weak-lensing survey (default: KiDS-1000; also DES Y3 – see load_s8()).

Don’t combine "s8" with a different version in the same fit – KiDS-1000 and DES Y3 are independent, not a single joint constraint; pass dataset_kwargs={"s8": {"version": "des_y3"}} to use one or the other, not both at once.

__init__(cosmology, version='kids1000')[source]

Methods

__init__(cosmology[, version])

chi2()

Return chi-square.

log_likelihood()

Return log-likelihood.

model()

S8 = sigma8 * sqrt(Omega_m / 0.3).

predictions()

Alias for model().

residuals()

summary()

Return a summary of the likelihood evaluation.

Attributes

n_data

Number of data points.

name_and_size

Name together with the number of data points.

observable