statsmodels / statsmodels/statsmodels

stats inconsistent test options

Open
#847 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

comp-stats type-cleanup type-enh
Dominant language
Python
Stars
11.6k
Forks
3.6k
Avg merge
7h 37m
Merged PRs (30d)
96

Description

weightstats is growing more options, functions and method.

  • Since I wrote them with different applications in mind, some options still vary across functions.
  • There is also still some duplicate code that should be refactored.
  • across modules the naming for the alternative is not consistent (e.g. 2-sided, two-sided), sometimes allowing aliases
  • ttest use two or three functions, ztest uses only one function for one-sample, two independent samples, and two paired sample.

latest changes are in PR #784
changes and addition for normal distributions where partially based on being able to use them for testing proportion, correlation, and other statistics where we use a normal approximation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #784 and the current weightstats implementations, especially the ttest and ztest functions and their options. Compare option names, aliases, function coverage, and duplicated code across the modules. Done means the inconsistencies are resolved and the supported one-sample, independent-sample, and paired-sample cases remain covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.