Skip to content

Unexplainable NFW sampling discrepancy #1023

Open
@EiffL

Description

@EiffL

Hello hello, while writing our own HOD code with @bhorowitz and others we were trying to compare our results to halotools as God's truth, but were finding some residual differences in the 2pt functions that I can't explain.

I have isolated at least one potential thing that could explain our discrepancies, related to NFW sampling of the satellites. And actually, as far as I understand, I seem to be getting inconsistent results within halotools itself depending on whether I sample manually positions with mc_generate_nfw_radial_positions or if I sample satellites for the catalog normally.

I made a minimal demo notebook here. and I'm getting this sort of discrepancy on the radial distribution of satellites :
image

And this amount of difference actually can explain away the differences I'm seeing downstream in the 2pt function.

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