Skip to content

v0.3.0

Choose a tag to compare

@sipemu sipemu released this 22 Dec 09:21
· 74 commits to main since this release

What's New in v0.3.0

This release adds comprehensive statistical testing capabilities with 30 new functions for equivalence testing, correlation analysis, and categorical data analysis.

TOST Equivalence Tests (10 functions)

Test for practical equivalence using Two One-Sided Tests procedure:

  • tost_t_test_one_sample - One-sample equivalence test
  • tost_t_test_two_sample - Two-sample equivalence test
  • tost_t_test_paired - Paired samples equivalence test
  • tost_correlation - Correlation equivalence test (Pearson/Spearman)
  • tost_prop_one - One-proportion equivalence test
  • tost_prop_two - Two-proportion equivalence test
  • tost_wilcoxon_paired - Non-parametric paired equivalence test
  • tost_wilcoxon_two_sample - Non-parametric two-sample equivalence test
  • tost_bootstrap - Bootstrap-based equivalence test
  • tost_yuen - Trimmed means equivalence test

Correlation Tests (7 functions)

  • pearson - Pearson correlation with confidence intervals
  • spearman - Spearman rank correlation
  • kendall - Kendall's tau (variants a, b, c)
  • distance_cor - Distance correlation (detects nonlinear relationships)
  • partial_cor - Partial correlation controlling for covariates
  • semi_partial_cor - Semi-partial (part) correlation
  • icc - Intraclass correlation coefficient

Categorical Tests (13 functions)

  • binom_test - Exact binomial test
  • prop_test_one / prop_test_two - Proportion tests
  • chisq_test - Chi-square test for independence
  • chisq_goodness_of_fit - Chi-square goodness of fit test
  • g_test - G-test (likelihood ratio test)
  • fisher_exact - Fisher's exact test for 2x2 tables
  • mcnemar_test / mcnemar_exact - McNemar's tests for paired proportions
  • cohen_kappa - Cohen's Kappa for inter-rater agreement
  • cramers_v - Cramer's V for association strength
  • phi_coefficient - Phi coefficient for 2x2 tables
  • contingency_coef - Contingency coefficient (Pearson's C)

Dependencies

  • Updated anofox-statistics to v0.4.0
  • Updated anofox-regression to v0.4.0

Installation

pip install polars-statistics==0.3.0

Full Changelog: v0.2.0...v0.3.0