P-Hacking, HARKing, and Data Dredging: The Questionable Research Practices

P-hacking is the practice of trying different analyses on the same data until one crosses the threshold for statistical significance. The winning result is then reported as if it were the plan all along. It belongs to a family of questionable research practices, alongside HARKing and data dredging. They share one feature: they manufacture findings that look rigorous but will not replicate. None requires fraud or faked data, which is what makes them so common and so corrosive.

These practices sit under researcher bias, the distortions introduced by the person running the study rather than by the sample or the instruments. They are a leading suspect behind the replication crisis. In that crisis, a large share of published findings failed to hold up when independent teams repeated the work. This guide defines each practice, shows how they arise, and sets out the safeguards that prevent them. For the full map of bias categories, see our research bias guide.

Quick Answer: What Are These Practices?

P-hacking. Trying analyses until a result reaches statistical significance (p below .05), then reporting only that one. Also called data fishing or significance chasing.

HARKing. Hypothesizing After the Results are Known: presenting a hypothesis invented after seeing the data as though it was predicted in advance.

Data dredging. Searching large datasets for any significant association without a prior hypothesis, so chance correlations get mistaken for findings.

Why they matter. All three inflate false positives and produce results that fail to replicate, usually with no intent to deceive.

The fix. Pre-registration, a fixed analysis plan, correcting for multiple comparisons, and reporting every analysis run.

What Is P-Hacking?

P-hacking is the manipulation of data analysis, consciously or not, to produce a statistically significant result. The name comes from the p-value, the number that in many fields decides whether a finding counts as significant. The conventional cutoff is set at .05. A p-value below that threshold is treated as publishable, so there is strong pressure to get beneath it. P-hacking is what happens when that pressure shapes the analysis.

The problem is that the .05 threshold assumes a single, pre-planned test. Run many tests on the same data and some will cross the line by chance alone, even when nothing real is there. P-hacking exploits that, usually without the researcher intending to cheat, through choices that each feel defensible in the moment.

Common forms of p-hacking

  • Trying multiple outcomes. Measuring many dependent variables and reporting only the ones that reached significance.
  • Optional stopping. Checking results as data comes in and stopping collection the moment the p-value dips below .05.
  • Selective exclusion. Trying different rules for removing outliers until the result turns significant.
  • Subgroup mining. Testing the effect in subgroups (by age, sex, region) until one subgroup shows a significant result.
  • Flexible covariates. Adding or dropping control variables until the key result crosses the threshold.

Each choice on its own can be legitimate. P-hacking is the pattern of making those choices with an eye on the p-value. The winning version is then reported as if it had been the plan.

What Is HARKing?

HARKing stands for Hypothesizing After the Results are Known. The researcher runs the study and sees what the data show. They then write the paper as though the observed result was the hypothesis they set out to test. A finding that actually emerged from exploration is dressed up as a confirmed prediction.

The reason it is a problem is subtle but serious. A hypothesis genuinely predicted in advance and then confirmed is real evidence, because the data could have contradicted it. A hypothesis fitted to the data after the fact cannot be contradicted by that same data. It carries none of the evidential weight it claims. HARKing turns an exploratory observation, which should prompt a fresh test, into a false confirmation.

HARKing and p-hacking often travel together. A researcher p-hacks until a subgroup effect appears, then HARKs by writing the paper as though that subgroup was the target all along. Both convert the noise of a single dataset into a claim that looks like a tested theory.

What Is Data Dredging?

Data dredging, also called data fishing or a fishing expedition, is searching a dataset for any statistically significant association without a hypothesis set in advance. Where p-hacking bends the analysis of a planned study, data dredging starts with no plan at all. It runs correlations across many variables and reports whatever comes back significant.

With enough variables, significant-looking correlations are guaranteed by chance. Testing 20 unrelated associations at the .05 threshold will, on average, turn up one false positive even if no real relationships exist. A large dataset tested exhaustively produces a harvest of these artifacts. Without a prior hypothesis, there is no way to tell the real signal from the noise.

Exploratory analysis of large datasets is not wrong in itself, and it can generate valuable hypotheses. The problem is presenting a dredged correlation as a confirmed finding. It is really a lead that now needs its own pre-planned test on fresh data.

How the Three Practices Compare

The three overlap but enter at different points, and naming the specific one sharpens any discussion of a study's weaknesses.

Practice What is manipulated Tell-tale sign
P-hackingThe analysis of a planned study Only significant outcomes reported; flexible exclusions or covariates
HARKingThe stated hypothesis, rewritten after results A perfectly confirmed prediction with no prior registration
Data dredgingThe search itself, with no prior hypothesis Many variables tested; a surprising correlation with no theory behind it

All three differ from outright fabrication, which invents data. These practices use real data but handle it in ways that generate false positives. They also differ from publication bias, which operates across the literature rather than within one study. The two interact, since p-hacked positive results are the ones most likely to get published. Our guide on publication bias covers that link.

Example: The Significant Subgroup

A researcher tests whether a supplement improves memory. The overall effect is null. They then check the effect in a dozen subgroups and find that it is significant among women over 60. The paper is written around that subgroup, framed as the hypothesis the study was designed to test.

What went wrong

Two practices combined. Testing a dozen subgroups until one reached significance is p-hacking, because with that many tests a false positive is likely by chance. Writing the paper as though the women-over-60 effect was the original prediction is HARKing, because the hypothesis was fitted to the result. The subgroup finding is a lead, not a confirmation.

The correction

Report the pre-specified primary analysis, which was null, and present the subgroup result honestly as exploratory. The right next step is a new, pre-registered study that tests the women-over-60 hypothesis on fresh data, where it can genuinely be confirmed or refuted.

Why These Practices Happen

Understanding the causes explains why the fixes are structural rather than moral. Most p-hacking is not cheating; it is the predictable result of pressures and blind spots acting on ordinary researchers.

  • The significance threshold. Tying publication to a p-value below .05 creates a cliff edge. A result at .06 feels worth rescuing, and a result at .04 feels safe to stop at.
  • Publish-or-perish incentives. Careers reward positive, novel findings, and null results are harder to publish, so the pressure runs toward significance.
  • Researcher degrees of freedom. Every study involves dozens of defensible analysis choices, and making them after seeing the data lets bias in without any single step looking wrong.
  • Confirmation bias. Researchers invested in a hypothesis are primed to keep looking until the data agrees, a link covered in our guide on confirmation bias.

How to Prevent P-Hacking and HARKing

The defenses all share one principle: fix the decisions before the data can influence them, and make the full analysis visible. None depends on the researcher resisting temptation in the moment.

Pre-register the study

Pre-registration means recording the hypothesis, the primary outcome, and the exact analysis plan in a public registry before collecting data. It is the strongest single defense, because it fixes what counts as the test while the result is still unknown. P-hacking becomes visible as a departure from the plan, and HARKing becomes impossible, since the hypothesis is on the record in advance. A registered report goes further, with the journal reviewing the plan and committing to publish before the results exist.

Separate confirmatory from exploratory analysis

Exploration is valuable, so the goal is not to ban it but to label it. Report the pre-registered confirmatory tests as the primary result, and present everything else clearly as exploratory, which signals that those findings need their own confirmation. A finding described honestly as exploratory keeps its real value as a hypothesis for the next study.

Correct for multiple comparisons

When several tests are run, the threshold for significance should be tightened to account for the number of tries. Corrections such as the Bonferroni adjustment or false discovery rate control keep the overall false-positive rate in check. Reporting how many tests were run, and applying the correction, turns a hidden fishing expedition into an honest multiple-test analysis.

Report everything

  • Disclose all measured outcomes, not only the significant ones, so readers can see the full set of tests.
  • Report all exclusions and the rules behind them, fixed in advance where possible.
  • Share data and analysis code so others can check whether the result survives different defensible choices.
  • State the stopping rule for data collection, set before the data came in, to rule out optional stopping.

How to Address These Practices in Your Manuscript

The safeguards you used belong in your methods, and any residual exploratory work belongs clearly labeled in your results.

In methods, state the pre-registration and its registry link, the primary outcome fixed in advance, the stopping rule, and any correction for multiple comparisons. These tell a reader the confirmatory test was protected from the data. In results, keep the pre-registered confirmatory analysis separate from exploratory analyses, and label the latter plainly. In the discussion, a precise limitation is creditable. An example: "Subgroup analyses were exploratory and not corrected for multiple comparisons, so they require confirmation in an independent sample." Reviewers reject overclaiming more often than acknowledged limits, and vague wording reads as evasion even when the work was sound. Our guide on quantitative vs qualitative research and the research methodology guide cover how these expectations shift across study types.

Common Mistakes About P-Hacking and HARKing

  • Thinking it requires dishonesty. Most p-hacking comes from defensible choices made with an eye on the p-value, not from faked data.
  • Treating exploratory analysis as the problem. Exploration is valuable; presenting it as confirmation is the problem.
  • Reporting only significant outcomes. Omitting the tests that failed is the core move of p-hacking, even when each omission feels minor.
  • Assuming a significant p-value means a real effect. After many tests, a result below .05 is expected by chance alone.
  • Fitting the hypothesis to the data. A prediction made after seeing results carries none of the evidential weight of one made before.
  • Believing a larger sample fixes it. A bigger sample narrows random error but does nothing about analytic choices steered toward significance.

Frequently Asked Questions

What is p-hacking?

P-hacking is trying different analyses on the same data until one crosses the threshold for statistical significance. That result is then reported as if it were the plan all along. It exploits the fact that the .05 cutoff assumes a single pre-planned test. Run many tests and some cross the line by chance. Common forms include reporting only significant outcomes and stopping data collection when the p-value dips below .05. Another is adjusting outlier rules or covariates until the result turns significant. It usually happens without intent to cheat.

What is HARKing?

HARKing stands for Hypothesizing After the Results are Known. The researcher runs the study, sees the data, then writes the paper as though the observed result was the hypothesis they set out to test. The problem is that a prediction made in advance is real evidence, because the data could have contradicted it. A hypothesis fitted to the data after the fact cannot be contradicted by that same data. HARKing turns an exploratory observation into a false confirmation.

What is data dredging?

Data dredging, also called data fishing, is searching a dataset for any statistically significant association without a hypothesis set in advance. Where p-hacking bends the analysis of a planned study, data dredging starts with no plan and reports whatever comes back significant. With enough variables, false positives are guaranteed by chance. Testing 20 unrelated associations at the .05 level turns up about one false positive even when nothing real is there. The fix is to treat any dredged correlation as a lead needing its own pre-planned test.

What is the difference between p-hacking and HARKing?

P-hacking manipulates the analysis, trying different tests, exclusions, or subgroups until a result reaches significance. HARKing manipulates the stated hypothesis, presenting one invented after seeing the data as though it was predicted in advance. They often occur together: a researcher p-hacks until a subgroup effect appears, then HARKs by framing that subgroup as the original target. P-hacking is about how the data was analyzed; HARKing is about how the question was presented.

Is p-hacking the same as fraud?

No. Fraud invents or alters data. P-hacking, HARKing, and data dredging use real data but handle it in ways that generate false positives, usually without any intent to deceive. That is what makes them so common. Each individual choice, such as dropping an outlier or testing one more subgroup, can feel defensible in the moment. They are classed as questionable research practices rather than misconduct, and they are addressed through structural safeguards rather than accusations.

How does pre-registration prevent p-hacking?

Pre-registration records the hypothesis, the primary outcome, and the exact analysis plan in a public registry before data collection. Because the plan is fixed while the result is still unknown, p-hacking becomes visible as a departure from it. HARKing becomes impossible, since the hypothesis is already on the record. A registered report goes further, with the journal reviewing the plan and committing to publish before results exist. It is the strongest single defense against these practices.

What is the multiple comparisons problem?

The multiple comparisons problem is that running many statistical tests raises the chance of a false positive. Each test has its own independent chance of crossing the significance threshold. At the .05 level, roughly one in 20 tests will look significant by chance alone. Corrections such as the Bonferroni adjustment or false discovery rate control tighten the threshold to account for the number of tests. Reporting how many tests were run, and applying a correction, turns a hidden fishing expedition into an honest multiple-test analysis.

Is exploratory analysis the same as p-hacking?

No. Exploratory analysis is a legitimate and valuable way to generate hypotheses from data. It becomes a problem only when exploratory findings are presented as confirmed predictions rather than as leads. The honest approach is to label confirmatory and exploratory analyses separately. Report the pre-registered tests as the primary result, and present everything else clearly as exploratory. That signals those findings need their own confirmation in a fresh study.

Does a larger sample size stop p-hacking?

No. A larger sample narrows random error and makes estimates more precise, but it does nothing about analytic choices steered toward significance. A researcher can p-hack a large dataset as easily as a small one, and data dredging actually gets easier with more variables to test. These practices are addressed through pre-registration, fixed analysis plans, corrections for multiple comparisons, and full reporting, none of which depend on sample size.

Professional Editing for Your Methods and Results Sections

The line between confirmatory and exploratory analysis is drawn in the writing, and a reader can only follow it if the manuscript makes it clear. A researcher who pre-registered the primary test and labeled the rest as exploratory often blurs that line under word-count pressure. That invites exactly the p-hacking suspicion the design was meant to avoid. The methods and results sections are where that distinction holds or collapses.

Editor World provides journal article editing, dissertation editing, and academic editing services for researchers preparing manuscripts for submission. Every editor is a native English speaker from the United States, the United Kingdom, or Canada. Each holds an advanced degree and has experience preparing manuscripts in a specific research field. Every document is reviewed by a real person, never by AI. You can choose your own editor from the Editor World roster, or request a free sample edit of your first 300 words before committing. Pricing is clear per-word, with an instant quote and no hidden fees.

A certificate of editing confirming human-only native English editing is available as an optional add-on for journal submissions where AI use must be disclosed. For the full bias framework this article sits inside, see our research bias guide. For related topics, see our guides on confirmation bias, publication bias, and researcher allegiance and funding bias.


Reviewed by the Editor World editorial team under the direction of Patti Fisher, PhD, founder. Editor World has provided 100% human editing by native English editors since 2010. About Editor World