Null & Alternative Hypotheses
A field ecologist measures beak depth in 100 Galápagos finches before and after a drought. The average beak depth looks larger afterward. But is that a real evolutionary shift? Or could it just be noise from sampling 100 birds out of a much larger population? Before any statistic can answer that question, the ecologist must translate a vague biological hunch ("drought changes beak depth") into two razor-sharp, mutually exclusive statements about the world. That translation — writing down a precise null hypothesis and a precise alternative hypothesis — is the single most consequential step in The Logic of Hypothesis Testing. It is where most statistical errors are actually born, long before any p-value is computed. This matters because a hypothesis test is only as good as the hypotheses it tests. A sloppy or mismatched pair of hypotheses can make a real biological effect invisible. It can also make random noise look like a discovery. Biologists constantly ask directional questions — does a drug lower blood pressure, does fertilizer increase yield, does a mutation reduce lifespan. The way those questions get encoded as null and alternative hypotheses matters a great deal. It determines which statistical test is valid, and how the data will be interpreted. It even affects how many of the study's resources should be allocated to detecting an effect in one direction versus two. The big picture is this: every hypothesis test partitions the space of possible truths about a population parameter into two non-overlapping claims. The null hypothesis, , is the "nothing special is happening" claim. It typically states no difference, no association, no effect. The alternative hypothesis, , is the claim the researcher actually suspects. It can be framed as non-directional (two-sided) or directional (one-sided). Choosing between these framings is a scientific decision, not a statistical afterthought. It must be made before looking at the data. This article builds the precise vocabulary and logic for writing and correctly. It covers how to derive them from a biological question, and how to decide between one- and two-sided alternatives. It also shows how to avoid the classic errors that invalidate an otherwise well-designed study. It sets up the next steps in inference — computing The p-Value & Its Interpretation and understanding Type I & Type II Errors. Both of these are meaningless without a properly specified / pair.
- states no effect/no difference/no association; states the biological claim of interest — the two must be exhaustive and mutually exclusive.
- Hypotheses are about population parameters (e.g., , , ), never directly about the observed sample statistics.
- A two-sided () detects a difference in either direction; a one-sided ( or ) tests only one direction and is justified only when the opposite direction is biologically impossible or irrelevant before seeing data.
- One-sided tests have more statistical power in the specified direction but zero power to detect an effect in the other direction — a real trade-off, not a free lunch.
- Hypotheses must be fixed in advance; choosing sidedness after peeking at the data ("HARKing") inflates the false-positive rate.
- Precisely written / pairs determine which test statistic and rejection region are valid, feeding directly into The p-Value & Its Interpretation and the risk of Type I & Type II Errors.
The null hypothesis is a precise, falsifiable statement of "no effect" on a population parameter, and the alternative — chosen as one-sided or two-sided before seeing the data — is its exhaustive, mutually exclusive complement.
The core idea
A statistical hypothesis is a statement about a parameter of a population — a true, fixed but unknown quantity such as a population mean , a proportion , a correlation , or a regression slope . It is never a statement about the sample itself, because the sample statistic (the sample mean , for instance) is already known once the data are collected; there is nothing left to test about it. The null hypothesis, denoted , is conventionally the hypothesis of "no effect," "no difference," or "no association" — the default, skeptical position that any observed pattern in the data arose purely from sampling variation. The alternative hypothesis, (sometimes ), is the hypothesis that some real biological effect exists, and it is what the researcher typically hopes to find support for. Two structural requirements make a hypothesis pair valid. First, and must be mutually exclusive — they cannot both be true. Second, together they must be exhaustive — they must cover every possible true value of the parameter, so that if is false, is necessarily true. A pair like versus fails this requirement, because it ignores every other possible value of (negative values, or values between 0 and 5, or values above 5). The valid complement is , which sweeps up everything does not claim. The choice of 's shape is where biological judgment enters. A two-sided (non-directional) alternative, , allows the true parameter to differ from the null value in either direction and is appropriate whenever an effect in either direction is biologically plausible and would be scientifically interesting — most biological questions fall here. A one-sided (directional) alternative, or , restricts attention to a single direction and is justified only when the researcher has a strong, pre-specified biological or physical reason to care exclusively about one direction — for instance, testing whether a toxin increases mortality (a decrease would be biologically implausible and, even if observed, would not answer the applied question being asked). Critically, the decision between one- and two-sided framing must be made from biological reasoning laid out before the data are examined, never chosen afterward to make a result look more significant.
Mechanism — how to build and step by step
Step 1 — Translate the biological question into a parameter. Identify exactly which population quantity answers the question. "Does fertilizer increase crop yield?" becomes a statement about , the difference in population mean yields. "Is beak depth associated with survival?" becomes a statement about a correlation or regression slope . Vague biological language must be pinned to one specific, measurable parameter — this step alone eliminates a large fraction of downstream statistical errors, because an ambiguous parameter makes every later step ambiguous too.
Step 2 — Write as the "nothing happening" statement about that parameter. For a two-sample comparison, (equivalently ). For an association, . For a proportion compared to a known baseline, . The null is deliberately the boring, skeptical claim — it is the position that must be disproven by the weight of evidence, mirroring the logic of a legal trial where innocence is presumed until evidence forces rejection.
Step 3 — Decide, from biology alone, whether the alternative should be one- or two-sided. Ask: is a change in the "wrong" direction (a) biologically impossible, (b) scientifically uninteresting even if it occurred, or (c) something the study design cannot detect anyway? If yes to any of these and this reasoning existed before data collection, a one-sided is defensible. Otherwise, default to the two-sided . Most published biological hypotheses are two-sided, because organisms routinely surprise us — a drug expected to lower blood pressure occasionally raises it (a "paradoxical" effect), and a symmetric test does not blind the researcher to that possibility.
Step 4 — Confirm mutual exclusivity and exhaustiveness. Check that every logically possible parameter value falls under either or , with no gap and no overlap. For a two-sided test: and partition the real line correctly. For a one-sided test: and partition it correctly (note that a one-sided null is often written as an inequality, not a strict equality, precisely to preserve exhaustiveness).
Step 5 — Lock in the rejection region before touching the data. The sidedness of dictates the shape of the rejection region on the sampling distribution of the test statistic: a two-sided test splits the significance level across both tails (commonly in each tail), while a one-sided test places the entire in a single tail. This single decision changes the critical value against which the test statistic is compared, so it must be fixed by design, not by convenience after seeing which tail the data happened to fall in.
The evidence — how the null-hypothesis framework was established and tested
The modern null/alternative hypothesis framework is not a single "discovery" like Meselson–Stahl; it is a logical structure built by The Logic of Hypothesis Testing literature, chiefly through the fusion of Ronald Fisher's significance testing with Jerzy Neyman and Egon Pearson's decision-theoretic framework in the 1920s–1930s. But its practical necessity — and the real cost of getting / wrong — is best shown through a landmark applied case: the controlled agricultural field experiments that Fisher himself ran at Rothamsted Experimental Station, and a much later cautionary tale from clinical and behavioral science about hypotheses chosen after the data were seen.
Fisher's Rothamsted crop trials (1920s). Fisher was hired to analyze decades of uncontrolled fertilizer records at Rothamsted, and found that without a precisely stated null hypothesis and a randomized design, no amount of data could distinguish a genuine fertilizer effect from field-to-field soil variation. He redesigned the experiments so that plots were randomly assigned to fertilizer treatments, and formulated the test as a sharp null — "the fertilizer has no effect on mean yield" — against a two-sided alternative, since both yield increases and unexpected yield decreases (e.g., from soil chemistry interactions) were biologically plausible and worth detecting. This randomized-plot design, married to an explicit versus , became the template for essentially all controlled biological experimentation that followed, and it directly demonstrated that vague hypotheses ("fertilizer probably helps") are statistically untestable, while sharp, falsifiable ones are.
The Neyman–Pearson clarification (1928–1933). Neyman and Pearson formalized why the alternative hypothesis must be specified before data collection: without a pre-specified , there is no well-defined rejection region and no way to compute the power of a test — the probability of correctly rejecting a false . Their lemma (the Neyman–Pearson lemma) proves that, for a given significance level , the most powerful test against a specific alternative uses a likelihood-ratio rejection region tailored to that alternative's direction — mathematically formalizing why one-sided tests are more powerful for a truly one-directional effect, but only when that directionality is genuine and known in advance.
A cautionary empirical result: hypothesis-switching inflates false positives. Simulation and replication studies since the 2010s (e.g., work on "researcher degrees of freedom" by Simmons, Nelson, and Simonsohn, 2011) have quantified what happens when researchers choose the direction of , or switch between one- and two-sided tests, after inspecting the data. Simulated analyses show that this kind of post hoc flexibility in hypothesis specification can push the true false-positive rate from a nominal 5% to over 60% across a battery of common "researcher degrees of freedom." This is direct, quantitative evidence that the sequence matters: and must be fixed by biological reasoning before the data are examined, or the entire error-rate machinery of hypothesis testing collapses. Together, these lines of evidence establish the same principle from different angles: a valid test requires a sharply defined, pre-registered / pair, and any flexibility introduced after seeing the data destroys the guarantees the whole framework is built to provide.
Worked examples
Example 1 — A genetics cross with an asymmetric expectation. A researcher crosses two heterozygous pea plants for a gene showing classic Mendelian dominance, expecting a 3:1 ratio of dominant (tall) to recessive (short) phenotypes in the generation. Out of 200 offspring, 138 are tall and 62 are short. Step 1 — parameter: let = true population proportion of tall offspring. Step 2 — : (the Mendelian 3:1 expectation holds). Step 3 — sidedness: deviations could plausibly occur in either direction (e.g., linked lethal alleles could reduce the tall proportion, or incomplete penetrance/scoring bias could increase it) — no biological reason restricts this to one side, so: (two-sided). Observed proportion: . Expected count of tall = ; expected short = . A chi-square goodness-of-fit statistic:
With 1 degree of freedom, the critical value at (two-sided by construction of the chi-square test) is 3.84 — so this result sits almost exactly at the boundary, illustrating why the sidedness built into (here, "any deviation from 3:1 counts") changes what counts as significant, and why a borderline result like this demands replication rather than a confident verdict either way.
Example 2 — A one-sided clinical/physiological scenario. A new insecticide is tested on a crop pest with a known baseline mortality rate under the current standard insecticide of within 48 hours. The manufacturer's biological claim is specific: the new formulation contains a more potent neurotoxin and is predicted, on mechanistic grounds established in prior enzyme-inhibition assays, to increase mortality — a decrease is not biologically plausible given the compound's known mode of action, and even if a decrease were somehow observed, it would carry no different practical implication than "no improvement." Step 1 — parameter: = true population mortality proportion under the new insecticide. Step 2 — : (no improvement over standard). Step 3 — sidedness: because only "does it increase mortality" is scientifically and economically actionable, and the mechanism rules out a plausible decrease, a one-sided alternative is justified a priori: . In a trial of 150 insects, 78 die within 48 hours: . Test statistic (large-sample proportion z-test):
For a one-sided test at , the critical z is 1.645 (all 5% in the upper tail); exceeds this comfortably, so is rejected in favor of the pre-specified directional claim. Note that if the researcher had instead used a two-sided critical value (±1.96) chosen only because it "felt more rigorous" after seeing a strong positive result, that would be a misuse — the one-sided framing here was justified by mechanism before the trial, not chosen afterward to inflate significance.
Common misconceptions & traps
| Misconception | Why it's wrong |
|---|---|
| " is what I believe to be false; is what I want to prove, so I can pick whichever framing makes my result look best." | Sidedness must be fixed by biological reasoning before data collection, not chosen post hoc to minimize the p-value — doing so inflates the true Type I error rate far above the nominal . |
| "A one-sided test is always more powerful, so I should always use one." | One-sided tests trade power in one direction for zero power in the other; if the true effect runs opposite to the assumed direction, a one-sided test can never detect it, no matter how strong the effect. |
| "Failing to reject proves is true." | Hypothesis tests never prove the null; a non-significant result means the data are consistent with , which may simply reflect low statistical power, not a true absence of effect. |
| " and can be about the sample mean ." | Hypotheses are statements about the unknown population parameter (or , , ); is a known, computed quantity from the sample, so there's nothing left to "hypothesize" about it. |
| "Any biological prediction automatically justifies a one-sided test." | A directional prediction alone is not enough; the opposite direction must be genuinely implausible or uninformative for the scientific question, a much stronger and rarer condition. |
The scientist behind it
Origins · 1 minSir Ronald Aylmer Fisher and how this was discovered
Fisher was a statistician, geneticist, and evolutionary biologist whose work at the Rothamsted agricultural research station forced him to invent tools — randomization, analysis of variance, and significance testing against a precisely stated null hypothesis — because decades of uncontrolled crop-yield records were otherwise statistically uninterpretable. He insisted that a null hypothesis must be "exact" — a single, falsifiable numerical claim — rather than a vague expectation, a standard that remains the backbone of how biologists write today. Fisher's parallel work in population genetics (co-founding the modern synthesis of Mendelian genetics with Darwinian evolution) meant he approached statistical inference always through the lens of concrete, quantifiable biological questions, not abstract mathematics for its own sake.
Where this matters today
Pre-specifying and a correctly sided is now a formal requirement in clinical trial registration (e.g., ClinicalTrials.gov) precisely because regulators learned — from decades of trials that quietly switched primary endpoints or test directions — that undisclosed flexibility in hypothesis framing manufactures false positives. In drug development, a Phase III trial testing whether a new antihypertensive lowers blood pressure uses a one-sided only when regulatory guidance and prior mechanistic data justify ignoring the paradoxical-increase possibility; more often two-sided tests are mandated specifically to catch unexpected harms. In conservation biology, tests of whether a management intervention (e.g., a wildlife corridor) increases genetic diversity are typically two-sided, because a poorly designed corridor could plausibly decrease diversity by funneling gene flow from an unintended source population — an outcome regulators and biologists need the test to be able to detect. In agricultural biotechnology, GMO crop trials testing yield or pest-resistance claims against conventional varieties routinely specify two-sided hypotheses in registration dossiers, precisely to guard against unanticipated yield penalties. And in public health surveillance, tests of whether a new diagnostic assay's sensitivity differs from an existing gold standard are two-sided by default, because both false-positive and false-negative drift are safety-relevant and neither can be assumed away. In every one of these domains, the discipline of writing and correctly — before data collection — is what separates a trustworthy inference from a statistically laundered coincidence, and it is the direct foundation for interpreting The p-Value & Its Interpretation and managing Type I & Type II Errors in any downstream analysis.
Ask the tutor: How do I decide whether my biological question calls for a one-sided or two-sided alternative hypothesis?
Why can't H0 and HA be statements about the sample mean rather than the population mean?
The sample mean is a computed, known number once data are collected — there is nothing uncertain left to test about it. Hypothesis testing asks whether an unknown, fixed population parameter (like ) plausibly equals a specific value, using the sample as evidence. If hypotheses were about itself, the "test" would be trivially true by definition (of course equals whatever it equals), providing zero inferential content. The entire logic of sampling distributions — how much varies from sample to sample around the true — only makes sense when , not , is the object of the hypothesis.
Is it ever acceptable to choose a one-sided test because a two-sided test isn't significant?
No — this is one of the clearest forms of p-hacking. Sidedness must be committed to before the data are examined, ideally documented in a pre-registration or analysis plan. Switching to a one-sided test after seeing a "trending" but non-significant two-sided result effectively halves the p-value threshold post hoc, without any new biological justification, and it inflates the real false-positive rate well beyond the stated . Legitimate one-sided tests are justified by a mechanism, prior literature, or the practical irrelevance of the opposite direction — reasoning that exists independent of the specific dataset at hand.
Does a two-sided test "cost" anything compared to a one-sided test?
Yes — a two-sided test splits the significance level across both tails (e.g., 2.5% in each tail for ), so it requires a larger test statistic to reach significance in any one direction compared to a one-sided test with all 5% in a single tail. This means a two-sided test has somewhat lower power to detect a true effect that happens to run in one particular direction. The trade-off is deliberate: two-sided tests remain sensitive to surprises in either direction, which is usually the scientifically responsible default.
How does the null hypothesis relate to Karl Popper's idea of falsifiability?
Fisher's null hypothesis testing is often read as a statistical implementation of Popperian falsifiability: is a sharp, falsifiable claim (an exact parameter value), and the data are used to see whether they are improbable enough under to warrant its rejection. Unlike Popper's strict logic, however, statistical tests never definitively falsify — they only quantify how surprising the data would be if were true, expressed as a p-value. This probabilistic, rather than deterministic, form of falsification is precisely why statistical inference always carries residual risk of Type I & Type II Errors.
Can a study have more than one null hypothesis?
Yes — many biological studies test multiple parameters simultaneously (e.g., a regression with several predictors, or an ANOVA with several factors), and each parameter typically gets its own / pair. For example, a two-way ANOVA on plant growth might separately test : no effect of light, : no effect of fertilizer, and : no interaction between light and fertilizer. Running many such tests raises the multiple-comparisons problem, where the chance of at least one false positive climbs with each additional test — a concern addressed by correction methods covered alongside Type I & Type II Errors.
What's the difference between a directional biological prediction and a justified one-sided hypothesis test?
A directional prediction is simply what the researcher expects to happen (e.g., "the drug should lower blood pressure"). A justified one-sided test requires more: independent, pre-existing evidence or mechanism showing that the opposite direction is essentially impossible or scientifically uninteresting, decided before the data are collected. Many "expected" directional effects in biology still get tested two-sided, precisely because organisms are complex enough that unexpected reversals (paradoxical drug responses, compensatory physiological feedback) are common enough to be worth detecting rather than assuming away.
How do H0 and HA connect to what comes next — p-values and error types?
Once and are fixed, the researcher computes a test statistic from the data and compares it to the sampling distribution expected under ; the resulting The p-Value & Its Interpretation measures how surprising the observed data are under that assumed null. The rejection decision — reject or fail to reject — then carries two possible mistakes, formalized as Type I & Type II Errors: rejecting a true (false positive) or failing to reject a false (false negative). Neither of these downstream concepts is well-defined without a precisely stated, pre-specified / pair, which is why getting this step right is foundational rather than a formality.