Skip to content

Methods · Design of experiments · Online experiments

Switchback Experiment Analysis (Horvitz-Thompson with Carryover, Randomization Test)

A switchback experiment turns a treatment on and off for a whole system over successive time periods, such as hours in a delivery marketplace, because users share the same supply and cannot be split into groups. Each period is randomly assigned, and effects may carry over into the following periods.

스위치백 실험은 사용자를 집단으로 나눌 수 없을 때 시스템 전체에 처치를 시간 구간마다 켜고 끄는 실험입니다. 예를 들어 배달 플랫폼의 시간대별로 처치를 무작위 배정하며, 효과가 다음 구간까지 이어질 수 있습니다.

When the whole system alternates between treatment and control over time, how large is the treatment effect once carryover from previous periods is allowed for?

시스템 전체가 시간에 따라 처치와 대조를 오갈 때, 앞 구간에서 이어지는 효과까지 고려하면 처치효과는 얼마나 될까요?

Rows are averaged into periods. The Horvitz-Thompson estimator compares periods preceded by the chosen number of consecutive treated periods with those preceded by consecutive control periods, weighted by how likely such runs are under the randomisation. A Fisher randomisation test re-draws the assignment path to give the p-value, and a distributed-lag regression with Newey-West standard errors gives the cumulative effect and a check of carryover at each lag.

When to use Switchback Experiment Analysis (Horvitz-Thompson with Carryover, Randomization Test)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

In a switchback experiment with [value] periods, the Horvitz-Thompson estimate of the effect was [value] (randomisation test p = [value]); the distributed-lag cumulative effect was [value] (95% CI [value] to [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Switchback Experiment Analysis (Horvitz-Thompson with Carryover, Randomization Test) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator and a time variable
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q84026 · Reviewed 2026-10-25