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

Copyright | (c) 2010 Alexey Khudyakov
License | BSD3
Maintainer | bos@serpentine.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell98

Statistics.Distribution.ChiSquared

Description

The chi-squared distribution. This is a continuous probability distribution of sum of squares of k independent standard normal distributions. It's commonly used in statistical tests

Synopsis

- data ChiSquared
- chiSquared :: Int -> ChiSquared
- chiSquaredNDF :: ChiSquared -> Int

# Documentation

data ChiSquared Source #

Chi-squared distribution

Instances

Eq ChiSquared Source # |
Methods (==) :: ChiSquared -> ChiSquared -> Bool # (/=) :: ChiSquared -> ChiSquared -> Bool #
Data ChiSquared Source # |

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ChiSquared -> c ChiSquared #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ChiSquared #

toConstr :: ChiSquared -> Constr #

dataTypeOf :: ChiSquared -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ChiSquared) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ChiSquared) #

gmapT :: (forall b. Data b => b -> b) -> ChiSquared -> ChiSquared #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ChiSquared -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ChiSquared -> r #

gmapQ :: (forall d. Data d => d -> u) -> ChiSquared -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ChiSquared -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ChiSquared -> m ChiSquared #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ChiSquared -> m ChiSquared #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ChiSquared -> m ChiSquared #

Read ChiSquared Source # |
Methods readsPrec :: Int -> ReadS ChiSquared # readList :: ReadS [ChiSquared] # readPrec :: ReadPrec ChiSquared # readListPrec :: ReadPrec [ChiSquared] #
Show ChiSquared Source # |
Methods showsPrec :: Int -> ChiSquared -> ShowS # show :: ChiSquared -> String # showList :: [ChiSquared] -> ShowS #
Generic ChiSquared Source # |
Associated Types type Rep ChiSquared :: * -> * # Methods from :: ChiSquared -> Rep ChiSquared x # to :: Rep ChiSquared x -> ChiSquared #
ToJSON ChiSquared Source # |
Methods toJSON :: ChiSquared -> Value # toEncoding :: ChiSquared -> Encoding # toJSONList :: [ChiSquared] -> Value # toEncodingList :: [ChiSquared] -> Encoding #
FromJSON ChiSquared Source # |
Methods parseJSON :: Value -> Parser ChiSquared # parseJSONList :: Value -> Parser [ChiSquared] #
Binary ChiSquared Source # |
Methods put :: ChiSquared -> Put # get :: Get ChiSquared # putList :: [ChiSquared] -> Put #
ContGen ChiSquared Source # |
Methods genContVar :: PrimMonad m => ChiSquared -> Gen (PrimState m) -> m Double Source #
Entropy ChiSquared Source # |
Methods entropy :: ChiSquared -> Double Source #
MaybeEntropy ChiSquared Source # |
Methods maybeEntropy :: ChiSquared -> Maybe Double Source #
Variance ChiSquared Source # |
Methods variance :: ChiSquared -> Double Source # stdDev :: ChiSquared -> Double Source #
MaybeVariance ChiSquared Source # |
Methods maybeVariance :: ChiSquared -> Maybe Double Source # maybeStdDev :: ChiSquared -> Maybe Double Source #
Mean ChiSquared Source # |
Methods mean :: ChiSquared -> Double Source #
MaybeMean ChiSquared Source # |
Methods maybeMean :: ChiSquared -> Maybe Double Source #
ContDistr ChiSquared Source # |
Methods density :: ChiSquared -> Double -> Double Source # quantile :: ChiSquared -> Double -> Double Source # logDensity :: ChiSquared -> Double -> Double Source #
Distribution ChiSquared Source # |
Methods cumulative :: ChiSquared -> Double -> Double Source # complCumulative :: ChiSquared -> Double -> Double Source #
type Rep ChiSquared Source # |
type Rep ChiSquared = D1 (MetaData "ChiSquared" "Statistics.Distribution.ChiSquared" "statistics-0.13.3.0-Fvkducafmyw9ljEnBhS6Nm" True) (C1 (MetaCons "ChiSquared" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

chiSquared :: Int -> ChiSquared Source #

Construct chi-squared distribution. Number of degrees of freedom must be positive.

chiSquaredNDF :: ChiSquared -> Int Source #

Get number of degrees of freedom