Repository navigation
BUG: Fix medcouple with ties - #5397
Merged
Merged
Conversation
josef-pkt
reviewed
Nov 22, 2018
| return np.median(spread / standardization) | ||
| h = spread / standardization | ||
| # GH5395 | ||
| if np.any(lower == 0.0): |
Member
There was a problem hiding this comment.
you could create a temp mask to avoid repeated evaluation of lower == 0
Codecov Report
@@ Coverage Diff @@
## master #5397 +/- ##
=========================================
- Coverage 81.73% 81.7% -0.04%
=========================================
Files 569 569
Lines 89836 89840 +4
Branches 10027 10028 +1
=========================================
- Hits 73427 73403 -24
- Misses 14133 14159 +26
- Partials 2276 2278 +2
Continue to review full report at Codecov.
|
Member
|
Implementation looks correct. (But I don't completely like the +1, -1 for ties in the 2004 article) |
bashtage
force-pushed
the
fix-medcouple-ties
branch
from
November 22, 2018 14:53
63432f1 to
7f8dea3
Compare
Fix medcouple behaviour when there is an even number of ties closes statsmodels#5395
bashtage
force-pushed
the
fix-medcouple-ties
branch
from
November 22, 2018 15:07
7f8dea3 to
9984ca7
Compare
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix medcouple behaviour when there is an even number of ties
closes #5395