Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
Test
distr =
Test
{
- testSignificance :: !( PValue Double )
- testStatistics :: ! Double
- testDistribution :: distr
- isSignificant :: PValue Double -> Test d -> TestResult
- data TestResult
- significant :: Bool -> TestResult
-
data
PositionTest
- = SamplesDiffer
- | AGreater
- | BGreater
Documentation
Result of statistical test.
Test | |
|
Instances
Functor Test Source # | |
Eq distr => Eq ( Test distr) Source # | |
Data distr => Data ( Test distr) Source # | |
Defined in Statistics.Test.Types gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Test distr -> c ( Test distr) Source # gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c ( Test distr) Source # toConstr :: Test distr -> Constr Source # dataTypeOf :: Test distr -> DataType Source # dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c ( Test distr)) Source # dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c ( Test distr)) Source # gmapT :: ( forall b. Data b => b -> b) -> Test distr -> Test distr Source # gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Test distr -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Test distr -> r Source # gmapQ :: ( forall d. Data d => d -> u) -> Test distr -> [u] Source # gmapQi :: Int -> ( forall d. Data d => d -> u) -> Test distr -> u Source # gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Test distr -> m ( Test distr) Source # gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Test distr -> m ( Test distr) Source # gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Test distr -> m ( Test distr) Source # |
|
Ord distr => Ord ( Test distr) Source # | |
Defined in Statistics.Test.Types compare :: Test distr -> Test distr -> Ordering Source # (<) :: Test distr -> Test distr -> Bool Source # (<=) :: Test distr -> Test distr -> Bool Source # (>) :: Test distr -> Test distr -> Bool Source # (>=) :: Test distr -> Test distr -> Bool Source # |
|
Show distr => Show ( Test distr) Source # | |
Generic ( Test distr) Source # | |
ToJSON d => ToJSON ( Test d) Source # | |
FromJSON d => FromJSON ( Test d) Source # | |
Binary d => Binary ( Test d) Source # | |
NFData d => NFData ( Test d) Source # | |
Defined in Statistics.Test.Types |
|
type Rep ( Test distr) Source # | |
Defined in Statistics.Test.Types
type
Rep
(
Test
distr) =
D1
('
MetaData
"Test" "Statistics.Test.Types" "statistics-0.16.1.2-IkOne9g3oJ1vhHVSRLPUO" '
False
) (
C1
('
MetaCons
"Test" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"testSignificance") '
NoSourceUnpackedness
'
SourceStrict
'
DecidedStrict
) (
Rec0
(
PValue
Double
))
:*:
(
S1
('
MetaSel
('
Just
"testStatistics") '
NoSourceUnpackedness
'
SourceStrict
'
DecidedStrict
) (
Rec0
Double
)
:*:
S1
('
MetaSel
('
Just
"testDistribution") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
distr))))
|
isSignificant :: PValue Double -> Test d -> TestResult Source #
Check whether test is significant for given p-value.
data TestResult Source #
Result of hypothesis testing
Significant |
Null hypothesis should be rejected |
NotSignificant |
Data is compatible with hypothesis |
Instances
significant :: Bool -> TestResult Source #
significant if parameter is
True
, not significant otherwise
data PositionTest Source #
Test type for test which compare positional (mean,median etc.) information of samples.
SamplesDiffer |
Test whether samples differ in position. Null hypothesis is samples are not different |
AGreater |
Test if first sample (A) is larger than second (B). Null hypothesis is first sample is not larger than second. |
BGreater |
Test if second sample is larger than first. |