Some fun with stats modules in javascript
- sum
- prod
- min
- max
- quantile
- Measures of central tendency
- Mean
- Median
- Mode
- Measures of dispersion
- Central Moments
- Variance
- p-Moment
- Uniform
- Random numbers
- Beta
- Binomial
- Cauchy
- Chi-Square
- Exponential
- F
- Gamma
- Geometric
- Hypergeometric
- Logistic
- Log Normal
- Negatvie Binomial
- Normal
- Poisson
- Student t
- Studentized Range
- Uniform
- Weibull
- Wilcoxon Rank Sum statistic
- Wilcoxon Signed Rank Statistic
- Multivariate normal
- Expressions preferred over Expressions
- Avoids hosting problems
- Can be used un functional paradigms
- Optimization of methods based on the tests:
- Performance between sets and for loops are comparable in the absence of 'delete' operation for appending arrays
- Pre-allocate vs non-preallocate array
- Small array's, pre-allocate:
- Large array's pre-allocate <10000,
- https://jsperf.com/preallocating-array/9
- https://jsperf.com/preallocating-array/15
- Max/min operations executed using 'reduce' function since doesn't suffer from stack overflow issues