Skip to content

use unfiltered spectra of the same realisations as filtered sims instead of theory for TF estimation - #103

Open
susannaaz wants to merge 1 commit into
mainfrom
sa/tf-unfiltered-reference
Open

susannaaz wants to merge 1 commit into
mainfrom
sa/tf-unfiltered-reference

Conversation

@susannaaz

Copy link
Copy Markdown
Collaborator

since #90 (6191a79, “alternative definition of transfer function”), and independently of TF orderings (MT, TM) additions, the TF is estimated using the filtered sims against the theory input spectrum (power_law_c_ell), not against the unfiltered spectra of the same realisations. As a result, the sample variance of the TF sims no longer cancels, and the TFs come out noisier bin to bin.

Here re-instated option to use the unfiltered sims.

@kwolz kwolz left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good! I'd be interested in how much the TF error bars shrink as a result of this, using e.g. 10 or 20 sims.

@adrien-laposta adrien-laposta left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a better way of implementing this change with less disruption to the code.
There are two functions to estimate the TF with the two assumptions in coupling_utils.py

  • get_transfer_with_error_MT
  • get_transfer_with_error_TM
    Both assume that we have a model for the input spectra.

The function we were using before (using measured unfiltered spectra) still exists and is get_transfer_with_error. In master, it is a legacy function (not used anymore).

What I suggest for this new feature

  • Adding another option for tf_ordering (e.g. 'TM_sim' or anything else) that will just pick this old function to estimate the TF
  • This will avoid having a new entry in the paramfile and minimize modifications in the core functions in coupling_utils.py

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.

3 participants