HNumeric-0.4.1.0: Haskell Numeric Library with pure functionality, R & MATLAB Syntax.

Safe HaskellSafe
LanguageHaskell2010

HNum.Stats

Synopsis

Documentation

type Coeff a = (a, a) Source #

To contain coefficients of linear regression.

fac :: Integral a => a -> a Source #

Factorial

facStop :: Integral a => a -> a -> a Source #

Factorial with start n,end s

p :: Integral a => a -> a -> a Source #

Permutation

c :: Integral a => a -> a -> a Source #

Combination using permutation

class VecOps v => Statistical v where Source #

Basic Statistics Class for Vector

Minimal complete definition

mean, cov', cov, var, std, se, cor, med, mode, cv, moment, skew, skew', kurt

Methods

mean :: Fractional a => v a -> a Source #

Sample Mean

cov' :: Floating a => v a -> v a -> a Source #

Single Valued covariance

cov :: Floating a => v a -> v a -> Matrix a Source #

Covariance Matrix

var :: Floating a => v a -> a Source #

Sample Variance

std :: Floating a => v a -> a Source #

Sample Standard deviation

se :: Floating a => v a -> a Source #

Standard Error

cor :: Floating a => v a -> v a -> a Source #

Correlation Coefficient

med :: (Ord a, Floating a) => v a -> a Source #

Median

mode :: Eq a => v a -> a Source #

Mode

cv :: Floating a => v a -> a Source #

Coefficient of Variation

moment :: Floating a => a -> v a -> a Source #

Moment

skew :: Floating a => v a -> a Source #

Skewness

skew' :: Floating a => v a -> a Source #

Skewness 2

kurt :: Floating a => v a -> a Source #

kurtosis

Instances

Statistical Vector Source # 

Methods

mean :: Fractional a => Vector a -> a Source #

cov' :: Floating a => Vector a -> Vector a -> a Source #

cov :: Floating a => Vector a -> Vector a -> Matrix a Source #

var :: Floating a => Vector a -> a Source #

std :: Floating a => Vector a -> a Source #

se :: Floating a => Vector a -> a Source #

cor :: Floating a => Vector a -> Vector a -> a Source #

med :: (Ord a, Floating a) => Vector a -> a Source #

mode :: Eq a => Vector a -> a Source #

cv :: Floating a => Vector a -> a Source #

moment :: Floating a => a -> Vector a -> a Source #

skew :: Floating a => Vector a -> a Source #

skew' :: Floating a => Vector a -> a Source #

kurt :: Floating a => Vector a -> a Source #

summary :: (Show a, Floating a) => DataFrame a -> IO () Source #

describe :: (Show a, Floating a, Ord a) => Vector a -> IO () Source #

lm :: Floating a => Vector a -> Vector a -> Coeff a Source #

Least Square Method - (Intercept, Slope)

lineFit :: Floating a => Coeff a -> Vector a -> Vector a Source #

Line Fitting with (Intercept, Slope) & Range of x

rss :: Floating a => Vector a -> Vector a -> a Source #

Residual Sum of Squares

rse :: Floating a => Vector a -> Vector a -> a Source #

Relative Standard Error

sma :: Fractional a => Int -> Vector a -> Vector a Source #

Simple Moving Average

count :: Eq a => a -> [a] -> Int Source #

Count Elements