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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mystats_zzh-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0f6bf2fb1979ab346b6402b55a58926c15edf16be8c0cb5a5e0d8adbd8b752eb
MD5 de7e7ea160074d3a8f3df3d0cb3e0441
BLAKE2b-256 0cd5405f60efd3ab8395596c4d22713ff4e77117ff2093a64ed28f5d3998dcc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mystats_zzh-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98279c05c4f8a026b601d783af3aa06466e4237a5f78cbdd3e9729a6e95524f6
MD5 0b21114f8967648da6d5148c1c66e291
BLAKE2b-256 9447c34bc9640c44ea42196976defb2b138878a429e975ab238c33892ff6adc3

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