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

Freeze random seed #5

Open
keithw opened this issue Apr 22, 2014 · 0 comments
Open

Freeze random seed #5

keithw opened this issue Apr 22, 2014 · 0 comments

Comments

@keithw
Copy link
Contributor

keithw commented Apr 22, 2014

It might be a good idea to fix the random seed used for the 250,000 realizations of the simulation, in case readers are interested in reproducing exactly the numbers reported on the NYT Upshot Web site.

I have tried with today's data and cannot quite match the figures on the Web site. For example, even after trying several times, I can't get up to >88.5% for New Hampshire. (The public figure is 89.)

But there is some run-to-run slop that comes from the randomness, and it would be easier to debug if I knew I was using the same random seed as the public figures.

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

1 participant