> For the complete documentation index, see [llms.txt](https://docs.mediarithmics.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mediarithmics.io/measurement-and-attribution/measure-and-optimize/set-up-an-a-b-test.md).

# Set up an A/B test

Split an audience into test and control groups to measure a campaign's real, incremental effect.

## Your goal

Find out how much of an outcome your campaign actually caused: not just how many exposed users converted, but how many would not have converted without it.

## Expected outcome

A set of segments, one or more test groups and usually a control group that is never exposed, balanced well enough that the difference in their conversion rates can be attributed to the campaign rather than to chance.

## What an experiment is

**Experiments** makes it possible to carry out A/B tests to run incremental measurements. **Incrementality** is the measure of the additional impact, or lift, generated by an action beyond what would have happened without it. In the context of ads, it is the measurement of ad effectiveness.

Running an incremental measurement involves creating different groups from the initial audience you want to target for your campaign, at least one of which will not be exposed to the campaign. That unexposed group is the **control group**.

Depending on the objective of your campaign, you may want to create groups with a particular focus on certain criteria likely to influence conversion, so that your groups are fairly distributed on those key criteria.

{% hint style="info" %}
If the aim of your campaign is to generate sales of a particular product, and you know that age is highly likely to influence purchase, you want to be sure your groups are balanced on age to guarantee the reliability of the measurement you carry out later.

Balancing groups here means ensuring each group contains the same proportion of 18-24 year-olds, the same proportion of 25-34 year-olds, and so on.
{% endhint %}

Experiments speeds up incremental measurement projects by letting you create groups and manage their balance in a few clicks.

## Create one from a segment

To create an experiment from a segment page, click the **More** button in the top right corner, then select **Create Experiment**.

{% hint style="info" %}
Manage every experiment created on your datamart from the **Experiments** menu, located in the **Measurement** section. It displays a customizable table where the experiment name is shown by default. Clicking a name opens the experiment details.
{% endhint %}

## How the job breaks down

<table data-view="cards" data-search="false"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create your test and control groups</strong></td><td>Configure the experiment: groups, randomisation, and addressability.</td><td><a href="/measurement-and-attribution/measure-and-optimize/set-up-an-a-b-test/create-your-test-and-control-groups.md">Create your test and control groups</a></td></tr><tr><td><strong>Read and interpret your experiment results</strong></td><td>Check the groups are balanced, and understand what happened to the users that were not distributed.</td><td><a href="/measurement-and-attribution/measure-and-optimize/set-up-an-a-b-test/read-and-interpret-your-experiment-results.md">Read and interpret your experiment results</a></td></tr></tbody></table>

## Related pages

<table data-view="cards" data-search="false"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Measure attribution</strong></td><td>Crediting a conversion to a campaign, rather than isolating its incremental effect.</td><td><a href="/measurement-and-attribution/measure-and-optimize/track-your-campaign/measure-attribution.md">Measure attribution</a></td></tr><tr><td><strong>Build funnels</strong></td><td>Reading the steps between exposure and conversion.</td><td><a href="/measurement-and-attribution/measure-and-optimize/build-funnels.md">Build funnels</a></td></tr></tbody></table>

{% hint style="info" %}
The segments an experiment produces, and what simple randomisation draws from, are documented in the **Audience & Activation** section, under *Build your audiences > Segment reference > Segment types*, on **Experiment groups segment** and **Partition segment**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mediarithmics.io/measurement-and-attribution/measure-and-optimize/set-up-an-a-b-test.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
