统计假设检验工具包(秩和检验/t检验)
Project description
MyStats - 统计计算工具包
一个用于统计假设检验的Python工具包,支持秩和检验、t检验等常用统计方法。
安装
pip install -e .
功能列表
核心模块
- 秩和检验 (RankSumTest)
- 自动处理小样本(查表法)和大样本(正态近似)
- 支持自定义显著性水平
- t检验 (t_tests)
- 独立样本t检验实现
- 支持双尾检验
数据预处理
merge_groups(): 合并实验组/对照组数据assign_ranks(): 自动分配平均秩process_and_rank(): 完整数据处理流水线
快速开始
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+
- 标准库依赖:
jsonpathlibos
贡献指南
- 提交Issue描述问题
- Fork仓库并创建特性分支
- 提交Pull Request
作者
许可证
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-0.1.0.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mystats_zzh-0.1.0.tar.gz.
File metadata
- Download URL: mystats_zzh-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def295caaf4740a616be288623bcde79e4a6d94788d26341f56745006a60c168
|
|
| MD5 |
c3ca34a82fa1e1acdf6f944f78fc61cd
|
|
| BLAKE2b-256 |
ef893e551ba9b435a71b2b15fc9719634385a18490304bf99e58c286fa85d744
|
File details
Details for the file mystats_zzh-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mystats_zzh-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be46c155bd8f866333f8fb501fc6db8d3a60114ea3619ab990eb49c3c604446e
|
|
| MD5 |
fedb10e4c4e838321790cac700bc54e1
|
|
| BLAKE2b-256 |
2db6757e150c2b980f3327603078cec78d2a5f416f5e4189019db0f00d11edcd
|