Fix DDH analytic STIGMA delay derivative scaling by T_⊙ - #2032
Open
vhaasteren wants to merge 2 commits into
Open
Fix DDH analytic STIGMA delay derivative scaling by T_⊙ #2032vhaasteren wants to merge 2 commits into
vhaasteren wants to merge 2 commits into
Conversation
Remove a spurious /Tsun factor introduced by the Maple rewrite so analytic ∂delay/∂STIGMA matches finite differences again; add an RMS regression against d_delay_d_param_num.
Contributor
|
I could believe that there was an error there, although I don't have my old derivations handy. But especially if this passes the analytic vs numerical test I think it's likely in good shape. |
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.
Summary
/ Tsun.valuefactors from analytic∂delay/∂STIGMAinDDHmodel.d_delayS_d_par(bug since Maple rewrite733cf704, PINT ≥ 1.0).logNum/geo/dSINI/dSTIGMAso it cannot drift from the delay expression again.test_ddh_stigma_derivative_matches_finite_difference: analytic vsd_delay_d_param_numRMS ratio forSTIGMAandH3(control).The delay itself, ∂/∂
H3, and ELL1H STIGMA derivatives were already correct. This only repairs the analytic DDHSTIGMAdesign-matrix column (too large by 1/T⊙, which had inflated Fisher information and produced absurdly small formal σ(STIG) in GLS fits with freeSTIGMA.Ping here for @dlakaplan, who originally derived the derivative so best to confirm
NANOGrav was not using this derivative in their work. Other PTAs would, but they are using the tempo2 equivalent.
Test plan
pytest tests/test_ddh.py::test_ddh_stigma_derivative_matches_finite_difference -vblack --checkon touched filesMinimal reproduction