Module

# Math.Statistics.Unsafe

Package
purescript-statistics
Repository
jacereda/purescript-statistics

### #squareSource

``square :: Number -> Number``

### #maximumSource

``maximum :: Sample -> Point``

Maximum value.

### #minimumSource

``minimum :: Sample -> Point``

Minimum value.

### #meanSource

``mean :: Sample -> Point``

Mean.

### #harmeanSource

``harmean :: Sample -> Point``

Harmonic mean.

### #geomeanSource

``geomean :: Sample -> Point``

Geometric mean.

### #medianSource

``median :: Sample -> Point``

Median.

### #modesSource

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

Sorted array of modes in descending order.

### #modeSource

``mode :: Sample -> Point``

Mode for the non-empty sample.

### #skewSource

``skew :: Sample -> Number``

Calculate skew.

### #pearsonSkewSource

``pearsonSkew :: Sample -> Number``

Calculates pearson skew.

### #stddevSource

``stddev :: Sample -> Number``

Standard deviation of sample.

### #stddevpSource

``stddevp :: Sample -> Number``

Standard deviation of population.

### #varSource

``var :: Sample -> Number``

Sample variance.

### #pvarSource

``pvar :: Sample -> Number``

Population variance.

### #var'Source

``var' :: Int -> Sample -> Number``

### #centralMomentSource

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

Central moments.

### #rangeSource

``range :: Sample -> Number``

Range.

### #avgdevSource

``avgdev :: Sample -> Number``

Average deviation.

### #iqrSource

``iqr :: Sample -> Number``

Interquartile range.

### #iqr'Source

``iqr' :: Sample -> Number``

Interquartile range for sorted data.

### #kurtSource

``kurt :: Sample -> Number``

Kurtosis.

### #quantileSource

``quantile :: Number -> Sample -> 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)/.

### #quantile'Source

``quantile' :: Number -> Sample -> Number``

As 'quantile' specialized for sorted data.

### #covMatrixSource

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

Covariance matrix.

### #pearsonSource

``pearson :: Sample -> Sample -> Number``

Pearson's product-moment correlation coefficient.

### #covarSource

``covar :: Sample -> Sample -> Number``

Sample Covariance.

### #linregSource

``linreg :: Sample -> Sample -> 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 -> Number``

Sum of square deviations from their sample mean.