-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestCorrelation::test_corr fails on some platforms #195
Comments
Hi @musicinmybrain, Interesting — thanks for opening the issue and helping with this! I think it is definitely a platform-dependent rounding error so we should use Raphael |
Makes sense to me. You could, if you like, add an additional test for |
* Flake8 * Explicit error when y is an empty list in pg.ttest #222 * Add keyword arguments in homoscedasticity function #218 * Bugfix rm_anova and mixed_anova changed the dtypes of categorical columns + added observed=True to all groupby #224 * Update version number in init and setup * Use np.isclose for test_pearson == 1 #195 * Coverage for try..except scipy fallback * Fix set_option for pandas 1.4 * Upgraded dependencies for seaborn and statsmodels * Added Jarque-Bera test in pg.normality #216 * Coverage scipy import error * Use pd.concat instead of frame.append to avoid FutureWarning * Remove add_categories(inplace=True) to avoid FutureWarning * GH Discussions instead of Gitter * Minor doc fix
I’m helping to update the
python-pingouin
package in Fedora Linux. One test,TestCorrelation::test_corr
, is failing on some platforms because what should theoretically be a perfect unity correlation is coming out two or three ulps short:This happens when the tests are executed on an
aarch64
,ppc64le
, ors390x
platform. (Onppc64le
ands390x
, the correlation is 0.9999999999999998.)What do you think? Does this look like this a bug to be fixed somewhere, or should the assertion be loosened to permit a value slightly less than one due to platform-dependent rounding?
The text was updated successfully, but these errors were encountered: