numra-stats 0.1.3

Statistics for Numra: probability distributions, descriptive statistics, hypothesis tests (t, chi², KS, ANOVA), regression, correlation.
Documentation

numra-stats

Statistics for the Numra workspace — probability distributions, descriptive statistics, hypothesis tests, regression, and correlation.

Crates.io docs.rs

Eleven distributions (continuous and discrete) with PDF / CDF / quantile / sample, a full descriptive suite, the standard tests (t, chi², KS, ANOVA), and three regression flavors.

Example

use numra_stats::{mean, std_dev, ttest_1samp};

let samples = vec![5.2, 4.8, 5.1, 4.9, 5.0, 5.3, 4.7];

let m = mean(&samples).unwrap();
let s = std_dev(&samples).unwrap();

// One-sample t-test against H0: μ = 5.0 at α = 0.05
let t = ttest_1samp(&samples, 5.0, 0.05).unwrap();
assert!(t.p_value > 0.05);  // Cannot reject H0

What's in this crate

Distributions (each with pdf, cdf, quantile, sample, mean, variance):

  • Continuous: Normal, Uniform, Exponential, GammaDist, BetaDist, ChiSquared, StudentT, FDist, LogNormal
  • Discrete: Poisson, Binomial

Descriptive: mean, median, percentile, variance, std_dev, skewness, kurtosis, covariance, covariance_matrix

Hypothesis testing: ttest_1samp, ttest_ind, ttest_rel, chi2_test, ks_test, anova_oneway, TestResult

Regression: linregress, multiple_linregress, polyfit, RegressionResult

Correlation: pearson_r, spearman_r

Composes with

  • numra-ode — trajectory statistics and Monte Carlo summaries
  • numra-sde — SDE ensemble mean / variance / percentile
  • numra-pde — spatial-distribution statistics at the final time
  • numra-fit — regression as a statistical model
  • numra-special — distribution PDFs back onto gamma, beta, erf

See interop workflows for verified PDE → statistics and stats-sampling → Monte Carlo ODE workflows.

Install

[dependencies]
numra-stats = "0.1"

Or via the umbrella crate:

[dependencies]
numra = "0.1"

Documentation

License

Numra Academic & Research License (Non-Commercial). Academic and research use is free; commercial use requires a separate license — contact contact@spectralautomata.com. See LICENSE.