Safe Haskell | None |
---|---|
Language | Haskell2010 |
Statistics.Test.Types
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
Documentation
Result of statistical test.
Constructors
Test | |
Fields
|
Instances
Functor Test Source # | |||||
FromJSON d => FromJSON (Test d) Source # | |||||
Defined in Statistics.Test.Types | |||||
ToJSON d => ToJSON (Test d) Source # | |||||
Data distr => Data (Test distr) Source # | |||||
Defined in Statistics.Test.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Test distr -> c (Test distr) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Test distr) # toConstr :: Test distr -> Constr # dataTypeOf :: Test distr -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Test distr)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Test distr)) # gmapT :: (forall b. Data b => b -> b) -> Test distr -> Test distr # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Test distr -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Test distr -> r # gmapQ :: (forall d. Data d => d -> u) -> Test distr -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Test distr -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Test distr -> m (Test distr) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Test distr -> m (Test distr) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Test distr -> m (Test distr) # | |||||
Generic (Test distr) Source # | |||||
Defined in Statistics.Test.Types Associated Types
| |||||
Show distr => Show (Test distr) Source # | |||||
Binary d => Binary (Test d) Source # | |||||
NFData d => NFData (Test d) Source # | |||||
Defined in Statistics.Test.Types | |||||
Eq distr => Eq (Test distr) Source # | |||||
Ord distr => Ord (Test distr) 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.3.0-AG6JDry1c6uChXJtYH7IMr" '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
Constructors
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.
Constructors
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. |
Instances
FromJSON PositionTest Source # | |||||
Defined in Statistics.Test.Types | |||||
ToJSON PositionTest Source # | |||||
Defined in Statistics.Test.Types Methods toJSON :: PositionTest -> Value # toEncoding :: PositionTest -> Encoding # toJSONList :: [PositionTest] -> Value # toEncodingList :: [PositionTest] -> Encoding # omitField :: PositionTest -> Bool # | |||||
Data PositionTest Source # | |||||
Defined in Statistics.Test.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PositionTest -> c PositionTest # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PositionTest # toConstr :: PositionTest -> Constr # dataTypeOf :: PositionTest -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PositionTest) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PositionTest) # gmapT :: (forall b. Data b => b -> b) -> PositionTest -> PositionTest # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PositionTest -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PositionTest -> r # gmapQ :: (forall d. Data d => d -> u) -> PositionTest -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> PositionTest -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PositionTest -> m PositionTest # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PositionTest -> m PositionTest # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PositionTest -> m PositionTest # | |||||
Generic PositionTest Source # | |||||
Defined in Statistics.Test.Types Associated Types
| |||||
Show PositionTest Source # | |||||
Defined in Statistics.Test.Types Methods showsPrec :: Int -> PositionTest -> ShowS # show :: PositionTest -> String # showList :: [PositionTest] -> ShowS # | |||||
Binary PositionTest Source # | |||||
Defined in Statistics.Test.Types | |||||
NFData PositionTest Source # | |||||
Defined in Statistics.Test.Types Methods rnf :: PositionTest -> () # | |||||
Eq PositionTest Source # | |||||
Defined in Statistics.Test.Types | |||||
Ord PositionTest Source # | |||||
Defined in Statistics.Test.Types Methods compare :: PositionTest -> PositionTest -> Ordering # (<) :: PositionTest -> PositionTest -> Bool # (<=) :: PositionTest -> PositionTest -> Bool # (>) :: PositionTest -> PositionTest -> Bool # (>=) :: PositionTest -> PositionTest -> Bool # max :: PositionTest -> PositionTest -> PositionTest # min :: PositionTest -> PositionTest -> PositionTest # | |||||
type Rep PositionTest Source # | |||||
Defined in Statistics.Test.Types type Rep PositionTest = D1 ('MetaData "PositionTest" "Statistics.Test.Types" "statistics-0.16.3.0-AG6JDry1c6uChXJtYH7IMr" 'False) (C1 ('MetaCons "SamplesDiffer" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AGreater" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BGreater" 'PrefixI 'False) (U1 :: Type -> Type))) |