Repository navigation
Fix c-bias error estimation - #408
Open
martinkilbinger wants to merge 2 commits into
Open
martinkilbinger wants to merge 2 commits into
martinkilbinger wants to merge 2 commits into
Conversation
- 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>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug fixes for c-bias error estimation of statistical and jackknife errors.