`axis` option for `stats.tmean` do not appear to be working as expected
See original GitHub issueMy issue is about (see title)
Reproducing code example:
import scipy as sp
import numpy as np
r = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3]])
print(sp.stats.tmean(r, axis=1))
print(sp.stats.tstd(r, axis=1))
Output:
2.0
[0. 0. 0.]
Expectation:
[1.0, 2.0, 3.0]
[0., 0., 0.]
Scipy/Numpy/Python version information:
1.4.1 1.18.1 sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
scipy.stats.ttest_1samp — SciPy v1.9.3 Manual
This is a test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to...
Read more >scipy.stats.ttest_1samp — SciPy v1.11.0.dev0+1141.46811be ...
This is a test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to...
Read more >scipy.stats.stats — Elephant 0.7.0 documentation
A few extra functions that don't appear in the list below can be found by ... axis : int or None, optional Axis...
Read more >What does axis in pandas mean? - python - Stack Overflow
DataFrame , axes work the same way as in numpy.array s: axis=0 will apply sum() or any other reduction function for each column....
Read more >Understanding Bland Altman analysis - PMC - NCBI
In 1983 Altman and Bland (B&A) proposed an alternative analysis, ... The B&A plot method only defines the intervals of agreements, it does...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @siddhantwahal, please go for it!
This is still a bug that makes tmean unusable for intended applications.