Skip to content

Statistics Analysis

Statistics analysis provides classical tests for distributional fit and dependence.

Implemented in openentropy_core::statistics.

What it is: A classical hypothesis-testing toolkit (fit, dependence, and group inference).

Use it for: Formal p-value-driven evidence beyond heuristic forensic checks.

Input shape: One byte stream for core tests; multiple groups/streams for ANOVA/Kruskal/Levene.

  • You want classical hypothesis-test style evidence (p-values) for fit/dependence.
  • You need serial-correlation tests beyond forensic heuristics.
  • You are comparing groups/sessions with ANOVA/Kruskal/Levene workflows.
  • cramer_von_mises: uniformity goodness-of-fit test
  • ljung_box / _default: multi-lag autocorrelation significance test
  • gap_test / _default: interval gap structure against expected random gaps
  • statistics_analysis: one-call orchestrator for the single-stream statistics set
  • anova: parametric group mean test
  • kruskal_wallis: non-parametric group rank test
  • levene_test: equal-variance test across groups
  • power_analysis / _default: approximate power and required sample sizing
  • bonferroni_correction, holm_bonferroni_correction: family-wise correction
Terminal window
openentropy analyze --statistics
openentropy analyze --profile deep
from openentropy import statistics_analysis, ljung_box, anova, holm_bonferroni_correction
stats = statistics_analysis(data)
lb = ljung_box(data)
a = anova([group_a, group_b, group_c])
holm = holm_bonferroni_correction([0.001, 0.02, 0.2], 0.05)