# plotting whitened raw data

**URL:** <https://mne.discourse.group/t/plotting-whitened-raw-data/1145>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [January 13, 2017, 4:35pm UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145 "2017-01-13T16:35:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 13, 2017, 4:35pm UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/1 "2017-01-13T16:35:54Z")

</div>

Hi,

is there an equivalent of evoked.plot\_white() for raw data? I would like to compare different covariance methods for whitening empty room data.

Thanks,

Olaf

Olaf Hauk, PhD  
MRC Cognition and Brain Sciences Unit  
Phone: +44(0)1223 273702  
Fax: +44(0)1223 359062  
Web: [http://www.mrc-cbu.cam.ac.uk/people/olaf.hauk/](http://www.mrc-cbu.cam.ac.uk/people/olaf.hauk/)

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20170113/2676e6c5/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170113/2676e6c5/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 14, 2017, 7:45am UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/2 "2017-01-14T07:45:51Z")

</div>

hi Olaf,

no there is no such function but it could be added.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 14, 2017, 7:54am UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/3 "2017-01-14T07:54:26Z")

</div>

Would be interesting to think for a second what would be the normative  
prediction in that case (what should be in which value range after proper  
whitening) since what is a signal and what is noise is less obvious then,  
also potential implications for the power spectrum (could that possibly be  
used to summarize the data for visualization?).

Denis

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 14, 2017, 8:38am UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/4 "2017-01-14T08:38:39Z")

</div>

If you instead of the usual MNE whitening

y? = lambda^(-1)U^t y

do

y?? = U lambda^(-1)U^t y

the y?? data have their original spatial meaning and the values are SNRs or ?z scores?. Since the whitened data are sphered, they can be rotated in any way. Maybe there is even another more interesting rotation than U.

- Matti

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 20, 2017, 5:07pm UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/5 "2017-01-20T17:07:03Z")

</div>

If the whitening is applied to the data from which the covariance was computed (e.g. baseline periods in evoked data, the whole data set for continuous data), then I think the prediction should be the same. I would like to compare different covariance methods for empty room data, and such a plot method would be very useful.

Olaf

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [January 20, 2017, 5:18pm UTC](https://mne.discourse.group/t/plotting-whitened-raw-data/1145/6 "2017-01-20T17:18:27Z")

</div>

Olaf,

please open an issue if you want this to happen.

Alex
