TestType should offer choice between two-tailed, right-tail or left-tail test #58

Closed
chris-taylor opened this Issue Dec 18, 2013 · 2 comments

Projects

None yet

2 participants

@chris-taylor

At the moment the TestType is

data TestType = OneTailed
              | TwoTailed

I think it makes more sense to be

data TestType = LeftTailed
              | RightTailed
              | TwoTailed

so that e.g. in a t-test you can specify H1 to be mu /= 0, mu < 0 or mu > 0.

The workaround at the moment is to supply OneTailed to the test, and G.map negate v over the input sample.

@Shimuuar
Collaborator

Yes, you're right on this one. However it's not only problem with current API for statistical tests (see #25 for example). It need big rewamping and I would rather do it in one go.

I'll try to summarize curent sate of statisticsal tests later.

@Shimuuar
Collaborator

Fixed in confidence branch.

@Shimuuar Shimuuar closed this Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment