hod_mod: Galaxy Clustering, Lensing and X-ray / tSZ Cross-Correlations
hod_mod is a JAX-accelerated Python package for predicting and fitting galaxy–halo observables. It is organised around three observable pipelines that share one core halo-model engine:
Galaxy clustering & lensing — \(w_p(r_p)\) and \(\Delta\Sigma(R)\) from the More+2015 and Zu & Mandelbaum 2015 models.
Galaxy × X-ray — soft X-ray emission from hot gas and AGN (ongoing).
Galaxy × thermal SZ — Compton-\(y\) cross-correlation (new).
The package layout mirrors this: core (cosmology + halo model), connection
(galaxy–halo occupation), gas and agn (the fields), and observables
(the pipelines), with fitting and the hod-mod CLI on top.
User Guide
- Overview
- Forward Model Showcase
- Pipeline Summary
- 1. Linear Matter Power Spectrum
- 2. Non-Linear Matter Power Spectrum
- 3. Halo Mass Function and Linear Bias
- 4. Beyond-Linear Halo Bias
- 5. NFW Concentration–Mass Relation
- 6. Halo Profile Fourier Transforms
- 7. HOD Occupation Functions
- 8. Off-centering Correction
- 9. Projected Correlation Function \(w_p(r_p)\)
- 10. Excess Surface Mass Density \(\Delta\Sigma(R)\)
- 11. NLA Intrinsic-Alignment Correction to \(\Delta\Sigma\)
- 12. Summary: \(w_p\) — All Corrections
- 13. Summary: \(\Delta\Sigma\) — All Corrections
- Galaxy × Gas Cross-Correlations
- 14. X-ray AGN Contribution to \(P_{g,X}(k)\)
- Bibliography
- Data Formats
- Data hosting and on-demand fetching
- Scripts
Pipeline — Galaxy Clustering & Lensing
- More+2015 HOD Model — BOSS CMASS & BGS
- Zu & Mandelbaum 2015 iHOD Model — SDSS, X-ray & BGS
- Cosmological framework
- Zu & Mandelbaum 2015 iHOD model
- Power spectra and summary statistics
- Parameter table
- SDSS DR7 benchmark
- X-ray cross-correlation extension
- BGS X-ray fit parameters (8 free parameters)
- Fixed-ZM15 X-ray fit — AGN + gas model options
- Duty-cycle AGN cross-correlation model
- BGS LS10 MAP results — samples S1–S3
- AGN luminosity calibration check
- Timing — CPU vs GPU
- References and external resources
- Fitting with the More+2015 HOD Model
Pipeline — Galaxy × X-ray
Pipeline — Galaxy × thermal SZ
Sensitivity & Forecasts
- Sensitivity study: differentiable pipeline, scale cuts and degeneracy breaking
- The fiducial model and the twelve summary statistics
- The derivative of the pipeline, step by step
- Where the information lives: response functions
- The Fisher matrix and a useful identity
- Breaking the degeneracies with X-ray and SZ
- The result: small scales help — conditionally
- Baryonic feedback: contaminating lensing, calibrated by X-ray / SZ
- Cosmic shear: the matter power and where baryons bite hardest
- Closing the baryon budget energetically
- The AGN X-ray luminosity function as a cosmology probe
- Parameter inventory: what carries cosmological vs astrophysical information
- A detailed plan for the next steps
- Reproducing this study
- Structure of the prediction: the forward model, equation by equation
- Stage-IV forecast: expected cosmology from the combined multi-wavelength surveys
- Tier-2 forecast: nothing fixed (90 parameters)
- What the model does not yet contain
- Summary and suggested order
- Cosmology beyond ΛCDM
- Cosmology-correct, differentiable halo-model ingredients
- AGN: radio, infrared, and the fundamental plane
- Galaxy morphology
- Specific star formation rate: star-forming vs quiescent
- Galaxy spectral energy distributions: multi-band luminosity functions
- Stellar feedback
- Cold gas and neutral hydrogen
- The extended model: implementation of the missing physics
- Architecture
- Wave 1 — cosmology, concentration, quenching, fundamental plane, HI
- Wave 2 — CAMB-quality P(k), winds, main sequence, radio/HI surveys
- Wave 3 — continuous sSFR, [OII], jets, infrared
- Wave 4 — galaxy morphology
- Observables and noise: the full menu
- Exact invariants (the test contract)
- Usage
- Approximations and fixed constants
- Results
- API reference
- Tier-3 forecast: multi-wavelength maps, band LFs, z < 2, M* > 10⁹
- Tier-4 forecast: the morphology observables
- Sensitivity benchmark: the existing observables the model must reproduce
Benchmarks
BGS Analysis
API Reference
- Cosmology Module
- Halos
- Galaxies Module
- HOD Fitting Module
- Data I/O
- Bibliography
- Cosmology and Power Spectra
- Halo Model Framework
- Halo Mass Function and Bias
- Halo Profiles and Concentration
- HOD Models
- Stellar-to-Halo Mass Relations and SHAM
- Galaxy Clustering and Projected Correlation Function
- Galaxy-Galaxy Lensing and Excess Surface Mass Density
- Intrinsic Alignments
- Baryon Effects on the Matter Power Spectrum
- Gas Profiles and Cross-Correlations
- Surveys and Data
- Recent Cosmological Constraints (S₈ Tension)
- Inference Methods
- Galaxy-Halo Connection with Non-Linear Power Spectrum
- Simulation Reference: FLAMINGO
- Beyond-ΛCDM Cosmology and Emulators
- Precision Halo-Model Ingredients
- AGN Multi-Wavelength Emission and the Fundamental Plane
- Galaxy Morphology, Quenching and Star Formation
- Galaxy Luminosity Functions and SEDs
- Stellar Feedback and Galactic Winds
- Cold Gas and Neutral Hydrogen
- Sensitivity-Benchmark Data Anchors