Skip to main content
v2026.11,986 entries · CC-BY 4.0

Direct comparison

P-hacking vs HARKing: Key Differences

P-hacking reruns analyses until p drops below 0.05; HARKing rewrites hypotheses after seeing results. Compare both and how pre-registration stops each.

Written and maintained by CASRAI Editorial Board

Last updated

In summary

P-hacking manipulates the data analysis - trying multiple tests, optional stopping, selective exclusion - until a result crosses statistical significance, while the hypothesis stays fixed. HARKing manipulates the stated hypothesis after the fact, presenting a post-hoc finding as though it had been predicted in advance, while the analysis stays fixed. Pre-registration and Statistical Analysis Plans are the standard structural defense against both.

How do P-hacking and HARKing compare side by side?

The table below compares P-hacking and HARKing across 9 dimensions, from what it manipulates to can co-occur?.

Side-by-side comparison

DimensionP-hackingHARKing
What it manipulatesThe data analysis - which tests are run, when data collection stops, which exclusions are appliedThe stated hypothesis - rewriting it after the results are known
What stays fixedThe hypothesisThe analysis that was actually run
Origin of the termPopularized by Simmons, Nelson & Simonsohn, 'False-Positive Psychology' (2011)Coined by Norbert Kerr, 'HARKing: Hypothesizing After the Results are Known', Personality and Social Psychology Review (1998)
Typical mechanismMultiple comparisons, optional stopping, selective covariate inclusion, outlier exclusionPost-hoc hypothesis presented as a priori in the introduction/discussion
Where it happens in the paperMethods/results - the analysis pipeline itselfIntroduction/discussion - the narrative framing
Detectable viaExcess of p-values just below .05 across the literature (p-curve analysis); discrepancy between pre-registration and reported analysisDiscrepancy between a pre-registered hypothesis and the published introduction; implausibly precise 'predicted' post-hoc findings
Primary structural defenseStatistical Analysis Plan (SAP) / pre-specified analysis, Registered ReportsPre-registration of hypotheses, Registered Reports
Classified asQuestionable research practice (QRP), not research misconductQuestionable research practice (QRP), not research misconduct
Can co-occur?Yes - a p-hacked result is often also HARKed into the introduction as a predicted findingYes - see above

Common questions

Common questions about P-hacking vs HARKing

Can a single study involve both p-hacking and HARKing?

+

Yes. A researcher may run multiple undisclosed analyses until one is significant (p-hacking), then write that specific comparison into the paper's introduction as the original hypothesis (HARKing). The two are frequently discussed together for exactly this reason.

Is HARKing always dishonest?

+

It is widely treated as a questionable research practice because it misrepresents the confirmatory/exploratory status of a finding, even when the underlying data and analysis are reported accurately. The problem is the false impression of a priori prediction, not fabricated results.

Does pre-registration eliminate both problems completely?

+

It substantially reduces both by creating a timestamped, checkable record, but it is not self-enforcing - a pre-registration can be ignored or a study can be run without pre-registering an exploratory arm. Registered Reports, which add independent peer review of the pre-registered protocol, are generally considered a stronger defense than self-filed pre-registration alone.

Is exploratory analysis itself a problem?

+

No. Exploratory analysis is a legitimate part of research. The issue is disclosure - exploratory findings should be labelled as exploratory, not presented as confirmatory tests of a hypothesis that was actually formed afterward.

Ask CASRAI · full access

Ask about P-hacking vs HARKing: Key Differences

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →