Calculate variance of data.
Installation
$ npm install stats-variance
Usage
var variance = ; var data = 1 2 3 4 5 6 7 8 9 10; variance; // → 8.25
API
calc(data)
data
Type: array
The data to be analysed; an array of numbers considered as the entire population. The following formula is used for calculation http://en.wikipedia.org/wiki/Variance#Population_variance.
License
MIT © Michał Jezierski