Skip to content
Confidence
  • Documentation
  • Blog
  • Bootcamp
  • Status
  • Confidence Bootcamp
    • My learning
    • Intro to experimentation
      • Introduction
      • Lesson 1: Why you should experiment
      • Lesson 2: Experiment hypothesis
      • Lesson 3: Success and guardrail metrics
      • Lesson 4: Success metrics
      • Lesson 5: Set up your experiment
      • Lesson 6: Calculation frequency
      • Lesson 7: Target audience
      • Lesson 8: Sample size
      • Lesson 9: Quality assurance
      • Lesson 10: Run your experiment
      • Lesson 11: Evaluate your experiment and make a decision
      • Lesson 12: A/B tests and rollouts
      • Course wrap up
    • Intro to metrics
      • Introduction
      • Lesson 1: What is a metric?
      • Lesson 2: Metric roles
      • Lesson 3: Time considerations
      • Lesson 4: Capturing behavior
      • Lesson 5: Strategic metrics
      • Lesson 6: Interpretability
      • Lesson 7: Feasibility and sensitivity
      • Lesson 8: Variance reduction and metric selection
      • Lesson 9: Select metrics
      • Lesson 10: Segment-level analysis
      • Course wrap up
    • Scientific product development
      • Introduction
      • Lesson 1: Why you should experiment
      • Lesson 2: The scientific method
      • Lesson 3: Randomized controlled trials
      • Lesson 4: Experiment hypothesis
      • Lesson 5: Case study
        • Case study
        • Answers to case study
      • Lesson 6: Why do we need statistics?
      • Lesson 7: Success metrics
      • Lesson 8: Detectable effects and sample size
      • Lesson 9: Make a decision
      • Course wrap up
    • A primer on hypothesis testing
      • Introduction
      • Lesson 1: Introduction to hypothesis testing
      • Lesson 2: True vs estimated effects
      • Lesson 3: Sampling distribution of the difference-in-means estimator
      • Lesson 4: Z-tests and how to reject the null hypothesis
      • Lesson 5: False postive rate and alpha
      • Lesson 6: True positive rate, MDE, and power
      • Course wrap up
    • Intro to Feature Flags
      • Introduction
      • Lesson 1: What is a feature flag?
      • Lesson 2: Lifecycle of a feature flag
      • Lesson 3: Clients
      • Lesson 4: Evaluation context and targeting
    • Sample size calculation - I
      • Introduction
      • Lesson 1: What is the required sample size?
      • Lesson 2: Alpha and power
      • Lesson 3: Baseline mean and variance
      • Lesson 4: Sample size playground - I
    • Sample size calculation - II
      • Introduction
      • Lesson 1: Multi-metric decision making
      • Lesson 2: Number of success metrics
      • Lesson 3: Number of guardrail metrics
      • Lesson 4: Number of comparisons
      • Lesson 5: Sample size playground - II
    • Sample size calculation - III
      • Introduction
      • Lesson 1: Binary metrics
      • Lesson 2: Treatment group proportions
      • Lesson 3: Variance reduction
      • Lesson 4: Sequential testing and sample size
      • Lesson 5: Sample size playground - III
    • Advance your experimentation
      • Introduction
      • Lesson 1: Guardrail metrics with non-inferiority margins
      • Lesson 2: Choose evaluation frequency
      • Lesson 3: Metrics' roles in experiments
      • Lesson 4: Cumulative holdback evaluations
    • Experimentation culture
      • Introduction
      • Lesson 1: Onboarding into experimentation
      • Lesson 2: Empowering experimentation champions
      • Lesson 3: Sustaining the experimentation culture
    • Videos

Lesson 5: False positive rate and alpha

Summary

This page teaches you about the concept of false positive results and the rate at which they appear in experiments. You learn:

  • What a false positive result is
  • What the false positive rate is
  • What alpha is and how it relates to the false positive rate

A false positive result

A false positive result, often simply called a "false positive," is when we find a statistically significant effect from a treatment in an experiment when the treatment actually doesn't have an effect. Another term for a false positive result is "a type I error".

In most experiments, we are testing the mean difference between the treatment groups. A false positive result in this case would be when we observe a large enough mean difference between treatment and control groups to be statistically significant even though the treatment had no effect on the outcome.

All users have some value on the outcome metric even if the treatment has no effect. Some have large values relative to the population mean, some have small values relative to the population mean. When we are randomly splitting the users into treatment and control, there is always a risk that most users in the sample with large values end up in the treatment group rather than in the control group.

User assignment simulator

Randomly assign users to treatment or control groups with balanced allocation (4 users per group). The treatment has no effect, so any significant mean difference is a false positive.

Alice (10)
Bob (15)
Charlie (5)
David (20)
Eve (8)
Frank (12)
Grace (18)
Henry (6)

The decision from one experiment will be right or wrong

Although the random treatment assignment makes it possible to quantify the variation, it also means that we can never be certain about whether an observed result in an experiment is true or not.

Possible outcomes

There is no way around the fact that we will never be certain about the result of a single experiment. However, we can ensure that the rate of false positives across many experiments is bounded at a certain level.
Statistical tests are constructed to limit the rate of finding the wrong result across many experiments.


False positive rate

Valid statistical tests quantify the variability of the test statistic under the hypothesis of no treatment effect and use that to bound the rate at which we get false positive results. Only the alpha percent most unlikely imbalances under the null will be considered significant.

A good property for a statistical test to have is that the rate of false positives is bounded to a certain level which can be controlled by the experimenter.

Note

The false positive rate is the rate at which we find false positives in experiments where there is no effect.
For example, if we run 100 experiments where the treatment has no effect on the outcome metric, and we find that 10 have a significant effect, the proportion of experiments where we find a significant effect (10/100 = 10%) is the false positive rate of this test.


Alpha (the intended false positive rate)

Alpha is a parameter that statistical tests have that corresponds to the intended upper bound on the false positive rate. We say that a statistical test is valid if the false positive rate over repeated experiments (with no effect) is lower than or equal to alpha. In other words, by using valid statistical tests, we can bound the proportion of experiments where there is no true effect but we falsely find one.

At this point, you might be wondering why we cannot simply set alpha to zero to avoid all false positives. The reason is that we also want to be able to find true effects when they are there, and unfortunately, there is a trade-off between the false positive rate and our ability to find true effects which we return to in the next lesson.


False positive rate simulator

Now we can put what we have learned together and simulate experiments to see how often we find false positives with a given alpha.
In this simulator, we are using a Z-test and are drawing large random samples. Since the sample size is large, the distribution of the test statistic under the null hypothesis is approximately normal and therefore the false positive rate should be close to alpha across many random experiments.

False positive rate simulator

5%

Adjust alpha and click simulate to see results.

If we ran the simulation with infinitely many experiments, the rate converges on exactly alpha%.


Reader exercise

What is a false positive result in an experiment?

Reader exercise

What does the false positive rate represent?

Reader exercise

What is the role of alpha in hypothesis testing?


Notes for Nerds

Conservative tests

The test used in the simulation would reach exactly the intended false positive rate if we simulated a large enough number of experiments. However, for a test to be valid, it's enough that the false positive rate is lower than or equal to alpha.

A statistical test that has a false positive rate substantially lower than alpha is called a conservative test. Generally speaking, it is good to avoid conservative tests as they give the experimenter less control over the risk management of the experiments.


Intended vs actual false positive rate

Note that we say "intended" false positive rate. If we use a statistical test incorrectly, the actual false positive rate might not in fact be bounded by alpha.
A classic example of when a test is misused causing inflated false positive rates is when a fixed-sample hypothesis test is used to peek at the data multiple times. In this case, the false positive rate is not bounded by the alpha of the test, because the test only bounds the false positive below alpha if the test is performed once at the end of the experiment, not if it is performed repeatedly.

Read more about the issue with peeking on standard statistical hypothesis tests in the blog post on sequential tests.

Was this page helpful?

PreviousLesson 4: Z-tests and how to reject the null hypothesis
NextLesson 6: True positive rate, MDE, and power

© Copyright 2026. All rights reserved.

Follow us on TwitterFollow us on GitHub

On this page

  1. A false positive result

  2. The decision from one experiment will be right or wrong

  3. False positive rate

  4. Alpha (the intended false positive rate)

  5. False positive rate simulator

  6. Notes for Nerds