statistics-0.14.0.2: A library of statistical types, data, and functions

Statistics.Test.Types

Synopsis

# Documentation

data Test distr Source #

Result of statistical test.

Constructors

 Test FieldstestSignificance :: !(PValue Double)Probability of getting value of test statistics at least as extreme as measured.testStatistics :: !DoubleStatistic used for test.testDistribution :: distrDistribution of test statistics if null hypothesis is correct.

Instances

 Source # Methodsfmap :: (a -> b) -> Test a -> Test b #(<\$) :: a -> Test b -> Test a # Eq distr => Eq (Test distr) Source # Methods(==) :: Test distr -> Test distr -> Bool #(/=) :: Test distr -> Test distr -> Bool # Data distr => Data (Test distr) Source # Methodsgfoldl :: (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 :: (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) # Ord distr => Ord (Test distr) Source # Methodscompare :: Test distr -> Test distr -> Ordering #(<) :: Test distr -> Test distr -> Bool #(<=) :: Test distr -> Test distr -> Bool #(>) :: Test distr -> Test distr -> Bool #(>=) :: Test distr -> Test distr -> Bool #max :: Test distr -> Test distr -> Test distr #min :: Test distr -> Test distr -> Test distr # Show distr => Show (Test distr) Source # MethodsshowsPrec :: Int -> Test distr -> ShowS #show :: Test distr -> String #showList :: [Test distr] -> ShowS # Generic (Test distr) Source # Associated Typestype Rep (Test distr) :: * -> * # Methodsfrom :: Test distr -> Rep (Test distr) x #to :: Rep (Test distr) x -> Test distr # NFData d => NFData (Test d) Source # Methodsrnf :: Test d -> () # ToJSON d => ToJSON (Test d) Source # MethodstoJSON :: Test d -> Value #toEncoding :: Test d -> Encoding #toJSONList :: [Test d] -> Value #toEncodingList :: [Test d] -> Encoding # FromJSON d => FromJSON (Test d) Source # MethodsparseJSON :: Value -> Parser (Test d) # Binary d => Binary (Test d) Source # Methodsput :: Test d -> Put #get :: Get (Test d) #putList :: [Test d] -> Put # type Rep (Test distr) Source # type Rep (Test distr) = D1 (MetaData "Test" "Statistics.Test.Types" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" False) (C1 (MetaCons "Test" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "testSignificance") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (PValue Double))) ((:*:) (S1 (MetaSel (Just Symbol "testStatistics") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "testDistribution") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 distr)))))

Check whether test is significant for given p-value.

Result of hypothesis testing

Constructors

 Significant Null hypothesis should be rejected NotSignificant Data is compatible with hypothesis

Instances

 Source # Methods Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestResult -> c TestResult #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestResult #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TestResult) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestResult) #gmapT :: (forall b. Data b => b -> b) -> TestResult -> TestResult #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestResult -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestResult -> r #gmapQ :: (forall d. Data d => d -> u) -> TestResult -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> TestResult -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestResult -> m TestResult #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestResult -> m TestResult #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestResult -> m TestResult # Source # Methods Source # MethodsshowList :: [TestResult] -> ShowS # Source # Associated Typestype Rep TestResult :: * -> * # Methods Source # Methodsrnf :: TestResult -> () # Source # MethodstoJSONList :: [TestResult] -> Value # Source # Methods Source # MethodsputList :: [TestResult] -> Put # type Rep TestResult Source # type Rep TestResult = D1 (MetaData "TestResult" "Statistics.Test.Types" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" False) ((:+:) (C1 (MetaCons "Significant" PrefixI False) U1) (C1 (MetaCons "NotSignificant" PrefixI False) U1))

significant if parameter is True, not significant otherwiser

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

 Source # Methods Source # Methodsgfoldl :: (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 #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 :: (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 # Source # Methods Source # MethodsshowList :: [PositionTest] -> ShowS # Source # Associated Typestype Rep PositionTest :: * -> * # Methods Source # Methodsrnf :: PositionTest -> () # Source # MethodstoJSONList :: [PositionTest] -> Value # Source # Methods Source # MethodsputList :: [PositionTest] -> Put # type Rep PositionTest Source # type Rep PositionTest = D1 (MetaData "PositionTest" "Statistics.Test.Types" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" False) ((:+:) (C1 (MetaCons "SamplesDiffer" PrefixI False) U1) ((:+:) (C1 (MetaCons "AGreater" PrefixI False) U1) (C1 (MetaCons "BGreater" PrefixI False) U1)))