pramana
pramana (Sanskrit: proof/measure/evidence) -- Statistics and probability library for the AGNOS ecosystem.
Modules
| Module | Description |
|---|---|
distribution |
Probability distributions (Normal, Uniform, Exponential, Poisson, Binomial, Bernoulli, Gamma, Beta, Chi-Squared, Student-t, F, Cauchy, Weibull, Multivariate Normal) |
descriptive |
Descriptive statistics, KDE, correlation matrix, PCA |
hypothesis |
Hypothesis testing (t-tests, chi-squared) and confidence intervals |
regression |
Linear, polynomial, and logistic regression |
bayesian |
Bayesian inference and naive Bayes classification |
combinatorics |
Factorials, permutations, combinations, Stirling approximation |
monte_carlo |
Monte Carlo integration, Metropolis-Hastings MCMC, Gibbs sampling |
markov |
Markov chains, Hidden Markov Models (Forward, Viterbi, Baum-Welch) |
timeseries |
Time series: moving average, exponential smoothing, autocorrelation, ARIMA |
Quick Start
use ;
// Descriptive statistics
let data = ;
let m = mean.unwrap;
let s = std_dev.unwrap;
// Fit and sample from a normal distribution
let normal = new.unwrap;
let mut rng = new;
let sample = normal.sample;
Building
MSRV
Rust 1.89
License
GPL-3.0-only. See LICENSE.