Statlib
Installation
``bash
npm install statlib
``
Description
Lightweight, zero dependency package aimed to handle statistics found at a college introductory level.
It can compute the following
$3
- min
- max
-
range)
-
quartile -
median -
mode)
- Q1
- Q3
-
IQR -
outliers - sum
-
mean -
variance (sample and population) -
standard deviation (sample and population) -
coefficient of variation -
skewness$3
-
Uniform: pdf, cdf, inverse/quantile
-
Normal: pdf, cdf, inverse/quantile
-
Binomial: pdf, cdf, inverse/quantile
-
T: pdf, cdf, inverse/quantile
-
Chi-squared: pdf, cdf
-
F: pdf, cdf
-
Poisson: pdf, cdf
-
Geometric: pdf, cdf
$3
-
Pearson correlation -
Linear regression$3
-
Z test -
2 sample z test -
1 proportion z test/07%3A_One-Sample_Inference/7.02%3A_One-Sample_Proportion_Test])
-
2 proportion z test -
T test -
2 sample t test -
χ2 test -
χ2 goodness of fit -
Linear regression t test/12%3A_Correlation_and_Regression/12.02%3A_Simple_Linear_Regression/12.2.01%3A_Hypothesis_Test_for_Linear_Regression)
-
2 sample f test -
ANOVA$3
-
Z interval -
T interval -
2 sample z interval -
2 sample t interval -
One proportion z interval/08%3A_Estimation/8.02%3A_One-Sample_Interval_for_the_Proportion)
-
Two proportion z interval/09%3A_Hypothesis_Tests_and_Confidence_Intervals_for_Two_Populations/9.03%3A_Two_Proportion_Z-Test_and_Confidence_Interval)
$3
- Random uniform
- Random normal
- Random binomial
- Random poisson
$3
-
Matrix multiplication -
Transpose -
Inverse$3
-
Factorial -
Choose -
Gamma function -
Gammaln function -
Regularized gamma function -
Lower incomplete gamma function -
Upper incomplete gamma function -
Error function -
Inverse error function -
Beta function -
Incomplete beta function -
Incomplete beta inverse function -
Regularized incomplete beta function -
Regularized incomplete beta inverse function -
PochhammerLicense
See [LICENSE][stdlib-license].
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math/main/LICENSE