20  Building a Credible Research Literature

We are very nearly done with this book on the foundations of statistical methods in psychology research. So far you have learned how to read, clean, summarize, and visualize data. You’ve also learned several ways to model data, making predictions about a target variable based on information in other variables. Finally, you’ve learned how to evaluate those models and making inferences about the state of the world based on their results.

All of this empowers you to seek insights from data. However, you also have the power to do dangerous things with data. You’ve learned about how easy bias and misinterpretation are. Given the objective veneer that statistics bring to our arguments, it behooves us to wield these statistics responsibly. In this final chapter, we will learn about common pitfalls of statistical inference, the consequences of using statistics badly, and how to look out for these practices in our own and others’ research.

20.1 The replication crisis

Most people think that science is a reliable way to answer questions about the world. When our physician prescribes a treatment, we trust that it is known to be effective through careful research. We have similar faith that the airplanes that we fly in aren’t going to fall from the sky.

This kind of confidence comes from an entire literature of research, not simply one research study. But the quality of individual studies contribute to the credibility of the overall body of knowledge. Ideally, scientific findings will be three things:

  • Reproducible: If you performed the same analysis on the same data, you would get the same conclusion. In other words, there were no mistakes made in the process of analyzing some data and all steps of the process are able to be performed again.
  • Replicable: If you performed the same analysis on a new sample of data - i.e., doing a replication study - you would get the same conclusion.
  • Robust: If you performed a slightly different analysis on the same data, you would get the same overall conclusion. Some conclusions are robust across reasonable variations in analysis while some are contingent on specific decisions like exclusion of certain outliers or operationalizing a variable slightly differently.
reproducibility = when the same analysis performed on the same data produces the same result as an original research report.replicability = when the same analysis performed on a new sample of data produces the same result as an original research report.robustness = when a slightly different analysis performed on the same data produces the same result as an original research report

However, there has been an increasing concern that science may not always work as well as we think. In 2004, the renowned psychologist Daryl Bem published a book chapter called “Writing the Empirical Journal Article” in order to give advice to budding scientists on how to publish their research. Bem provided suggestions such as:

Which article should you write? There are two possible articles you can write: (1) the article you planned to write when you designed your study or (2) the article that makes the most sense now that you have seen the results. They are rarely the same, and the correct answer is (2).

In another section, he continues:

Analyzing data Examine them from every angle. Analyze the [variable levels] separately. Make up new composite indices. If a datum suggests a new hypothesis, try to find further evidence for it elsewhere in the data. If you see dim traces of interesting patterns, try to reorganize the data to bring them into bolder relief. If there are participants you don’t like, or trials, observers, or interviewers who gave you anomalous results, drop them (temporarily). Go on a fishing expedition for something — anything — interesting.

At first glance, this may seem like good advice. Data are just numbers that represent the world, so we should do whatever we can to reveal the message they communicate, right?

Unfortunately, as we have seen in the prior chapters, there are many ways numbers can lead us astray. Without being careful, the inferences we make about data can be false positives, imprecise, biased, etc. There are many ways to analyze data, and those data analyses can lead to different conclusions. If we have a particular conclusion we want to reveal through data (either about the size of an effect or just a significant finding in general), we can often “massage” the data in a particular way in order to reveal that conclusion. British economist Ronald Coase captured this reality succinctly, when he wrote: “If you torture the data long enough, it will confess to anything.”

The sorts of data manipulations in search of a significant result that Bem recommended are now considered questionable research practices. But in 2004, not many people thought of them that way. They came to the center stage of psychology in 2011 when the same Daryl Bem published a paper claiming to have discovered evidence of psychic abilities in his participants. Specifically, he claimed that his participants demonstrated a significant effect of precognition when they were able to predict information in the future at levels significantly above chance.

This was a shocking claim, and attracted a lot of attention. Upon closer inspection, other researchers pointed out that Bem had engaged in the following QRPs:

  • The paper published the results of 9 studies, but the sample sizes varied across studies for unknown reasons
  • Different studies appear to have been lumped together or split apart
  • The studies test many different hypotheses, and it’s not clear which were planned in advance
  • Most of the p-values are very close to 0.05
  • It’s not clear how many other studies were run but not reported

If the data are re-analyzed with a pre-registered plan, the results don’t replicate. There was no robust evidence of precognition.

But how could such a hugely respected scientist get it so wrong? Surely this must be a fluke? A team of researchers (together called the Open Science Collaboration) were perturbed by this turn of events, and set out to find how common these QRPs were across the field. This systematic investigation led to a 2015 paper called “Estimating the reproducibility of psychological science”.

It would not be an exaggeration to say that this paper was Earth-shattering for the field of psychology. The large team of researchers chose 100 well-cited psychology studies and attempted to reproduce the results originally reported in the papers by rerunning the studies in the exact same way. Whereas 97% of the original papers had reported statistically significant findings, only 36% of these effects were statistically significant in the replication studies. It seemed like the majority of psychological knowledge was built on nothing but hot air. And although psychology got much of the attention (and criticism), in the ensuing years it also became clear that other fields of research suffered from the same crisis of replicability, such as cancer biology, chemistry, economics, and other social sciences.

Clearly, the traditional way of doing research was failing us. Statistics based on questionable research practices and the incentives of hunting for anything that was significant lead to a majority of research being unreplicable, which stalls progress and wastes billions of dollars in research funding. It was time for a better way of doing research.

In the years since, the field has been evolving. Different statistical standards are being debated, new standards are emerging, and problematic practices are diminishing. In this chapter, we will discuss some of the statistical pitfalls that lead to unreliable evidence so that you know to avoid them in your own research, and to be sensitive to their use in research that you read.

20.2 Misinterpreted inferential statistics

Let’s start with inference pitfalls that concern misinterpretations of inference results in the Frequentist framework. These misinterpretations are common because of the convoluted process of null hypothesis significance testing and the sometimes unintuitive nature of probability. Yet, if not fixed, they lead to poor reproducibility and replicability. However, once you know about these pitfalls, they are the easiest to fix in your own analyses.

Recall that a p-value is defined as the probability to obtain an estimate at least as extreme as the observed one if the null hypothesis is true (i.e., if there is no effect in the population). If the p-value is smaller than the \(\alpha\) threshold, we decide the estimate is so unlikely under the null hypothesis that we think the null hypothesis is probably not the truth. We label our estimate “significant” and reject the null hypothesis.

But also recall that there are a number of limitations to this decision-making process:

  • Type I and Type II error are never 0: From the way a significance threshold is defined, there is always a chance that we’re incorrectly rejecting the null or failing to reject it when we should.
  • Significance is a binary decision: The \(\alpha\) criterion is a threshold for a yes/no decision.
  • p-value is the probability of an estimate given the null hypothesis: It is not the probability of the null hypothesis given an estimate.
  • p-value depends on sample size: A really big effect will still be consistent with the null hypothesis, or a trivially small effect will be significant, depending on the sample size.
  • Can only reject the null hypothesis, not support it: Null hypothesis significance testing is a method only for eliminating options.

These limitations mean that p-values can only provide certain kinds of evidence. However, because null hypothesis significance testing is so ubiquitous, some people forget this fact and try to use p-values to support arguments that they fundamentally cannot speak to. Below are common misinterpretations that occur when someone forgets the above limitations:

20.2.1 “Marginal” significance

Sometimes you will see an analysis with a p-value somewhere between 0.05 and 0.1. This is a small probability, but not so small as to be significant when using an \(\alpha\) criterion of 0.05. \(p=0.06\) is not statistically significant, just as \(p=0.60\) is not statistically significant. Yet, that feels wrong to say. If only the number was just a little bit different, you could make a different conclusion. Because of that impulse, some people will describe these sorts of p-values as “marginally significant” or “approaching significance.” While there isn’t anything inherently wrong with dividing significance definitions into more bins besides significant / not significant, the problem arises when people then treat a “marginally significant” result in the same way they would treat a significant result. That is moving the goal posts and inflating one’s Type I error without realizing it, leading to a higher proportion of wrong conclusions.

20.2.2 Statistical vs. practical significance

Performing null hypothesis significance testing is a useful step along the way of understanding the data generation process. It helps you understand whether or not to believe an estimand is consistent with a particular value in a descriptive research goal; whether a model has any predictive performance above 0; or whether there is some explanatory role of one variable in the creation of another. But if you get a statistically significant result, that only tells you that the value of the estimand probably isn’t 0 (or some other value you chose as a null hypothesis). That result does not tell you how important the effect is. It’s a problem when people rely on significance testing only for making important decisions like public policy proposals or health recommendations. There is always an opportunity cost to pursuing one option over another. If a significant but trivial effect is pursued, money/time/public trust might be wasted without a practical amount of gain.

20.2.3 Accepting a null

When a hypothesis test fails to reject the null hypothesis, that does not necessarily mean the null hypothesis is true. It is still a plausible option for reality, but so are other options. Sometimes you will see other people claim, erroneously, that a non-significant p-value means there is no effect of an explanatory variable. But this is problematic, especially in small research studies, because the effect estimate could be consistent with a meaningful effect - it just wasn’t measured precisely enough. “Absence of evidence is not evidence of absence” is a concise way of describing this inference pitfall. If you want do build evidence for the null hypothesis specifically, other tools like equivalence testing or Bayesian model comparison are necessary.

20.2.4 Error control

Another thing to be aware of when interpreting a hypothesis test result is what to do when you’ve run multiple hypothesis tests.

Imagine you want to understand how well SAT scores predict future education success. To test this robustly, you decide to operationalize education success four different ways: college GPA, college class rank, MCAT scores, and job placement. You find that SAT is a statistically significant explanatory variable for each of these target variables (\(p = 0.01, p = 0.03, p = 0.005, p = 0.04\)). Sounds great, right?

But there is a danger to doing multiple comparisons like this. When we do a hypothesis test, we set an \(\alpha\) level to define what will count as an unlikely sample estimate. But that doesn’t mean the null sampling distribution can’t produce something unlikely. It is possible that we reject the null hypothesis when it is in fact true - that we commit a Type I error.

In the event the null hypothesis is true, if we set our Type I error rate at 0.05 (that is, we define 5% of the least likely estimates as unlikely) and we do a lot of hypothesis tests, we will make a Type I error, on average, one out of every 20 times (5% of the time). When the null hypothesis is true, we will erroneously get a statistically significant result 5% of the time. On the flipside, that means we avoid making a Type I error 95% of the time.

This is okay if all we care about is a single test. But if we do four tests to try and answer the same question, as in the example above, we want to achieve a 95% rate of avoiding Type I error across all those tests, not just for each one separately.

You can think of it like flipping a coin. If you flip a coin once, the probability that it will come up heads is 50%. But if you flip a coin four times, the probability of all four coming up heads is a lot less than 50%. Similarly, if you do a single hypothesis test, the probability of avoiding a Type I error is 95%. But if you do four hypothesis tests, the probability of avoiding a Type I error each time falls below 95%.

How much below 95%? If the probability of a true negative is 95%, the probability that all four tests are true negatives would be a joint probability \(0.95*0.95*0.95*0.95\), or 0.815. Therefore, the probability that any one of these four tests is a false positive is 1 minus 0.815, or 0.185. This is called the family-wise error rate. What this means is that, when the null hypothesis is true, the probability of making a Type I error on any one of the comparisons is 0.185 (which is higher than 0.05). With every additional hypothesis test we run that targets the same question, the chance increases that we’ve made a Type I error when making conclusions about that question.

family-wise error rate = When the null hypothesis is true, the probability of getting a false positive across any of a set of multiple statistical tests.

In modern scientific research, we are increasingly asking questions that involve multi-dimensional constructs and thus many hypothesis tests. These scenarios can be found all across the social and life sciences. The more tests that are run, the bigger the Type I error and risk of erroneous conclusions such as finding significant brain activity in a dead salmon.

To control this family-wise error rate, one needs to do multiple comparison correction. There are a suite of tools for this. Some involve more sophisticated math than others, but all involve adjusting the p-values of a hypothesis test before comparing it to an \(\alpha\) criterion for making decisions about significance. This adjustment is dependent on the number of tests we run. The simplest multiple comparison correction method is called the Bonferroni adjustment, named after the person who proposed it. In this method, if we want to maintain a 95% chance of not making a Type I error on any of our comparisons, we would simply divide our original \(\alpha\) criterion (0.05) by the number of tests we ran (4). This will give us a new criterion to judge significance by (0.05/4 = 0.0125).

multiple comparison correction = The process of adjusting model estimates or significance criteria in order to minimize family-wise error rate.Bonferroni adjustment = A method used for multiple comparison correction, in which family-wise error rate is controlled by dividing an \(alpha\) criterion by the number of tests run.

In our example above, we found significant relationships between SAT scores and various operationalizations of future education success at \(p = 0.01, p = 0.03, p = 0.005\), and \(p = 0.04\), respectively. If any of those comparisons had been done alone, we would simply compare those p-values to \(\alpha = 0.05\) and find that SAT scores significantly predict education attainment (in the specific way we defined it with that one variable operationalization). But because we did four tests, there is a risk that any one of those tests is an incorrect rejection of the null hypothesis. In order to control that risk with Bonferroni correction and keep the Type I family-wise error rate to 5%, we adjust down our \(\alpha\) criterion based on the number of tests we ran, to 0.0125. \(p = 0.01\) and \(p = 0.005\) are still lower than this new criterion, so we still decide that SAT scores significantly predict college GPA and MCAT scores. But \(p = 0.03\) and \(p = 0.04\) are not below this new criterion, so we cannot decide that SAT scores predict college class rank or job placement.

The Bonferroni adjustment is straightforward, and essentially makes our decision criteria for any one test more stringent. But some people think it is overly conservative - in other words, that it’s trying too hard to protect us from making Type I error. The corrected criterion can get very small if the number of multiple comparisons gets large. Although this decreases the chance of making a Type I error, it increases the chance of making a Type II error of not detecting a difference when one does exist. We’ve taught you the Bonferroni correction because it is the easiest to use, but other less conservative multiple comparison corrections are more common in research and include Tukey’s Honestly Significant Difference Test and the Benjamini-Hochberg False Discovery Rate.

20.3 Estimation bias

Mis-interpreted inferential statistics are easy to fix - just interpret them correctly. Another class of inference pitfalls that cause trouble are sources of estimation bias, and being unaware of them. While it’s possible to recover from these pitfalls within a study, it usually takes more work, such as fitting a different statistical model.

We’ve discussed estimation bias in Chapter 15 already, but in a rather abstract way where we simply defined it as something about our data sampling, modeling, and/or estimation process that produces systematically wrong estimates. Here, let’s discuss what meaningful consequences wrong estimates have on our efforts to form conclusions from data.

20.3.1 Internal validity

When discussing the data generation process, we have used words like “create,” “influence,” and “produce” to refer to the role of explanatory variables in the process. These active words imply that the explanatory variables cause the target variable in some way. Indeed, models of the data generation process are meant to encode our ideas of causal processes.

However, just because we wrote down a model idea and fit coefficient estimates in the data, that doesn’t mean the estimates we have actually reflect the true causal structure in the world - the true data generation process. If we have estimation bias through model misspecification, then our conclusions about how the explanatory variables cause the target variables may be miscalibrated or totally wrong. The internal validity of our conclusions may be threatened.

internal validity = the extent to which statistical associations in a research study can be interpreted as causal relationships.

Generally, you need three things to be true to establish cause:

  1. A change in a target variable occurs when there is a change in an explanatory variable (i.e., association)
  2. The change in the explanatory variable preceded the change in the target variable (temporal precedence)
  3. Other explanations for the target variable change have been ruled out

If researchers run an experiment, that means they are randomly assigning people to different experimental conditions as the explanatory variable and then measuring what changes in the target variable that induces. This explicit manipulation creates the association and temporal precedence, and the random assignment rules out the influence of any other explanatory variables.

However, if we are dealing with observational data where the researchers did not create the variation in explanatory variables themselves, it is more difficult to establish that identified associations are causal. We cannot always establish temporal precedence, so our best efforts need to go into ruling out as many other possible explanations as possible.

This is the role of statistical control - adding additional variables into a model in order to see if an association of interest is still present after controlling for these added variables. A third variable that actually causes explanatory and target variables of interest is known as a confound. If we leave a confound out of a statistical model, it will look like there is an association between the other variables of interest, but really this association is spurious. The estimate of the causal association is biased.

spurious relationship = a statistical relationship that appears to be causal but is actually due to an unobserved confound

20.3.2 External validity

Another major source of estimation bias is our sampling process. As we’ve seen previously, we rarely collect truly representative samples of our population of interest. This can bias estimates of associations we calculate if the reason for over/under-representation of certain people in our sample is also related to one of the variables we care about. Estimation bias due to non-representative sampling threatens the external validity of our research - the extent to which our findings can generalize to people outside of our sample.

external validity = the extent to which results in a research study can be generalized to people beyond the study’s sample.

A classic example of biased sampling leading to biased estimation is the WEIRD problem in psychology, where most psychology research is conducted with participants from Western, Education, Industrialized, Rich, and Democratic societies - despite these societies being a very small fraction of the actual human population on Earth. This is a problem for scientific knowledge not simply because of the “fairness” of including different people in research. By excluding significant portions of the human population, research may miss the fact that there are cultural differences in even basic psychological processes like facial expressions of emotion or visual scene processing.

20.4 Question ambiguity

Lastly, one of the biggest sources of poor statistical inference happens at the very beginning of the process - what question are you even trying to answer? The problem with this pitfall is that, without specifying your statistical question well, you might design a research study and collect data that can never tell you what you want to know, regardless of however you redo your analyses.

This is why we opened this book with discussing how to pose a statistical question and why we have consistently highlighted that step throughout subsequent chapters. If you go straight to a statistical analysis without knowing your research goal and your estimand, you conduct a sort of jeopardy analysis - “here’s the answer, now what was the question?” This ambiguity can be strategic in the the short term, allowing you to hunt for any possible statistically significant result or to protect yourself from being wrong with a specific hypothesis. But in the long term, it creates a flimsy research record with poor theoretical foundations and a low chance of replicating.

20.4.1 Incorrect estimands

Here is an example of what can go wrong when you don’t specify your estimand clearly, and then run an analysis for a fundamentally different question. Say you want to identify what is a better predictor of education attainment in college - SAT score or high school GPA. In a sample of students you fit two competing statistical models: one predicting college GPA using their SAT scores, and another predicting college GPA with high school GPA. In your first model you find that SAT is not a significant predictor of college grades, \(p=0.06\). Conversely, in your second model, you find that high school GPA is a significant predictor of college grades, \(p=0.04\). Does this mean that high school GPA is a significantly better predictor than SAT scores?

Actually, we can’t conclude this from the results described. To see why this is wrong, look at these separate relationships plotted in Figure 20.1.

Figure 20.1: .

The actual correlation estimates in for each explanatory variable are very similar to each other = \(r = 0.38\) vs. \(r=0.35\). The individual results just happen to be on either side of \(p=0.05\), but that does not mean that either of those models are significantly better than each other. The estimates we got from this analysis process told us something about the strength of relationship between college GPA and each separate explanatory variable, but it didn’t tell us the difference between the two effects, which is what our research question was really about.

To answer that question, you need to estimate a different estimand - \(r_1 - r_2\). You then need to run a hypothesis test for that estimate against a null of 0. That estimate is 0.03, which will not be statistically significant at this sample size. We cannot conclude that high school GPA is a significantly better predictor of college GPA than SAT scores.

20.4.2 p-hacking

Another manifestiation of ambiguity is when a researcher does not operationalize their variables or specify their population well, and then runs several different versions of an analysis on different variable/sample compositions until a statistically significant effect is found. This is called p-hacking.

p-hacking = the process of sequentially testing slightly different analyses until a statistically significant effect is found; creates inflated Type I error rates

You can do a great many things while p-hacking:

  • choosing slightly different explanatory/target variables
  • transforming variables
  • controlling for other variables
  • removing certain outliers
  • splitting the data into subgroups

Et cetera. Each of these choices might seem to test the same vague, verbal research, but actually create different statistical research questions. The appropriate approach is either to specify and answer a specific statistical question, or to report the results of multiple analyses. However, when someone is p-hacking, they instead check the significance results of a single analysis first. If there is no statistically significant result, they try a different version of the analysis, or a different estimand within it, then check the significance again. They keep repeating this process with slightly different versions of the analysis until they finally arrive at the coveted p < 0.05.

This is different than the situations in prior chapters where we have fit multiple versions of statistical models. In those cases, we made decisions about the best model to use based on metrics that didn’t have to do with how significant any estimate in the model was. For checking model fit, we looked at things like posterior predictive checks or log-likelihood calculations to tell us if we should fit a different model form. P-hacking, on the other hand, is when you start with one model but decide it isn’t good enough because it doesn’t have a significant p-value. The problem with this approach is the same as the multiple comparisons problem we learned about earlier in this chapter. In Frequentist statistics, if an effect is truly equal to 0 in the population, setting an \(\alpha\) level to 0.05 means that there is a 5% chance our analysis in a sample will return a false positive - find a significant effect, when there shouldn’t be one. But if we test many analyses over and over, the chance that any of them is a false positive starts to accumulate more than 5%. Even if there is no effect in the population, the probability is very high that at least one hypothesis test will (erroneously) show a significant result if a sufficiently large number of tests are conducted.

Below are some simulations that show the effects of p-hacking on the Type I error rate (conducted on this website). For example, let’s say we measured the same target variable in 2 slightly different ways. We could p-hack by fitting a statistical model to each of these 2 different targets, and report whichever model turned out best. If the true effect was 0, across 1000 samples like this, we’d want only 5% of them to erroneously give us a significant result. But by reporting the best out of the two, this inflates our Type I error by nearly double, to 9.3%.

Another p-hacking method is to use different outlier removal methods until a significant p-value is found. There are a great many outlier detection methods, as seen among the options in the image below. If we try a different version of our model with each of these methods and report the best one, we get a Type I error rate of 25.5%.

Subgroup analysis is when you at first find a nonsignificant effect in the full dataset, so you decide to check the effect in specific subgroups of the data. E.g., in just males, or Asian participants, or people over 50, etc. The more subgroups you fit your model in, the more models you are running total, and the higher the Type I error goes.

This sequential testing wouldn’t be so much of a problem if all the models that were fit were reported and multiple comparison correction was performed on them. We don’t always know the best model we should be testing, so we might want to compare multiple ones and show how consistent or sensitive an effect is to model variations.

However, p-hacking is pernicious because it hides the fact that multiple models were examined. Usually when p-hacking is done, researchers only report the one significant model they found as if that was the one model they intended to test all along. This makes the researcher look very smart (they always seem to be right with their hypotheses), but in actuality their research record is very fragile.

P-hacking is not necessarily malicious behavior. Before the replication crisis, many well-meaning scientists engaged in the practice because they thought it was the proper method to do. However, we now know the problems it causes. It hurts scientific progress because it amplifies Type I error and keeps us from knowing about null results. Instead, we should endeavor to specify our research questions as concretely as we can, even when committing to certain details feels uncertain or uncomfortable. We’ll be wrong more often that way, but then we can adjust our theories and try again. Sometimes learning how much we don’t know yet is just as valuable as building evidence for a certain idea.

Note

While p-hacking typically refers to behavior of seeking a significant p-value when doing null hypothesis testing, the same problematic behavior - searching many analyses and only reporting the “best” one - can also happen when one’s inferential goal is effect estimation. In this case, one would try many different analyses and only report the one with the largest effect size. In this procedure, the effect estimation is likely to be biased upwards.

20.5 How to detect questionable research practices

If it’s important to keep questionable research practices out of our own research, the flip side is that it is important to detect it when others do it. That way, we know if we can trust their research or if we need to cast a skeptical eye.

Detecting misinterpreted inferential results is easy if you periodically remind yourself what the correct interpretations are. Null hypothesis testing is complicated, and it’s understandable that one may forget every detail of it the longer you go between taking a statistics class and doing research. Keep this book or your own notes as a reference when you’re reviewing research, periodically remind yourself, and you can detect when people are discussing p-values or confidence intervals incorrectly.

It is difficult to know when estimation bias is certainly happening, but it is easy to check if research authors have thought about it at all. Look to see if the authors have modeled plausible confounds, sampling bias, and alternative data generation processes. They should also explicitly report their assumptions about the data generation process and model fit checks so that these assumptions can be evaluated by the readers. Ideally, they will discuss the ways in which their sample can generalized to a wider population or not.

To detect when someone is being ambiguous about their estimand, try specifying a statistical model and analysis yourself based only on a research paper’s introduction and written research question. Are there multiple plausible ways to interpret the question that lead to meaningfully different estimands or models? Does the analysis they actually performed fit any of these?

P-hacking can very hard to detect for sure. In one study where just a few significant results are reported, you really have no way of knowing if this was an honest a priori hypothesis or a p-hacking job. But there are signs that might make you more or less suspicious. Things that are more likely to happen when p-hacking is in the picture include:

  • When multiple results are reported in a paper, most of the p-values are in the range 0.01 < p < 0.05. When p-hacking, the goal is to just get to some result that is p < 0.05. When a true effect is 0, it is easier to find a false positive p=0.04 than p=0.004.

  • If modeling decisions seem weird to you. If a researcher says they are studying the effect of one construct on another, but they model them with operationalizations that are odd choices or not standard without good explanations, that may be a sign that they tested the standard versions of the variables first but found them to be nonsignificant.

  • If effect sizes are unrealistically large. Remember that Cohen’s rules of thumb for effect sizes are that large effects are observable in real life; medium effects are observable in data to a trained eye; and small effects need statistics to detect. If a study reports a large effect size for something that no one seems to have noticed before, that should raise a warning flag that that result might be a false positive.

20.6 Protective research practices

No one wants to admit to intentionally doing questionable research practices. But we all want our hypotheses to be right and to reep the professional benefits of that. So intentionally or not, we will all be tempted at one time or another to engage in them. Thus, there are some protective research practices you can make a habit of that will help you stay honest and give your work the highest chance of being reproducible, replicable, and robust.

20.6.1 Preregistration

When you specify your statistical question for yourself, you are writing down the details that matter about your variables, population, data generation process, estimand, and quantitative hypothesis. These details then inform the exact analysis you perform. But how does anyone else know that you specified these details ahead of time, instead of engaging in p-hacking?

Preregistration is the process of publicly writing down the analytic and research design decisions of a research study, before you perform the study. In a preregistration, you specify who you will sample data from, your intended sample size, your data cleaning steps, and what analyses you will perform. This holds you accountable for reporting the results of what you initially planned, no matter what those results are.

preregistration = A public record of your research plans, published before doing any analyses.

The important part of a preregistration is its public status - anyone can access your preregistration report and compare its details to what you eventually published. Various websites have been designed as ways to easily and freely write preregistrations such as the Open Science Foundation or AsPredicted.org.

20.6.2 Conducting replications

Notably, not everything you do has to be pre-registered. Often times we get ideas for new ways of looking at data after it is collected, or data cleaning necessities arise that we didn’t anticipate. If you’re unsure of a specific hypothesis at first, it is okay to do exploratory research - collect some data, test out a bunch of options without a specific plan or hypothesis in mind, see what might be there.

But you shouldn’t stop there. If you find something promising in the data that you didn’t initially plan, that might be a real effect to know about, or it might be spurious. For this reason, you should plan to conduct a replication in a new sample of data where you try to replicate the results of your first study. Ideally, this replication study is pre-registered so that it is clear you didn’t p-hack in order to make the two studies agree with each other.

20.6.3 Multiverse analysis

Another option is to report all the effect estimates across all analysis variations in a process known as multiverse analysis. In a case where you don’t know the specific operationalization of a variable you should use or which control variables you should include, you can check how robust your effect is by repeating analyses across different versions of these options and reporting the estimated effect sizes/confidence intervals for all of them - i.e., looking at the full multiverse of possibilities. If your effect holds across all these changes, they likely aren’t meaningfully important parts of the data generation process. If your effect depends of specific choices, that indicates what parts of the data generation process might be necessary to model and be aware of. If your effect is very fragile and only emerges under very specific combinations of data cleaning & modeling, it might only be spurious.

multiverse analysis = reporting all the results of many different versions of an analysis, to see how robust a result is to different analysis choices

20.6.4 Transparency

Whatever you choose to do for your theorizing and data analysis, you should be transparent about it. Write down every decision you make and every outcome that happens, no matter how messy or complicated that process is, so that your line of thinking is traceable. In addition, it is good practice to host your study materials, data, and analysis scripts on open science repositories like Research Box, so that other people can check your work and reproduce what you’ve done.

A lot of folks are nervous about being transparent, because they’re afraid of the world finding out if and when they make a mistake. But if someone did make a mistake in research, wouldn’t you think it was important that we as a community can find it and correct it? Being fully transparent can be scary at first, but we’re doing complicated stuff at the bounds of human knowledge - no one expects you to always be perfect. Ultimately, transparency helps science move forward most productively and build the level of credibility we can rely on for real-world decisions.

20.7 Chapter resources

20.7.1 Learning goals

After reading this chapter, you should be able to:

  • Define reproducibility, replicability, and robustness
  • Avoid common misinterpretations of inferential statistics
  • Discuss how estimation bias threatens causal inference and generalizability
  • Describe the problems created by ambiguous estimands and p-hacking
  • Identify signs of these inference pitfalls in published research
  • Discuss the protective research practices available for increasing the credibility of one’s own research

20.7.2 New concepts

  • reproducibility: When the same analysis performed on the same data produces the same result as an original research report.
  • replicability: When the same analysis performed on a new sample of data produces the same result as an original research report.
  • robustness: When a slightly different analysis performed on the same data produces the same result as an original research report.
  • family-wise error rate: When the null hypothesis is true, the probability of getting a false positive across any of a set of multiple statistical tests.
  • multiple comparison correction: The process of adjusting model estimates or significance criteria in order to minimize family-wise error rate.
  • Bonferroni adjustment: A method used for multiple comparison correction, in which family-wise error rate is controlled by dividing an \(alpha\) criterion by the number of tests run.
  • internal validity: The extent to which statistical associations in a research study can be interpreted as causal relationships.
  • external validity: the extent to which results in a research study can be generalized to people beyond the study’s sample.
  • spurious relationship: A statistical relationship that appears to be causal but is actually due to an unobserved confound.
  • p-hacking: The process of sequentially testing slightly different analyses until a statistically significant effect is found; creates inflated Type I error rates.
  • preregistration: A public record of your research plans, published before doing any analyses.
  • multiverse analysis: Reporting all the results of many different versions of an analysis, to see how robust a result is to different analysis choices.