<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/dance-of-the-bayes-factors/"></div></div><div><a data-url="http://www.r-bloggers.com/dance-of-the-bayes-factors/" data-counturl="http://www.r-bloggers.com/dance-of-the-bayes-factors/" data-count="horizontal" data-text="Dance of the Bayes factors" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://daniellakens.blogspot.com/2016/07/dance-of-bayes-factors.html"> The 20% Statistician</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><br>You might have seen the ‘Dance of the <i>p</i>-values’ video by Geoff Cumming (if not, <a target="_blank" href="https://www.youtube.com/watch?v=5OL1RqHrZQ8">watch it here</a>). Because <i>p</i>-values and the default Bayes factors <span>(Rouder, Speckman, Sun, Morey, &amp; Iverson, 2009)</span> are both calculated directly from <i>t</i>-values and sample sizes, we might expect there is also a Dance of the Bayes factors. And indeed, there is. Bayes factors can vary widely over identical studies, just due to random variation. <div></div>
<div>If people would always correctly interpret Bayes factors, that would not be a problem. Bayes factors tell you how much data are in line with models, and quantify relative evidence in favor of one of these models. The data is what it is, even when it is misleading (i.e., supporting a hypothesis that is not true). So, you can conclude the null model is more likely than some other model, but purely based on a Bayes factor, you can’t draw a conclusion such as “This Bayes factor allows us to conclude that there are no differences between conditions”. Regrettably, researchers are massively starting to misinterpret Bayes factors (I won’t provide references, though I have many). This is not surprising – people find statistical inferences difficult, whether these are about <i>p</i>-values, confidence intervals, or Bayes factors. </div>
<div></div>
<div>As a consequence, we see many dichotomous absolute interpretations (“we conclude there is no effect”) instead of continuous relative interpretations (“we conclude the data increase our belief in the null model compared to the alternative model”). As a side note: In my experience some people who advocate Bayesian statistics over NHST often live in a weird Limbo. They believe the null is never true when they are criticizing Null-Hypothesis Significance Testing as a useless procedure because we already know the null is not true, but they love using Bayes factors to conclude the null-hypothesis is supported.</div>
<div></div>
<div>For me, there is one important difference between the dance of the <i>p</i>-values and the dance of the Bayes factors: When people draw dichotomous conclusions, <i>p</i>-values allow you to control your error rate in the long run, while error rates are ignored when people use Bayes factors. As a consequence, you can easily conclude there is ‘no effect’, where there is an effect, 25% of the time (see below). This is a direct consequence of the ‘Dance of the Bayes factors’.</div>
<div></div>
<div>Let’s take the following scenario: There is a true small effect, Cohen’s <i>d</i> = 0.3. You collect data and perform a default two-sided Bayesian <i>t</i>-test with 75 participants in each condition. Let’s repeat this 100.000 times, and plot the Bayes factors we can expect. </div>
<div></div>
<div><a target="_blank" href="http://i0.wp.com/4.bp.blogspot.com/-4OeUdZnjdHk/V4yQvz6EfcI/AAAAAAAADVQ/4IF6Vh6zAActBpKSDK5ZuiXIl6CEls3zQCLcB/s1600/BFdance.png?ssl=1"><img src="http://i1.wp.com/4.bp.blogspot.com/-4OeUdZnjdHk/V4yQvz6EfcI/AAAAAAAADVQ/4IF6Vh6zAActBpKSDK5ZuiXIl6CEls3zQCLcB/s400/BFdance.png?resize=400%2C300&ssl=1" border="0" data-recalc-dims="1"></a></div>
<div></div>
<div></div>
<div><span></span></div>
<div>If you like a more dynamic version, check the ‘Dance of the Bayes factors’ R script at the bottom of this post. As output, it gives you a <img alt="😀" class="wp-smiley" src="https://s.w.org/images/core/emoji/72x72/1f600.png"> smiley when you have strong evidence for the null (BF &lt; 0.1), a <img alt="🙂" class="wp-smiley" src="https://s.w.org/images/core/emoji/72x72/1f642.png"> smiley when you have moderate evidence for the null, a (._.) when data is inconclusive, and a <img alt="🙁" class="wp-smiley" src="https://s.w.org/images/core/emoji/72x72/1f641.png"> or :(( when data strongly support the alternative (smileys are coded based on the assumption researchers want to find support for the null). See the .gif below for the Dance of the Bayes factors if you don’t want to run the script.</div>
<div></div>
<div></div>
<div></div>
<div>
<div><a target="_blank" href="http://i1.wp.com/4.bp.blogspot.com/-f3ybO1GxOEI/V4ybh3tdMDI/AAAAAAAADV0/o5ZNqe49_1og3tn3JYz0QaR5HIiz22ghwCLcB/s1600/DanceoftheBF.gif?ssl=1"><img src="http://i0.wp.com/4.bp.blogspot.com/-f3ybO1GxOEI/V4ybh3tdMDI/AAAAAAAADV0/o5ZNqe49_1og3tn3JYz0QaR5HIiz22ghwCLcB/s320/DanceoftheBF.gif?resize=297%2C320&ssl=1" border="0" data-recalc-dims="1"></a></div>
</div>
<div>I did not choose this example randomly (just as Geoff Cumming did not randomly choose to use 50% statistical power in his ‘Dance of the <i>p</i>-values’ video). In this situation, approximately 25% of Bayes factors are smaller than 1/3 (which can be interpreted as support for the null), 25% are higher than 3 (which can be interpreted as support for the alternative), and 50% are inconclusive. If you would conclude, based on your Bayes factor, that there are no differences between groups, you’d be wrong 25% of the time, in the long run. That’s a lot.</div>
<div></div>
<div>(You might feel more comfortable using a BF of 1/10 as a ‘strong evidence’ threshold: BF &lt; 0.1 happen 12.5% of the time in this simulation. A BF > 10 never happens: We don’t have a large enough sample size. If your true effect size is 0.3, you have decided to collect a maximum of 75 participants in each group, and you will look at the data repeatedly until you have ‘strong evidence’ (BF > 10 or BF &lt; 0.1), you will never observe support for the alternative, and you can only observe strong evidence in favor of the null model, even though there is a true effect).</div>
<div></div>
<div>Felix Schönbrodt gives some examples for the probability you will observe a misleading Bayes factor for different effect sizes and priors <span>(Schönbrodt, Wagenmakers, Zehetleitner, &amp; Perugini, 2015)</span>. Here, I just want note you might want to take the Frequentist properties of Bayes factors in to account, if you want to make dichotomous conclusions such as ‘the data allow us to conclude there is no effect’. Just as the ‘Dance of the <i>p</i>-values’ can be turned into a ‘March of the <i>p</i>-values’ by increasing the statistical power, you can design studies that will yield informative Bayes factors, most of the time <span>(Schönbrodt &amp; Wagenmakers, 2016)</span>. But you can only design informative studies, in the long run, if you take Frequentist properties of tests into account. If you just look ‘at the data at hand’ your Bayes factors might be dancing around. You need to look at their Frequentist properties to design studies where Bayes factors march around. My main point in this blog is that this is something you might want to do. </div>
<div></div>
<div>What’s the alternative? First, never make incorrect dichotomous conclusions based on Bayes factors. I have the feeling I will be repeating this for the next 50 years. Bayes factors are relative evidence. If you want to make statements about how likely the null is, define a range of possible priors, use Bayes factors to update these priors, and report posterior probabilities as your explicit subjective belief in the null.</div>
<div></div>
<div>Second, you might want to stay away from the default priors. Using default priors as a Bayesian is like eating a no-fat no-sugar no-salt chocolate-chip cookie: You might as well skip it. You will just get looks of sympathy as you try to swallow it down. Look at Jeff Rouder’s post on <a target="_blank" href="http://jeffrouder.blogspot.nl/2016/01/what-priors-should-i-use-part-i.html">how to roll your own priors</a>. </div>
<div></div>
<div>Third, if you just want to say the effect is smaller than anything you find worthwhile (without specifically concluding there no effect) <a target="_blank" href="http://daniellakens.blogspot.nl/2016/05/absence-of-evidence-is-not-evidence-of.html">equivalence testing might be much more straightforward</a>. It has error control, so you won’t incorrectly say the effect is smaller than anything you care about too often, in the long run.</div>
<div></div>
<div>The final alternative is just to ignore error rates. State loudly and clearly that you don’t care about Frequentist properties. Personally, I hope Bayesians will not choose this option. <i>I</i> would not be happy with a literature where thousands of articles claim the null is true, when there is a true effect. And <i>you</i> might want to know how to design studies that are likely to give answers you find informative.</div>
<div></div>
<div>When using Bayes factors, remember they can vary a lot across identical studies. Also remember that Bayes factors give you <i>relative evidence</i>. The null model might be more likely than the alternative, but both models can be wrong. If the true effect size is 0.3, the data might be closer to a value of 0 than to a value of 0.7, but it does not mean the true value is 0. In Bayesian statistics, the same reasoning holds. Your data may be more likely under a null model than under an alternative model, but that does not mean there are no differences. If you nevertheless want to argue that the null-hypothesis is true based on just a Bayes factor, realize you might be fooling yourself 25% of the time. Or more. Or less.</div>
<div></div>
<div></div>
<div>References</div>
<div></div>
<ul>
<li><span>Rouder, J. N., Speckman, P. L., Sun, D., Morey, R. D., &amp; Iverson, G. (2009). Bayesian t tests for accepting and rejecting the null hypothesis. <i>Psychonomic Bulletin &amp; Review</i>, <i>16</i>(2), 225–237. http://doi.org/10.3758/PBR.16.2.225</span></li>
<li><span>Schönbrodt, F. D., Wagenmakers, E. J., Zehetleitner, M., &amp; Perugini, M. (2015). Sequential Hypothesis Testing With Bayes Factors: Efficiently Testing Mean Differences. <i>Psychological Methods</i>. Retrieved from http://www.ncbi.nlm.nih.gov/pubmed/26651986</span></li>
<li><span lang="NL">Schönbrodt, F. D., &amp; Wagenmakers, E.-J. (2016). </span><i><span>Bayes Factor Design Analysis: Planning for Compelling Evidence</span></i><span> (SSRN Scholarly Paper No. ID 2722435). Rochester, NY: Social Science Research Network. Retrieved from http://papers.ssrn.com/abstract=2722435</span></li>
</ul>
<div></div>
<div></div>
<div></div>
<p></p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/dance-of-the-bayes-factors/"></div></div><div><a data-url="http://www.r-bloggers.com/dance-of-the-bayes-factors/" data-counturl="http://www.r-bloggers.com/dance-of-the-bayes-factors/" data-count="vertical" data-text="Dance of the Bayes factors" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://daniellakens.blogspot.com/2016/07/dance-of-bayes-factors.html"> The 20% Statistician</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/AGCKSfT4ay4"></a></div>