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 3: Number of guardrail metrics

Summary

This lesson teaches you how the number of guardrail metrics affects the required sample size in experiments. Only guardrail metrics with NIMs affect the sample size: the more you have, the larger power you will have to use per metric to bound the true positive rate above power, which leads to a larger required sample size. Guardrail metrics without NIMs have no cost to the shipping decision's sample size.

Guardrail metrics with and without NIMs

Not all guardrail metrics have a Non-Inferiority Margin (NIM). A guardrail metric with a NIM requires the experiment to pass a non-inferiority test before shipping. A guardrail metric without a NIM is tested only for regression (whether it has significantly deteriorated) and does not need to pass a non-inferiority test for the experiment to ship.

Adding a guardrail metric without a NIM has no cost to the shipping decision's sample size. It does not affect the alpha correction (it cannot increase the shipping false positive rate) and does not affect the beta correction (it cannot block the ship by not being significant).

There is, however, an alpha cost for the abort decision. Regression tests across all user-specified metrics, required metrics, and health checks like the sample ratio mismatch test all contribute to the alpha correction for abort. Adding many guardrail metrics without NIMs inflates this correction, reducing the power to detect actual regressions. We don't currently target a specific power for the abort decision, so this effect is not tracked.

The rest of this lesson applies to guardrail metrics with NIMs. Read more about how guardrail metrics with and without NIMs fit into smaller-sample experimentation in Experiments with Smaller Samples.

False positive rate

Since all guardrail metrics with NIMs must be simultaneously non-inferior, the probability of a false positive for the decision rule decreases as the number of guardrail metrics increases.

You can think about this as the difference between having 5 dice and needing at least one six versus needing all 5 dice to show sixes. The more dice you have, the less likely it is that all of them are sixes at the same time by chance.

However, if the guardrail metrics are highly correlated, the probability of getting all sixes doesn't decrease as quickly with the number of dice.

For this reason, we don't need to adjust alpha for the number of guardrail metrics.

True positive rate

The power of the experiment is affected by the number of guardrail metrics. Since we need all guardrail metrics to be non-inferior simultaneously, it is not enough for each metric to have the probability power to be significantly non-inferior under the alternative hypothesis.

Probability that all metrics are non-inferior

0.80
8
Probability that all 8 metrics are non-inferior: 0.168

The plot above assumes that the metrics are independent. If they are highly correlated, the probability of all metrics being significant doesn't decrease as quickly with the number of metrics. However, without knowing the correlation, we must ensure that the power is high enough in the worst-case scenario of independent metrics.

Reader exercise

How does the number of guardrail metrics with NIMs affect the required sample size?

Reader exercise

Why does the probability of a false positive decision decrease as the number of guardrail metrics increases?

Reader exercise

Why is it unnecessary to adjust alpha for the number of guardrail metrics?

Reader exercise

How does the number of guardrail metrics affect the power of the decision of an experiment?

Reader exercise

What happens to the simultaneous power of the overall decision if the power correction is used and the guardrail metrics are highly correlated?

Reader exercise

What is the effect of adding a guardrail metric without a NIM on the required sample size for the shipping decision?

Notes for nerds

  • False positive rate: For guardrail metrics, the false positive rate decreases as the number of metrics increases. This is because all metrics must be simultaneously non-inferior, making it harder to have a false positive as metrics are added.
  • True positive rate: For true positives, the worst-case scenario is independent metrics, where each metric is treated as a separate hurdle. This decreases the overall probability of all metrics being significant.

If we knew the correlation structure between metrics, we could adjust the power to account for dependencies, but this adds complexity to the design and interpretation.

Was this page helpful?

PreviousLesson 2: Number of success metrics
NextLesson 4: Number of comparisons

© Copyright 2026. All rights reserved.

Follow us on XFollow us on GitHub

On this page

  1. Guardrail metrics with and without NIMs

  2. False positive rate

  3. True positive rate

  4. Notes for nerds