statistics-0.16.1.2: 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 Haskell2010

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

Documentation

data ChiSquared Source #

Chi-squared distribution

Instances

Instances details
Eq ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Data ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Methods

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

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

toConstr :: ChiSquared -> Constr Source #

dataTypeOf :: ChiSquared -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Read ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Show ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Generic ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

ToJSON ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

FromJSON ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Binary ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

ContGen ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Entropy ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

MaybeEntropy ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Variance ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

MaybeVariance ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Mean ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

MaybeMean ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

ContDistr ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

Distribution ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

type Rep ChiSquared Source #
Instance details

Defined in Statistics.Distribution.ChiSquared

type Rep ChiSquared = D1 (' MetaData "ChiSquared" "Statistics.Distribution.ChiSquared" "statistics-0.16.1.2-IkOne9g3oJ1vhHVSRLPUO" ' True ) ( C1 (' MetaCons "ChiSquared" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "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.