AI Glossary / Statistics and probability / Intermediate

One-sided test

Definition

A one-sided test is a hypothesis test designed to detect a departure in one specified direction. For example, it may test whether a population mean is lower than a reference value, with values at or above that reference forming the null hypothesis. The rejection region lies in the relevant tail of the test statistic's null distribution. The direction must follow the scientific or decision question and be chosen before examining the results used for testing.

What it means

A one-sided test concentrates its rejection rule on the direction of interest. If lower task-completion time is the prespecified question, unusually low estimates can count as evidence against the null. A large increase does not support that particular alternative, even if it would be important operationally.

This does not mean that the opposite direction can be ignored in practice. A study can have a directional primary hypothesis while still reporting estimates, uncertainty, and adverse findings. Statistical test direction and responsible interpretation of all observed consequences are separate matters.

How it works

Specify the parameter, reference value, and directional alternative. For a lower-tailed test of a mean, write the null as mean at least the reference and the alternative as mean below it. Calculate a statistic whose distribution under the null boundary is known or appropriately approximated.

The one-sided p-value is the probability, under the relevant null model, of a statistic at least as extreme in the prespecified direction. Compare it with the chosen significance threshold using a valid analysis and sampling design.

For common symmetric continuous test distributions, a one-sided p-value in the observed direction is half the corresponding two-sided p-value. That shortcut is not universal and is inappropriate when the observed direction opposes the prespecified alternative. Selecting the tail after seeing the estimate changes the procedure and invalidates the claimed one-sided error control unless the selection is properly accounted for.

Three practical examples

  • A planned experiment tests whether a new workflow reduces mean completion time below a specified benchmark.
  • A quality study tests whether a defect probability exceeds an agreed reference level.
  • A non-inferiority analysis uses a directional hypothesis relative to a justified margin rather than testing ordinary equality alone.

Think of it this way

Think of a warning system specifically designed to detect water rising above a flood threshold. It answers an upward-direction question. Falling water may matter for a different reason, but it is not evidence of flooding. The warning rule must be selected before the water level is observed.

Worked example

Consider a hypothetical independent sample of 36 measurements from a normal population with known standard deviation 6 units. The reference mean is 100, and the prespecified alternative is that the mean is lower than 100. Suppose the sample mean is 98.2.

The standard error is 6/sqrt(36) = 1. The Z-statistic is (98.2 − 100)/1 = −1.8. The lower-tail p-value is approximately 0.03593, below a prespecified 0.05 threshold. The corresponding two-sided p-value is approximately 0.07186.

If the observed mean had instead been 101.8, the lower-tail p-value would be approximately 0.96407. The analyst could not switch to an upper-tailed test merely to obtain 0.03593. This example illustrates the directional rule under known-variance assumptions, not a recommendation to select one-sided testing whenever it produces a smaller p-value.

Illustrative case study

Fictional case study: Cedar Workflow plans a comparison intended to establish whether an AI assistant reduces a particular processing delay. Before collecting evaluation data, the team documents the direction, outcome, sampling plan, and analysis.

When results arrive, it reports the estimated difference and uncertainty as well as the directional test. It also reports an unexpected increase in a separate error measure instead of treating the primary directional question as permission to disregard unfavorable findings. This fictional case illustrates prespecification and reporting; it does not claim a real improvement or establish that a one-sided test is suitable for every product decision.

Common misconceptions and mistakes

A common mistake is choosing the direction after seeing the data and then reporting an unadjusted one-sided p-value. This gives two opportunities to find a favorable tail while pretending only one was available.

Another is assuming that one-sided testing proves the opposite direction is impossible. It merely defines which departures count against the stated null. Halving a two-sided p-value requires the relevant symmetry and direction. Finally, statistical significance in a chosen direction does not establish practical importance, eliminate uncertainty, or convert an observational association into a causal effect.

Business use

One-sided tests can support genuinely directional business questions, such as whether a process exceeds an unacceptable error threshold or achieves a prespecified improvement. The choice should be justified by the question and consequences before the outcome is inspected.

AI reporting tools should preserve the alternative direction, reference value, margin if any, and analysis plan. They should not choose whichever tail looks favorable. Decision makers should receive original-scale estimates, uncertainty, and relevant opposite-direction observations so that the statistical test does not narrow the practical discussion misleadingly.

People also ask

Is a one-sided test always more appropriate when improvement is desired?

No. The research question, decision consequences, and prespecified analysis determine the choice.

Can an estimate in the opposite direction be important?

Yes. It can be practically important even though it does not support the specified alternative.

Is a one-sided p-value always half a two-sided value?

No. That relation requires suitable distributional symmetry and the correct direction.

Check your understanding

A lower-tailed test was planned, but the sample estimate is far above the null reference. Can the analyst switch tails without changing the interpretation of the test?

Answer: No. The prespecified lower-tail test must retain its direction. Any new directional analysis requires transparent treatment of its exploratory selection and error control.

Related terms

  • Two-sided test
  • Null hypothesis
  • Alternative hypothesis
  • P-value
  • Significance level
  • Rejection region
  • Directional hypothesis
  • non-inferiority
  • prespecification

Learn next

Learn to write composite directional nulls and identify rejection regions. Compare one-sided tests with corresponding confidence bounds, and study why post-data selection changes error rates. Practice explaining effect magnitude separately from a directional test decision.

  • Directional test

More in Statistics and probability

  • Omnibus test - An omnibus test evaluates a broad null hypothesis that combines several restrictions or comparisons into one overall test.
  • On-line SPC - On-line SPC means statistical process control used to monitor an operating process and identify when its behavior warrants investigation or corrective...
  • One-factor-at-a-time method - The one-factor-at-a-time method, often abbreviated OFAT, investigates a system by changing one input factor while holding the others fixed.
  • One-way analysis of variance - One-way analysis of variance is a statistical framework for comparing the means of groups defined by a single factor.
  • One-way ANOVA - One-way ANOVA is the abbreviated name for one-way analysis of variance: a method for comparing quantitative outcomes across groups defined by one factor.
  • Open-ended question - An open-ended question invites a respondent to provide an answer in their own words rather than choose only from a predetermined set of response options.

Sources

Frank Harrell's Biostatistics Glossary describes one-sided tests: https://hbiostat.org/glossary/

The NIST Engineering Statistics Handbook sets out one- and two-sided tests for a population mean: https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm

The normal-theory calculation and fictional case are original. The known population standard deviation is an explicit teaching assumption.

Previous: One-shot prompting Next: One-standard-error rule

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer