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

Inconsistent GWB from sampled populations #25

Open
lzkelley opened this issue Apr 18, 2022 · 1 comment
Open

Inconsistent GWB from sampled populations #25

lzkelley opened this issue Apr 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@lzkelley
Copy link
Member

Same issue as noted in #21. There seems to be a systematic offset in the GWB amplitude, where the GWB from a sampled (kalepy.sample_outliers) population is ~10% higher than from the purely continuous, SAM calculation (sam.gwb()). Reason is unclear.

temp

@lzkelley lzkelley added the bug Something isn't working label Apr 18, 2022
@lzkelley
Copy link
Member Author

lzkelley commented Apr 20, 2022

When not sampling any outliers, using all representative points, and also no poisson sampling, then the amplitudes match up nicely. But note the exact level of consistency depends on the number of bins. For example:
(30, 31, 32):
fig1_mismatch

vs.

(150,151,152)
fig1_match

and note also that the overall amplitude is also changing.

With Poisson draws, the match is also pretty good, with the "sampled" version being a little bit further below the SAM/binned calculation. This is probably because weights < 1.0 values are being used when there is no Poisson draw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant