# Types of Experiments

## Analysis only

### A/B/n

Analysis-only A/B/n tests run analysis on top of assignment and metric data from your warehouse. In these experiments, Statsig operates as a statistics engine to help make analyses more reproducible.

## Assign and analyze

### A/B/n

The most common Assign-and-Analyze experiments are A/B/n tests that integrate warehouse data with Statsig's live SDK. In these experiments, Statsig operates as an assignment tool, a real-time diagnostics tool, and as a statistics engine. Assignment related features supported include:

> #### [Stratified Sampling](https://docs.statsig.com/experiments/advanced-setup/stratified-sampling)
>
> Dividing your population into homogeneous groups (based on a metric or classification).

> #### Configurable Allocation Duration
>
> You can enroll users for a subset of an experiment's duration. If you're experimenting on a one-time experience (such as signup flows), you need no additional configuration. If the experience isn't one-time (you must keep assigning enrolled users), configure your SDKs to use Persistent Assignment. You provide a store to save user enrollment states, and the SDK manages this state. Go to Persistent Assignment for [Client](https://docs.statsig.com/client/concepts/persistent_assignment) and [Server](https://docs.statsig.com/server/concepts/persistent_assignment) SDKs.

### Switchback experiments

Statsig offers [Switchback](https://docs.statsig.com/experiments/types/switchback-tests) tests for experimenting in the presence of meaningful network effects or in ecosystems where changing an experience for one group affects other groups. For example, in a ride-service app, changing prices for some users changes driver demand for all users.

You can configure Switchback tests in Statsig's console. They use time periods (and optional buckets such as city or country) to alternate experiment conditions and run a bootstrapping analysis to estimate test statistics. Advanced options include burn-in and burn-out periods, allocation windows, and configurable window lengths.

### Geo testing

Statsig offers [Geotesting](https://docs.statsig.com/statsig-warehouse-native/geotests/introduction) to support marketing and product causal inference techniques where you can't run a traditional A/B test. Geotesting treats geographic units (such as postal codes and DMAs) as the unit of analysis. This approach enables new experimental methodologies like rigorous testing of paid marketing or search on platforms like Google and Facebook Ads.

Geotesting uses Synthetic Control methodologies built on GeoLift, an open-source package from Meta. All existing metrics and metric sources are available, with the addition of geographic labels.

### MABs

* [Autotune](https://docs.statsig.com/statsig-warehouse-native/features/autotune) is Statsig's multi-armed bandit solution. It balances explore and exploit to deliver the optimal global treatment to users, making it useful for evaluating many options and dynamically adjusting traffic to avoid over-delivering underperforming variants.

* Statsig also offers a [Contextual Multi-Armed Bandit](https://docs.statsig.com/autotune/contextual/introduction). This bandit extends the multi-armed bandit by personalizing the experience served to users based on "context" (user or event attributes provided to the Statsig SDK). The Contextual Multi-Armed Bandit balances explore and exploit by optimizing for potential upside in its predictions.

You invoke both MAB types through Statsig's `getExperiment` call. For the CMAB approach, provide relevant attributes to the user object. Contact the Statsig support team, your sales contact, or the [Slack community](https://statsig.com/slack) for assistance with Contextual Multi-Armed Bandits.
