Skip to content

MRG: Fix stats examples and wording - #5649

Merged
larsoner merged 5 commits into
mne-tools:masterfrom
larsoner:fix-stats
Nov 3, 2018
Merged

larsoner merged 5 commits into
mne-tools:masterfrom
larsoner:fix-stats

Conversation

@larsoner

@larsoner larsoner commented Oct 23, 2018 •

Copy link
Copy Markdown
Member

I've fixed plotting in three stats examples with weird percentiles. Eventually I'll fix the wording pointed out by @jona-sassenhagen

  • fix example colorbars (our default percentiles are problematic in these corner-case examples)
  • fix wording

Closes #5636.

@codecov

codecov Bot commented Oct 23, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5649 into master will increase coverage by 1.98%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5649      +/-   ##
==========================================
+ Coverage   86.61%   88.59%   +1.98%     
==========================================
  Files         369      369              
  Lines       69094    69657     +563     
  Branches    11652    11822     +170     
==========================================
+ Hits        59846    61714    +1868     
+ Misses       6421     5088    -1333     
- Partials     2827     2855      +28

@jona-sassenhagen

Copy link
Copy Markdown
Contributor

I don't understand the colorbar in the example. Why is it so weirdly discontinuous?

The example reads:

conditions across subjects (simulated here using one subject's data).

This seems unnecessarily complicated. Why not just say, we look for significant differences across trials (although you can also test across subjects like this)?

@mmagnuski

mmagnuski commented Oct 24, 2018 •

Copy link
Copy Markdown
Member

Yes, the colorbars in the examples (and sometimes using pysurfer locally) were puzzling me for some time:
image
My understainding is that it is fixed/being fixed in pysurfer but mne still uses the last released version?

@larsoner

Copy link
Copy Markdown
Member Author

It's just a rendering bug on CircleCI, locally it should look correct

@mmagnuski

mmagnuski commented Oct 24, 2018 •

Copy link
Copy Markdown
Member

Ok, good to know. Locally I had strange cbar limits when using RdBu_r (-1 to 1 IIRC although data limits I paassed to clim were different).

@larsoner

Copy link
Copy Markdown
Member Author

Feel free to open a separate issue for that

@larsoner larsoner added this to the 0.17 milestone Oct 24, 2018
@larsoner larsoner changed the title WIP: Fix stats examples and wording MRG: Fix stats examples and wording Oct 24, 2018
@larsoner

Copy link
Copy Markdown
Member Author

Why not just say, we look for significant differences across trials (although you can also test across subjects like this)?

Because the typical use case (and one that Maris would be happy about) is to contrast two conditions across a set of subjects

@larsoner

Copy link
Copy Markdown
Member Author

Okay @jona-sassenhagen I think I fixed the wordings, can you have a look to see if this would have saved you some pain?

@agramfort

Copy link
Copy Markdown
Member

@larsoner can you rebase this one so it can be green? thx

@larsoner

larsoner commented Nov 1, 2018

Copy link
Copy Markdown
Member Author

Okay to merge? I was wondering why my fixes for doc building weren't there when I was building #5514

Comment thread tutorials/plot_background_statistics.py Resolved
@larsoner

larsoner commented Nov 2, 2018

Copy link
Copy Markdown
Member Author

Fixed

@larsoner

larsoner commented Nov 2, 2018

Copy link
Copy Markdown
Member Author

@jona-sassenhagen

Copy link
Copy Markdown
Contributor

Ok, that solves the question of how to interpret the sign flip test ... Although maybe someone should check if the sign flip test actually works when the null hypothesis is not exchangeability of two samples.

@larsoner

larsoner commented Nov 2, 2018

Copy link
Copy Markdown
Member Author

Although maybe someone should check if the sign flip test actually works when the null hypothesis is not exchangeability of two samples.

I think Maris's point (and what I tried to have a .. warning about here) is that it very well might not be valid. But in any case, actually doing it is out of scope of this PR

@agramfort

Copy link
Copy Markdown
Member

@jona-sassenhagen please merge if you think it's already a progress. We can do better in the next PRs.

@jona-sassenhagen

Copy link
Copy Markdown
Contributor

Yes, I will when it’s green.

@larsoner
larsoner merged commit af89a09 into mne-tools:master Nov 3, 2018
@larsoner
larsoner deleted the fix-stats branch November 3, 2018 17:33
@jona-sassenhagen

Copy link
Copy Markdown
Contributor

Great, thanks Eric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC Be more accurate for 1-sample Monte Carlo-sampling based tests

4 participants