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

Copyright(c) 2010 Alexey Khudyakov
LicenseBSD3
Maintainerbos@serpentine.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Statistics.Distribution.ChiSquared

Contents

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

Documentation

data ChiSquared Source #

Chi-squared distribution

Instances

Eq ChiSquared Source # 
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 # 
Show ChiSquared Source # 
Generic ChiSquared Source # 

Associated Types

type Rep ChiSquared :: * -> * #

ToJSON ChiSquared Source # 
FromJSON ChiSquared Source # 
Binary ChiSquared Source # 
ContGen ChiSquared Source # 
Entropy ChiSquared Source # 
MaybeEntropy ChiSquared Source # 
Variance ChiSquared Source # 
MaybeVariance ChiSquared Source # 
Mean ChiSquared Source # 
MaybeMean ChiSquared Source # 
ContDistr ChiSquared Source # 
Distribution ChiSquared Source # 
type Rep ChiSquared Source # 
type Rep ChiSquared = D1 (MetaData "ChiSquared" "Statistics.Distribution.ChiSquared" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" True) (C1 (MetaCons "ChiSquared" PrefixI True) (S1 (MetaSel (Just Symbol "chiSquaredNDF") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

chiSquaredNDF :: ChiSquared -> Int Source #

Get number of degrees of freedom

Constructors

chiSquared :: Int -> ChiSquared Source #

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

chiSquaredE :: Int -> Maybe ChiSquared Source #

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