Analysis Methods

This product is not supported for your selected Datadog site. ().

Overview

Datadog Experiments provides several methods for estimating experiment lift and calculating the interval around that estimate. The best method depends on how much flexibility you need while the experiment is running, how much sample size you expect, and how your team wants to make launch decisions.

MethodDescriptionStrengthsTradeoffs
Fixed-sample frequentistChoose a sample size or duration before launching the experiment, wait until that point, then make a decision.Provides the most power for a fixed sample size.Requires an upfront plan and can lose its statistical guarantees if you stop early or extend the experiment based on observed results.
Sequential frequentistMonitor results while the experiment runs and make a decision when you are ready.Supports flexible decision-making while controlling the false positive rate.Has less power than fixed-sample analysis, so it can require more samples to detect the same effect.
Sequential hybridUse sequential analysis before a pre-planned end date, then switch to a fixed sample interval on the end date if the experiment was not stopped early.Combines early stopping with stronger power at the end of a planned experiment.Requires an end date, and intervals are wider than fixed-sample intervals.
BayesianCombine experiment data with a prior belief about plausible lifts, then make decisions from the posterior distribution.Supports nuanced decisions, especially when sample sizes are small.Requires trust in the prior and alignment on how to interpret probabilities.

Sequential frequentist analysis is the default because it lets you monitor results and make ship or rollback decisions without inflating the false positive rate. Fixed-sample analysis can be more powerful when everything goes according to plan, but it requires a stricter decision process. Sequential hybrid and Bayesian methods support more specialized decision-making workflows.

Configure the analysis method in the experiment’s statistical analysis plan.

Fixed-sample frequentist analysis

Fixed-sample frequentist analysis is the most direct way to analyze experiment results. Before launching the experiment, choose when you will evaluate the results. This decision point can be a fixed duration or a target sample size. When the experiment reaches that point, compare each treatment variant to the control and decide whether to ship, roll back, or continue with a new experiment.

Use fixed-sample analysis when sample size is scarce and your team can commit to the decision criteria before the experiment starts.

The main challenge is choosing the decision point. If you evaluate too early, the experiment may not have enough power to detect a real effect. If you evaluate too late, you may expose users to an inferior experience longer than needed. The decision point should be informed by a power analysis, which helps experimentation teams choose a duration that gives the experiment enough power to detect a given minimum detectable effect while adhering to product, business, or operational constraints.

For fixed-sample analysis, avoid changing the duration or sample size based on interim results. Stopping early because results look unusually good or bad, or extending the experiment because results are close to significant, can bias the lift estimate and increase the false positive rate.

Sequential frequentist analysis

Sequential frequentist analysis lets you monitor experiment results continuously and make a decision without preselecting a final sample size. This is useful when you need to react to strong positive or negative results, or when the assumptions behind a fixed-sample plan may change while the experiment is running.

Sequential analysis controls the false positive rate while allowing repeated checks of the results. The tradeoff is power: for the same number of subjects, sequential analysis is less likely than fixed-sample analysis to detect a true effect. To reach the same power, the experiment may need to run longer.

Use sequential analysis when flexibility matters more than maximizing power for a predetermined sample size. It is a good default for many experiments because it lets you:

  • Monitor results while the experiment is live.
  • Stop early for large improvements or degradations.
  • Continue collecting data without invalidating the analysis.
  • Avoid restarting the experiment when the original sample size assumptions were wrong.

Sequential hybrid analysis

Sequential hybrid analysis combines sequential and fixed-sample approaches. While the experiment is running, Datadog uses a sequential method so you can monitor results and stop early when needed. At the planned end date, Datadog switches to a fixed-sample interval, which gives the final analysis more power than a purely sequential method.

The tradeoff is that sequential hybrid analysis requires a planned end date, and the intervals are slightly wider than fixed-sample intervals. This protects the statistical guarantees across both phases of the analysis.

Use sequential hybrid analysis when you want to stop early for clear regressions, but prefer to wait until the planned end date before declaring a winning variant. In that workflow, teams often use the sequential phase to protect users from harmful variants and the fixed-sample phase to make final shipping decisions with more power.

Bayesian analysis

Bayesian analysis uses experiment data to update a prior belief about plausible lift values. The result is a posterior distribution that describes which lift values are most compatible with the prior and the observed data.

Frequentist methods ask how likely the observed data would be if the treatment and control had no true difference. Bayesian methods instead take the observed data and prior as given, then estimate the probability of different lift values. This can make results easier to discuss with stakeholders because statements such as “the treatment is likely to be better than the control” map more directly to the output of the analysis.

Use Bayesian analysis when:

  • You need to make a decision with limited data.
  • The decision depends on the probability of a lift exceeding a business threshold, not just whether the interval excludes zero.
  • Stakeholders prefer to think in terms of probabilities of success rather than in terms of frequentist p-values.

The prior matters most when sample sizes are small. With enough data, the posterior is driven mostly by observed experiment behavior, but empirically grounded priors are often strong enough to affect results even at large sample sizes. A poorly-specified prior can influence the lift estimate and interval enough to change the decision.

Bayesian intervals are technically credible intervals, though Datadog may present them alongside confidence intervals in the experiment results UI. Unlike frequentist intervals, Bayesian intervals do not provide the same false positive rate guarantee.

Analysis methods are only one part of the statistical analysis plan. Datadog Experiments also supports modifying the following settings:

CUPED
Uses pre-experiment data from each subject to reduce metric variance and improve experiment sensitivity. With CUPED enabled, displayed lift and metric values may differ from the naive estimates calculated from the raw data.
Multiple testing correction
Adjusts for the increased false positive risk that comes from evaluating multiple metric comparisons. This produces more conservative results and is not available with Bayesian analysis.
Confidence level
Controls the width of the interval around the lift estimate. Higher confidence levels produce wider intervals and require more data to reach statistical significance.

Further reading