---
title: "One-Sided Test"
description: "How Statsig uses one-sided hypothesis tests in experiments to detect changes in a pre-specified direction with higher statistical power."
product: general
lang: en
last_updated: 2025-09-18
token_estimate: 898
---
# One-Sided Test

A one-sided test (also called a one-tailed test) checks whether a metric moved in one direction that you specify in advance. It allocates the entire significance level ($\alpha$) to that direction. This gives the test more power to detect a change in that direction than the two-sided test Statsig runs by default. It also produces one-sided confidence intervals (CIs) whose finite bound sits closer to the observed delta than the matching bound of a two-sided CI. The trade-off is that a one-sided test never detects movement in the other direction. Use a one-sided test when detecting a change in only one direction is valuable and you can accept missing changes in the other direction, for example regressions in guardrail metrics. Keep the default two-sided test when either direction matters for your decision.

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

For example, you may not care whether a new feature reduces crash rates, but you do care whether it increases them. In that case, you forgo detecting the reduction in favor of better detecting the increase.

You can also use a one-sided test for a non-inferiority (do-no-harm) check. Statsig has no margin setting, so compare the confidence interval's finite bound with your margin yourself. For a metric where higher is better, choose **Increase**: the CI runs from a finite lower bound to positive infinity, and the result is non-inferior if that lower bound is at or above the negative of your margin. For a metric where lower is better, choose **Decrease** and compare the finite upper bound with your margin.

## Enable a one-sided test

By default, Statsig runs a two-sided test for each metric you add to an experiment. To change the test type, go to the _Metrics_ section of the experiment's _Setup_ tab and click the metric. In the dialog, select **One Sided Testing**, choose a **Direction** (**Increase** or **Decrease**), and click **Confirm**.

> **Note:**
>
> One-sided tests aren't available in Bayesian mode. In a Bayesian experiment, clicking a metric doesn't open the test type dialog. SPRT experiments set each metric's direction in their own [SPRT settings](https://docs.statsig.com/experiments/advanced-setup/sprt#enable-sprt).

## Read one-sided test results

Metrics using one-sided tests appear on the Results tab similarly to two-sided tests, except that the Results tab shows a one-sided CI rather than a two-sided CI.

One-sided CIs extend to positive or negative infinity, because Statsig only detects changes in the specified direction. As with all CIs, the one-sided CI indicates that the true difference between the test and control groups (the metric delta) likely falls within that range.

![One-sided confidence interval visualization](https://docs.statsig.com/images/snippets/stats-methods/one-sided-test/7ab3d680-b4c4-4321-b1fc-cc506b0ab21b.png)

## Why not run two one-sided tests on one metric

Running a one-sided test in each direction on the same metric doesn't give you a valid test. A one-sided test allocates all Type I error ($\alpha$) to one direction. Adding a second one-sided test in the other direction reintroduces the chance of a Type I error in that direction, so the combined false positive rate is twice $\alpha$. The confidence intervals look tighter than a two-sided test's, but decision errors happen more often than the specified confidence level (default 95%) implies. To detect movement in both directions, use the default two-sided test.

