-
Notifications
You must be signed in to change notification settings - Fork 19
/
003-replication.qmd
359 lines (225 loc) · 67.8 KB
/
003-replication.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
{{< include _setup.qmd >}}
# Replication {#sec-replication}
::: {.callout-note title="learning goals"}
* Define and distinguish reproducibility and replicability
* Synthesize the metascientific literature on replication and the causes of replication failures
* Reason about the relation of replication to theory building
:::
In the previous chapters, we introduced experiments, their connection with causal inference, and their role in building psychological theory. In principle, repeated experimental work combined with theory building should yield strong research programs that explain and predict phenomena with increasing scope.
Yet, in recent years there has been an increasing recognition that this idealized view of science might not be a good description of what we actually see when we look at the psychology literature. Many classic findings may be wrong, or at least overstated. Their statistical tests might not be trustworthy. The actual numbers are even wrong in many papers! And even when experimental findings are "real," they may not generalize broadly to different people and different situations.
How do we know about these problems? A burgeoning field called **metascience**\index{metascience} is providing the evidence. Metascience is research *about research*---for example, investigating how often findings in a literature can be successfully built on, or trying to figure out how widespread some negative practice is. Metascience allows us to go beyond one-off anecdotes about a particular set of flawed results or rumors about bad practices. Perhaps the most obvious sign that something is wrong is that when independent scientists team up in metascience projects and try to repeat previous studies, they often do not get the same results.
![A framework for understanding different terms related to the repeatability of scientific findings [based on @whitaker2017].](images/replication/terms.png){#fig-replication-terms .column-margin fig-alt="A table with cols dataset (same/different), rows analysis (same/different). 1st row reproducible, replicable; 2nd row robust."}
Before we begin reviewing this evidence, let's discuss the different ways in which a scientific finding can be repeated. @Fig-replication-terms gives us a basic starting point for our definitions. For a particular finding in a paper, if we take the same data, do the same analysis, and get the same result, we call that finding **reproducible** (sometimes, **analytically** or **computationally reproducible**). If we collect *new* data using the same methods, do the same analysis, and get the same result, we call that a **replication** and say that the finding is **replicable**. If we do a different analysis with the same data, we call this a **robustness check**\index{robustness check} and if we get a similar result, we say that the finding is **robust**.^[You might have observed that a lot of work is being done here by the word "same." How do we operationalize same-ness for experimental procedures, statistical analyses, samples, or results? These are difficult questions that we'll touch on below. Keep in mind that there's no single answer and so these terms are always going to helpful guides rather than exact labels.] We leave the last quadrant empty because there's no specific term for it in the literature---the eventual goal is to draw **generalizable** conclusions, but this term means more than just having a finding that is reproducible and replicable.
In this chapter, we'll primarily discuss reproducibility and replicability (we'll talk about robustness a bit in @sec-prereg). We'll start out by reviewing key concepts around reproducibility and replicability as well as some important metascience\index{metascience} findings. This literature suggests that when you read an average psychology paper, your default expectation should be that it might not replicate!
We'll then discuss some of the main reasons *why* findings might not replicate---especially **analytic flexibility**\index{analytic flexibility} and **publication bias**\index{publication bias}. We end by taking up the issue of how reproducibility and replicability relate to theory building in psychology, and the role of **open science**\index{open science} in this discussion. This discussion focuses on the key role of [transparency]{.smallcaps} (one of our major book themes) in supporting theory building.
## Reproducibility
Scientific papers are full of numbers: sample sizes, measurements, statistical results, and visualizations. For those numbers to have meaning, and for other scientists to be able to verify them, we need to know where they came from (their **provenance**\index{provenance}). The chain of actions that scientists perform on the raw data, all the way through to reporting numbers in their papers, is sometimes called the **analysis pipeline**\index{analysis pipeline}. For much of history, scientific papers have only provided a verbal description of the analysis pipeline, usually with little detail.^[The situation is nicely summed up by a prescient quote from @buckheit1995 [p. 5]: "A scientific publication is not the scholarship itself, it is merely *advertising* of the scholarship. The actual scholarship is the complete software development environment and the complete set of instructions which generated the figures."]
Moreover, researchers typically do not share key research objects from this pipeline, such as the analysis scripts or the raw data [@hardwicke2021c].^[For many years, professional societies, like the American Psychological Association\index{American Psychological Association (APA)}, have mandated data sharing (<https://www.apa.org/ethics/code>), but only for purposes of verification, and only "on request"---in other words, scientists could keep data hidden by default and it was their responsibility to share if another scientist requested access. In practice, this kind of policy does not work; data are rarely made available on request [@wicherts2006]. We believe this situation is untenable. We provide a longer argument justifying data sharing in @sec-ethics and discuss some of the practicalities of sharing in @sec-management.] Without code and data, the numbers reported in scientific papers are often not reproducible---an independent scientist cannot repeat all of the steps in the analysis pipeline\index{analysis pipeline} and get the same results as the original scientists.
Reproducibility is desirable for a number of reasons. Without it:
* Errors in calculation or reporting could lead to disparities between the reported result and the actual result
* Vague verbal descriptions of analytic computations could keep readers from understanding the computations that were actually performed
* The robustness of data analyses to alternative model specifications cannot be checked
* Synthesizing evidence across studies, a key part of building a cumulative body of scientific knowledge, is much more difficult
From this list, error detection and correction is probably the most pressing issue. But are errors common? There are plenty of individual instances of errors that are corrected in the published literature [e.g., some of us found an error in @cesana-arlotti2018], and we ourselves have made significant analytic errors [e.g., @frank2013]. But these kinds of experiences don't tell us about the frequency of errors more generally (or the consequences of error for the conclusions that researchers draw).^[There is a very interesting discussion of the pernicious role of scientific error on theory building in Gould's [-@gould1996] "The Mismeasure of Man." Gould examines research on racial differences in intelligence and documents how scientific errors that supported racial differences were often overlooked. Errors are often caught asymmetrically; we are more motivated to double-check a result that contradicts our biases.]
```{r replication-fake-ttest}
t <- t.test(1:10, 2:11)
```
Estimating the frequency of errors is a metascientific issue that researchers have attempted to answer over the years. If errors are frequent, that would suggest a need for changes in our policies and practices to reduce their frequency! Unfortunately, the lack of data availability creates a problem: it's hard to figure out if calculations are wrong if you can't check them in the first place. Here's one clever approach to this issue. In standard American Psychological Association (APA)\index{American Psychological Association (APA)} reporting format, inferential statistics must be reported with three pieces of information: the test statistic,\index{test statistic} the degrees of freedom\index{degrees of freedom (statistics)} for the test, and the $p$-value (e.g., $t(`r t$parameter`) = `r round(t$statistic, 2)`$, $p = `r round(t$p.value, 3)`$). Yet, these pieces of information are redundant with one another. Thus, reported statistics can be checked for consistency simply by evaluating whether they line up with one another---that is, whether the $p$-value recomputed from the $t$ and degrees of freedom\index{degrees of freedom (statistics)} matches the reported value.
@bakker2011 performed this kind of statistical consistency analysis on a sample of 281 papers, and found that around 18% of statistical results were incorrectly reported. Even more worrisome, around 15% of articles contained at least one decision error---that is, a case where the error changed the direction of the inference that was made (e.g., from significant to insignificant).^[Confirming Gould's speculation (see note above), most of the reporting errors that led to decision errors were in line with the researchers' own hypotheses.] @nuijten2016 used an automated method called "statcheck"^[Statcheck is now available as a web app (<http://statcheck.io>) and an R package [@nuijten2024] so that you can check your own manuscripts!] to confirm and extend this analysis. They checked $p$-values for more than 250,000 psychology papers in the period 1985--2013 and found that around half of all papers contained at least one incorrect $p$-value!
These findings provide a lower bound on the number of errors in the literature and suggest that reproducibility of analyses is likely very important. However, they only address the consistency of statistical reporting. What would happen if we tried to repeat the entire analysis pipeline\index{analysis pipeline} from start to finish? It's rather difficult to answer this question at a large scale: firstly, it takes a long time to run a reproducibility check; and secondly, the lack of access to raw data means that for most scientific papers, checking reproducibility is impossible.
Nevertheless, a few years ago a group of us spotted an opportunity to check reproducibility by examining studies published in two journals that either required or encouraged data sharing. @hardwicke2018b and @hardwicke2021d first identified studies that shared data, then narrowed those down to studies that shared *reusable* data (the data were accessible, complete, and comprehensible). For 60 of these articles, we then attempted to reproduce numerical values related to a particular statistical result in the paper. The process was incredibly labor-intensive, with articles typically requiring 5--10 hours of work each. And the results were concerning: the targeted values in only about a third of articles were completely reproducible without help from the original authors! In many cases, after---sometimes extensive---correspondence with the original authors, they provided additional information that was not reported in the original paper. After author contact, the reproducibility success rate improved to 62% (@fig-replication-hardwicke). The remaining papers appeared to have some values that neither we, nor the original authors, could reproduce. Importantly, we didn't identify any patterns of nonreproducibility that seriously undermined the conclusions drawn in the original articles; however, other reproducibility studies have found a distressingly high number of decision errors [@artner2020], albeit with a slightly higher success rate overall.
![Analytic reproducibility of results from open-data articles in _Cognition_ and _Psychological Science_. From @hardwicke2021d, figure 1 (licensed under CC BY 4.0).](images/replication/hardwicke2021.png){#fig-replication-hardwicke .margin-caption fig-alt="A plot with confidence intervals for before/after author contact."}
In sum: transparency is a critical imperative for decreasing the frequency of errors in the published literature. Reporting and computation errors are frequent in the published literature, and the identification of these errors depends on the findings being reproducible. If data are not available, then errors usually cannot be found.
::: {.callout-note title="case study"}
### The Open Science Collaboration\index{Open Science Collaboration} {-}
Around 2011, we were teaching our Experimental Methods course for the first time, based on a course model that we had worked on with Rebecca Saxe [@frank2012]. The idea was to introduce students to the nuts and bolts of research by having them run replications. A guy named Brian Nosek was on sabbatical nearby, and over coffee we learned that he was starting up an ambitious project to replicate a large sample of studies published in top psychology journals in 2008.
In the course that year we chose replication projects from the sample that Nosek had told us about. Four of these projects were executed very well and were nominated by the course TAs for inclusion in the broader project. A few years later, when the final group of 100 replication studies was completed, we got a look at the results (@fig-replication-osc-2015).
```{r fig-replication-osc-2015}
#| fig-cap: Results from the @osc2015. Each point represents one of the studies in the sample, with the horizontal position giving the original effect size and the vertical position giving the replication effect size. Dot size represents estimated statistical power. The grey line represents a perfect replication.
#| fig-alt: A scatterplot with red (significant) and blue (not significant) points; blue points tend to be lower than red points.
#| fig-width: 10
#| fig-height: 8
#| out-width: 75%
rpp <- read_csv("data/replication/rpp_data.csv")
rpp_data <- rpp |>
rename_with(\(s) s |> str_replace_all("_", ".") |> str_replace_all("\\.$", "")) |>
filter(!is.na(T.pval.USE..O), !is.na(T.pval.USE..R)) |>
mutate(oriSig = if_else(T.pval.USE..O <= 0.06, "Significant", "Not Significant"), # |> as_factor(),
repSig = if_else(T.pval.USE..R <= 0.05, "Significant", "Not Significant"), # |> as_factor(),
`Power (R)` = as.numeric(`Power (R)`))
rpp_plot <- ggplot(rpp_data, aes(x = T.r..O, y = T.r..R)) +
geom_hline(aes(yintercept = 0), linetype = "dotted") +
geom_abline(intercept = 0, slope = 1, color = pal$grey) +
geom_point(aes(size = `Power (R)`, fill = repSig), alpha = .8, color = pal$grey, shape = 21) +
geom_rug(aes(color = oriSig), size = 1, sides = "b", alpha = .6, show.legend = FALSE) +
geom_rug(aes(color = repSig), size = 1, sides = "l", alpha = .6) +
scale_x_continuous(limits = c(0, 1), breaks = c(0, .25, .5, .75, 1)) +
scale_y_continuous(limits = c(-.5, 1), breaks = c(-.5, -.25, 0, .25, .5, .75, 1)) +
scale_size_continuous(range = c(1, 5)) +
labs(x = "Original effect size", y = "Replication effect size",
colour = "p-value", fill = "p-value", size = "Replication power") +
theme(legend.position = c(0.3, 0.87),
legend.box = "horizontal",
plot.margin = margin(0, 0, 7, 7))
ori_hist <- ggplot(rpp_data, aes(x = T.r..O, fill = oriSig)) +
geom_density(aes(y = after_stat(count)), alpha = 0.5, show.legend = FALSE) +
lims(x = c(0, 1)) +
theme(axis.line = element_line(colour = "white"),
axis.ticks = element_line(colour = "white"),
axis.text.y = element_text(colour = "white"),
axis.text.x = element_blank(),
axis.title.y = element_text(colour = "white"),
axis.title.x = element_blank(),
plot.margin = margin(0))
rep_hist <- ggplot(rpp_data, aes(x = T.r..R, fill = repSig)) +
coord_flip() +
geom_density(aes(y = after_stat(count)), alpha = 0.5, show.legend = FALSE) +
lims(x = c(-.5, 1)) +
theme(axis.line = element_line(colour = "white"),
axis.ticks = element_line(colour = "white"),
axis.text.x = element_text(colour = "white"),
axis.text.y = element_blank(),
axis.title.x = element_text(colour = "white"),
axis.title.y = element_blank(),
plot.margin = margin(0))
cowplot::plot_grid(ori_hist, NULL, rpp_plot, rep_hist,
rel_widths = c(4, 1.4), rel_heights = c(1.4, 4))
```
\vspace{-1em}
The resulting metascience\index{metascience} paper, which we and others refer to as the "replication project in psychology" (RPP), made a substantial impression on both psychologists and the broader research community, defining both a field of psychology metascience studies and providing a template for many-author collaborative projects [@osc2015]. But the most striking thing was the result: disappointingly, only around a third of the replications had similar findings to the original studies. The others yielded smaller effects that were not statistically significant in the replication sample (almost all of the original studies were significant). The RPP provided the first large-scale evidence that there were systematic issues with replicability in the psychology literature.
The RPP's results---and their interpretation---were controversial, however, and much ink was spilled on what these data showed. In particular, critics pointed to different degrees of fidelity between the original studies and the replications; insufficient levels of statistical power\index{statistical power} and low evidential value in the replications; nonrepresentative sampling of the literature; and difficulties identifying specific statistical outcomes for replication success [@gilbert2016;@anderson2016;@etz2016]. In our view, many of these critiques have merit, and you can't simply interpret the results of RPP as an unbiased estimate of the replicability of results in the literature, contra the title.
<!-- Confusingly, the title of the paper is "Estimating the reproducibility of psychological science", not "the replicability of psychological science". This caused terminological confusion for several years; it seems like at this point people have just decided it was a mistake. -->
And yet, RPP's results are still important and compelling, and they undeniably changed the direction of the field of psychology. Many good studies are like this---they have flaws but they inspire follow-up studies that can address those problems. For several of us personally, working on this project was also transformative in that it showed us the power of collaborative work. Together we could do a study that no one of us had any hope of completing on our own, and potentially make a difference in our field.
:::
## Replication
Beyond verifying a paper's original analysis pipeline, we are often interested in understanding whether the study can be replicated---if we repeat the study methods and obtain new data, do we get similar results? To quote @popper2005 [p. 86], "The scientifically significant ... effect may be defined as that which can be regularly [replicated] by anyone who carries out the appropriate experiment in the way prescribed."
Replications can be conducted for many reasons [@schmidt2009]. One goal can be to verify that the results of an existing study can be obtained again if the study is conducted again in exactly the same way, to the best of our abilities. A second goal can be to gain a more precise estimate of the effect of interest by conducting a larger replication study, or combining the results of a replication study with the existing study. A third goal can be to investigate whether an effect will persist when, for example, the experimental manipulation is done in a different, but still theory-consistent, manner. Alternatively, we might want to investigate whether the effect persists in a different population. Such replications are often efforts to "replicate and extend," and are common both when the same research team wants to conduct a sequence of experiments that each build on one another or when a new team wants to build on a result from a paper they have read [@rosenthal1990].
Much of the metascience\index{metascience} literature (and attendant debate and discussion) has focused on the first goal---simple verification. This focus has been so intense that the term "replication" has become associated with skepticism or even attacks on the foundations of the field. This dynamic is at odds with the role that replication is given in a lot of philosophy of science, where it is assumed to be a typical part of "normal science."
### Conceptual frameworks for replication
The key challenge of replication is **invariance**\index{invariance}---Popper's stipulation that a replication be conducted "in the way prescribed" in the quote above. That is, what are the features of the world over which a particular observation should be relatively constant, and what are those that are specified as the key ingredients for the effect? Replication is relatively straightforward in the physical and biological sciences, in part because of presupposed theoretical background that allows us to make strong inferences about invariance. If a biologist reports an observation about a particular cell type from an organism, the color of the microscope is presumed not to matter to the observation.
These invariances\index{invariance} are far harder to state in psychology, for both the procedure of an experiment and its sample. Procedurally, should the color of the experimental stimulus matter to the measured effect? In some cases yes, in some cases no.^[A fascinating study by @baribault2018 proposes a method for empirically understanding psychological invariances. Treating a subliminal priming effect as their model system, they sampled thousands of "micro-experiments" in which small parameters of their experimental procedure were randomly sampled. These parameters allowed for measurement of their effect of interest, averaging across this irrelevant variation. In their case, it turned out that color did not matter.] Yet, the task of postulating how a scientific effect should be invariant to lab procedures pales in comparison to the task of postulating how the effect should be invariant across different human populations!^[In some sense, the research program of some branches of the social sciences amounts to an understanding of invariances across human cognition.]
<!-- If color does not matter, how about the context of presentation for an experiment---should presentation to a participant at home on a web browser produce the same effect as presentation in a laboratory setting using custom software [@crump2013]? -->
A lot is at stake in this discussion. If Dr. Frog publishes a finding with US undergraduates and Dr. Toad then "replicates" the procedure in Germany, to what extent should we be perturbed if the effect is different in magnitude or absent?^[Presumably not very much if Dr. Toad gave the original instructions in English instead of in German---that's another one of these pesky invariances\index{invariance} that we are always worrying about!] Meta-researchers have made a number of replication taxonomies to try and quantify the degree of methodological consistency between two experiments.
Some researchers have tried to distinguish "direct replications"^[These also get called "exact replications" sometimes. We think this term is misleading because similarity between two different experiments is always going to be on a gradient, and where you cut this continuum is always going to be a theory-laden decision. One person's "exact" is another's "inexact."] and "conceptual replications." Direct replications are those that attempt to reproduce all of the salient features of the prior study, up to whatever invariances\index{invariance} the experimenters believe are present (e.g., color of the paint or gender of the experimenter). In contrast, conceptual replications are typically paradigms that attempt to test the same hypothesis via different operationalizations of the manipulation and/or the measure. We agree with @zwaan2018: labeling this second type of experiment as a "replication" is a little misleading. Rather, so-called conceptual replications are actually different tests of the same part of your theory. Such tests can be extremely valuable, but they serve a different goal than replication.
::: {.callout-note title="accident report"}
### "Small Telescopes" {-}
We've been discussing the question of invariance\index{invariance} with respect to procedure and sample, but we haven't really discussed invariance with respect to the studies' statistical results. To what extent can we consider two statistical results to be "the same"? Several obvious metrics, including those used by RPP, have important limitations [@simonsohn2015]. For example, if one finding is statistically significant and the other isn't, they still could have effect sizes that are actually quite close to one another, in part because one might have a larger sample size than the other. Or you could have two significant findings that nevertheless have very different effect sizes.
```{r fig-replication-telescopes}
#| fig-cap: The original finding by @schwarz1983 and two replications with much larger samples. All three estimates include a 95% confidence interval, but the confidence intervals are very small for the two replication studies. The blue dotted line shows the smallest effect that the original study could reasonably have detected. Based on @simonsohn2015.
#| fig-alt: A plot with confidence intervals for original (very wide) and replication 1 and 2 (very narrow and near zero).
#| out-width: 60%
source("helper/replication/telescopes.R")
tele_data <- tibble(study = StudyLabels, h95 = h95, h90 = h90, d = d, l90 = l90, l95 = l95)
ggplot(tele_data, aes(x = study)) +
coord_cartesian(clip = "off") +
geom_hline(yintercept = 0, color = pal$grey) +
geom_hline(yintercept = d33, linetype = "dotted", color = pal$grey) +
geom_pointrange(aes(y = d, ymin = l95, ymax = h95), fatten = 1.5) +
annotate(geom = "text", x = 3.5, y = d33 + 0.07,
label = 'italic(d)["33%"]', parse = TRUE,
family = .font) +
labs(x = "", y = bquote("Effect size (Cohen's" ~ italic(d) ~ ")")) +
theme(axis.text.x = element_text(size = rel(0.8)))
```
\vspace{-1em}
In a classic study, @schwarz1983 reported that participants ($N = 28$) rated their life satisfaction as higher on sunny days than rainy days, suggesting that they misattributed temporary happiness about the weather to longer-term life satisfaction. However, when two more recent studies examined very large samples of survey responses, they yielded estimates of the effect that were much smaller. (All of these effects have been standardized so that they are on the same scale using a metric called Cohen's $d$\index{Cohen's $d$} that we will introduce more formally in @sec-estimation.) In one survey, the effect was statistically significant but extremely small; in the other it was essentially zero (@fig-replication-telescopes). Using statistical significance as the metric of replication success, you might be tempted to say that the first of these studies was a successful replication and the second was a failed replication.
Simonsohn points out that this interpretation doesn't make sense, using the analogy of a study's sample size as a telescope. Following this analogy, Schwarz and Clore had a very small telescope (i.e., a small sample size), and they pointed it in a particular direction and claimed to have observed a planet (i.e., a nonzero effect). Now it might turn out that there *was* a planet at that location when you look with a much larger telescope (first replication), and it might turn out that there *wasn't* (second replication). Regardless, however, the original small telescope was simply not powerful enough to have seen whatever was there. Both studies fail to replicate the original observation, regardless of whether their observed effect was in the same direction.
Following Simonsohn's example, numerous metrics for replication success have been proposed [@mathur2020]. The best of these move away from the idea that there is a binary test of whether an individual replication was successful and toward a comparison of the two effects and whether they appear consistent with the same theory. @gelman2018 suggests the "time reversal" heuristic---rather than thinking of a replication as a success or a failure, consider the alternative world in which the replication study had been performed first and the original study followed it.
If we leave behind the idea that the original study has precedence, it makes much more sense to consider the sum total of the evidence across multiple experiments. Using this approach, it seems pretty clear that the weather misattribution effect is, at best, a tiny factor in people's overall judgments of their life satisfaction, even if a small study once found a larger effect.
:::
### The metascience\index{metascience} of replication
In RPP, replication teams reported subjectively that 39% of replications were successful, with 36% reporting a significant effect in the same direction as the original. How generalizable is this estimate---and how replicable *is* psychological research more broadly? Based on the discussion above, we hope we've made you skeptical that this is a well-posed question, at least without additional qualifiers. Any answer is going to have to provide details about the scope of this claim, the definition of replication being used, and the metric for replication success. On the other hand, *versions* of this question have led to a number of empirical studies that help us better understand the scope of replication issues.
<!-- We'll review these briefly here because we think a good understanding of the metascience literature on replication can help us decide how worried we should be about the state of the psychology literature. -->
Many subsequent empirical studies of replication have focused on particular subfields or journals, with the goal of informing particular field-specific practices or questions. For example, @camerer2016 replicated all of the between-subject laboratory articles published in two top economics journals in the period 2011--2014. They found a replication rate of 61% of significant effects in the same direction of the original, higher than the rate in RPP but lower than the naive expectation based on their level of statistical power.\index{statistical power} Another study attempted to replicate all 21 behavioral experiments published in the journals *Science* and *Nature* in 2010--2015, finding a replication rate of 62% significant effects [@camerer2018]. This study was notable because they followed a two-step procedure---after an initial round of replications, they followed up on the failures by consulting with the original authors and pursuing extremely large sample sizes. The resulting estimate thus is less subject to many of the critiques of the original RPP paper. While these types of studies do not answer all the questions that were raised about RPP, they suggest that replication rates for top experiments are not as high as we'd like them to be, even when care is taken with the sampling and individual study protocols.
Other scientists working in the same field can often predict when an experiment will fail to replicate. @dreber2015 showed that prediction markets (where participants bet small sums of real money on replication outcomes) made fairly accurate estimates of replication success in the aggregate. This result has itself now been replicated several times [e.g., in the @camerer2018 study described earlier]. Maybe even more surprisingly, there's some evidence that machine learning models trained on the text of papers can predict replication success [@yang2020;@youyou2023], though more work still needs to be done to validate these models and understand the features they use. More generally, these two lines of research suggest the possibility of isolating consistent factors that lead to replication success or failure. (In the next section we consider what these factors are in more depth.)
Although more work still needs to be done to get generalizable estimates of replicability, taken together, the metascience\index{metascience} literature does provide some clarity on what we should expect. Altogether, the chance of a significant finding in a (well-powered) replication study of a generic experiment in social and cognitive psychology is likely somewhere around 56%. Furthermore, the replication effect will likely be on average 53% as large [@nosek2021].
On the other hand, these large-scale replication studies have substantial limitations as well. With relatively few exceptions, the studies chosen for replication used short, computerized tasks that mostly would fall into the categories of social and cognitive psychology. Further, and perhaps most troubling from the perspective of theory development, they tell us only whether a particular experimental effect can be replicated. They tell us much less about whether the construct that the effect was meant to operationalize is in fact real! We'll return to the difficult issue of how replication and theory construction relate to one another in the final section of this chapter.
Some have called the narrative that emerges from the sum of these metascience\index{metascience} studies the "replication crisis."\index{replication crisis} We think of it as a major tempering of expectations with respect to the published literature. Your naive expectation might reasonably be that you could read a typical journal article, select an experiment from it, and replicate that experiment in your own research. The upshot of this literature is, unfortunately, if you try selecting and replicating an experiment, you might well be disappointed by the result.
::: {.callout-note title="accident report"}
### Consequences for the study, consequences for the person {-}
"Power posing" is the idea that adopting a more open and expansive physical posture might also change your confidence. @carney2010 told 42 participants that they were taking part in a study of physiological recording. They then held two poses, each for a minute. In one condition, the poses were expansive (e.g., legs out, hands on head); in another condition, the poses were contractive (e.g., arms and legs crossed). Participants in the expansive pose condition showed increases in testosterone and decreases in salivary cortisol (a stress marker), they took a greater number of risk in a gambling task, and they reported that they were more "in charge" in a survey. This result suggested that a two-minute manipulation could lead to striking physiological and psychological changes---in turn leading to power posing becoming firmly enshrined as part of the set of recommended strategies in business and elsewhere. The original publication contributed to the rise of the researchers' careers, including becoming a principal piece of evidence in a hugely popular TED talk by Amy Cuddy, one of the authors.\index{Cuddy, Amy}
Follow-up work has questioned these findings, however. A replication study with a larger number of participants ($N = 200$) failed to find evidence for physiological effects of power posing, even as it did find some effects on participants' own beliefs [@ranehill2015]. And a review of the published literature suggested that many findings appeared to be the result of some sort of publication bias,\index{publication bias} as far too many of them had $p$-values very close to the 0.05 threshold [@simmons2017]. In light of this evidence, the first author of the replication study bravely made a public statement that she does not believe that "power pose" effects are real [@carney2016].
From the scientific perspective, it's very tempting to take this example as a case in which the scientific ecosystem corrects itself. Although many people continue to cite the original power posing work, we suspect the issues are well known throughout the social psychology community, and overall interest from the lay public has gone down. But this narrative masks the very real human impacts of the self-correction process, which can raise ethical questions about the best way to address issues in the scientific record.
The process of debate and discussion around individual findings can be bruising and complicated. In the case of power posing, Cuddy herself was tightly associated with the findings, and many critiques of the findings became critiques of the individual. Several commentators used Cuddy's name as a stand-in for low-quality psychological results, likely because of her prominence and perhaps because of her gender and age as well. These comments were harmful to Cuddy personally and her career more generally.
<!-- ^[For further reading, see ["When the Revolution Came for Amy Cuddy"](https://www.nytimes.com/2017/10/18/magazine/when-the-revolution-came-for-amy-cuddy.html).] -->
Scientists should critique, reproduce, and replicate results---these are all parts of the progress of normal science. But it's important to do this in a way that's sensitive to the people involved. Here are a few guidelines for courteous and ethical conduct:
* Always communicate about the work, never the person. Try to use language that is specific to the analysis or design being critiqued, rather than the person who did the analysis or thought up the design.
* Avoid using language that assumes negative intentions, for example, "the authors misleadingly state that ..."
* Ask someone to read your paper, email, blogpost, or tweet before you hit send. It can be very difficult to predict how someone else will experience the tone of your writing; a reader can help you make this judgement.
* Consider communicating personally before communicating publicly. As Joe Simmons, one critic in the power posing debate, said, "I wish I'd had the presence of mind to pick up the phone and call [before publishing my critique]" [@dominus2017]. Personal communication isn't always necessary (and can be difficult due to asymmetries of power or status), but it can be helpful.
As we will argue in the next chapter, we have an ethical duty as scientists to promote good science and critique low-quality science. But we also have a duty to our colleagues and communities to be good to one another.
:::
## Causes of replication failure
::: {.callout-note title="depth"}
### Context, moderators,\index{moderator} and expertise {-}
There are many explanations for failed replications. The wonderful thing about metascience\index{metascience} is that these explanations can be tested empirically!
Let's start with the idea that specific experimental operationalizations of a theory might be "context sensitive," especially in subfields, like social psychology, whose theories inherently refer to environmental context [@van-bavel2016]. Critics brought this issue up for RPP, where there were several studies in which the original experimental materials were tailored to one cultural context but then were deployed in another context, potentially leading to failure due to mismatch [@gilbert2016].
Context sensitivity seems like a great explanation because in some sense, it *must* be right. If the context of an experiment includes the vast network of learned associations, practices, and beliefs that we all hold, then there's no question that an experiment's materials tap into this context to one degree or another. For example, if your experiment relies on the association between *doctor* and *nurse* concepts, you would expect this experiment to work differently in the past when *nurse* meant something more like *nanny* [@ramscar2016].
On the other hand, as an explanation of specific replication failures, context sensitivity has not fared very well. The "ManyLabs"\index{ManyLabs} projects were a series of replication projects in which *multiple* labs independently attempted to replicate several original studies. (In contrast, in RPP and similar studies, a single replication was conducted for each original study.) Some of the Many Labs projects assessed variation in replication success across different labs. In ManyLabs 2, @klein2018b replicated 28 findings, distributed across 125 different samples and more than 15,000 participants. ManyLabs 2 found almost no support for the context sensitivity hypothesis as an explanation of replication failure. In general, when effects failed to replicate, they did so when conducted in person as well as when conducted online, and these failures were consistent across many cultures and labs.
<!-- The size of effects in successful replications were modulated a bit by contextual factors, but heterogeneity in general was not high. -->
On the other hand, a review of several Many Labs--style replication projects indicated, on reanalysis, that population effects differed across replication labs even when the replication protocols were very similar to one another [@olsson2020heterogeneity; @errington2021investigating]. So, context sensitivity is almost certainly present---and we'll return to the broader issues of generalizability, context, and invariance\index{invariance} in the next section---but so far we have not identified specific forms of context sensitivity that reliably affect replication success.
<!-- ![Forest plot showing effect sizes and confidence intervals for all of the studies in the paper as well as the two original studies being replicated and the meta-analytic effect (red diamond).](images/replication/lewis-data.png){#fig-replication-lf2} -->
These observations---that (1) direct replications vary in how successful they are, but (2) we cannot identify specific contextual moderators---together suggest the possible presence of "hidden moderators." That is, when faced with a successful original study and a failed replication, there may be some unknown factor(s) that moderates the effect.
We've personally had several experiences that corroborate the idea that there are hidden moderators. For example, in @lewis2016, we were unsuccessful in replicating a simple categorization experiment. We then made a series of iterative changes to the stimuli and instructions, for example, changing the color and pattern of the stimuli (@fig-replication-lf), eventually resulting in a larger (and statistically significant) effect---though still much smaller than the original. Critically, however, each alteration that we made to the procedure yielded a very small change in the effect, and it would have taken us many thousands of participants to figure exactly which alteration made the difference. (If you're keeping score, here's a case where stimulus color *did* matter to the outcome of the experiment!)
![Stimuli from the series of experiments described in @lewis2016 (see <https://github.com/mllewis/xtSamp>).](images/replication/lewis-stims.png){#fig-replication-lf width=70% fig-alt="Sets of multi-colored shapes that are either two intersecting arrows or a crossed out circle."}
\vspace{-1em}
Another explanation for replication failure that is often cited is experimenter expertise [e.g., @schwarz2014]. On this hypothesis, replications fail because the researchers performing the replication do not have sufficient expertise to execute the study. Like context sensitivity, this explanation is almost certainly true for some replications. In our own work, we have repeatedly performed experiments that failed due to our own incompetence!
Yet as an explanation of the pattern of metascience\index{metascience} findings, the expertise hypothesis hasn't been supported empirically. First, team expertise was not a predictor of replication success in RPP [cf. @bench2017]. More convincingly, Many Labs 5 selected ten findings from RPP with unsuccessful replications and systematically evaluated whether formal expert peer review of the protocols, including by the authors of the original study, would lead to a larger effect sizes. Despite a massive sample size and extremely thorough review process, there was little to no change in the effects for the vetted protocols relative to the original protocol used in RPP [@ebersole2020].
Context, moderators,\index{moderator} and expertise seem like reasonable explanations for individual replication failures. Certainly, we should expect them to be explanatory! But for these hypotheses to be operationalized in such a way that they carry weight in our evaluation of the metascientific evidence, they must be evaluated empirically rather than accepted uncritically. When such evaluations have been carried out, they have failed to support a large role for these factors.
:::
The general argument of this chapter is that everything is not all right in experimental psychology and, hence, that we need to change our methodological practices to avoid negative outcomes like irreproducible papers and unreplicable results. Toward that goal, we have been presenting metascientific evidence on reproducibility and replicability. But this evidence has been controversial, to say the least! Do large-scale replication studies like RPP---or for that matter, smaller-scale individual replications of effects like "power posing"---really lead to the conclusion that our methods require changes? Or are there reasons why a lower replication rate is actually consistent with a cumulative, positive vision of psychology?
One line of argument addresses this question through the dynamics of scientific change. There are many versions, but one is given by @wilson2020. The idea is that progress in psychology consists of a two-step process by which candidate ideas are "screened" by virtue of small, noisy experiments that reveal promising but tentative ideas that can then be "confirmed" by large-scale replications. On this kind of view, it's business as usual to find that many randomly selected findings don't hold up in large-scale replications and so we shouldn't be distressed by results like those of RPP. The key to progress is to finding a small set that *do* hold up, which will lead to new areas of inquiry. We're not sure that this view is either a good description of current practice or a good normative goal for scientific progress, but we won't focus on that critique of Wilson et al.'s argument here. Instead, since this book is written for experimenters-in-training, we assume that *you* do not want your experiment to be a false positive\index{false positive} from a noisy screening procedure, regardless of your feelings about the rest of the literature!
In RPP and subsequent metascience\index{metascience} studies, original studies with lower $p$-values, larger effect sizes, and larger sample sizes were more likely to replicate successfully [@yang2020]. From a theoretical perspective, this result is to be expected, because the $p$-value literally captures the probability of the data (or any "more extreme") under the null hypothesis of no effect. So a lower $p$-value should indicate a lower probability of a spurious result.^[In @sec-inference, we will have a lot more to say about $p < 0.05$, but for now we'll mostly just treat it as a particular research outcome.] In some sense, the fundamental question about the replication metascience literature is why the $p$-values *aren't* better predictors of replicability! For example, @camerer2018 computes an expected number of successful replications on the basis of the effects and sample sizes---and their proportion of successful replications is substantially lower than that number.^[This calculation, as with most other metrics of replication success, assumes that the underlying population effect is exactly the same for the replication and the original. This is a limitation because there could be unmeasured moderators that could produce genuine substantive differences between the two estimates.]
<!-- Such heterogeneity is not uncommon, even if it is relatively small, in multi-site replications in which heterogeneity can be directly estimated [@ebersole2020, olsson2020heterogeneity]. As such, the metrics will typically underestimate replication success when there is heterogeneity within pairs [@mathur2020]. -->
One explanation is that the statistical evidence presented in papers often dramatically overstates the true evidence from a study. That's because of two pervasive and critical issues: analytic flexibility\index{analytic flexibility} (also known as **$p$-hacking**\index{p-hacking} or **questionable research practices**\index{questionable research practices}) and **publication bias**\index{publication bias}.^[These terms basically mean the same thing and are not used very precisely in the literature. $p$-hacking is an informal term that sounds like you know you are doing something bad; sometimes people do, and sometimes they don't. Questionable research practices is a more formal-sounding term that is in principle vague enough to encompass many ethical failings but in practice gets used to talk about $p$-hacking. Unless $p$-hacking intent is crystal clear, we favor two clunkier terms: "data-dependent decision-making" and "undisclosed analytic flexibility." These terms describe the actual practices more precisely: trying many different things after looking at data, typically without reporting all of them.]
Publication bias\index{publication bias} refers to the relative preference (of scientists and other stakeholders, like journals) for experiments that "work" over those that do not, where "work" is typically defined as yielding a significant result at $p<0.05$. Because of this preference, it is typically easier to publish positive (statistically significant) results. The relative absence of negative results leads to biases in the literature. Intuitively, this bias will lead to a literature filled with papers where $p<0.05$. Negative findings will then remain unpublished, living in the proverbial "file drawer" [@rosenthal1979].^[One estimate is that 96% of (not preregistered) papers report positive findings [@scheel2021]. We'll have a lot more to say about analytic flexibility\index{analytic flexibility} and publication bias in chapters [-@sec-prereg] and [-@sec-meta], respectively.] In a literature with a high degree of publication bias, many findings will be spurious because experimenters got lucky and published the study that "worked" even if that success was due to chance variation. In this situation, these spurious findings will not be replicable and so the overall rate of replicability in the literature will be lowered.^[The mathematics of the publication bias scenario strikes some observers as implausible: most psychologists don't run dozens of studies and report only one out of each group [@nelson2018]. Instead, a more common scenario is to conduct many different analyses and then report the most successful, creating some of the same effects as publication bias---a promotion of spurious variation---without a file drawer full of failed studies.]
It's our view that publication bias\index{publication bias} and its even more pervasive cousin, analytic flexibility,\index{analytic flexibility} are likely to be key drivers of lower replicability. We admit that the metascientific evidence for this hypothesis isn't unambiguous, but that's because there's no sure-fire way to diagnose analytic flexibility in a particular paper---since we can almost never reconstruct the precise choices that were made in the data collection and analysis process! On the other hand, it is possible to analyze indicators of publication bias in specific literatures, and there are several cases where publication bias diagnostics appear to go hand in hand with replication failure. For example, in the "power posing" example described above, @simmons2017 noted strong evidence of analytic flexibility throughout the literature, leading them to conclude that there was no evidential value in the literature. And in the case of "money priming" (incidental exposures to images or text about money that were hypothesized to lead to changes in political attitudes), strong evidence of publication bias [@vadillo2016] was accompanied by a string of failed replications [@rohrer2015].
\vfill
::: {.callout-note title="accident report"}
### Analytic flexibility\index{analytic flexibility} reveals a fountain of eternal youth {-}
The way they tell it, Joseph Simmons, Leif Nelson, and Uri Simonsohn [-@simmons2018] wrote their paper on "false positive psychology"\index{false positive} [@simmons2011] as an attempt at catharsis. They were fed up with work that they felt exploited flexibility in data analysis to produce findings blessed with $p < 0.05$ but unlikely to reflect replicable effects. They called this practice $p$-hacking\index{p-hacking}: trying different things to get your $p$-value to be below 0.05.
Their paper reported on a simple experiment: they played participants either the Beatles song, "When I'm 64," or a control song and then asked them to report their date of birth [@simmons2011]. This manipulation resulted in a significant one and a half year rejuvenation effect. Listening to the Beatles seemed to have made their participants younger!
This result is impossible, of course. But the authors produced a statistically significant difference between the groups that, by definition, was a **false positive**\index{false positive}---a case where the statistical test indicated that there was a difference between groups despite no difference existing. In essence, they did so by trying many possible analyses and "cherry-picking" the one that produced a positive result. This practice of course invalidates the inference that the statistical test is supposed to help you make. Several of the practices they followed included:
* selectively reporting dependent measures (e.g., collecting several measures and reporting only one)
* selectively dropping manipulation conditions
* conducting their statistical test and then testing extra participants if they did not see a significant finding
* adjusting for gender as a covariate in their analysis if doing so resulted in a significant effect
Many of the practices that the authors followed in their rejuvenation study were (and maybe still are!) commonplace in the research literature. @john2012 surveyed research psychologists on the prevalence of what they called questionable research practices\index{questionable research practices}. Most participants admitted to following some of these practices---including exactly the same practices followed by the rejuvenation study.
For many in the field, "false positive psychology" was a galvanizing moment, leading them to recognize how common practices could lead to completely spurious (or even impossible) conclusions. As Simmons, Nelson, and Simonsohn wrote in their article [-@simmons2018, p. 255], "Everyone knew [$p$-hacking] was wrong, but they thought it was wrong the way it is wrong to jaywalk. We decided to write 'False-Positive Psychology' when simulations revealed that it was wrong the way it is wrong to rob a bank."
:::
## Replication, theory building, and open science
Empirical measures of reproducibility and replicability in the experimental psychology literature are low---lower than we may have naively suspected and lower than we want. How do we address these issues? And how do these issues interact with the goal of building theories? In this section, we discuss the relationship between replication and theory---and the role that open and transparent research practices can play.
### Reciprocity between replication and theory
Analytic reproducibility is a prerequisite for theory building because if the twin goals of theories are to explain and to predict experimental measurements, then an error-ridden literature undermines this goal. If some proportion of all numerical values reported in the literature were simple, unintentional typos, this situation would create an extra level of noise---irrelevant random variation---impeding our goal of getting precise enough measurements to distinguish between theories. But the situation is likely worse: errors are much more often in the direction that favors authors' own hypotheses. Thus, irreproducibility not only decreases our precision; it also increases the bias in the literature, creating obstacles to the fair evaluation of theories with respect to data.
Replicability is also foundational to theory building. Across a range of different conceptions of how science works, scientific theories are evaluated with respect to their relationship to the world. They must be supported, or at least fail to be falsified, by specific observations. It may be that some observations are by their nature unrepeatable (e.g., a particular astrophysical event might be observed once a human lifetime). But for laboratory sciences---and experimental psychology can be counted among these, to a certain extent at least---the independent and skeptical evaluation of theories requires repeatability of measurements.
Some authors have argued (following the philosopher Heraclitus), "You Cannot Step into the Same River Twice" [the title of @mcshane2014]---meaning that the circumstances and context of psychological experiments are constantly changing, and no observation will be identical to another. This is of course technically true from a philosophical perspective. But that's where theory comes in! As we discussed above, our theories postulate the invariances\index{invariance} that allow us to group together similar observations and generalize across them.
In this sense, replication is critical to theory, but theory is also critical to replication. Without a theory of "what matters" to a particular outcome, we really are stepping into an ever-changing river. But a good theory can concentrate our expectations on a much smaller set of causal relationships, allowing us to make strong predictions about what factors should and shouldn't matter to experimental outcomes. To return to an example we discussed earlier, should stimulus color matter to the outcome of an experiment? Our theory could tell us that it shouldn't matter for a priming experiment [@baribault2018] but that it should for a generalization experiment [@lewis2016].
### Deciding when to replicate to maximize epistemic value
As a scientific community, how much emphasis should we place on replication? In the words of @newell1973, "You Can't Play 20 Questions with Nature and Win." A series of well-replicated measurements does not itself constitute a theory. Theory construction is its own important activity. We've tried to make the case here that a reproducible and replicable literature is a critical foundation for theory building. That doesn't necessarily mean you have to do replications all the time.
More generally, any scientific community needs to trade off between exploring new phenomena and confirming previously reported effects. In a thought-provoking analysis, @oberauer2019 suggest that perhaps replications also aren't the best test of theoretical hypotheses. In their analysis, if you don't have a theory, then it makes sense to try and discover new phenomena and then to replicate them. If you *do* have a theory, you should expend your energy in testing new predictions rather than repeating the same test across multiple replications. Analyses such as @oberauer2019 can provide a guide to our allocation of scientific effort.
Our goal in this book is somewhat different than the general goal of metascientists considering how science should be conducted. Once *you* as a researcher decide to do a particular experiment, we think you will want to maximize its scientific value and so you will want it to be replicable. But we aren't suggesting that you should necessarily do a replication study. There are many concerns that go into whether to replicate---including not only whether you are trying to gather evidence about a particular phenomenon but also whether you are trying to master techniques and paradigms related to it. As we said at the beginning of this chapter, not all replication is for the purpose of verification, and you as a researcher can make an informed decision about what experimental strategy is best for you.
### Open science
The **open science movement**\index{open science} is, in part, a response---really a set of responses---to the challenges of reproducibility and replicability. The open science (and now the broader **open scholarship**\index{open scholarship}) movement is a broad umbrella (@fig-replication-umbrella), but in this book we take open science to be a set of beliefs, research practices, results, and policies that are organized around the central roles of transparency and verifiability in scientific practice.^[Another part of the open science umbrella involves a democratization of the scientific process through efforts to open access to science. This process involves both removal of barriers to access the scientific literature but also efforts to remove barriers to scientific training---especially to groups historically underrepresented in the sciences. The hope is that these processes increase both the set of people and the range of perspectives contributing to science. We view these changes as no less critical than the transparency aspects of the open science movement, though more indirectly related to the current discussion of reproducibility and replicability.] The core of this movement is the idea of "nullius in verba" (the motto of the British Royal Society,\index{British Royal Society} which roughly means "take no one's word for it").^[At least that's a reasonable paraphrase; there's some interesting discussion about what this quote from Horace really means in a letter by @gould1991.]
![The broad umbrella of open science (adapted from an image created for the Stanford Lane Library Blog).](images/replication/umbrella.png){#fig-replication-umbrella .column-margin fig-alt="An umbrella labelled open science over open scholarship/access/source/data, equity diversion and inclusion, citizen science."}
Transparency initiatives are critical for ensuring reproducibility. As we discussed above, you cannot even evaluate reproducibility in the absence of data sharing. Code sharing can go even further toward helping reproducibility, as code makes the exact computations involved in data analysis much more explicit than the verbal descriptions that are the norm in papers [@hardwicke2018b]. Further, as we will discuss in @sec-management, the set of practices involved in preparing materials for sharing can themselves encourage reproducibility by leading to better organizational practices for research data, materials, and code.
Transparency also plays a major role in advancing replicability. This point may not seem obvious at first---why would sharing things openly lead to more replicable experiments?---but it is one of the major theses of this book, so we'll unpack it a bit. Here are a couple of routes by which transparent practices lead to greater replication rates.
1. Sharing of experimental materials enables replications that closely follow the original study's methods. One critique of many replications has been that they differ in key respects from the originals. Sometimes those deviations were purposeful, but in other cases they were simply because the replicators could not use the original experimental materials. Sharing materials solves this problem.
2. Sharing sampling and analysis plans allows replication of key aspects of design and analysis that may not be clear in verbal descriptions, for example exclusion criteria or details of data preprocessing.
3. Sharing of analytic decision-making via preregistration can lead to a decrease in $p$-hacking\index{p-hacking} and other practices that can introduce bias. The strength of statistical evidence in the original study is a predictor of replicability in subsequent studies. If original studies are preregistered, they are more likely to report effects that are not subject to inflation via questionable research practices.\index{questionable research practices}
4. Preregistration can also clarify the distinction between confirmatory and exploratory findings, helping subsequent experimenters to make a more informed judgment about which effects are likely to be good targets for replication.
For all of these reasons, we believe that open science\index{open science} practices can play a critical role in increasing reproducibility and replicability.
### A crisis?
So, is there a "replication crisis"?\index{replication crisis} The common meaning of "crisis" is "a difficult time." The data we reviewed in this chapter suggest that there are real problems in the reproducibility and replicability of the psychology literature. But there's no evidence that things have gotten worse. If anything, we are optimistic about the changes in practices that have happened in the last ten years. So in that sense, we are not sure that a crisis narrative is warranted.
On the other hand, for @kuhn1962, the term "crisis" had a special meaning: it is a period of intense uncertainty in a scientific field brought on by the failure of a particular paradigm (@sec-theories). A crisis typically heralds a shift in paradigm, in which new approaches and phenomena come to the fore.
In this sense, the replication crisis\index{replication crisis} narrative isn't mutually exclusive with other crisis narratives, including the "generalizability crisis" [@yarkoni2020] and the "theory crisis" [@oberauer2019]. All of these are symptoms of discontent with the status quo. We share this discontent! We are writing this book to encourage further changes in experimental methods and practices to improve reproducibility and replicability outcomes---many of them driven by the broader set of ideas referred to as "open science."\index{open science} These changes may not lead to a paradigm shift in the Kuhnian sense, but we hope that they lead to eventual improvements. In that sense, we think agree with those who say that the "replication crisis" has led to a "credibility revolution" [@vazire2018].
## Chapter summary: Replication
In this chapter, we introduce the notions of reproducibility---getting the same numbers from the same analysis---and replicability---getting the same conclusions from a new dataset. Both of these are critical prerequisites of a cumulative scientific literature, yet the metascience literature has suggested that the rate of both reproducibility and replicability in the published literature is quite a bit lower than we would hope. A strong candidate explanation for low reproducibility is simply that code and data are rarely shared alongside published research. Lowered replicability is more difficult to explain, but our best guess is that analytic flexibility\index{analytic flexibility} ("$p$-hacking")\index{p-hacking} is at least partially to blame. On our account, replication is a metascientific tool for understanding the status of the scientific literature rather than an end in itself. Instead, we see the open science movement, a movement focused on the role of transparency in the scientific process, as a promising response to issues of reproducibility and replicability.
::: {.callout-note title="discussion questions"}
1. How would you design a measure of the context sensitivity of an experiment? Think of a measure you could apply post hoc to a description of an experiment (e.g., from reading a paper) so that you could take a group of experiments and annotate how context-sensitive they are on some scale.
2. Take the measure you designed above. How would you test that this measure really captured context sensitivity in a way that was not circular? What would be an "objective measure" of context sensitivity?
3. What proportion of reproducibility failures do you think are due to questionable practices by experimenters vs just plain errors? How would you test your hypothesis?
:::
::: {.callout-note title="readings"}
* Still a very readable and entertaining introduction to the idea of $p$-hacking\index{p-hacking}: Joseph P. Simmons, Leif D. Nelson, and Uri Simonsohn. [-@simmons2011]. "False-Positive Psychology: Undisclosed Flexibility in Data Collection and Analysis Allows Presenting Anything as Significant." *Psychological Science* 22 (11):1359–1366. <https://doi.org/10.1177/0956797611417632>.
* A review of issues of replication in psychology: Brian A. Nosek, Tom E. Hardwicke, Hannah Moshontz, Aurélien Allard,Katherine S. Corker, Anna Dreber Almenberg, Fiona Fidler, et al. [-@nosek2021]. "Replicability, Robustness, and Reproducibility in Psychological Science." *Annual Review of Psychology* 73 (1): 719--748. <https://doi.org/10.1146/annurev-psych-020821-114157>.
:::