Abstract
We present a suite of Bayes factor hypothesis tests that allow researchers to grade the decisiveness of the evidence that the data provide for the presence versus the absence of a correlation between two variables. For concreteness, we apply our methods to the recent work of Donnellan et al. (in press) who conducted nine replication studies with over 3,000 participants and failed to replicate the phenomenon that lonely people compensate for a lack of social warmth by taking warmer baths or showers. We show how the Bayes factor hypothesis test can quantify evidence in favor of the null hypothesis, and how the prior specification for the correlation coefficient can be used to define a broad range of tests that address complementary questions. Specifically, we show how the prior specification can be adjusted to create a two-sided test, a one-sided test, a sensitivity analysis, and a replication test.
Keywords: Hypothesis test, Statistical evidence, Bayes factor
After a Herculean effort involving a series of nine replication experiments, Donnellan et al. (in press) ultimately failed to reject the null hypothesis that people do not use warm showers and baths to compensate for a lack of social warmth, contradicting an earlier claim by Bargh and Shalev (2012). Unfortunately, the standard p value methodology does not allow one to quantify evidence in favor of the null hypothesis (Gallistel 2009; Rouder et al. 2009; Wagenmakers 2007). This is a major limitation, particularly for replication studies in which there is an important distinction between the statement “ p>.05, the data are uninformative” versus the statement “ p>.05, the data are informative and support the null hypothesis”.
It should be noted that the experiments from Donnellan et al. (in press) featured a total of 3073 participants; for such high-power experiments, one expects the outcome to be diagnostic, and hence it may be tempting to conclude that the non-significant p values reported by Donnellan et al. (in press) do indicate support in favor of the null hypothesis. However, this argument from power is insufficient, for two reasons. First, power is a pre-experimental expectation involving all possible outcomes, only one of which is relevant after the data are observed. In other words, even when conducting high-power experiments, researchers can be unlucky and obtain uninformative outcomes. To make this more concrete, consider an example featuring two urns (Wagenmakers et al. in press). One urn, , contains nine green balls and one blue ball. The other urn, , contains nine green balls and one orange ball. You are presented with one urn from which balls can be drawn with replacement, and your task is to determine the urn’s identity. Unbeknownst to you, the selected urn is . Your power analysis is based on the fact that a single draw has 10 % power, that is, . Consequently, an experiment with 90 % power requires that 22 balls are drawn (i.e., 1−0.922). You carry out the experiment and you happen to draw 22 green balls: a completely uninformative result. This example demonstrates that high-power experiments need not provide diagnostic data. Second, even if the data could be argued to provide support in favor of the null hypothesis, the quantitative impact of this support remains unclear: are the observed data twice as likely under the null hypothesis than under the alternative hypothesis , or 20 times, or perhaps 200 times?
Here we provide a series of Bayesian hypothesis tests to grade the decisiveness of the evidence that the data from Donnellan et al. (in press) provide in favor of the null hypothesis that people do not use warm showers and baths to compensate for a lack of social warmth. Throughout this article, we display a suite of Bayesian hypothesis tests: a default two-sided test for correlations (Jeffreys 1961), a default one-sided test for correlations (Boekel et al. in press), a sensitivity analysis, and a replication test for correlations (extending the work by Verhagen and Wagenmakers (2014)).
Our results show that although most p values from Donnellan et al. (in press) are non-significant, the evidence in favor of —as quantified by the default two-sided Bayesian hypothesis test—differs widely across the nine replication attempts: for the least informative attempt, the observed data are only two times more likely under than under ; for the most informative attempt, the observed data are 17 times more likely under than under . Overall, the combined data from studies 1–4 (i.e., near-exact replications) and studies 5–9 (i.e., exact replications) are 16 and about 30 times more times more likely under than under , respectively.
The methods outlined here are general and they can therefore be used equally well in other research domains whenever one seeks to quantify evidence for the absence or presence of a correlation. The relevant R code is illustrated through online materials available on the Open Science Framework at https://osf.io/cabmf/.
The Donnellan data
In their studies 1a and 1b, Bargh and Shalev (2012) found that loneliness—as measured by the UCLA Loneliness Scale—correlated positively with the “physical warmth index”, a composite variable based on self-reported average frequency, duration, and temperature of showers and baths (N = 51, r = .57, p<.0001; N = 41, r = .37, p<.017). Based in part on these results, Bargh & Shalev (2012, p. 155) hypothesized that people “self-regulate their feelings of social warmth (connectedness to others) with applications of physical warmth (through taking warm baths or showers)”.
In this article, we reanalyze the data from the nine replication experiments conducted by Donnellan et al. (in press). As explained by Donnellan et al. (in press), studies 1–4 were near-exact replications (e.g., using a UCLA Loneliness Scale slightly different from the one used by Bargh and Shalev (2012)) and studies 5–9 were exact replications. In all nine studies, the focus of our analysis is the statistical association between loneliness and the physical warmth index used by Bargh and Shalev (2012).
The first step in analyzing correlations is to plot the data and confirm that the assumption of a linear relation is appropriate (Anscombe 1973). For instance, a zero correlation between loneliness and the physical warmth index is misleading when the empirical relation is U-shaped. Figure 1 shows the raw data and confirms the validity of a standard correlational analysis. Across the nine experiments, the sample Pearson correlation values range from −.13 to +.13, and the associated two-sided p values range from .03 to .77.
Posterior distributions
To quantify the evidence that the data provide for the presence and absence of a correlation ρ between loneliness and the physical warmth index, we need to contrast two statistical models: the null hypothesis and the alternative hypothesis . In Bayesian inference, the complete specification of a statistical model requires that its parameters be assigned prior distributions (Dienes 2008; Lee and Wagenmakers 2013; Lindley 2014). For the Pearson correlation, the data are assumed to come from a bivariate normal, and this means that the model has five parameters: parameters μx and are the mean and variance of the first variable, μy and are the mean and variance of the second variable, and ρ is the correlation (see Appendix for details).
We start the specification of by assigning uninformative, widely spread-out prior distributions to parameters μx, μy, , and (Jeffreys 1961; Lee and Wagenmakers 2013; Ly et al. 2015).1 This leaves the specification of the prior distribution for the parameter of interest, the correlation ρ. At first we follow Jeffreys (1961) and assign ρ a prior that is uniform from −1 to 1; this prior reflects the belief that each value for ρ is equally likely before seeing the data. Hence, the alternative hypothesis is specified as .
Assume for the moment that is true and that we do not assign special status to the specific value ρ = 0; in that case our prior knowledge about ρ is completely captured by its prior distribution ρ∼U(−1,1). When data d arrive, this prior distribution p(ρ) is updated to a posterior distribution p(ρ∣d). The posterior distribution describes all that we know about ρ after seeing the data (and ignoring the fact that may be false and ρ = 0 may deserve special consideration). To provide an initial intuitive impression about what the Donnellan data tell us about the correlation between loneliness and the physical warmth index, Fig. 2 shows prior and posterior distributions separately for each of the nine experiments.2
As is evident from each panel in Fig. 2, the data are informative in the sense that there is a substantial difference between the prior distribution and the posterior distribution. For studies 2, 7, and 8, the posterior distribution is approximately centered on ρ = 0; for studies 1, 4, and 9, most of the posterior distribution is concentrated on negative values of ρ; and for studies 3, 5, 6, most of the posterior distribution is concentrated on positive values of ρ. Although useful, a visual impression of the posterior distribution alone cannot serve to quantify the evidence that the data provide for the hypothesis that the correlation is present or absent, a topic we turn to next.
Default Bayes factors
The Bayesian model selection and hypothesis testing machinery works as follows (Jeffreys 1961). Assume for simplicity that there are only two models under consideration, and . We start by assigning complementary prior probabilities to both hypotheses, that is and . Dividing these probabilities yields the prior model odds. For instance, a proponent of the relation between loneliness and bathing habits may believe that ; hence, the proponent’s prior model odds equal . Hence, this proponent believes that the presence of a correlation between loneliness and bathing habits is a priori nine times more plausible than its absence.
Of course, the specification of prior model odds is subjective. In this case, a skeptic may well have prior odds equal to , meaning that this skeptic believes that the absence of a correlation between loneliness and bathing habits is a priori 99 times more plausible than its presence. In sum, the prior model odds can be used to measure an individual’s initial enthusiasm or skepticism regarding the hypotheses at hand.
Bayesian hypothesis testing, however, does not depend on prior odds; instead, it concerns itself with the change in prior odds brought about by the data. When the data d arrive, the prior model odds are updated to posterior model odds. Mathematically, the updating process proceeds as follows:
1 |
The Bayesian hypothesis test centers on the Bayes factor BF01: the extent to which the data change one’s belief about the plausibility of the competing models (Jeffreys 1961; Kass and Raftery 1995; Lee and Wagenmakers 2013). Thus, although proponent and skeptic may differ on their prior model odds (and, consequently, on their posterior model odds), as long as they agree on the model specification they will agree precisely on the extent to which the data have changed their initial opinion. For instance, when BF01 = 8.5 the observed data are 8.5 times more likely under than under , and when BF01 = 0.2 the observed data are five times more likely under than under . Equation 1 shows that BF01 = 1/BF10; because the data from Donnellan et al. (in press) generally support , we prefer to report BF01 throughout, as odds larger than one are easier to interpret.
Thus, in order to grade the decisiveness of the evidence in the nine studies by Donnellan et al. (in press) we need to compute the Bayes factor . When , this Bayes factor can be obtained easily (Jeffreys, 1961; see also the Appendix). The BF01 column of Table 1 shows the result. As expected from considering the posterior distributions shown in Fig. 2, the evidence in favor of is particularly high for studies 2 (i.e., BF01 = 17.36), 7 (i.e., BF01 = 13.21), and 8 (i.e., BF01 = 14.60); each of these studies alone requires that we adjust our beliefs about the presence of a correlation between loneliness and the physical warmth index by more than an order of magnitude.
Table 1.
N | r | p | BF01 | BF0+ | BF0r(r orig = .57) | BF0r(r orig = .37) | |
---|---|---|---|---|---|---|---|
Study 1 | 235 | –0.06 | 0.35 | 7.90 | 22.59 | 16825.57 | 39.37 |
Study 2 | 480 | –0.01 | 0.90 | 17.36 | 19.24 | 17679.82 | 47.45 |
Study 3 | 210 | 0.13 | 0.06 | 2.09 | 1.08 | 50.25 | 1.15 |
Study 4 | 228 | –0.10 | 0.15 | 4.21 | 28.58 | 21904.40 | 35.05 |
Study 5 | 494 | 0.10 | 0.03 | 1.67 | 0.85 | 134.72 | 1.32 |
Study 6 | 553 | 0.08 | 0.06 | 3.13 | 1.61 | 398.01 | 2.98 |
Study 7 | 311 | 0.02 | 0.72 | 13.21 | 10.32 | 4894.19 | 23.76 |
Study 8 | 365 | 0.02 | 0.77 | 14.60 | 11.84 | 7002.82 | 28.75 |
Study 9 | 197 | –0.13 | 0.07 | 2.17 | 30.86 | 21755.50 | 28.25 |
Study 1-4 | 1153 | –0.03 | 0.31 | 16.17 | 52.21 | 49671.92 | 70.00 |
Study 5-9 | 1920 | 0.01 | 0.56 | 29.53 | 20.53 | 31021.07 | 70.36 |
Note: N is the total number of participants, r is the sample Pearson correlation coefficient between loneliness and the physical warmth index, p is the two-sided p value, BF01 is the two-sided default Bayes factor in favor of , BF0+ is the one-sided default Bayes factor in favor of , BF0r(.57) is the replication Bayes factor in favor of based on study 1a from Bargh and Shalev (2012) (featuring undergraduate participants, as in studies 1, 7, 8, and 9), and BF0r(.37) is the replication Bayes factor in favor of based on study 1b from Bargh and Shalev (2012) (featuring participants from community samples, as in studies 2–6)
To visualize the Bayes factor results, Fig. 2 uses filled dots to indicate the height of the prior distribution versus the height of the posterior distribution at ρ = 0, assuming holds. An identity known as the Savage-Dickey density ratio test (e.g., Dickey and Lientz (1970) and Wagenmakers et al. (2010)) states that the ratio between these heights equals BF01. For instance, consider the study 2 panel in Fig. 2. For that study, the data increased the plausibility of the point ρ = 0 by a factor of 17.36, meaning that at ρ = 0 the posterior distribution is 17.36 times higher than the prior distribution. This height ratio—obtained by considering only the prior and posterior distributions under —is identical to the Bayes factor BF01 between and .
In addition, the evidence for is rather weak for those studies in which the effect is in the predicted direction and most of the posterior mass is concentrated on positive values of ρ. Specifically, the results from studies 3 (i.e., BF01 = 2.09), 5 (i.e., BF01 = 1.67), and 6 (i.e., BF01 = 3.13) do not necessitate a substantial adjustment of our beliefs about the presence of a correlation between loneliness and the physical warmth index, as can be confirmed by the relative closeness of the dots on the distributions in the corresponding panels of Fig. 2. Note, however, that even for these relatively uninformative studies the evidence favors , whereas the respective classical p values equal p = .06 (i.e., “marginally significant”), p = .03 (i.e., “significant, reject ”), and p = .06 (i.e., “marginally significant”).3
Finally, consider the evidence for the studies in which the effect is in the opposite direction and most of the posterior mass is concentrated on negative values of ρ. The results for studies 1 (i.e., BF01 = 7.90), 4 (i.e., BF01 = 4.21), and 9 (i.e., BF01 = 2.17) yield somewhat more evidence for than did studies 3, 5, and 6, but the overall impression is less compelling than one might expect. The main reason for this is that our current Bayes factor is two-sided such that positive correlations constitute just as much evidence against as negative correlations. For this particular scenario, however, there are strong expectations about the direction of the effect, and this warrants the application of a one-sided test.
The one-sided test
For the two-sided test discussed in the previous section, the alternative hypothesis was specified as . This model specification expresses the belief that every value of the correlation ρ is equally likely a priori. However, the hypothesis proposed by Bargh and Shalev (2012) and tested by Donnellan et al. (in press) is clearly directional: the assertion is that lonely people take showers and baths that are warmer, not colder.
Within the Bayesian framework, it is conceptually straightforward to account for the direction of the hypothesis. Specifically, for the one-sided test the prior mass is assigned only to positive values of ρ such that . The computation of the associated one-sided Bayes factor BF0+ is provided in the Appendix (see also Boekel et al., in press; Morey and Wagenmakers, 2014). The BF0+ column of Table 1 shows the result.
A comparison between the two-sided Bayes factor BF01 and the one-sided Bayes factor BF0+ reveals three regularities (see Table 1). The first regularity is that for the three studies where the posterior distribution from Fig. 2 was approximately symmetrical around ρ = 0, the evidence in favor of is virtually unaffected; study 2: BF01 = 17.36 vs. BF0+ = 19.24; study 7: BF01 = 13.21 vs. BF0+ = 10.32; study 8: BF01 = 14.60 vs. BF0+ = 11.84. In fact, when the posterior distribution is perfectly symmetrical around zero, the two Bayes factors are identical (Wagenmakers et al. 2010).
The second regularity is that for the studies where the effect was in the predicted direction, the evidence is now more favorable to than it was to ; study 3: BF01 = 2.09 vs. BF0+ = 1.08; study 5: BF01 = 1.67 vs. BF0+ = 0.85; study 6: BF01 = 3.13 vs. BF0+ = 1.61. Under the one-sided test, the data from these studies have become almost completely uninformative. The data from study 5 even favor , although the strength of this support is so small that it does not merit attention (i.e., the data are 1/0.85≈1.18 times more likely under than under ). Thus, when the effect goes in the predicted direction the one-sided test makes the alternative hypothesis look better, but not by much. In fact, for a symmetrical prior a sign-restriction cannot increase the Bayes factor in favor of the alternative hypothesis more than two-fold (Klugkist et al. 2005; Wagenmakers et al. 2010).
The third regularity is that for the studies where the effect was in the opposite direction, the evidence is much less favorable for than it was for ; study 1: BF01 = 7.90 vs. BF0+ = 22.59; study 4: BF01 = 4.21 vs. BF0+ = 28.58; study 9: BF01 = 2.17 vs. BF0+ = 30.86. This is then the major difference between specifying a two-sided alternative hypothesis and a one-sided alternative hypothesis : when the effect goes in the direction opposite to the one that was predicted, the evidence greatly favors . This happens because the evidence quantified by the Bayes factor is relative: when the observed effect is negative, this may be unlikely under , but it is even less likely under a model that stipulates the effect to be positive.
In sum, by changing the prior distribution on ρ we can implement a one-sided Bayes factor that quantifies the evidence that the data provide for a positive correlation between loneliness and the physical warmth index. This one-sided test is arguably a better reflection of the underlying directional hypothesis, which states that lonely people take warmer—but not colder—showers and baths. Application of the one-sided test showed that the out of the nine replication experiments by Donnellan et al. (in press), three were not very informative. The other six studies, however, provided highly diagnostic information, each separately requiring a shift in belief towards of more than an order of magnitude.
Sensitivity analysis
The comparison between the two-sided and the one-sided Bayes factor has highlighted how the prior distribution on ρ can be used to specify different alternative hypotheses; and when different hypotheses are put to the test, different results will (and should) emerge. A persistent concern, however, is that the presented Bayes factor may be delicately sensitive to the specification of the prior, and that by specifying the prior at will, researchers can obtain any desired result. This concern can be addressed in more than one way. The most general counterargument is that the prior is an integral part of the model specification process—yes, one can specify a highly implausible and idiosyncratic prior on ρ to obtain a nonsensical result, but the specification of the prior is subject to criticism just as the specification of a highly implausible and idiosyncratic model structure (e.g., an exponential distribution for response times). In other words, silly models (whether through silly priors or silly structure) will lead to silly conclusions, but in many situations is it obvious when a model is silly and when it is not.
A related counterargument is that for many models, researchers can depend on default priors that are suitable for a reference-style analysis. This analysis can be refined if more knowledge is available, as was demonstrated above: we started with a two-sided default prior and then refined the prior to . An extreme form of refinement will be demonstrated in the next section. There, the prior distribution for the Bayes factor analysis of the Donnellan et al. (in press) studies is provided by the posterior distribution obtained from the Bargh and Shalev (2012) studies.
In this section, we explore another counterargument, namely to take the critique and evaluate it explicitly by means of a sensitivity analysis (e.g., Wagenmakers et al., 2011). In such an analysis, one calculates Bayes factors for a wide range of plausible prior distributions. If the conclusions depend on the prior specification in an important way, such that different plausible priors lead to qualitatively different Bayes factors, then it should be acknowledged that the data do not allow an unambiguous conclusion. However, it may also happen that the conclusions are qualitatively robust across a wide range of prior distributions (e.g., Wagenmakers et al., 2011). In our experience, such robustness is the rule rather than the exception.
For consistency with the two-sided tests carried out by Bargh and Shalev (2012) and Donnellan et al. (in press), we return to the two-sided Bayes factor BF01 that compares to . One proposal for a sensitivity analysis could define a set of models by smoothly decreasing the range of the uniform distribution on ρ, such that , with c∈(0,1). We prefer a similar but more elegant solution, where we first rescale the correlation to lie between 0 and 1, and then assign it a beta distribution. Hence, ρ′∼beta(α, α), and a measure of the spread of this distribution is γ = 1/α. We then transform the beta distribution back to the (−1,1) scale and calculate the Bayes factors as a function of γ. When γ = 1, this corresponds to a uniform prior on the correlation coefficient, as per our default analysis. When γ = 0, which happens when α grows very large, becomes indistinguishable from and consequently the Bayes factor is 1. Values of γ in between 0 and 1 define an continuous range of different alternative hypotheses that represent different beliefs about the extent to which large values for the correlation are plausible.
Figure 3 shows the result of the sensitivity analysis for each of the nine experiments from Donnellan et al. (in press). The y-axis shows the log of the Bayes factor BF01, such that when γ = 0, all panels yield logBF01 = log(1)=0 and BF01 = 1, as predicted. In all panels, for all reasonable values of γ, the evidence supports the null hypothesis. In addition, there is no value of γ for which the evidence supports the alternative hypothesis in compelling fashion. Furthermore, for a large range of γ the Bayes factor does not show large fluctuations. Overall, the sensitivity analysis shows that, although different priors instantiate different models and will therefore yield different Bayes factors, it is not the case that any results whatsoever can be obtained. Instead, the qualitative results are similar across a range of plausible values for γ: the data provide clear evidence in favor of , but some experiments provide stronger evidence than others.
The same sensitivity analysis can be carried out after collapsing the data in two classes: one based on studies 1–4 and one based on studies 5–9. The studies within these two classes were highly similar (Donnellan et al. in press). Figure 4 shows the result. All values for γ result in Bayes factors that indicate support in favor of . When is defined so as to predicts larger effects (i.e., through larger values of γ), the evidence more strongly supports . Thus, the more the models become distinguishable, the more the Bayes factor prefers .
It is insightful to compare the Bayes factors for the collapsed data from studies 1–4 (i.e., BF01 = 16.17) and studies 5–9 (i.e., BF01 = 29.53) to those obtained by multiplying the Bayes factors from the individual experiments. For studies 1–4, the multiplication yields 7.90×17.36×2.09×4.21≈1207; for studies 5–9, the multiplication yields 1.67×3.13×13.21×14.60×2.17≈2188. The discrepancy with the collapsed-data Bayes factors is large, and this serves to demonstrate that when effect sizes are related across studies—which is reasonable to assume– Bayes factors should not be multiplied (e.g., as was done by Bem et al. (2011) in order to present evidence in favor of extra-sensory perception). As explained by Jeffreys (1961, pp. 332–334), Bayes factors may only be multiplied when the prior distributions are properly updated. To clarify, consider two studies, E1 and E2, and a fixed effect. When the two experiments are analyzed simultaneously, the Bayes factor can be denoted BF(E1, E2), and it is obtained by integrating the likelihood over the prior distribution (see Appendix for details). When the two experiments are analyzed sequentially, the same end result should obtain, and this occurs with a Bayes factor multiplication rule based on the definition of conditional probability: BF(E1, E2)=BF(E1)×BF(E2∣E1). Note that the latter term is BF(E2∣E1), indicating that it is obtained by integrating the likelihood over the posterior distribution obtained after observing the first experiment. Thus, multiplying Bayes factors across N related units (participants or studies that show similar effects) is incorrect because the prior is used N times instead of being updated.
Replication Bayes Factors
As outlined above, for replication studies there exists another way to alleviate the concern over how to specify the alternative hypothesis (Verhagen and Wagenmakers 2014). Specifically, one can use the data from the original study to obtain a posterior distribution, and then use that posterior distribution to specify the alternative hypothesis for the analysis of the replication studies. This “replication Bayes factor” therefore pits two models against one another. The first model, , represents the belief of a skeptic, and the second model, , represents the idealized belief of a proponent. As pointed out by Verhagen and Wagenmakers (2014, p. 1459), “(...) the default test addresses the question, “Given that we know relatively little about the expected effect size beforehand, is the effect present or absent in the replication attempt?”; our test addresses the question, “Is the effect similar to what was found before, or is it absent?”. The two tests therefore represent extremes on a continuum of sensitivity to past research; the default test completely ignores the outcomes of an earlier experiment, whereas the replication test takes these outcomes fully into account.”
The replication Bayes factor was developed by Verhagen and Wagenmakers (2014) for the t test; here we extend that work to the Pearson correlation coefficient (for an application see Boekel et al. (in press); for mathematical details see the Appendix). Table 1 shows the results for two replication Bayes factors; the first, BF0r(.57), is based on study 1a from Bargh and Shalev (2012), featuring undergraduate participants and yielding rorig = .57 with norig = 51; the second, BF0r(.37), is based on study 1b from Bargh and Shalev (2012), featuring a community sample of participants and yielding rorig = .37 with norig = 41.
The BF0r(.57) column of Table 1 shows that, across all studies, the data are much more likely under the skeptic’s than under the proponent’s based on study 1a from Bargh and Shalev (2012). Even for the least compelling study, the data are 50.25 times more likely under than under . When the proponent’s belief is based on study 1b from Bargh and Shalev (2012), the results are less extreme: the results for study 3 (BF0r(.37)=1.15), study 5 (BF0r(.37)=1.32), and study 6 (BF0r(.37)=2.98) are relatively uninformative: the data are almost as likely under the skeptic’s than under the proponent’s . For the remaining studies, however, the results show compelling support for the skeptic’s , with Bayes factors ranging from about 23 to about 47.
Figure 5 visualizes the results using the Savage-Dickey density ratio. In each panel, the dotted line indicates the idealized belief of a proponent, that is, the posterior distribution from the original study by Bargh and Shalev (2012).4
As before, the Bayes factor BF0r is given by the ratio of the height of the prior and posterior distribution at ρ = 0. For instance, the panel for study 1 shows that the value ρ = 0 is much more plausible after having seen the data from the replication study than before. In fact, the ratio of the prior and posterior density at ρ = 0 equals 16,825.57, which is equal to the replication Bayes factor BF0r(.57).
Similarly, the panel for study 3 shows that the data from the replication study have hardly altered the plausibility of the value ρ = 0 at all; hence the dot that indicates the height of the prior at ρ = 0 overlaps with the dot that indicates the height of the posterior at ρ = 0, and the replication Bayes factor equals BF0r(.37) = 1.15.
Concluding comments
In this article we illustrated a suite of Bayesian hypothesis testing techniques that allow researchers to grade the decisiveness of the evidence that the data provide for the presence versus the absence of a correlation between two dependent variables. This approach is fundamentally different from Fisher’s p value methodology, which does not acknowledge the existence of an alternative hypothesis, and it is also fundamentally different from Neyman and Pearson’s frequentist tool for making decisions. As stated eloquently by Rozeboom (1960, pp. 422–423): “The null-hypothesis significance test treats ‘acceptance’ or ‘rejection’ of a hypothesis as though these were decisions one makes. But a hypothesis is not something, like a piece of pie offered for dessert, which can be accepted or rejected by a voluntary physical action. Acceptance or rejection of a hypothesis is a cognitive process, a degree of believing or disbelieving which, if rational, is not a matter of choice but determined solely by how likely it is, given the evidence, that the hypothesis is true.”
What, then, are the practical advantages of the Bayes factor hypothesis test over its classical counterpart? Among the most salient are the following: (1) Bayes factors allow researchers to claim evidence in favor of the null hypothesis (Gallistel 2009; Rouder et al. 2009; Wagenmakers 2007), an advantage that is particularly prominent in replication research such as that conducted by Donnellan et al. (in press); (2) Bayes factors allow researchers to quantify the above claim, so that we may know whether the data are more likely under by a factor of 2, by a factor of 20, or by a factor of 200; (3) Bayes factors allow researchers to monitor the “evidential flow”5 as the data come in and stop data collection whenever this is deemed desirable, without the need for corrections depending on the intent with which the data were collected (Rouder 2014; Wagenmakers et al. 2012). This flexibility is a direct consequence of the Stopping Rule Principle (Berger and Wolpert 1988), a principle that all Bayesian analyses respect.
One may be tempted to argue that sensible conclusions can be reached using classical statistics when, in addition to the p value, the concept of power is taken into account. However, as alluded to in the introduction, power is a pre-experimental concept that entails averaging across all possible data sets, only one of which ends up being observed. It is therefore entirely possible that an uninformative result is obtained even after conducting a high-power experiment. For instance, consider studies 3, 5, and 6 from Donnellan et al. (in press); all our Bayes factor hypothesis tests indicated that these studies were virtually uninformative. Nevertheless, these studies featured 210, 494, and 553 participants, respectively. It is hard to argue that the uninformativeness of these data is due to a lack of power (see also Wagenmakers et al., in press).
Another tempting argument is that p values can quantify evidence for the null hypothesis when they are defined in a different manner. For instance, in equivalence testing (e.g., Rogers et al., 1993; Westlake, 1976) the null hypothesis is that an effect exists; when this hypothesis is rejected one accepts the hypothesis of equivalence. A similar method is to define a small effect, and use p values to test whether the observed effect is smaller than this small effect (Hodges and Lehmann 1954; Simonsohn, in press); the lower the p value, the more evidence there is in favor of the null hypothesis. Yet another method is based on confidence intervals; when confidence intervals are tightly centered on the value under scrutiny, this is felt to be evidence for the null hypothesis. These methods, however ingenious or intuitive, all suffer from two main limitations. First, they focus on a single hypothesis (for equivalence testing: the null hypothesis; for confidence intervals: the alternative hypothesis) and ignore what can be expected under the competing hypothesis. Second, they are unable to quantify evidence in a formal sense, and any evaluation of the end result remains to some extent based on an intuitive translation; consequently, these classical methods appear to be better suited for all-or-none decisions rather than for an assessment of the extent to which the data support one hypothesis over the other.
Some psychologists and statisticians object to hypothesis testing on the grounds that a point null hypothesis (e.g., ρ = 0 exactly) is known to be false from the outset (e.g., Cohen, 1994; Meehl, 1978). We disagree with this claim on principle (e.g., Iverson et al., 2010), but, more importantly, even if the claim were true it would not detract from the usefulness of hypothesis testing—instead, if could mean only that needs to be specified with more care. For instance, for a test of the Pearson correlation coefficient one may replace with . After specifying such an interval null hypothesis (Morey and Rouder 2011), the same methods outlined in this article may then be applied, with virtually identical results. That is, “(...) the assignment of a lump of prior probability to the simple hypothesis is strictly a mathematical convenience and not at all fundamental.” (Cornfield 1969, p. 637).
What fundamentally distinguishes Bayes factors from alternative methods, such as those that are based on confidence or credible intervals, is that Bayes factors assign separate prior plausibility to . This stems from the epistemic argument, originally put forward by Wrinch and Jeffreys, that such assignment is essential in order to be able to obtain inductive evidence in favor of an invariance or a general law (e.g.,Wrinch & Jeffreys 1919, 1921, 1923; see also Jeffreys, 1980; Ly et al., 2015; Rouder et al., 2009). In the present work, the emphasis was on the ability of the Bayes factor to quantify evidence in favor of an invariance; here, the absence of a correlation. However, the method can be used more generally, to quantify evidence for or against an invariance—the Bayes factor does not assign special status to either or .
Throughout this article we have demonstrated that the prior distribution fulfills a pivotal and useful role in Bayes factor hypothesis testing. When the prior on the correlation coefficient is uniform from −1 to 1, we obtain Jeffreys’ default test (for alternative Bayes factor tests on the correlation coefficient, see Dienes, 2014, and Wetzels and Wagenmakers, 2012); when this prior excludes negative values, we obtain a one-sided version of Jeffreys’ test that respects the directional nature of the hypothesis at hand. The robustness of the conclusions to alternative, plausible specifications of the prior distribution can be assessed with a sensitivity analysis in which the shape of the prior is varied in systematic fashion. Finally, the prior distribution can be based entirely on earlier results, that is, on the posterior distribution from the original experiment. By changing the prior distribution, one changes the specification of , and thereby the outcome of the Bayes factor. This underscores the fact that the Bayes factor is a relative measure, as it compares the support for versus a specific . We view our results as a vivid and concrete demonstration of what Jeffreys himself hoped his work would accomplish, namely that “(...) more attention will be paid to the precise statement of the alternatives involved in the questions asked. It is sometimes considered a paradox that the answer depends not only on the observations but on the question; it should be a platitude.” (Jeffreys 1961, p. x).
Finally, it should be acknowledged that, in many cases, the data pass the interocular traumatic test (i.e., when the data hit you right between the eyes; (Edwards et al. 1963)) and it does not matter whether one carries out a classical analysis, a Bayesian analysis, or no analysis at all. This argument loses some of its force, however, when the data appear to support the null hypothesis and an intuitive assessment of evidential strength becomes non-trivial. At any rate, one purpose of statistics is to make our intuitive judgement precise and quantitative. We hope that the methods outlined in this article will help contribute to that purpose.
Acknowledgments
We thank Brent Donnellan and Joe Cesario for making the data from their nine replication studies publicly available. The editor of Emotion decided not to have this manuscript sent out for review because it was deemed inconsistent with the journal’s main mission. Supporting R code is provided on the Open Science Framework at https://osf.io/cabmf/. This work was supported by an ERC grant from the European Research Council.
Open Access
This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Appendix: Statistical details
The likelihood
In Bargh and Shalev (2012), the Pearson’s correlation coefficient is used to measure the linear association between loneliness and the physical warmth index, which we denote by X and Y, respectively. The Pearson’s population correlation coefficient is defined as follows:
2 |
where X is taken to be normally distributed with population mean μx and population standard deviation σx. Similarly, Y is also assumed to be normally distributed such that Y∼(μy, σy2). Assume that holds and that there exists a correlation between X and Y. In order to describe the pair X, Y simultaneously, we then require five parameters, the normality parameters μx, μy, σx, σy and the linear association ρ, resulting in the following likelihood:
3 |
where we have written 1 = (μx, μy, σx, σy, ρ) for the five parameters and d for the observed data with d = (x1y1),…,(xnyn) and (xiyi) being the reported loneliness and physical warmth index of participant i.
When the null hypothesis of no linear association between X and Y holds true, this means that ρ is fixed at zero. Consequently, this yields a model with only four free parameters, 0 = (μx, μy, σx, σy). More precisely, the likelihood for the null model given the observations d then depends on the four parameters as follows:
4 |
The Bayes factor test proposed by Sir Harold Jeffreys
To test whether the population correlation ρ is zero, we compare Eq. 4 to Eq. 3. Although the true values of the parameters are unknown, we can quantify our degree of belief about the true values by means of prior distributions. These prior distributions act as weighting functions for the likelihood. Sir Harold Jeffreys proposed that for , we weight the likelihood Eq. 4 with respect to the population means μx and μy proportional to 1, mathematically, p(μx)∝1 and p(μy)∝1. Furthermore, the standard deviations are weighted proportional to their inverse, that is, p(σx)∝1/σx and p(σy)∝1/σy. These weighting functions then fully specify the marginal or average likelihood for 0. To obtain the marginal likelihood for 1 we use the same weighting functions for the common parameters and we weight the effects of ρ uniformly over (−1,1), that is, p(ρ) = 1/2. Hence, the two marginal likelihoods are given by the following integrals (i.e., averages):
5 |
6 |
The ratio of these two marginal likelihoods yields the Bayes factor BF01 = P(d | 0)P(d | 1) that allows us to compare the two models as discussed in the main text.
The above equations suggest that we have to compute nine intensive integrals in order to obtain the Bayes factor. Fortunately, this is unnecessary, as Jeffreys (1961) showed that contributions due to the nuisance parameters μx, σx, μy, σy are the same in the two models 0,1 and, therefore, drop out of BF01 making the Bayes factor only dependent on ρ as
7 |
where r refers to the sample correlation r that is defined as:
8 |
The one-sided extension
It is straightforward to extend Jeffreys’ result to a one-sided test of the null hypothesis 0 that ρ = 0 versus the directional restriction ρ>0, which we denote by +. The extension only requires us to change the uniform prior of ρ from on (−1,1) to a uniform prior on (0,1), which yields:
9 |
The integrals Eqs. 7, 9 are evaluated explicitly by Eqs. 11 and 12 respectively with α = 1.
Sensitivity analysis
Equation 7 shows how the Bayes factor BF10 depends on the choice of prior p(ρ), which was set to the uniform prior yielding p(ρ) = 1/2 for every ρ in (−1,1). To study how sensitive the Bayes factor is to this prior choice, we consider the uniform distribution as a member of the following class of priors that we refer to as the symmetric scaled beta distributions
10 |
where (α, α) is a beta function. Each α>0 yields a candidate prior and we define γ = 1/α as a measure of the spread of this distribution. When γ = 1, this corresponds to a uniform prior on the correlation coefficient, as per our default analysis. When γ = 0, which happens when a grows very large, becomes indistinguishable from and consequently the Bayes factor is 1. Values of γ in between 0 and 1 define an continuous range of different alternative hypotheses that represent different beliefs about the extent to which large values for the correlation are plausible. The Bayes factor depending on α is then given by BF01(α) = 1/BF10(α) where
11 |
and where 2F1 denotes Gauss’ hypergeometric function (Oberhettinger 1972, section 15). Similarly, we get BF0+(α) = 1/BF+0(α), where
12 |
The replication Bayes factor
A replication Bayes factor (Verhagen and Wagenmakers 2014) answers the question: “Is the effect from the replication attempt comparable to what was found before, or is it absent?” The Bayes factor BF0r extracts the evidence within the data from the replication study, drep, and compares the null hypothesis of no effect, 0:ρ = 0, against the alternative hypothesis r that the correlation is equal to what is found in the original study.
As a prior on ρ for r, we use the posterior density porig(ρ) conditioned on the original data. This density porig(ρ) summarizes the finding of the original study (Jeffreys 1961, p. 175, equation 9) and simplifies to:
13 |
where rorig, norig are the sample correlation coefficient and sample size of the original study (see also the suggestion in Robert et al. (2009), and the integral shown in Gradshteyn and Ryzhik, 2007, Eq. 3.197.3, p. 317).
The replication Bayes factor BF0r in favor of the null against a replication of the original result boils down to the ratio of the posterior divided by the prior porig(ρ) at the point of interest, that is, ρ = 0 (e.g.; Wagenmakers et al., 2010). Hence,
14 |
15 |
where porig(ρ | drep) denotes the posterior given the data in the replication study, that is,
16 |
where rrep, nrep refer to the sample correlation coefficient and sample size of the replication study respectively, and we have written C for the normalization constant
17 |
which can be computed by numerical integration.
The above equations are implemented in R code and available on the Open Science Framework at https://osf.io/cabmf/. Some of the functionality of this R code will also be available in the JASP 0.6 release (jasp-stats.org)
Footnotes
For the correlation test outlined here, the prior distribution for these nuisance parameters have no impact on the Bayes factor (Jeffreys 1961; Ly et al. 2015).
A complete Bayesian analysis can update the posterior for ρ across experiments. Here, we wish to provide an indication of the informativeness of each experiment separately.
Results such as these illustrate the strong statement by Edwards (1965, p. 400): “Classical significance tests are violently biased against the null hypothesis.” The bias originates from the fact that p values only consider the extremeness of the data under and disregard what is expected under (e.g., Wagenmakers et al., in press).
In order to obtain the posterior distribution from the original experiment we still require a prior. However, even for relatively small data sets the shape of the posterior distribution is not much affected by the choice of prior distribution, as expressed by the adage “the data overwhelm the prior”. Studies 1, 7, 8, and 9 featured undergraduate participants, and hence the dotted lines in the corresponding panels are based on study 1a by Bargh and Shalev (2012) (i.e., rorig = .57,norig = 51); in contrast, studies 2–6 featured community samples of participants, and hence the dotted lines are based on study 1b by Bargh and Shalev (2012) (i.e., rorig = .37,norig = 41). In each panel, the solid line indicates the posterior distribution that was obtained after updating the beliefs based on the original study (i.e., the dotted distribution) with the data from the replication study.
To the best of our knowledge, this term was introduced in the blog of Eliezer Yudkowsky.
References
- Anscombe FJ. Graphs in statistical analysis. The American Statistician. 1973;27:17–21. [Google Scholar]
- Bargh JA, Shalev I. The substitutability of physical and social warmth in daily life. Emotion. 2012;12:154–162. doi: 10.1037/a0023527. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bem DJ, Utts J, Johnson WO. Must psychologists change the way they analyze their data? Journal of Personality and Social Psychology. 2011;101:716–719. doi: 10.1037/a0024777. [DOI] [PubMed] [Google Scholar]
- Berger JO, Wolpert RL. The likelihood principle (2nd ed.) Hayward (CA): Institute of Mathematical Statistics; 1988. [Google Scholar]
- Boekel, W., Wagenmakers, E.-J., Belay, L., Verhagen, A.J., Brown, S.D., & Forstmann, B. (in press). A purely confirmatory replication study of structural brain-behavior correlations. Cortex. [DOI] [PubMed]
- Cohen J. The earth is round (p<.05) American Psychologist. 1994;49:997–1003. doi: 10.1037/0003-066X.49.12.997. [DOI] [Google Scholar]
- Cornfield J. The Bayesian outlook and its application. Biometrics. 1969;25:617–657. doi: 10.2307/2528565. [DOI] [PubMed] [Google Scholar]
- Dickey JM, Lientz BP. The weighted likelihood ratio, sharp hypotheses about chances, the order of a Markov chain. The Annals of Mathematical Statistics. 1970;41:214–226. doi: 10.1214/aoms/1177697203. [DOI] [Google Scholar]
- Dienes Z. Understanding psychology as a science: An introduction to scientific and statistical inference. New York: Palgrave MacMillan; 2008. [Google Scholar]
- Dienes Z. Using Bayes to get the most out of non-significant results. Frontiers in Psychology. 2014;5:781. doi: 10.3389/fpsyg.2014.00781. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Donnellan, M.B., Lucas, R.E., & Cesario, J. (in press). On the association between loneliness and bathing habits: Nine replications of Bargh and Shalev (2012) Study 1. Emotion. [DOI] [PubMed]
- Edwards W. Tactical note on the relation between scientific and statistical hypotheses. Psychological Bulletin. 1965;63:400–402. doi: 10.1037/h0021967. [DOI] [PubMed] [Google Scholar]
- Edwards W, Lindman H, Savage LJ. Bayesian statistical inference for psychological research. Psychological Review. 1963;70:193–242. doi: 10.1037/h0044139. [DOI] [Google Scholar]
- Gallistel CR. The importance of proving the null. Psychological Review. 2009;116:439–453. doi: 10.1037/a0015251. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gradshteyn, I.S., & Ryzhik, I.M. (2007). Table of integrals, series, and products. In Jeffrey, A., & Zwillinger, D. (Eds.) 7th edn. Academic Press.
- Hodges JL, Lehmann EL. Testing the approximate validity of statistical hypotheses. Journal of the Royal Statistical Society B. 1954;16:261–268. [Google Scholar]
- Iverson GJ, Wagenmakers E-J, Lee MD. A model averaging approach to replication: The case of prep. Psychological Methods. 2010;15:172–181. doi: 10.1037/a0017182. [DOI] [PubMed] [Google Scholar]
- Jeffreys H. Theory of probability. 3rd edn. Oxford, UK: Oxford University Press; 1961. [Google Scholar]
- Jeffreys H. Some general points in probability theory. In: Zellner A, editor. Bayesian analysis in econometrics and statistics: Essays in honor of Harold Jeffreys. Amsterdam, The Netherlands: North-Holland Publishing Company; 1980. pp. 451–453. [Google Scholar]
- Kass RE, Raftery AE. Bayes factors. Journal of the American Statistical Association. 1995;90:773–795. doi: 10.1080/01621459.1995.10476572. [DOI] [Google Scholar]
- Klugkist I, Laudy O, Hoijtink H. Inequality constrained analysis of variance: A Bayesian approach. Psychological Methods. 2005;10:477–493. doi: 10.1037/1082-989X.10.4.477. [DOI] [PubMed] [Google Scholar]
- Lee MD, Wagenmakers E-J. Bayesian modeling for cognitive science: A practical course. Cambridge: Cambridge University Press; 2013. [Google Scholar]
- Lindley DV. That wretched prior. Significance. 2014;1:85–87. doi: 10.1111/j.1740-9713.2004.026.x. [DOI] [Google Scholar]
- Ly, A., Verhagen, A.J., & Wagenmakers, E.-J. (2015). Harold Jeffreys’s default Bayes factor hypothesis tests: Explanation, extension, and application in psychology. Manuscript under revision for the special issue on Bayes factors for the Journal of Mathematical Psychology.
- Meehl PE. Theoretical risks and tabular asterisks: Sir Karl, Sir Ronald, and the slow progress of soft psychology. Journal of Consulting and Clinical Psychology. 1978;46:806–834. doi: 10.1037/0022-006X.46.4.806. [DOI] [Google Scholar]
- Morey RD, Rouder JN. Bayes factor approaches for testing interval null hypotheses. Psychological Methods. 2011;16:406–419. doi: 10.1037/a0024377. [DOI] [PubMed] [Google Scholar]
- Morey RD, Wagenmakers E-J. Simple relation between Bayesian order-restricted and point-null hypothesis tests. Statistics and Probability Letters. 2014;92:121–124. doi: 10.1016/j.spl.2014.05.010. [DOI] [Google Scholar]
- Oberhettinger F. Hypergeometric functions. In: Abramowitz M, Stegun I A, editors. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover; 1972. pp. 555–566. [Google Scholar]
- Robert, C.P., Chopin, N., & Rousseau, J. (2009). Harold Jeffreys’s Theory of Probability revisited. Statistical Science, 141–172.
- Rogers JL, Howard KI, Vessey JT. Using significance tests to evaluate equivalence between two experimental groups. Psychological Bulletin. 1993;113:553–565. doi: 10.1037/0033-2909.113.3.553. [DOI] [PubMed] [Google Scholar]
- Rouder JN. Optional stopping: No problem for Bayesians. Psychonomic Bulletin & Review. 2014;21:301–308. doi: 10.3758/s13423-014-0595-4. [DOI] [PubMed] [Google Scholar]
- Rouder JN, Speckman PL, Sun D, Morey RD, Iverson G. Bayesian t tests for accepting and rejecting the null hypothesis. Psychonomic Bulletin & Review. 2009;16:225–237. doi: 10.3758/PBR.16.2.225. [DOI] [PubMed] [Google Scholar]
- Rozeboom WW. The fallacy of the null–hypothesis significance test. Psychological Bulletin. 1960;57:416–428. doi: 10.1037/h0042040. [DOI] [PubMed] [Google Scholar]
- Simonsohn, U. (in press). Small telescopes: Detectability and the evaluation of replication results. Psychological Science. [DOI] [PubMed]
- Verhagen AJ, Wagenmakers E-J. Bayesian tests to quantify the result of a replication attempt. Journal of Experimental Psychology: General. 2014;143:1457–1475. doi: 10.1037/a0036731. [DOI] [PubMed] [Google Scholar]
- Wagenmakers E-J. A practical solution to the pervasive problems of p values. Psychonomic Bulletin & Review. 2007;14:779–804. doi: 10.3758/BF03194105. [DOI] [PubMed] [Google Scholar]
- Wagenmakers E-J, Lodewyckx T, Kuriyal H, Grasman R. Bayesian hypothesis testing for psychologists: A tutorial on the Savage–Dickey method. Cognitive Psychology. 2010;60:158–189. doi: 10.1016/j.cogpsych.2009.12.001. [DOI] [PubMed] [Google Scholar]
- Wagenmakers, E.-J., Verhagen, A.J., Ly, A., Bakker, M., Lee, M.D., Matzke, D., & et al. (in press). A power fallacy. Behavior Research Methods. [DOI] [PubMed]
- Wagenmakers, E.-J., Verhagen, A.J., Ly, A., Matzke, D., Steingroever, H., Rouder, J.N., & et al. (in press). The need for Bayesian hypothesis testing in psychological science. In Lilienfeld, S. O., & Waldman, I. (Eds.) Psychological science under scrutiny: Recent challenges and proposed solutions. John Wiley and Sons.
- Wagenmakers E-J, Wetzels R, Borsboom D, van der Maas HLJ. Why psychologists must change the way they analyze their data: The case of psi. Journal of Personality and Social Psychology. 2011;100:426–432. doi: 10.1037/a0022790. [DOI] [PubMed] [Google Scholar]
- Wagenmakers E-J, Wetzels R, Borsboom D, van derMaas HLJ, Kievit RA. An agenda for purely confirmatory research. Perspectives on Psychological Science. 2012;7:627–633. doi: 10.1177/1745691612463078. [DOI] [PubMed] [Google Scholar]
- Westlake WJ. Symmetrical confidence intervals for bioequivalence trials. Biometrics. 1976;32:741–744. doi: 10.2307/2529259. [DOI] [PubMed] [Google Scholar]
- Wetzels R, Wagenmakers E-J. A default Bayesian hypothesis test for correlations and partial correlations. Psychonomic Bulletin & Review. 2012;19:1057–1064. doi: 10.3758/s13423-012-0295-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wrinch D, Jeffreys H. On some aspects of the theory of probability. Philosophical Magazine. 1919;38:715–731. doi: 10.1080/14786441208636005. [DOI] [Google Scholar]
- Wrinch D, Jeffreys H. On certain fundamental principles of scientific inquiry. Philosophical Magazine. 1921;42:369–390. doi: 10.1080/14786442108633773. [DOI] [Google Scholar]
- Wrinch D, Jeffreys H. On certain fundamental principles of scientific inquiry. Philosophical Magazine. 1923;45:368–374. doi: 10.1080/14786442308634125. [DOI] [Google Scholar]