{"id":18710753,"url":"https://github.com/ludwigandreas/sample_calculator","last_synced_at":"2025-11-09T13:30:19.402Z","repository":{"id":153324708,"uuid":"621827443","full_name":"LudwigAndreas/sample_calculator","owner":"LudwigAndreas","description":"Little sample calculator written on python using scipy","archived":false,"fork":false,"pushed_at":"2023-04-25T18:55:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T08:09:28.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LudwigAndreas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-31T13:24:42.000Z","updated_at":"2023-03-31T13:59:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"35c70471-a1f0-4248-8517-4137fc8d76ea","html_url":"https://github.com/LudwigAndreas/sample_calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Fsample_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Fsample_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Fsample_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Fsample_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LudwigAndreas","download_url":"https://codeload.github.com/LudwigAndreas/sample_calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576294,"owners_count":19662108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:35:34.444Z","updated_at":"2025-11-09T13:30:19.342Z","avatar_url":"https://github.com/LudwigAndreas.png","language":"Python","readme":"# Little sample calculator\n\nLittle sample calculator written on python using scipy. It may calculate standard metrics for samples, test one-sample, two-samples and multiple-samples hypotheses.\n\n## Installation\n\n    git clone https://github.com/LudwigAndreas/sample_calculator.git\n\nNote that you will need to have the required dependencies installed, as listed in the `requirements.txt` file. You can install them using the following command:\n\n    pip install -r requirements.txt\n\n\n## Usage\n\n```\n$ python3 main.py [-h] -s SAMPLES [SAMPLES ...] [-a ALPHA] [-g [GENERAL_AVERAGE ...]]\n\noptions:\n  -h, --help            show this help message and exit\n  -a ALPHA, --alpha ALPHA\n                        set alpha value for tests [α]\n  -g [GENERAL_AVERAGE ...], --general_average [GENERAL_AVERAGE ...]\n                        set general average or list of general averages if there is multiply samples [σ²]\n\nRequired named arguments:\n  -s SAMPLES [SAMPLES ...], --samples SAMPLES [SAMPLES ...]\n                        file or files that contains list of samples\n```\nAlternatively, you can start the program using the `start.sh` Bash script provided in the repository. The script will start the program with any command-line arguments you pass to it.\n\nTo use the script, make sure you have execute permission by running `chmod +x start.sh`. Then, you can start the program with the desired arguments by running the following command in the terminal:\n\n```\n./start.sh [-h] -s SAMPLES [SAMPLES ...] [-a ALPHA] [-g [GENERAL_AVERAGE ...]]\n```\n\n\n## Examples\n\n```\n$ python3 main.py -s values_1 -a 0.05\n---  Sample  ---\n  a_1   | Размер выборки :  11\n  x̅_1   | Среднее значение :  13.636\n  s²_1  | Дисперсия выборки :  5.504\n  s_1   | Cр. кв. отклонение выборки :  2.346\n---  One Sample Test  ---\n---  T-test  ---\n H₀: μ₀ = 10\n H₁: μ₀ != 10\n  t_крит        | t критическое :  1.812\n  t_набл        | t наблюдаемое :  4.901\n  p-value       | p-value :  0.001\nЕсть основания для опровержения H₀\n```\n```\n$ python3 main.py -s values_1 values_2 -a 0.05\n---  Sample  ---\n  a_1   | Размер выборки :  11\n  x̅_1   | Среднее значение :  13.636\n  s²_1  | Дисперсия выборки :  5.504\n  s_1   | Cр. кв. отклонение выборки :  2.346\n---  Sample  ---\n  a_2   | Размер выборки :  9\n  x̅_2   | Среднее значение :  9.444\n  s²_2  | Дисперсия выборки :  4.247\n  s_2   | Cр. кв. отклонение выборки :  2.061\n---  Two Sample Test  ---\n---  F-test  ---\n H₀: σ₀ = σ₁\n H₁: σ₀ ≠ σ₁\n  k₁    | k₁ :  10\n  k₂    | k₂ :  8\n  F_крит        | F критическое :  3.347\n  F_набл        | F наблюдаемое :  1.267\nНет оснований для опровержения H₀\n---  T-test  ---\n H₀: μ₀ = μ₁\n H₁: μ₀ ≠ μ₁\n  t_крит        | t критическое :  2.101\n  t_набл        | t наблюдаемое :  3.981\nЕсть основания для опровержения H₀\n```\n```\n$ python3 main.py -s anova_1 anova_2 anova_3 -a 0.05 \n---  Sample  ---\n  a_1   | Размер выборки :  3\n  x̅_1   | Среднее значение :  2.0\n  s²_1  | Дисперсия выборки :  0.667\n  s_1   | Cр. кв. отклонение выборки :  0.816\n---  Sample  ---\n  a_2   | Размер выборки :  3\n  x̅_2   | Среднее значение :  4.0\n  s²_2  | Дисперсия выборки :  0.667\n  s_2   | Cр. кв. отклонение выборки :  0.816\n---  Sample  ---\n  a_3   | Размер выборки :  3\n  x̅_3   | Среднее значение :  6.0\n  s²_3  | Дисперсия выборки :  0.667\n  s_3   | Cр. кв. отклонение выборки :  0.816\n---  Multiple Sample Test  ---\n---  One-way ANOVA test  ---\n H₀: μ₀ = μ₁ = μ₂ = ... = μₙ\n H₁: There will be at least one population mean that differs from the rest\n  x̅     | Общее среднее значение :  4.0\n  a     | Общий размер :  9\n  SSB   | Межгрупповая сумма квадратов :  24.0\n  SSW   | Сумма квадратов внутри групп :  6.0\n  dfb   | Степени свобды между групп :  2\n  dfw   | Степени свобды внутри групп :  6\n  msb   | Средний квадрат отклонения между групп :  12.0\n  msw   | Средний квадрат отклонения внутри групп :  1.0\n  F_крит        | Критическое значение критерия фишера :  5.143\n  F_наб         | Значение критерия фишера :  12.0\nЕсть основания для опровержения H₀\n```\n\n## Contributing\n\nI welcome contributions from anyone who would like to help improve this project. If you'd like to contribute, please follow these guidelines:\n\n* Fork the repository and create your branch from main.\n* Write clear, concise code and comments.\n* Test your changes thoroughly before submitting a pull request.\n* Make sure your code follows the project's coding conventions.\n* Ensure that your pull request includes a clear description of the problem or feature, and how it improves the project.\n* Wait for one of the maintainers to review your code and provide feedback.\n* Once your code has been reviewed and approved, it will be merged into the main branch.\n\nThank you for your interest in contributing to this project!\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.txt file for details.\n\n## Acknowledgments\n\nI would like to thank the following individuals and organizations for their contributions to this project:\n\n* Mukhamedjanova Sofia, for providing valuable feedback during the development process.\n\n## Contact\n\nIf you have any questions, comments, or feedback about this project, you can reach me at:\n\n* Email: ev.sand.raw@gmail.com\n* Telegram: @Ludwig_Andreas\n* GitHub: @LudwigAndreas\n\nI would love to hear from you!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludwigandreas%2Fsample_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fludwigandreas%2Fsample_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludwigandreas%2Fsample_calculator/lists"}