Skip to main content

统计假设检验工具包(秩和检验/t检验)

Project description

MyStats - 统计计算工具包

Python Version License

一个用于统计假设检验的Python工具包,支持秩和检验、t检验等常用统计方法。

安装

pip install -e .

功能列表

核心模块

  1. 秩和检验 (RankSumTest)
    • 自动处理小样本(查表法)和大样本(正态近似)
    • 支持自定义显著性水平
  2. t检验 (t_tests)
    • 独立样本t检验实现
    • 支持双尾检验

数据预处理

  • merge_groups(): 合并实验组/对照组数据
  • assign_ranks(): 自动分配平均秩

快速开始

from mystats import RankSumTest, t_tests

# 秩和检验示例
test = RankSumTest()
result = test.execute([10,12,15], [8,9,11])
print(result)

# t检验示例
t_result = t_tests([20,22,24], [18,19,21])
print(t_result)

依赖项

  • Python 3.8+
  • 标准库依赖:
    • json
    • pathlib
    • os

贡献指南

  1. 提交Issue描述问题
  2. Fork仓库并创建特性分支
  3. 提交Pull Request

作者

zzh zhaochenxian@outlookk.com

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mystats_zzh-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mystats_zzh-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file mystats_zzh-1.0.0.tar.gz.

File metadata

  • Download URL: mystats_zzh-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for mystats_zzh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d3daf23e338ff7583b17fb20b166af13e13eddda566f525e2a790fa9d3e52740
MD5 b54dabe26d8175a3d2803842f90cbec4
BLAKE2b-256 6191d450483f1467e053d17809f27f6a9e28b554e903598fee3e52298183b129

See more details on using hashes here.

File details

Details for the file mystats_zzh-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mystats_zzh-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for mystats_zzh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d334f44563528ebbf20f8f859e035d22ef06716daabb816eac748d4bbfe3b8dd
MD5 3a1372acbeec58e0255d157703e2df0a
BLAKE2b-256 91268d4e606f8dc1bf62c4dc165fd5c29541b855945463fb6992342408f5450e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page