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

Trait for significance testing #5

Open
larsgw opened this issue Mar 26, 2021 · 0 comments
Open

Trait for significance testing #5

larsgw opened this issue Mar 26, 2021 · 0 comments
Labels
contributing: help wanted Extra attention is needed topic: api Bugs and feature requests regarding the api.

Comments

@larsgw
Copy link
Owner

larsgw commented Mar 26, 2021

I was thinking of adding a trait like FrequentistTest:

trait FrequentistTest {
  fn p_value(&self) -> f64;
}

It would automatically support something like is_significant(a: f64). However, mosts tests so far (and probably most, if not all tests in the future) will produce an estimate that lies somewhere on a distribution. At that point it might make more sense to have the trait require (f64, T) where T: ContinuousCDF and have the trait deal with alternative hypotheses (#1).

@larsgw larsgw added contributing: help wanted Extra attention is needed topic: api Bugs and feature requests regarding the api. labels Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributing: help wanted Extra attention is needed topic: api Bugs and feature requests regarding the api.
Projects
None yet
Development

No branches or pull requests

1 participant