Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outlying points in \ell = 4 multipole #665

Open
isands17 opened this issue Feb 24, 2022 · 3 comments
Open

Outlying points in \ell = 4 multipole #665

isands17 opened this issue Feb 24, 2022 · 3 comments

Comments

@isands17
Copy link

Describe the bug

There are several weird features of the power spectrum multipoles when estimated using FFTPower: the first couple of \ell = 4 points seem too large in magnitude (see plot below). These features persist even after averaging over the poles from many different catalogs– the attached plot is for 50 simulations, but it appears for several hundred simulations, with higher values of nmesh (up to nmesh = 1024) as well.

Steps To Reproduce
My script is attached. I generate a lognormal catalog, add RSD, remove any galaxies that fall beyond the edges of the box, and then call FFTPower.

Actual behaviour
The \ell = 4 pole has a couple of outlying points at large scales (small k).

Expected behaviour
\ell = 4 multipole points closer to 0.

Screenshots

Version
3.15


If you suspect the problem is related to a dependency (e.g. Corrfunc, pmesh, or mcfit), then it is useful to report the version of that dependency as well (replacing nbodykit with the package name).

Additional context

This is a simplified version of code for a project to estimate wide-angle effects; the \ell = 4 outliers also occur when using ConvolvedFFT on a catalog with all of the galaxies shifted in the z direction to approximate a fixed LOS.

FFTPower_Debugging
debugFFTPower.py.zip

@isands17
Copy link
Author

isands17 commented Mar 3, 2022

Hi, I just wanted to follow up on this bug. Let me know if there's any other information I can provide. Thanks so much!

@rainwoodman
Copy link
Member

rainwoodman commented Mar 5, 2022

If this affects FFTPower, then the only relevant dependency is pmesh. It is relatively simple, and thus I don't think the error is in the transformations. My recollection on this is that the few large scale modes have very very few number of samples in the bin.

Also, the bin-center may not be very well pinned to the 'optimal' location -- did you plot using the bin center or the average k in the bin? I recall the average k in the bin is computed, but don't recall how to get it. If the plot is using the center of the bin then we will have a bias that scales up with bin_center - , and it won't go away with more samples.

This bias will shrink as you increase the bin size (hence number of samples in a bin) Did you check if changing the bin size this bias goes away faster?

@adematti
Copy link
Collaborator

adematti commented Mar 8, 2022

Hi,
Indeed, this is probably just the effect of low (k, mu) sampling at k < a couple of times the fundamental frequency. This can be forward-modelled, by multiplying the theory by the (relative) number of modes in fine (k, mu) bins, see e.g. Sec 5.1 of https://arxiv.org/pdf/1607.03150.pdf.

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

No branches or pull requests

3 participants