Comments (6)
@maximtrp It is numerically better to use scipy distribution sf
for upper tail pvalues
in cases like this, cdf should be replaced by sf
p_value = 2. * (1. - ss.t.cdf(np.abs(t_value), df = x_len_overall - x_len))
to
p_value = 2. * ss.t.sf(np.abs(t_value), df = x_len_overall - x_len)
1 - cdf is limited in values to floating point precision at 1, while sf in most distribution can compute much smaller tail probabilities.
from scikit-posthocs.
@dyballa
Thanks for giving it a try. What test are you using?
from scikit-posthocs.
@maximtrp With PMCMR, I'm using posthoc.kruskal.conover.test with p.adjust.method="none".
from scikit-posthocs.
@dyballa I've compared the original PMCMR algorithm for Conover's test and my port of it line by line. This is not related to posthocs package. The differences arise on calculating p-values, using SciPy's scipy.stats.t.cdf()
function. Anyway, differences are seen only in extremely small values. Probably, it is related to rounding error. Needs further investigation.
from scikit-posthocs.
@maximtrp Interesting! Thanks, I appreciate your checking this.
from scikit-posthocs.
@josef-pkt Thank you!
from scikit-posthocs.
Related Issues (20)
- Can't Install HOT 1
- Post-hocs test for dataframes with different group / block / y column names break HOT 4
- Question: Post-hoc dunn return non-significant HOT 4
- Rotation of the vertical ticks in the significance matrix. HOT 1
- v0.6.8 in __init__.py HOT 1
- Cannot import under python 2.7 by using Spyder HOT 1
- Significance Plots Colour Bar Breaks Using Matplotlib >= 3.5.0 HOT 1
- Solving ValueError; 'All numbers are identical in mannwhitneyu' HOT 3
- Use posthoc tests to plot critical difference diagram HOT 1
- [Feature request] outlier_gesd to return data even when report=True HOT 1
- Wilcoxon paired test is not really paired HOT 1
- posthoc_tukey yields p-values of 0.900 and 0.100 which are also different to scipy.stats.tukey_hsd HOT 1
- custom comparisons on scikit_posthocs.posthoc_tukey
- posthoc_conover_friedman calculates incorrect p-values HOT 9
- Dunn test incorrect repeating p values after adjustment HOT 1
- Alpha cannot be specified for critical difference diagram HOT 1
- add method argument in posthoc_wilcoxon
- Dunn and missing values HOT 4
- Nemenyi incorrect? HOT 2
- Friedman with Dunn's test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-posthocs.