统计假设检验工具包(秩和检验/t检验)
Project description
MyStats - 统计计算工具包
一个用于统计假设检验的Python工具包,支持秩和检验、t检验等常用统计方法。
安装
pip install -e .
功能列表
核心模块
- 秩和检验 (RankSumTest)
- 自动处理小样本(查表法)和大样本(正态近似)
- 支持自定义显著性水平
- 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+
- 标准库依赖:
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.1.tar.gz
(7.5 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.1.tar.gz.
File metadata
- Download URL: mystats_zzh-0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f084d48b615053b725375f819de8bc247ab86f7adc5f151cadd8501338f3df4a
|
|
| MD5 |
4e46064bce9645f8daf67dc0d26d6b2d
|
|
| BLAKE2b-256 |
1cc2f6b50eb9419ec792b0c068536f4b54ac10df912661c36c861705d5590a57
|
File details
Details for the file mystats_zzh-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mystats_zzh-0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34bfb921095da5553c7b34d0dac54b8821a4bbfe97b31823f1e162ac910d462e
|
|
| MD5 |
605aefcb8069254ca569eb542d22bbd2
|
|
| BLAKE2b-256 |
84dfbe9922d6722665702688ca74913f48a3a43c81d57261c77efdf1c29efec4
|