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

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, cor

Methods

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

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 #

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

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

Correlation Coefficient

Instances

 Source # Methodsmean :: 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 #cor :: Floating a => Vector a -> Vector a -> a 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