Likelihood Theory
LiLit implements multiple likelihood approximations for CMB analysis. This section provides detailed formulations and implementation notes.
Overview
LiLit supports both single-field and multi-field likelihood calculations with the following approximations:
Exact likelihood: Based on Hamimeche & Lewis (2008)
Gaussian likelihood: Standard Gaussian approximation with proper multi-field covariance
Correlated Gaussian likelihood: Accounts for multipole correlations (single-field only, under development)
Each approximation handles field-specific multipole ranges (\(\ell_{\rm min}\), \(\ell_{\rm max}\)) and sky fractions (\(f_{\rm sky}\)) appropriately.
Exact Likelihood
The exact likelihood approximation follows Hamimeche & Lewis (2008).
Single-field Case
For a single field, the log-likelihood is:
Multi-field Case
For \(N\) fields, the formula becomes:
where the covariance matrix has the structure:
Each entry includes signal and noise contributions:
Implementation Details
Multipole Ranges: The multipole range for cross-correlations between two fields is determined by the intersection of their individual ranges.
Sky Fraction: For multiple \(f_{\rm sky}\) values, an effective value is computed as the geometric mean: \(f_{\rm sky}^{\rm eff} = \sqrt[N]{\prod_i f_{\rm sky}^i}\).
Singular Matrices: When multipole cuts or excluded probes make the covariance matrix singular, LiLit automatically identifies and removes null diagonal entries along with their corresponding rows and columns.
Excluded Probes: Specific cross-correlations can be excluded (e.g., excluded_probes = ["xz"]) by setting the corresponding covariance entries to zero.
Gaussian Likelihood
The Gaussian approximation assumes normally distributed power spectra with known covariance.
Single-field Case
where the variance is:
Multi-field Case
The data vector is formed from the upper triangular part of the covariance matrix:
The covariance matrix for this data vector is:
where cross-correlation sky fractions are: \(f_{\rm sky}^{XY} = \sqrt{f_{\rm sky}^{XX}f_{\rm sky}^{YY}}\).
The likelihood is then:
Implementation Differences from Exact Case
Multipole Ranges: Cross-correlation ranges use geometric mean: \(\ell_{\rm max}^{XY} = \sqrt{\ell_{\rm max}^{XX}\ell_{\rm max}^{YY}}\).
Masking: The covariance matrix is computed for the full range, then masked entries are removed before inversion. The data vector is masked consistently.
Sky Fractions: Each field retains its individual \(f_{\rm sky}\) factor, unlike the exact case which uses an effective value.
Sky Cut Approximations
All likelihood implementations make approximations regarding sky cuts:
Mode Counting: The factor \((2\ell+1)f_{\rm sky}\) approximates the reduction in available modes due to masking
No Mode Coupling: Correlations between different multipoles induced by the mask are neglected
Effective Sky Fraction: Multi-field cases use geometric averaging of individual sky fractions
These approximations are valid when:
Sky cuts are not too severe (\(f_{\rm sky} \gtrsim 0.3\))
Mask boundaries are not too complex
Cross-correlation regions have substantial overlap
For more accurate treatment of sky cuts, external covariance matrices accounting for mode coupling should be used with the correlated Gaussian likelihood.
References
Hamimeche, S. & Lewis, A., 2008, Likelihood analysis of CMB temperature and polarization power spectra, arXiv:0801.0554
Campeti, P. et al., 2020, Measuring the spectrum of primordial gravitational waves with CMB, PTA and Laser Interferometers, arXiv:2007.04241
Allys, E. et al., 2022, Probing cosmic inflation with the LiteBIRD cosmic microwave background polarization survey, arXiv:2202.02773