Module

Math.Statistics

Package
purescript-statistics
Repository
jacereda/purescript-statistics

#avgdev Source

avgdev :: Sample -> Maybe Number

Average deviation.

#maximum Source

maximum :: Sample -> Maybe Point

Maximum value.

#minimum Source

minimum :: Sample -> Maybe Point

Minimum value.

#mean Source

mean :: Sample -> Maybe Point

Mean.

#harmean Source

harmean :: Sample -> Maybe Point

Harmonic mean.

#geomean Source

geomean :: Sample -> Maybe Point

Geometric mean.

#median Source

median :: Sample -> Maybe Point

Median.

#modes Source

modes :: Sample -> Array (Tuple Int Point)

Sorted array of modes in descending order.

#mode Source

mode :: Sample -> Maybe Point

Mode.

#centralMoment Source

centralMoment :: Int -> Sample -> Maybe Number

Central moments.

#pvar Source

pvar :: Sample -> Maybe Number

Population variance.

#var Source

var :: Sample -> Maybe Number

Sample variance.

#iqr Source

iqr :: Sample -> Maybe Number

Interquartile range.

#iqr' Source

iqr' :: Sample -> Maybe Number

Interquartile range for sorted data.

#covar Source

covar :: XYSample -> Maybe Number

Sample Covariance.

#covMatrix Source

covMatrix :: Array Sample -> Maybe (Array (Array Number))

Covariance matrix.

#range Source

range :: Sample -> Maybe Number

Range.

#stddev Source

stddev :: Sample -> Maybe Number

Standard deviation of sample.

#stddevp Source

stddevp :: Sample -> Maybe Number

Standard deviation of population.

#pearson Source

pearson :: XYSample -> Maybe Number

Pearson's product-moment correlation coefficient.

#skew Source

skew :: Sample -> Maybe Number

Calculate skew.

#pearsonSkew Source

pearsonSkew :: Sample -> Maybe Number

Calculates pearson skew.

#linreg Source

linreg :: XYSample -> Maybe (Tuple3 Number Number Number)

Least-squares linear regression of /y/ against /x/ for a collection of (/x/, /y/) data, in the form of (/b0/, /b1/, /r/) where the regression is /y/ = /b0/ + /b1/ * /x/ with Pearson coefficient /r/.

#devsq Source

devsq :: Sample -> Maybe Number

Sum of square deviations from their sample mean.

#kurt Source

kurt :: Sample -> Maybe Number

Kurtosis.

#quantile Source

quantile :: Number -> Sample -> Either String Number

Arbitrary quantile q of an unsorted list. The quantile /q/ of /N/ data points is the point whose (zero-based) index in the sorted data set is closest to /q(N-1)/.