Skip to content

PSF-leakage fit fails on the full v2 area: three causes, and is β(T_PSF) physical? #452

Open

Description

@cailmdaley

Claude (Opus) on behalf of Cail.

Where this fits. This issue is the diagnosis. It found three problems with the PSF-leakage fit on the full UNIONS v2 area and leaves one open science question, at the end. The fixes live elsewhere:

Why we looked

cosmo_val fits the ρ/τ leakage model, with α, β and η on τ0/τ2/τ5 over 1–250′. From the fit it builds ξ_sys, the PSF contribution to ξ±. That only makes sense if the model fits.

  • On the v1.4 footprint (~10k tiles, Papers I–V) the fit gave χ² 74/57.
  • On the full-area v2 catalogue (ShapePipe v2 on DR6, 20,515 tiles) it gives 171/57.
  • α and η also came out negative, which is unphysical.

So the v2 ξ_sys can't be trusted until we understand why. We found three causes.

Three causes

  1. Contaminated PSF stars (fixed by One catalogue-masking path for PSF stars and galaxies (manual-mask bit 8 via sky maps) #457). One jackknife cell, at M33, carries more than 99% of the first-bin variance of ρ1, ρ3 and ρ4: its star clusters and HII regions enter the PSF star sample. Under the fixed-ρ fit, deleting that cell moves (α, β, η) from (−0.001, 0.81, −1.04) to (+0.027, 1.25, +3.22), so the negative α and η come mostly from this. A star-only scan adds M101, M13 and M92. One catalogue-masking path for PSF stars and galaxies (manual-mask bit 8 via sky maps) #457 vetoes PSF stars that carry ShapePipe's manual-mask bit (bit 8), which covers these objects (PSF star selection: apply the manual mask; M33 shows outlier rejection fails where contaminants dominate shapepipe#993).
  2. The estimator (fixed by PSF leakage: joint errors-in-variables ρ/τ fit by default #454). lsq treats the measured ρ as exact and ignores the ρ–τ cross-covariance. At small θ, the noise in ρ, propagated through the model, is 100–500× the τ variance. A joint errors-in-variables (EIV) fit handles this: it fits the true ρ alongside (α, β, η) under one jackknife covariance of ρ and τ together. Dropping the cross term from that fit fakes a pass, 69.4/57 instead of 78.0/57.
  3. β grows with PSF size (the open question below). Let β = β₀ + β₁u, with u = T_PSF/⟨T_PSF⟩ − 1. The fit gives β₁ ≈ 1.9 ± 0.3, with Δχ² 8–22 for one parameter. The slope is stable across 200, 400 and 800 patches, across size bounds 3 and 9, and with θ ≤ 60′ cuts. A step model gives β = 0.04 ± 0.27 in the best-seeing quartile and 2.38 ± 0.22 elsewhere. Splitting the sample into the north and south galactic caps, whose seeing differs, improves the fit far more than splitting old from new area: χ²/dof 2.16 → 1.44, against 2.18 → 2.13.

Result. The configuration is size bound 9 (gal_rel_size_max 9), the four-object star mask, joint EIV and β(T_PSF). It gives 64.6/56 (PTE 0.20) at 400 patches and 70.7/56 (PTE 0.089) at 200. Constant β gives 78.0/57 (PTE 0.034).

bound 9, masked, joint EIV 800 patches 400 200
constant β 93.6/57 78.0/57 79.0/57
β(T_PSF) 71.2/56 64.6/56 70.7/56

Caveat: the jackknife covariance doesn't converge. The PSF-error field is coherent beyond 5°.

  • Merging cells: grouping jackknife cells into contiguous groups keeps raising the ρ variance. First-bin ρ1 rises 2.6×, 3.8× and 6.4× at 200, 100 and 50 groups. Random groups of the same sizes stay at 1.0×.
  • Where it sits: the influence concentrates on the NGC east edge (RA 255–285°, Dec 30–60°). That is the smk_early campaign, observed earliest.
  • Consequence: absolute PTEs depend on the patch count, at about the 2× level. The coefficients and Δχ² are stable. Settling the fit quality needs simulations with campaign-scale PSF-error modes.

Open question: is β(T_PSF) physical?

Should β(T_PSF) be the fiducial ξ_sys model?

  • The prediction: leakage that scales as β ∝ T_PSF/T_gal predicts β₁ ≈ β₀.
  • The fit: in the slope fit (bound 9, masked, joint EIV, 400 patches), β₀ = 1.37 ± 0.10 and β₁ = 1.98 ± 0.37. So β₁ − β₀ = 0.61 ± 0.33, with their correlation of 0.47 included: consistent with proportional at 1.8σ, leaning steeper.
  • Constant β, for comparison: 1.28 ± 0.10 on the same selection, and about 1.64 on the full-area clean sample.
  • Subsets: the step model's β ≈ 0 in the best-seeing quartile is steeper than proportional. Fitting the best-seeing subset directly gives β = 1.37 ± 0.12, between the two.

Proposal: make β(T_PSF) the fiducial, with α and η constant, and treat the difference from constant β as a systematic. That adds u·δe templates to ξ_sys. #454 measures their auto- and cross-correlations with e_PSF, δe and the size term, behind an option that is off by default.

Figures

M33 drives the ρ3/ρ4 swings; masking it alone makes them smooth:
rho before/after mask

τ residuals on bound 9 at 400 patches. The β slope (orange) removes the coherent −2 to −4.6σ τ2 miss from 8′ to 100′. An α slope (green) is not supported:
tau residuals

Leave-one-cell-out influence after masking, concentrated on the NGC east edge (smk_early):
influence maps

The full report (the χ² ladder and the alternatives ruled out) is available from Cail. Only ρ, τ and α/β/η were used; no cosmology was unblinded.

Activity

  1. changed the title [-]PSF-leakage fit on the full v2 area: three causes of χ² 171/57, and β(T_PSF)[/-] [+]PSF-leakage fit fails on the full v2 area: three causes, and is β(T_PSF) physical?[/+] on Nov 1, 2026
  2. cailmdaley commented on Nov 2, 2026

    @cailmdaley
    CollaboratorAuthor

    @sachaguer the Claudes have been really into PSF leakage this weekend, would appreciate your expertise especially about the proposed errors-in-variables fit method and whether the "centering" (removing of additive bias?) for rho statistics is correct. Thank you!

  3. sachaguer commented on Nov 2, 2026

    @sachaguer
    Contributor

    Hi Claudes and @cailmdaley,

    It is difficult to have a full understanding of what is done but here are my thoughts after the first read on the three causes.

    1. Contaminated PSF stars

    Is the high variance region found near M33 is masked in the weak lensing sample. I suppose that there are junks in this area if not and anyway I guess it should be masked. In any case, it is fair to mask this area to compute the $\rho$-statistics as well.

    2. The estimator

    I am skeptical about some of the assertion done here. First, the covariance of the $\rho$-statistics is taken into account in the least-square fitting. The $\rho$- and $\tau$-statistics are sampled from their covariance before running the estimator and that produces the posterior. In the case of this linear problem, this is completely equivalent to running an MCMC with the covariance used in Zhang et al., 2025 (HSC Y3). What is correct, is that the MCMC branch of the fit does not account for the $\rho$'s covariance. In Guerrini et al. (2025), I checked that this does not impact the posterior. Of course this has to be reassessed but I do not think that this should have a major impact given my prior work (except if the covariance has a really funny form).

    Second, regarding the rho introduced to the fit. Claude shows the $\chi^2$ reduced, great. But the number of degrees of freedom also changed. Its number is not easy to predict as the data points in the $\rho$-statistics are correlated. Whatsoever, I expect that if you update this number of degrees of freedom does not show a significant improvement in the fit. That sounds to me as an unnecessary extra layer of complexity that does not show significant improvement. That being said, if the parameter estimated with this method are significantly different there could some underlying model misspecification we should be puzzled about.

    Third, something mentioned but not clear described by the Claudes is the mean-substraction for the $\tau$-statistics not applied to the $\rho$'s. Does it designate the fact that the galaxy shapes are mean-subtracted before running the measurement and not the star-related quantities? If that is the case, given past discussions we agreed that we should not remove the mean of the PSF related quantities as this should contribute an additive bias. The fact that it changes the estimated parameters seems natural. I do not understand how it would worsen the fit. My recommendation would be to not change this part of the analysis unless a solid case is made regarding that aspect.

    3. $\beta(T_{\rm PSF})$ model

    I think this is an interesting development. Paulin-Henrikson et al., 2008 derived that the response to PSF residuals should scale w.r.t some ratio of the galaxy and PSF size. So the idea is sensible but it requires, according to me, more physical motivation. What I would check is:

    • Try to check if there is some consistency between the derivation of PH08 and this model.
    • The thing that worries me is that the meaningful dependency depends on the size ratio of the galaxy and PSF. But $\beta$ is mostly evaluated at star positions through the $\rho$-statistics so we do not directly sample this ratio.

    Comments

    • The report mentions that $\alpha$ and $\eta$ being negative is unphysical. I am not sure there is anything justifying it. Also, due to the degeneracy, the noise bias could drive $\alpha$ and $\eta$ to negative values but the position of the degeneracy could remain in a perfectly legitimate place (if we assume that there is some part of the parameter space that is unphysical).
    • I looked at the attached map and their does not seem anything weird in the south galactic cap whereas you could see in the earliest PSF residuals map released on the board there was a clear region with weird PSF residuals. Has it been investigated? Has anything weird been found? If so, I would advise to remove this area of the sample for testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions