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

Robust randomness testing #34

Open
sravanareddy opened this issue Sep 24, 2016 · 0 comments
Open

Robust randomness testing #34

sravanareddy opened this issue Sep 24, 2016 · 0 comments
Assignees
Labels

Comments

@sravanareddy
Copy link
Contributor

The current randomness testing assumes a deterministic sequence of calls to random, which is not a reliable assumption. It also can't support arbitrary mappings from random numbers to outcomes.

A better option is to invoke the function several times, and test that the resulting distribution is close to the expected distribution.

We'll want a special test class (say, RandomTest that inherits EvalTest in inspector/testClasses.py) to do this.

@dkreimer Can you try to look into this when you get the chance? There's no hurry since we're using random functions in the next couple of problem sets, but it is a nice feature to have in case we need it later in the term, or for future semesters of rock-paper-scissors. The implementation should be fairly straightforward.

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

2 participants