Pareto
GSL powered OCaml statistics library
Install / Use
/learn @superbobry/ParetoREADME

pareto is an OCaml statistics library, based on GSL gsl, which provides:
- Common statistical tests for significant differences between samples.
- Uniform interface for common discrete and continuous probability distributions.
- Sample statistics, quantile estimation, kernel density estimation.
- Resampling methods: jackknife, BCa bootstrap.
Note: before using pareto make sure you understand some of the subtleties
in OCaml GSL bindinds. See section ERROR HANDLING in GSL README README.
Installation
Make sure you have gsl-ocaml, or install it with OPAM:
$ opam install gsl
Then go with the usual OASIS routines:
$ ./configure
$ make # And you're done!
Examples (optional)
To build examples:
$ ./configure --enable-examples
$ make
Here's a simple t-test:
open Statistics
let open Distributions.Normal in
let v = sample ~size:10 standard in
let open Tests in
let { test_statistic = t; test_pvalue } =
T.one_sample v ~mean:0. ~alternative:TwoSided ()
in begin
printf "One-sample T-test for true mean = 0.0\n";
printf "t = %f, P-value: %f\n" t test_pvalue;
end
Documentation (optional)
To build API documentation:
$ make doc
Tests (optional) 
To build and run tests:
$ ./configure --enable-tests
$ make test
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR
