You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stats: add more functions and hypothesis tests based on summary statistics #1843
The current, generic functions like _tstat_generic don't contain an additional layer that, for example. calculates the standard deviation of the test statistic.
We could add some "usable" functions that can be used just with the summary statistics from the data, (nobs, mean, std) for each sample.
For scipy, one question is how to refactor the tests to avoid code duplication, and it will add many extra functions if this is done for a larger number of tests.
The specific function here is just a few lines but the pattern would have a much larger range.
Nobody submitted a PR to scipy.
For statsmodels the case is similar, but we already have some basic generic functions for internal code reuse. But they are not designed for end users and we don't have wrapper functions for them.
Activity
josef-pkt commentedon Jul 23, 2014
a quick try:
question: why does std not require ddof=1 to agree with the existing functions?
Gitman-code commentedon Jul 23, 2014
Ideally this would lead to a function similar to scipy.stats.ttest_ind except with μ, σ and N for each array as the input instead of the array itself.
jseabold commentedon Nov 25, 2014
I think this should be added as a simple function to
scipy.stats. Surprised it doesn't exist.josef-pkt commentedon Nov 25, 2014
For scipy, one question is how to refactor the tests to avoid code duplication, and it will add many extra functions if this is done for a larger number of tests.
The specific function here is just a few lines but the pattern would have a much larger range.
Nobody submitted a PR to scipy.
For statsmodels the case is similar, but we already have some basic generic functions for internal code reuse. But they are not designed for end users and we don't have wrapper functions for them.