statinfer
statinfer is a JavaScript and TypeScript package for statistical inference: hypothesis tests with confidence intervals, checked against SciPy and statsmodels. It works in Node.js and in the browser, and has no dependencies.
Install it from npm:
npm install statinferEach demo runs statinfer in your browser, explains the result in plain language, and shows the JavaScript code that reproduces it.
Which test should I use?
Answer the following questions, and this wizard will try to point you in the right direction:
What kind of data do you have?
Demos
- t-test: Compare means: one sample against a target, paired measurements, or two groups.
- proportion test: Compare proportions: one group against a target, or two groups against each other.
- correlation test: Measure how strongly two measurements move together, with Pearson's or Spearman's method.
- chi-square test: Test counts in categories: whether two factors are related, or whether counts match expected proportions.
- ANOVA: Compare the averages of three or more groups at once.
- Fisher's exact test: Test a 2×2 table of counts exactly, even when the counts are small.