<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Ciao Sara,</div>
<div><br>
</div>
<div>TLDR:</div>
<div>The formula from <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1016%2Fj.jneumeth.2007.02.011&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C69259190c22c4d7efd6008dd3c48dabc%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638733005784420762%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=EfpwDS2cG%2F5%2Fib4Ns%2BKEP24X0%2B%2FgFUwQbHkRpWrt07g%3D&reserved=0" originalsrc="https://doi.org/10.1016/j.jneumeth.2007.02.011" shash="Wc9KAMbP1VfQo1KW6iJeRiqYbakY+EqOd4q/o7daunuFsKHpjOxBA9ZIo8AV1rkoKfmqx2EIDwiK8kr5GK0KOoP0V0+ip85jEvPljrQ7LQ3Kt8Db0jCr7SDXokDyUO7EzlJ/qUZYXavS5GXIPIadq5TyJLltljAm3VBudXeVdYw=">https://doi.org/10.1016/j.jneumeth.2007.02.011</a>,
 contains, next to the inverse hyperbolic tangent transforms, bias-correction terms (subtraction of the per condition 1/(df-2)), and a normalization (scaling term). If the number of observations is the same in both conditions, then the subtraction will not
 have an effect (they drop out of the equation). Either or not applying the df’s in the denominator will only change the distribution of the values but will not change the outcome of a permutation test (when the statistical inference is performed across trials
 within a subject). When using the test statistic in a group level analysis, the denominator will ’stabilise’ the coherence values a bit across subjects if there’s a large variability in bias across subjects (i.e. a large range in terms of the difference in
 number of trials per subject). </div>
<div><br>
</div>
<div>The short answer is: the df corresponds to the total number of (officially) independent observations, i.e. 2*(the sum of the total number of tapers applied). In your case, with a Hanning taper, this amounts to 2*(# trials). The formula is also described
 here: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1016%2Fj.jneumeth.2006.07.011&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C69259190c22c4d7efd6008dd3c48dabc%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638733005784443440%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=cyYspxwo%2Fqk0K1zvaD4QZuDv1lmcHrnT46gUBQh%2BGkE%3D&reserved=0" originalsrc="https://doi.org/10.1016/j.jneumeth.2006.07.011" shash="m+wwggEtwETEualkezEmAYPafavgtCS+i7QSi6jRECSv97guvWcMNCc1MBQyAYntE33XF5HOaziB/k+htMmgplhoetZV2CiFeXDCI6YM6+gdMoBMen/CRqHyj7kiYbd4WEhzZdgdH20nwmlQF/Mp0rv3eyGedp7w9zbXXaSuQeo=">https://doi.org/10.1016/j.jneumeth.2006.07.011</a></div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<br>
<div>
<blockquote type="cite">
<div>On 23 Jan 2025, at 18:14, Mazzini, Sara via fieldtrip <fieldtrip@science.ru.nl> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Dear Fieldtrip community,  <br>
 <br>
I have a question with regards to the Z-transformed coherence, as explained in Schoffelen et al. (2005, 2011).<br>
In the articles, Z-spectra difference in coherence between a channel pair is calculated after computing the spectral decomposition with a multitaper method and the coherence between the channel pair.<br>
I was wondering how the Z-transformed coherence can be calculated when spectral decomposition is computed using a Hanning taper instead.<br>
Would it then only be necessary to compute the inverse hyperbolic tangent of the coherence value for each condition and then subtract these (i.e. atanh(coherence_condition1) – atanh(coherence_condition2))?<br>
<br>
Thank you in advance for any help with this question!<span class="Apple-converted-space"> </span><o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<br>
<span lang="NL">Best wishes,<span class="Apple-converted-space"> </span><br>
<br>
Sara  <o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p> </o:p></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C69259190c22c4d7efd6008dd3c48dabc%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638733005784457439%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=2uscpgA8wcITP2LUNsDAUjDlcRe6cdKKC%2BssaJt%2FBK4%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="wKAsFyK866lXzMfg1ilRTaTHnUGGWrLMUDlG6QRCLopRUKh9KILiMYmiPiY8PaPa6ShvtwmkApKvxOv8P7cjWnidaYVm/wO7GBSSr0OVMLV4wpTVSWWJx9MXL1vPhH+J9TfJ/0UXW1oDsGivOFMcKnjajiueo15khs/swPbP//Q=" style="color: rgb(149, 79, 114); text-decoration: underline; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C69259190c22c4d7efd6008dd3c48dabc%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638733005784471591%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=2rCO54eZG%2F0X%2Bf4ENlLLm1CaL0Ujblj2D4lL6wwIruc%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="iVUyLTYWvFnWAnqDi0gq0EI100otZf9dg7egITzpQZEhBJdMAieGpF8UqgY6u3Zr6dOpZMkBwiocl6Ip+YlswamBffjP26iaFJdbAGrLkiacyJeBDkAliDAirt6fJJsRoduNrkRj7+y8hcyr8BClQobUHWfIx7I9WRwMB7X5VAc=" style="color: rgb(149, 79, 114); text-decoration: underline; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br>
</body>
</html>