@alejogs4/statistics

1.2.3 • Public • Published

statistics.js

Statistics is a library to get data for describe the behavior of many data sets

The library has one class to get every data of decriptive statistics

  const { DescriptiveStatistics } = require('@alejogs4/statistics')

  const proof = new DescriptiveStatistics(array)

The array should be an array of numbers

DescriptiveStatistics methods

avg

Should return the average of data set

mode

Take your set of data and return the most repeated value

median

Get the value that divide the sample in two parts

percentile

Get the percentile of data set This function need one parameter that is the percent of your percentile

iqr

Get the difference between percentile 75 and percentile 25

range

Get the difference between the max element of your sample and the min element

variance

Get the variance of the data respect their average

standardDeviation

Get the standard deviation that is equal to square root of variance

variationCoefficient

Get how many times the standard deviation is in the average

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.3
    1
    • latest

Version History

Package Sidebar

Install

npm i @alejogs4/statistics

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

9.94 kB

Total Files

6

Last publish

Collaborators

  • alejogs4