Bandit FAQs
Frequently asked questions about Statsig Autotune multi-armed bandits, including methodology, traffic allocation, and how to interpret bandit results.
When should I see data show up in a bandit
Diagnostic data appears in near-real time in the Exposure Stream on your bandit's Diagnostics tab.
Data in the models and results depends on your settings. Statsig doesn't count units as enrolled until their attribution window has elapsed. For example, if you have a 24-hour attribution window, it takes 24 hours to see your first units and model updates. Statsig trains models hourly with a few minutes of data delay, so there may be 1 to 2 additional hours of delay beyond that period.
Model training doesn't have a strict SLA on Statsig's side. Delays may occur due to data quality checks or other investigations to prevent bad model training data from affecting your production environment. For what each results chart shows, go to Monitoring.
What do I put into the Variant JSON
Each variant returns its Variant JSON as a config, similar to dynamic configs or experiments. You can put an identifier for the variant, or specify a set of attributes that your code accesses to avoid writing conditional statements to fetch the corresponding attributes. For a code example, go to Checking a bandit.
Why use a linked experiment
Bandits optimize for a single target metric or event. On its own, that metric doesn't show how the bandit affects your users. To get deeper insights into a bandit's impact on end users, wrap the bandit in an experiment. In that experiment, the control group receives a default experience and the variant group receives the bandit's experience. Statsig highly recommends this step.
Select the wrapping experiment as the Autotune's Measurement Experiment so its results appear alongside the Autotune. Linking doesn't route traffic: your code checks the experiment and calls the Autotune only for users in the treatment group. For the setup and a code example, go to Linked experiments.
Where is my Autotune data available
In Warehouse Native, Statsig writes Autotune data to your warehouse hourly, in the statsig_first_exposures metric source. To see the SQL and the tables Statsig generated for an individual Autotune, open the history view on its Results tab. For more about Autotune in your warehouse, go to Autotune on Warehouse Native.
In Statsig Cloud, the Exposure Stream on the Diagnostics tab shows recent exposures, and the Results tab shows each variant's attempts, successes, and success rate.
Why does a user see a different variant on a return visit
Autotune recomputes traffic allocation hourly, so a returning user can receive a different variant as allocation shifts toward the better-performing variants. Statsig minimizes reshuffling, so assignments are generally consistent within the hour and stable across several hours, but Autotune doesn't guarantee a consistent experience across visits.
If every user must keep the same experience, use an Experiment instead. For more on this tradeoff, go to When to use Autotune.
Why was a "losing" variant chosen
Autotune assumes that a metric is consistent over time. A metric with strong seasonality (for example, a metric that drops on weekends) isn't a good candidate for an Autotune experiment.
Because Autotune updates traffic allocation every hour, this also applies within a day. If your metric varies by time of day, the variants that hold most of the traffic during a weak period see their success rate drop, while a variant with little traffic at that time doesn't.
With seasonality, the following situation is possible:
- A variant that consistently performs worse than others receives less and less traffic until it has essentially zero traffic.
- Other variants, still receiving traffic, see their metric drop when seasonal effects occur.
- The variant with zero traffic doesn't see that metric drop (because Statsig allocates no traffic to it), which causes Statsig to select it as the winning variant.
In the following example, Variant C performs worst on weekdays and stops receiving traffic on March 11. Its success rate then holds at 2.6%. Variants A and B still receive traffic, so their success rate drops every weekend, and on weekends both fall below Variant C.
| Date | Variant A | Variant B | Variant C |
|---|---|---|---|
| Mar 2, 2026 | 3.96 | 3.81 | 2.83 |
| Mar 3, 2026 | 3.58 | 3.48 | 2.61 |
| Mar 4, 2026 | 3.49 | 3.19 | 2.55 |
| Mar 5, 2026 | 3.39 | 3.17 | 2.49 |
| Mar 6, 2026 | 3.18 | 3.03 | 2.44 |
| Mar 7, 2026 | 2.26 | 2.13 | 1.74 |
| Mar 8, 2026 | 2.17 | 2.11 | 1.69 |
| Mar 9, 2026 | 4.12 | 3.92 | 2.92 |
| Mar 10, 2026 | 3.68 | 3.52 | 2.66 |
| Mar 11, 2026 | 3.48 | 3.31 | 2.6 |
| Mar 12, 2026 | 3.41 | 3.17 | 2.6 |
| Mar 13, 2026 | 3.2 | 2.97 | 2.6 |
| Mar 14, 2026 | 2.32 | 2.11 | 2.6 |
| Mar 15, 2026 | 2.22 | 2.08 | 2.6 |
| Mar 16, 2026 | 4.2 | 3.83 | 2.6 |
| Mar 17, 2026 | 3.72 | 3.48 | 2.6 |
| Mar 18, 2026 | 3.49 | 3.34 | 2.6 |
| Mar 19, 2026 | 3.47 | 3.17 | 2.6 |
| Mar 20, 2026 | 3.34 | 3 | 2.6 |
| Mar 21, 2026 | 2.34 | 2.08 | 2.6 |
| Mar 22, 2026 | 2.18 | 2.09 | 2.6 |
Seasonality can cause Statsig to choose a "losing" variant as the winner.
To reduce this effect, set an exploration window that covers at least one full cycle of the pattern, such as a full week for a weekly pattern, so every variant gets an equal share of traffic across it. If your metric varies strongly over time, use an experiment instead, where each user stays in one group for the whole test.
Do Autotune changes require a review
If your project or team requires reviews, actions on an Autotune go through a review request instead of applying right away. When you start, reset, or pick a winner for an Autotune, the dialog's button is Submit for Review, and the change takes effect after a reviewer approves it. Before an Autotune starts, you can still edit its settings without a review. For how to turn on reviews, go to Setting up reviews.
Can I schedule an Autotune to start or stop
You can schedule an Autotune to start up to one year in advance, in 15-minute increments. For the steps, go to Schedule the start time.
You can't schedule an Autotune to stop. An Autotune ends when a variant reaches the Winner Threshold, when you pick a winner manually, or when you reset it. For more, go to Schedule an Experiment Stop.
Can I create or manage an Autotune with the API or MCP
Yes. The Console API can create, update, start, schedule, finish early, and reset an Autotune, and it includes endpoints for Autotune reviews. To create an Autotune from an AI assistant, use the autotune_create tool in the Statsig MCP server.
How do I complete or conclude an Autotune test
Autotune concludes automatically when a variant reaches the Winner Threshold. At that point, Autotune declares the winner, stops collecting data, and directs 100% of traffic to it.
To end a running multi-armed bandit Autotune before that, select Manually Pick a Winner in the Autotune header and choose the variant to ship. A contextual Autotune serves each user the variant predicted to perform best for them, so it never declares a single winner and doesn't offer this option. To stop serving a contextual Autotune, remove the Autotune check from your code.
To start over, select Reset Autotune from the more actions menu (...). Resetting returns the Autotune to the unstarted state, and you then start it again when you're ready.
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.