Skip to content

Gaussian copula for correlated redshift samples and n(z) realisations - #34

Merged
JaimeRZP merged 2 commits into
mainfrom
nz
Nov 23, 2026
Merged

JaimeRZP merged 2 commits into
mainfrom
nz

Conversation

@JaimeRZP

Copy link
Copy Markdown
Owner

No description provided.

JaimeRZP and others added 2 commits November 18, 2026 19:24
rho now maximises the Gaussian likelihood of the mean PIT scores of the n(z)
bins with their full copula covariance,
Sigma_qq' = rho wbar_q . wbar_q' + delta_qq' (1 - rho) / M_q,
instead of a weighted least squares that treated the bins as independent.
All bins share the same latent draw, so their means are correlated; on the
held-out data this improves the copula check and the n(z) chi^2.

Also trims verbose comments in copula.py and models.py, and updates the tests
(bin covariance against the pairwise sums and Monte Carlo realisations, fit
against a grid of the likelihood).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JaimeRZP
JaimeRZP merged commit 3e32324 into main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant