The interface does not explain Mann-Whitney-U
Categories
(Testing :: PerfCompare, defect, P1)
Tracking
(Not tracked)
People
(Reporter: pbone, Assigned: kala)
References
(Blocks 1 open bug)
Details
(Whiteboard: [pcf])
The user interface doesn't do enough to explain what the various results from Mann-Whitney-U are, it suggests what they mean but I need something more concrete. Partly what I want to answer is "by what degree did my result get better or worse?". I realise I could "just google it" but it'd be ideal if the user interface could explain it. Or at least give me a column with the magnitude of the difference.
I'm looking at this page: https://perf.compare/compare-results?baseRev=f718ed4839fe185875d6843aaecda056636c71d2&baseRepo=try&newRev=9f6623d51e773645a85cfd563232d548a74a2625&newRepo=try&framework=13&test_version=mann-whitney-u
"Cliff’s Delta quantifies the magnitude of the difference between Base and New values."
I know "magnitude of the difference", but what happens when it quantifies it? I'm pretty sure that what I actually want is the magnitude of the difference. My result is 2.07% better (the magnitude of difference between means? from the t-test) and has a Cliff's Delta of 0.8. I don't know what to do with Cliff's Delta or if it can help.
I'm happy with "Significant" and "Not significant" and I think I understand p-value. Although I would be happier if it put it this in common terms like "..a p-value of less than 0.05 meaning that a significant result... actually I'm not sure I can explain it. Something about there being a 5% chance that the difference between the means is not true. (but I'm fuzzy on the "not true" part).
I'm lost again when it comes to Effect Size. and this is why I filed the bug. Because I looked at this and thought Woah, I made Firefox 10% faster! But when I switch to t-test it's 2.07%. So I was expecting it to have something to do with the difference between the distributions. When I hover it it says "An improvement or regression being shown here means that the effect size is meaningful, and the difference has a significant p-value." I'm afraid it's not very meaningful to me.
In the UI I'd like some more common-language descriptions of what these things mean, probably reintroduce something that shows the magnitude of the difference. Outside of the UI, in documentation and/or an announcement, it might be helpful to explain why we're moving from Student's T Test to Mann-Whitney-U.
Thanks.
Updated•9 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
Hi Paul, I hear your concerns. We have a bug in progress that will add a link to the perfcompare docs in the app's banner. We also have a bug to update the documentation, including creating a section for interpreting the Mann-Whitney-U results. As for the tool-tips, we will review the text and make sure it's more common-language.
| Assignee | ||
Updated•9 months ago
|
Updated•9 months ago
|
| Assignee | ||
Comment 2•8 months ago
|
||
Hi Paul, the latest version of perfcompare is now live; the tooltips contain more details about the MWU columns. We've also update the docs with updated information. Please review and let me know if this satisfies your issue.
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
| Reporter | ||
Comment 3•7 months ago
|
||
This seems good, I'm going to write my impressions as I explore:
MD% - I noticed that this is difference between medians while the base and new columns show means. If I didn't expore the tool tip carefully I might have missed that - but I don't really know what could be done about it unless the Base and New columns were also median, but that might not be as valid/useful. It's not a problem, it's just "interesting".
Status - The tool tip makes sense. I wouldn't say I "understand" p-values, but I've heard of them and know what they're used for so this is good. I think it gives the right amount of detail. Is the p-value given by Mann-Whitney-U? Is it worth saying so and giving the actual value. This may be too much information for me and lead to confusion, but it might be what someone nerdy enough wants to know.
CD - After reading the tooltip I felt like I still needed more information. The link there to the wikipedia article was perfect, in particular the formula.
CLES - It mostly makes sense, but I'm looking at a "higher is better" result with a 33% CLES. I'm not sure how to turn that into common language, is it:
- A 33% chance my new score is larger,
- A 100-33 = 67% chance my new score is larger (foreshadowing, I think this is it).
- A 33% chance my new score is smaller (I think that's the same as #2)
...
So I'll look at the documentation. Hrm, still not quite getting it. That lead me to a wikipedia link and the passage: "At the end of the study, the outcome is rated into a score, for each individual (for example on a scale of mobility and pain, in the case of an arthritis study), and then all the scores are compared between the pairs. The result, as the percent of pairs that support the hypothesis, is the common language effect size. " So 33% of the pairwise comparisons say that my new score is smaller, but I'm looking at a "larger is better" test so 67% of the pairwise comparisons say that my new group is "better".
I feel like I understand that but I don't see what it has to do with effect size, it still reads like it's talking about if a difference exists, not how big it is.
It's likely that the problem isn't the UI but my level of statistics - knowing just enough to ask annoying questions.
The Significance column has dashes and "double chevrons" in it. I guess these are "no and yes" but maybe the double chevron means "double yes". I haven't seen a single chevron or a downwards one yet so maybe dash isn't "no" but "meh". Adding the possible values to the tooltip might help.
Thank you for your work and especially your patience. I understand why you want to get this right and don't just want to assume everything is a normal distribution.
I'll file a second bug for a colour contrast issue.
| Assignee | ||
Comment 4•7 months ago
•
|
||
Thanks so much for the feedback, Paul. Once I get through a batch of tickets, I'll return to this issue and answer your questions and address them in the app.
In the meantime, @padenot, could you please help with answering the CD / CLES questions? If I remember correctly, the CLES works together with the Cliff's delta sign (a negative CD means the new value is consistently larger than the base value ).
As for the significance, the double chevron means "significant" and the dash mean "not significant". I'll add these to the tooltips.
Comment 5•7 months ago
|
||
(In reply to Paul Bone [:pbone] from comment #3)
CD - After reading the tooltip I felt like I still needed more information. The link there to the wikipedia article was perfect, in particular the formula.
Yes, but I haven't found the wikipedia page useful. We were going to write our own docs.
CLES - It mostly makes sense, but I'm looking at a "higher is better" result with a 33% CLES. I'm not sure how to turn that into common language, is it:
- A 33% chance my new score is larger,
- A 100-33 = 67% chance my new score is larger (foreshadowing, I think this is it).
- A 33% chance my new score is smaller (I think that's the same as #2)
33% CLES means: "There is a 33% chance a value from distribution A (base) is greater than a value from distribution B (new)". You can also flip the sentence as needed: There's a 67% change a value from distribution B (new) is lower than a value from distribution A (base)", sometimes it's easier if it's easier to reason about (as you point out).
This is https://en.wikipedia.org/wiki/Probability_of_superiority, this is probably what you reference when you say "a wikipedia page".
I've made progress on porting the bulk of the math code from python to typescript, time permitting this will improve quickly.
| Assignee | ||
Comment 6•7 months ago
|
||
Closing as this has been merged to prod. Follow up tickets have been made to expand on this issue.
Description
•