Skip to content

Experiment design types

Evidential offers two families of experiment design:

  • Frequentist (A/B testing) keeps the split between arms fixed for the whole experiment. Use it to measure whether a change makes a difference, and by how much.
  • Bayesian (multi-armed bandits) learns as results come in and sends more participants to the arms that are doing best. Use it to find and serve the best option while the experiment runs.

Within each family, the design you pick decides when participants are assigned, what Evidential needs from your data warehouse, and how outcomes reach Evidential:

  • Pull: Evidential reads outcomes from your data warehouse (on each snapshot or on a regular schedule).
  • Push: Your app sends each participant’s outcome to Evidential via the API.

Push and pull describe outcomes only. Your app always pulls assignments from Evidential (or downloads them as a CSV for Preassigned A/B).

Choosing a Design

If you want to… Design Assignment Outcomes
Assign a known list of participants before you start Preassigned A/B All at once, before start Pull (warehouse)
Assign whole groups, such as schools or villages Preassigned A/B (Cluster-Randomized) By group, before start Pull (warehouse)
Measure an effect on participants arriving over time Online A/B One at a time, as they arrive Pull (warehouse)
Find and serve the best option without a warehouse Multi-armed Bandit One at a time, as they arrive Push (API only)
Find and serve the best option using warehouse outcomes Multi-armed Bandit (DWH-connected) One at a time, as they arrive Pull (warehouse)
Serve the best option for each kind of participant Contextual Multi-armed Bandit One at a time, as they arrive Push (API only)

Supported Data Sources

Evidential connects to BigQuery, Redshift, and Postgres. Bandits that don’t use a data warehouse run on your organization’s API Only data source. If you use a source that isn’t listed here yet, contact us for support or file a feature request.

Frequentist Designs

A frequentist experiment is a classic A/B test. You set the arms and how participants are split between them, then compare the arms to see whether the change made a difference.

Every frequentist design:

  • Uses a participant table. You point Evidential at a table or view in your data warehouse that lists your participants, one per row, with a column that uniquely identifies each one. Potential metrics, filters, and strata are also all drawn from columns in this table that describe each participant.
  • Pulls outcomes from your warehouse. Evidential reads metric values for assigned participants directly from your data warehouse on each snapshot and compares each arm against the baseline arm. (Your app doesn’t push outcomes to Evidential via the API.)

Preassigned A/B

Evidential selects participants and assigns every one of them to an arm when you create the experiment.

  • Sample size. Choose how many participants to include. Evidential draws them at random from the participants who match your filters.
  • Power check. Before you launch, Evidential uses your data to estimate how many participants you need to detect the effect you care about, and shows how that changes with sample size.
  • Balanced arms. You can pick strata, such as region or age group, so each arm gets a similar mix of participants.
  • Getting assignments. Download the full list as a CSV, fetch it through the API, or look up one participant at a time.

Choose Preassigned A/B when you know your participants ahead of time, or need the full list of who’s in which arm before the start date.

Preassigned A/B (Cluster-Randomized)

A Preassigned A/B experiment that assigns whole clusters—such as schools, clinics, or villages—instead of individuals.

  • How to enable it. In the experiment wizard, set the optional Cluster key to the column that identifies each group and choose how many clusters to include.
  • Who gets assigned. Everyone who matches your filters in a selected cluster joins the same arm; participants without a cluster value are left out.
  • Power and analysis. Sample size planning and treatment effect analysis automatically account for clustering.
  • No strata. Cluster-randomized designs can’t be combined with strata.

Online A/B

Evidential assigns each participant the first time your app asks for their assignment, using the split you set. There’s no list of participants up front.

  • Your participant table is still required. Evidential uses it to define your metrics and pull outcomes, but doesn’t select participants from it.
  • No power check. Online A/B doesn’t include sample size planning.
  • Participants are assigned independently, so there are no strata or group assignment.
  • Every request assigns. Asking about a new participant always enrolls them. If you only want part of your traffic in the experiment, decide which participants to include in your own app first, then request assignments only for them.
  • Assignments don’t change. Once a participant has an arm, every later request returns the same arm.
  • The end date stops new assignments. Participants who arrive after it aren’t assigned an arm. Participants who already have one keep it.

Choose Online A/B when you don’t know who will take part in advance, or participants arrive continuously.

How Filters Work: Preassigned vs Online

Filters limit an experiment to the participants you want, for example country is Kenya or signed up after January 1. Each filter compares one column to one or more values: the column is one of a list of values, is not one of them, or, for numbers and dates, falls between two values. A participant must match all of an experiment’s filters.

The two frequentist designs apply the same filters in different ways.

Preassigned A/B applies filters to your participant table in the power check (so sample size estimates reflect only matching participants) and when you create the experiment (to decide who can be selected). Eligibility is decided once, from the data in your warehouse at that moment: people who match later aren’t added, participants who stop matching stay in the experiment, and changing filters requires a new experiment.

Online A/B can’t look up a new participant in your warehouse when they arrive. Instead, your app sends the participant’s details along with the assignment request, and Evidential checks them against your filters:

  • If the details match, the participant is assigned an arm. Once enrolled, they aren’t removed if their details change.
  • If they don’t match, no arm is returned and the participant isn’t enrolled.

To have filters applied, your app must use the assignment request that includes participant details (shown under Example API Calls in the experiment’s Integration Guide) and send a value for every filtered column—a missing value counts as empty. A request without participant details assigns the participant regardless of your filters.

Limitations

  • Filters can only use columns in the experiment’s participant table.
  • Filters always combine with “and”. You can’t create “this or that” conditions across different columns.
  • Text matches are exact and case-sensitive. There’s no partial or wildcard matching.
  • Between works only with numbers and dates, and includes both end values. You can leave one end open, such as “on or after January 1”.
  • Empty values (NULL, not blank text) are handled explicitly. Is one of and between leave them out unless you add OR NULL. Is not one of keeps them by default; add OR NULL to exclude them too.
  • Dates and times are in UTC.

Bayesian Designs

Bayesian designs are multi-armed bandits. Each arm starts with an expected performance, called a prior. As results come in, Evidential updates its estimate for each arm and sends more participants to the arms that look best.

Every bandit:

  • Has an outcome type: Binary for yes/no results such as a click or a sign-up, or Real-valued for numbers such as a rating or time spent.
  • Starts from priors, which you can set for each arm or have Evidential derive from starting weights.
  • Shows results as estimates for each arm, which update as results arrive. There’s no power check.
  • Stops new assignments at the end date. Participants who arrive after it aren’t assigned an arm; those who already have one keep it.

Multi-armed Bandit

The standard bandit. It doesn’t need a data warehouse: your app requests an assignment for each participant and pushes each participant’s outcome back to Evidential via the API. To set it up, choose Multi-armed Bandit in the experiment wizard, then No data warehouse on the data source step.

Autofail is available for this design. If a participant has no outcome after a time window you set, Evidential records a default outcome you choose for them, such as a “no” for a binary outcome. Once recorded, the outcome can’t be replaced.

Multi-armed Bandit (DWH-connected)

A Multi-armed Bandit that pulls outcomes from your data warehouse instead of having your app push them. In the experiment wizard, choose Multi-armed Bandit, then on the data source step pick a data source, a table, the column that identifies participants (Unique ID), and a Target column that holds each participant’s outcome.

  • Your app requests assignments, but doesn’t push outcomes. Evidential pulls the target column on a regular schedule. The participant IDs your app uses must match the values in the column that identifies participants.
  • Outcomes can arrive late. Empty values are checked again on later pulls, for about a week after the end date. Outcomes that are still empty after that stay empty.
  • The target column sets the outcome type. A true/false column is a binary outcome. A numeric column is real-valued.
  • Autofail isn’t available for this design.

Contextual Multi-armed Bandit

A contextual bandit learns which arm works best for different kinds of participants. Along with each assignment request, your app sends context: information about the participant or their situation, such as their age or the time of day.

  • At least one context is required. Each context is either binary or real-valued.
  • Your app pushes each outcome via the API, as with the standard Multi-armed Bandit. Autofail is available.
  • Results depend on context. To see an arm’s estimated performance, you choose context values.
  • No example calls. The Integration Guide doesn’t include example API calls for this design. See the API reference instead.

Next Steps

To connect your app to an experiment, see Integrate Evidential with your application. To run experiments in WhatsApp with Turn.io, see Integrate Evidential with messaging platforms.

Type to search…

↑↓ navigate↵ selectEsc close