Running an A/A Test
Learn how to run A/A tests to validate your experimentation setup and ensure proper metrics configuration.
An A/A test splits traffic into two groups that receive the same experience. This lets you confirm that exposure data flows into Statsig and that your metrics compute correctly before you run an A/B test. Because neither group changes the product, the test is a low-effort way to check your Statsig setup. Run an A/A test before your first A/B test or after you change metric definitions. This tutorial creates and implements an A/A test as a feature gate in Statsig. Statsig also runs simulated A/A tests every day. These simulated A/A tests don't require any code input from you. Use those results when you want to validate the stats engine itself rather than your instrumentation.
You need the Statsig client SDK integrated into an existing application before you can run an A/A test.
Step 1: Create a feature gate in the console
Run an A/A test in Statsig with a feature gate. You can also use an experiment, but this page uses a feature gate through out the example.
- From the Statsig console, go to Feature Management > Feature Gates.
- Click Create and enter a name and optional description for your feature gate and then click Create.
- On the Setup tab, define the rules for this feature gate.
- Click Add New Rule. You can run an A/A test on a specific user group or platform, but this tutorial divides all traffic 50/50 and delivers the same experience to each group.
- Name the rule, keep Criteria set to Everyone, and set Pass to 50%.
- Then save your changes at the bottom of the page, or submit them for review if your project requires reviews.
Verify that the gate works by entering some sample user IDs in the console. Roughly 50% of the IDs should pass and 50% should fail.


Step 2: Check the feature gate in your code
Copy the code snippet from the upper right corner of your feature gate page (under the < > symbol) and add it to your application at the point where you want to call the A/A check.
myStatsigClient.checkGate("aatest_example")
When users reach this code in your application, each gate check appears in the Exposure Stream panel on the Diagnostics tab of your feature gate.

Step 3: Review A/A test results
Within 24 hours of the gate going live, cumulative exposures appear on the Metric Impact tab of your feature gate. Click See More on the Cumulative Exposures card to see the exposures over time.
| Date | Pass | Fail |
|---|---|---|
| Mar 10, 2026 | 0 | 0 |
| Mar 11, 2026 | 0 | 0 |
| Mar 12, 2026 | 7,850 | 7,900 |
| Mar 13, 2026 | 8,668 | 8,723 |
| Mar 14, 2026 | 9,212 | 9,227 |
| Mar 15, 2026 | 9,740 | 9,740 |
| Mar 16, 2026 | 10,942 | 10,774 |
| Mar 17, 2026 | 12,006 | 11,771 |
| Mar 18, 2026 | 13,026 | 12,705 |
| Mar 19, 2026 | 13,947 | 13,567 |
| Mar 20, 2026 | 14,766 | 14,411 |
| Mar 21, 2026 | 15,265 | 14,922 |
| Mar 22, 2026 | 15,777 | 15,500 |
| Mar 23, 2026 | 16,925 | 16,637 |
| Mar 24, 2026 | 17,899 | 17,710 |
| Mar 25, 2026 | 18,880 | 18,685 |
| Mar 26, 2026 | 19,827 | 19,559 |
| Mar 27, 2026 | 20,641 | 20,461 |
| Mar 28, 2026 | 21,158 | 21,071 |
| Mar 29, 2026 | 21,643 | 21,661 |
| Mar 30, 2026 | 22,803 | 22,729 |
| Mar 31, 2026 | 23,760 | 23,637 |
| Apr 1, 2026 | 24,612 | 24,571 |
| Apr 2, 2026 | 25,590 | 25,505 |
| Apr 3, 2026 | 26,377 | 26,429 |
| Apr 4, 2026 | 26,898 | 27,030 |
| Apr 5, 2026 | 27,382 | 27,509 |
| Apr 6, 2026 | 28,484 | 28,519 |
| Apr 7, 2026 | 29,390 | 29,432 |
| Apr 8, 2026 | 30,204 | 30,305 |
| Apr 9, 2026 | 31,082 | 31,120 |
| Apr 10, 2026 | 31,905 | 31,995 |
| Apr 11, 2026 | 32,450 | 32,500 |
The Metric Impact tab shows your logged exposures and their distribution. In a healthy A/A test, the Pass and Fail distributions each hold roughly 50% of the total exposures. If the distribution looks incorrect, check the Diagnostics tab for day-by-day exposure breakdowns at both the check and user level.
The Scorecard below the card shows how each of your metrics performs in the passing group relative to the failing group.
Check two things in the results:
- Exposures: Confirm that exposures flow through from your product as expected. If you don't see exposures, use the Diagnostics tab and the Exposure Stream to debug.
- Metric results: Roughly 5% of your metrics should show a statistically significant change, because Statsig's stats engine uses a 95% confidence interval.
Run your A/A test for at least a week, and long enough to reach most of your weekly active users.
Simulated A/A tests Statsig runs for you
Statsig runs simulated A/A tests every day in the background for every company on the platform. Like the test in this tutorial, a simulated A/A test has the structure of an A/B test, but both groups receive the same experience.
A/A tests can be online or offline. An online A/A test, like the one in this tutorial, runs on real users: your app checks a gate or experiment through the Statsig SDK, Statsig logs the assignment, and users see no difference in experience. Because there is no real effect, you expect to see only statistical noise. With 95% confidence intervals, only about 1 in 20 metrics shows a stat-sig difference between control and test.
Offline A/A tests
An offline A/A test runs on one unit type per request and works like this:
- Query a representative sample of your data.
- Randomly assign subjects to test or control.
- Compute the relevant metrics for test and control and run them through the stats engine.
- Measure the percentage of false positives. With a typical p-value cutoff of 0.05, expect a false positive rate of about 5%.
Statsig runs 100 tests per request. To export the running history of your simulated A/A test performance, open the Help menu (?) in the Statsig console navigation and select Automated A/A Testing. When the export finishes, download it from Settings > Reports, where it appears with the export type A/A Test Summary.
Simulated A/A test file columns
| Column name | Description |
|---|---|
metric_name | Name of the metric |
metric_type | Type of metric |
unit_type | The unit used to randomize (for example, userID) |
n_tests | The number of tests run |
pct_ss_95_pct_confidence | The percentage of tests that have a stat-sig result for this metric |
avg_units_per_test | The number of units (often users) sampled into the A/A test |
avg_participating_units_per_test | The number of units in the test with a value for this metric |
Was this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.