Skip to content

Fix c-bias error estimation - #408

Open
martinkilbinger wants to merge 2 commits into
CosmoStat:developfrom
martinkilbinger:feat/c-jackknife-error
Open

martinkilbinger wants to merge 2 commits into
CosmoStat:developfrom
martinkilbinger:feat/c-jackknife-error

Conversation

@martinkilbinger

Copy link
Copy Markdown
Contributor

Bug fixes for c-bias error estimation of statistical and jackknife errors.

martinkilbinger and others added 2 commits October 8, 2026 14:33
- statistics.jackknife_weighted_mean: delete-one-patch jackknife of a
  weighted mean.
- survey.additive_bias_errors: shape-noise error sqrt(sum w^2 (e-c)^2)/sum w
  and the patch jackknife error of c1, c2.
- CosmologyValidation.calculate_additive_bias_errors: jackknife over the
  seeded k-means patches of the 2PCF, so the error includes spatially
  correlated contributions (cosmic shear, PSF residuals);
  print_additive_bias writes c with both errors (txt) and with jackknife
  errors in units of 1e-4 (tex).
- _read_shear_cols: column name 'one' gives unit weights (w_col: one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CosmologyValidation reads a star section for every version; the three
uncalibrated v1.4.6.3 entries (DES, inverse-variance and unit weights)
had none and failed with KeyError 'star'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@martinkilbinger martinkilbinger self-assigned this Oct 8, 2026
cailmdaley added a commit that referenced this pull request Nov 15, 2026
…ponse core

response.additive_bias gives c of rows held in memory, its shape-noise error
sqrt(sum w^2 (e - c)^2) / sum w, and its delete-one-group jackknife error
through the core's covariance helper; on the selected no-shear rows it is the
c_e and jackknife of estimate/jackknife on the sums (test_response).

cosmo_val uses it for calculate_additive_bias and _calibrated_g, and gains
calculate_additive_bias_errors (jackknife over the 2PCF's k-means patches)
and print_additive_bias (text and LaTeX tables), with a `one` column name for
unit weights and star catalogues for the SP_v1.4.6.3_uncal entries, as in
PR #408. survey.additive_bias is replaced by the core function.

Co-authored-by: martinkilbinger <martinkilbinger@cea.fr>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JK7o9ESEcatXjL8bDkTC5c

This branch has not been deployed

No deployments
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