Module

# Math.Statistics

Package
purescript-statistics
Repository
jacereda/purescript-statistics

### #maximumSource

``maximum :: Sample -> Maybe Point``

Maximum value.

### #minimumSource

``minimum :: Sample -> Maybe Point``

Minimum value.

### #meanSource

``mean :: Sample -> Maybe Point``

Mean.

### #harmeanSource

``harmean :: Sample -> Maybe Point``

Harmonic mean.

### #geomeanSource

``geomean :: Sample -> Maybe Point``

Geometric mean.

### #medianSource

``median :: Sample -> Maybe Point``

Median.

### #modesSource

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

Sorted array of modes in descending order.

### #modeSource

``mode :: Sample -> Maybe Point``

Mode.

### #centralMomentSource

``centralMoment :: Int -> Sample -> Maybe Number``

Central moments.

### #pvarSource

``pvar :: Sample -> Maybe Number``

Population variance.

### #varSource

``var :: Sample -> Maybe Number``

Sample variance.

### #iqrSource

``iqr :: Sample -> Maybe Number``

Interquartile range.

### #covarSource

``covar :: XYSample -> Maybe Number``

Sample Covariance.

### #covMatrixSource

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

Covariance matrix.

### #rangeSource

``range :: Sample -> Maybe Number``

Range.

### #stddevSource

``stddev :: Sample -> Maybe Number``

Standard deviation of sample.

### #stddevpSource

``stddevp :: Sample -> Maybe Number``

Standard deviation of population.

### #pearsonSource

``pearson :: XYSample -> Maybe Number``

Pearson's product-moment correlation coefficient.

### #skewSource

``skew :: Sample -> Maybe Number``

Calculate skew.

### #pearsonSkewSource

``pearsonSkew :: Sample -> Maybe Number``

Calculates pearson skew.

### #linregSource

``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/.

### #devsqSource

``devsq :: Sample -> Maybe Number``

Sum of square deviations from their sample mean.