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

First draw from ecuyer1988 leads to bias in certain RNG distributions #92

Closed
WardBrian opened this issue Feb 24, 2023 · 6 comments
Closed
Labels

Comments

@WardBrian
Copy link

This was first noted in the Stan project in stan-dev/stan#3167

When using ecuyer1988 as an engine and a "small" seed (less than about 10,000), the first draw of the poisson and uniform distributions is biased high. For example, see:

The behavior seems to improve as you increase the size of the seed, but is still noticeable even for very large seeds (e.g. those drawn form uniform(10_000,1_000_000). In the Poisson distribution, the behavior seems to go away if you have a rate greater than 10

@kotika
Copy link
Contributor

kotika commented Feb 24, 2023 via email

@WardBrian
Copy link
Author

For our use case it is important to be able to discard a huge number efficiently, so options like MINMAX are not very suitable for us

@swatanabe
Copy link
Collaborator

swatanabe commented Feb 24, 2023 via email

@swatanabe
Copy link
Collaborator

swatanabe commented Feb 24, 2023 via email

@swatanabe
Copy link
Collaborator

swatanabe commented Feb 24, 2023 via email

@kotika
Copy link
Contributor

kotika commented Feb 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants