Library/Experiments and causal inference/When randomization is messy

Randomized by city, analyzed by user

95 min6 partsAdvancedFundamentalsChecked Nov 2026
Start the lessonShort steps, each with something to do
What you'll learn
  • Say why users in a city that was randomized as a whole aren't independent, and how far that shrinks the naive standard error
  • Use the design effect, 1 + (m - 1) × ICC, to predict the right standard error and the effective sample size, and say when it holds
  • Write the cluster-robust sandwich in numpy, and say why heteroskedasticity-robust errors don't fix clustering
  • Add the small-sample correction and t with G - 1 degrees of freedom, and say how badly a handful of cities misleads even then
  • Analyze the city means as the simple valid alternative, and count power in cities, not users
  • Answer the follow-ups: choosing the unit, marketplace interference, switchback tests and clustered errors for evals
Part 1 of 6about 20 min
Two units

Clustered standard errors, from a city-level test

A prep site lists a Netflix data science onsite question on a frequency-cap test that asks you to "provide power calculations that account for interference and clustering" (1 source), and a candidate's report of a Netflix onsite says both technical cases were about ad frequency caps (1 report). When eval questions come in related groups, like several questions about one reading passage, Anthropic recommends "clustering standard errors on the unit of randomization" (1 source). The frequency-cap question and the eval guidance use the same math. Our version of the practice reads like this:

An experiment assigned 40 whole cities to treatment or control, 20 each, then logged a metric for each of their 2,000 users. Estimate the effect, and give a standard error you'd defend. Then tell me how many cities the next test needs.

The practice comes in four levels. Level 1 writes diff_in_means and naive_se, the standard error that treats every user as independent. Level 2 writes cluster_se, clustered on city. Level 3 writes city_means_test, a t-test on one mean per city. Level 4 writes cities_per_arm, the next test's size in cities.

You don't write them yet. The lesson shows why users in one city aren't independent, measures how far that fools the naive standard error, builds the clustered one, and handles the case of few cities. At the end you solve the whole problem, level by level, in an interview simulation with a 45-minute timer.

This lesson builds on the A/B test lesson's comparison of two arms, and on the sample-size lesson's design effect. The difference-in-differences lesson comes next, for changes you can't randomize at all.

Some changes switch on for a whole city at once

Start with the two units the practice data mixes.

Predict

40 cities each flip a coin, and 2,000 users get analyzed. How many independent units of randomization are there?

Pick an answer above to see the rest

The estimate is a difference in means, and clustering never changes it

The practice fits the regression y ~ 1 + treat. That's formula notation: it predicts y from an intercept, the 1, and the treatment flag, 0 or 1. The fit is ordinary least squares, OLS: the line with the smallest sum of squared misses.

With a 0 or 1 flag, that line passes through the two arms' means. So its slope on treat is the treated mean minus the control mean.

The estimate is the easy part, and clustering never changes it. Everything after this step is about its standard error.

In the editor, write diff_in_means(y, treat) from the two arms' means. y6 holds six small cities that the lesson comes back to.

Users in one city share a shock, so they aren't independent

Here are those six cities, four users each.

Predict

Users in one city sit near their city's level. Is a second user from the same city new, independent evidence?

Pick an answer above to see the rest

Each user's metric is a city shock plus the user's own noise

The practice data is built from that same picture.

import numpy as np

def practice_data(seed, city_sd):
    rng = np.random.default_rng(seed)
    cluster = np.repeat(np.arange(40), 50)
    treat = rng.permutation(np.r_[np.ones(20), np.zeros(20)])[cluster]
    shock = rng.normal(0, city_sd, 40)[cluster]
    y = 10 + 0.5 * treat + shock + rng.normal(0, 2, 2000)
    return y, treat, cluster

y, treat, cluster = practice_data(0, 1.5)
means = np.array([y[cluster == g].mean() for g in range(40)])
inside = np.array([y[cluster == g].std() for g in range(40)])
print(f"users inside one city spread by {inside.mean():.2f}")
print(f"the 40 city means spread by     {means.std():.2f}")
users inside one city spread by 1.97
the 40 city means spread by     1.39

This is how the practice data is made. cluster holds each user's city id, 0 to 39, fifty users each. rng.normal(0, city_sd, 40) draws one shock per city, and indexing with [cluster] copies it to the city's 50 users. The coin flips are copied the same way.

The spread here is the standard deviation. Users inside a city spread by about 2, their own noise. If users were independent, a mean of 50 of them would spread by only 2/50=0.282/\sqrt{50} = 0.28. The city means spread by 1.39. Most of that is the city shock, which every user in the city shares.

In symbols:

yig=μ+τ tg+bg+eigy_{ig} = \mu + \tau\, t_g + b_g + e_{ig}

In words: user ii in city gg gets the base level μ\mu (10 in the code), plus the effect τ\tau (0.5) when the city's flag tgt_g is 1, plus the city's shock bgb_g, plus the user's own noise eige_{ig}. The shocks have variance σb2\sigma_b^2, 1.5 squared in the code, and the users' own noise has variance σw2\sigma_w^2, 2 squared. There are GG cities of mm users, so N=GmN = Gm users in all.

Averaging more users shrinks their own noise, never the city's shock

So how much can averaging a city's users help?

Predict

A city's mean has shock variance 2.25 plus user noise 4 / m. Average 50 users. About what's left?

Pick an answer above to see the rest

The naive standard error counts every user as independent evidence

Now the standard error the usual formula gives.

def fit(y, treat):
    X = np.column_stack([np.ones(len(y)), treat])
    XtX_inv = np.linalg.inv(X.T @ X)
    beta = XtX_inv @ X.T @ y
    return X, XtX_inv, beta, y - X @ beta

def diff_in_means(y, treat):
    return fit(y, treat)[2][1]

def naive_se(y, treat):
    X, XtX_inv, _, resid = fit(y, treat)
    n, k = X.shape
    s2 = resid @ resid / (n - k)
    return np.sqrt(s2 * XtX_inv[1, 1])

b, se = diff_in_means(y, treat), naive_se(y, treat)
print(f"estimate {b:.3f}   naive SE {se:.3f}")
print(f"naive 95% interval: {b - 1.96 * se:.2f} to {b + 1.96 * se:.2f}")
Predict

The practice data was built with a true effect of 0.5. Does the naive 95% interval cover it?

Pick one to see what it prints.
Pick an answer above to see the rest

On the practice data, the naive interval misses the true effect

On the practice data, that formula gives a confident, wrong answer.

The practice data, two 95% intervals around the estimate
true effect 0.5
naive -0.37 to 0.06
clustered -1.06 to 0.75
-1-0.500.51

The practice data was built with a true effect of 0.5. Its treated cities happened to draw shocks 0.61 lower than the control cities on average, so the estimate came out at -0.155.

The naive interval, -0.37 to 0.06, is narrow and confident, and it misses 0.5. The clustered standard error is 0.446, four times the naive 0.108. Its interval, -1.06 to 0.75, covers the truth. It uses a cutoff of 2.023 instead of 1.96, for a reason Part 4, Few cities, explains.

One data set could be bad luck, so a later step runs this design with no true effect at all. A 5% test built on the naive standard error calls about two of every three runs significant.

In the editor, write naive_se(y, treat) from the formula, with no matrices.

CheckpointThe standard error that ignores cities

Write naive_se(y, treat) from the formula, with no matrices: residuals from each arm's own mean, s2s^2 as their sum of squares over N−KN - K with K=2K = 2, then s2(1/NT+1/NC)\sqrt{s^2 (1/N_T + 1/N_C)}. treat is 1 for treated users and 0 for the rest.

Part 1 done
Part 2 of 6about 19 min
The design effect

The ICC is the share of the variance that comes from the city

How far the naive standard error falls short depends on one number about the cities.

Predict

City shocks have variance 2.25 and user noise 4.00. What share of a user's variance comes from the city?

Pick an answer above to see the rest

With equal city sizes, the design effect is 1 + (m - 1) × ICC

The ICC turns into a factor on the variance.

Predict

Equal cities of 50 users and an ICC of 0.36. The design effect is 1 + (m - 1) × ICC. About how big?

Pick an answer above to see the rest

A tiny ICC in a big city is still a big design effect

The design effect grows with the city size, so even a small ICC adds up.

ICC 0.01: the design effect by users per city
10 users
1.09
100 users
1.99
1,000 users
10.99

The standard error grows with the square root: 1.04, 1.41 and 3.32 times the naive one.

An ICC of 0.01 sounds like nothing. But the design effect multiplies it by the number of other users in the city. In cities of 1,000 users, 1+999×0.01=10.991 + 999 \times 0.01 = 10.99, and the naive standard error is 3.3 times too small.

Cameron and Miller retell Moulton's classic example: an error correlation of 0.032 within states, about 387 people per state, and a regressor that's the same for everyone in a state. That's 1+0.032×386≈13.41 + 0.032 \times 386 \approx 13.4, so the default standard errors were about 3.7 times too small.

Their one-line summary of the problem: "In such settings, default standard errors can greatly overstate estimator precision."

A city is worth at most 1 / ICC independent users

Turn the design effect around, and it says what one city is worth.

Predict

At an ICC of 0.36, one city of 50 users is worth about how many independent users?

Pick an answer above to see the rest

Unequal city sizes make the design effect bigger

Real cities aren't all one size, and that costs more.

Predict

Same average city size, but the sizes are unequal. Is the design effect bigger or smaller than with equal sizes?

Pick an answer above to see the rest
Part 2 done
Part 3 of 6about 13 min
The clustered SE

The cluster-robust standard error adds up inside each city, then squares

Here's the fix the design effect points to, as code.

def cluster_se(y, treat, cluster):
    X, XtX_inv, _, resid = fit(y, treat)
    n, k = X.shape
    groups = np.unique(cluster)
    G = len(groups)
    meat = np.zeros((k, k))
    for g in groups:
        # sum in the city
        s = X[cluster == g].T @ resid[cluster == g]
        # then square
        meat += np.outer(s, s)
    V = XtX_inv @ meat @ XtX_inv
    # small-sample fix
    V *= G / (G - 1) * (n - 1) / (n - k)
    return np.sqrt(V[1, 1])

for seed, city_sd in [(0, 1.5), (1, 0.0)]:
    yy, tt, cc = practice_data(seed, city_sd)
    print(f"city shocks sd {city_sd}:   naive {naive_se(yy, tt):.4f}"
          f"   clustered {cluster_se(yy, tt, cc):.4f}")
Predict

With city shocks of sd 1.5, the clustered SE is about 4 times the naive one. With no city shocks, sd 0, how do they compare?

Pick one to see what it prints.
Pick an answer above to see the rest

Adding up inside the city before squaring keeps the pairs that share a city

The loop's one important move is the order: add, then square.

Predict

City A's residuals are -5, -2, -4 and -1. Their total squared is 144, and the diagonal, each user alone, adds up to 46. What do the other 12 cells hold?

Pick an answer above to see the rest

For a 0/1 treatment, each city counts through its residual total

With a 0 or 1 treatment, the sandwich has a short closed form.

Predict

Cities B and E have a residual total of 0. What do they add to the clustered variance?

Pick an answer above to see the rest

On a design with no true effect, count how often each test finds one

Check the clustered standard error the way you'd check any function: simulate it.

rng = np.random.default_rng(0)
G, m = 40, 50
city = np.repeat(np.arange(G), m)
half = np.r_[np.ones(G // 2), np.zeros(G // 2)]
naive_hits = clustered_hits = 0
for _ in range(2000):
    t = rng.permutation(half)[city]
    yy = rng.normal(0, 1.5, G)[city] + rng.normal(0, 2, G * m)
    b = diff_in_means(yy, t)
    naive_hits += abs(b / naive_se(yy, t)) > 1.96
    clustered_hits += abs(b / cluster_se(yy, t, city)) > 2.023
print(f"naive test:     {naive_hits / 2000:.2%} significant")
print(f"clustered test: {clustered_hits / 2000:.2%} significant")
Predict

No true effect at all, 40 cities of 50 users. How often does the naive 5% test call the result significant?

Pick one to see what it prints.
Pick an answer above to see the rest
Part 3 done
Part 4 of 6about 20 min
Few cities

The small-sample correction raises the standard error, more with fewer cities

On the six cities, the sandwich alone gives 2.0, and cluster_se gives 2.240. The gap is one factor on the variance:

c=GG−1⋅N−1N−Kc = \frac{G}{G - 1} \cdot \frac{N - 1}{N - K}

In words: the number of cities over one less than that, times the number of users minus 1 over the number of users minus the KK coefficients.

Here's why it's needed. Residuals are fitted, so they sit closer to zero than the true errors do. OLS already corrects for that by dividing by N−KN - K instead of NN. The cluster-robust estimator has the same bias at the city level, because its meat is built from only GG city scores.

Cameron and Miller give this factor and note that Stata uses it. The practice tests' expected values come from statsmodels, which applies it by default.

  • On the six cities, c=65⋅2322=1.2545c = \tfrac{6}{5} \cdot \tfrac{23}{22} = 1.2545. The standard error grows by c=1.12\sqrt{c} = 1.12, from 2.0 to 2.240.
  • On the practice data, c=1.026c = 1.026. The standard error grows by c=1.013\sqrt{c} = 1.013, from 0.4403 to 0.4460.

It shrinks the downward bias. It doesn't remove it, which is why the rest of this part exists.

In the editor, write correction(G, N, K=2): the factor, for the six cities and for the practice data.

The correction's extra percent roughly doubles each time the cities halve

How much the correction matters depends on how many cities you have.

Cities GG, 50 users eachc\sqrt{c}Standard error grows by
1001.0050.5%
401.0131.3%
201.0262.6%
101.0555.5%
61.0979.7%
41.15815.8%

The second factor, (N−1)/(N−K)(N - 1)/(N - K), is close to 1 whenever NN is large. The first one, G/(G−1)G/(G - 1), is the one that matters, and it matters most when cities are few.

In the editor, finish cluster_se(y, treat, cluster): cr0_se, corrected by the factor c.

CheckpointThe small-sample correction

Finish cluster_se(y, treat, cluster): cr0_se from the earlier task, corrected by the factor c=GG−1⋅N−1N−Kc = \frac{G}{G-1} \cdot \frac{N-1}{N-K} on the variance, with GG counted from the city ids and K=2K = 2. That's the number statsmodels reports.

With few cities, use t with G - 1 degrees of freedom, and it still runs hot

The correction fixes the standard error. The cutoff needs fixing too.

A t distribution has fatter tails, so its 5% cutoff sits past 1.96

Predict

Six cities give a t test 5 degrees of freedom. Where does its two-sided 5% cutoff sit?

Pick an answer above to see the rest

With equal cities, equal arms and normal noise, even the corrected test runs hot below about 20 cities

Even with the correction and the t cutoff, few cities cost you.

Cities GGCR0 vs 1.96CR1 vs 1.96CR1 vs tCity means vs t
430.0%25.0%12.1%5.0%
618.5%15.4%8.3%5.0%
1011.8%10.2%6.5%5.0%
207.9%7.2%5.6%5.0%
406.4%6.0%5.3%5.0%
1005.5%5.4%5.1%5.0%

Each entry is how often a 5% test rejects when there's no effect. Half the cities are treated, every city has 50 users, and the noise is normal.

  • CR0 is the uncorrected sandwich. CR1 is the corrected one, the one cluster_se returns.
  • The 1.96 columns compare the t statistic to the normal curve's cutoff.
  • The t columns compare it to a t distribution: G−1G - 1 degrees of freedom for CR1, and G−2G - 2 for the city means.

Under those conditions:

  • Every clustered t statistic in the table is a fixed multiple of the city-means t statistic from a later step.
  • The city-means t statistic has an exact t distribution, so these rates are exact.
  • The ICC drops out.
  • The city size enters only through (N−1)/(N−K)(N - 1)/(N - K). At 50 users or more, it moves no entry by more than a tenth of a point.
  • A 200,000-run simulation of each row lands within about a tenth of a point of every entry.

At 40 cities, the correction and G−1G - 1 degrees of freedom get you close. Below about 20, even both together run hot.

What counts is the number of cities in the smaller arm

Unequal arms make it worse.

Predict

20 cities are treated and 3 are in control. Which count decides how few cities you have?

Pick an answer above to see the rest

The wild cluster bootstrap resamples by flipping whole cities

One fix for few cities is a bootstrap that respects them.

Predict

The wild cluster bootstrap builds new data sets by flipping what?

Pick an answer above to see the rest

Or analyze at the level you randomized: one mean per city

The other fix skips the sandwich altogether.

Predict

Why is an ordinary t-test on the city means valid?

Pick an answer above to see the rest

With equal city sizes and equal arms, the clustered standard error is a fixed multiple of this one

That 0.446 against 0.452 is no coincidence. With equal city sizes and equal arms:

SEclusteredSEcity means=G−2G−1⋅N−1N−K\frac{\text{SE}_{\text{clustered}}}{\text{SE}_{\text{city means}}} = \sqrt{\frac{G - 2}{G - 1} \cdot \frac{N - 1}{N - K}}

In words: the clustered standard error is the city-means one times a factor just under 1. At 40 cities and 2,000 users the factor is 0.987.

So the sandwich is the city-means t-test in disguise. It has a slightly smaller standard error, and a slightly smaller cutoff, with G−1G - 1 degrees of freedom instead of G−2G - 2. Those two small gaps are where its extra false positives with few cities come from.

In the editor, write sandwich_factor(G, N, K=2): the factor between the two standard errors.

With unequal city sizes, the plain average of city means answers a per-city question

With unequal city sizes, the plain average of city means weights a town of 50 users the same as a city of 50,000. So it estimates the average effect per city, not per user. If the effect varies with city size, those are different numbers.

Weighting the means by city size gets the per-user estimate back. But then the simple t-test isn't exact anymore.

Part 4 done
Part 5 of 6about 12 min
The worked example

A worked example

Run every method on the six cities from the start.

Six cities of four users, with their residuals and city totals

CityUsersMeanResidualsEgE_g
A1, 4, 2, 53-5, -2, -4, -1-12
B8, 4, 7, 562, -2, 1, -10
C7, 10, 11, 891, 4, 5, 212
D5, 8, 4, 76-4, -1, -5, -2-12
E10, 7, 11, 891, -2, 2, -10
F14, 10, 13, 11125, 1, 4, 212

These are the six cities from the start: A, B and C are control, and D, E and F are treated. The residuals are each user's value minus their arm's mean, 6 for control and 9 for treated. EgE_g is their total. The estimate is 9−6=39 - 6 = 3.

All the lesson's functions agree:

y6 = np.array([1.0, 4, 2, 5, 8, 4, 7, 5, 7, 10, 11, 8,
               5, 8, 4, 7, 10, 7, 11, 8, 14, 10, 13, 11])
t6 = np.repeat([0.0, 1.0], 12)
c6 = np.repeat(np.arange(6), 4)
print(f"estimate    {diff_in_means(y6, t6):.3f}")
print(f"naive SE    {naive_se(y6, t6):.3f}")
print(f"clustered   {cluster_se(y6, t6, c6):.3f}")
print(f"city means  {city_means_test(y6, t6, c6)[1]:.3f}")
estimate    3.000
naive SE    1.243
clustered   2.240
city means  2.449
Predict

Six cities: the naive test gives p = 0.025. What do you expect from the clustered test?

Pick an answer above to see the rest

Power: count cities, not users

Power runs the same math backwards:

Garm=niid(1+(m−1)ρ)mG_{\text{arm}} = \frac{n_{\text{iid}} \big(1 + (m - 1)\rho\big)}{m}

In words: niidn_{\text{iid}} is the users per arm you'd need if users were independent. Times the design effect, it's the users you need. Divided by mm, the users per city, it's the cities you need in each arm.

Say you want to detect a lift of 0.1 standard deviations, at 5% two-sided, with 80% power. With independent users that's niid=2(1.96+0.84)2/0.12n_{\text{iid}} = 2(1.96 + 0.84)^2 / 0.1^2, about 1,570 per arm. Here 1.96 is the two-sided 5% cutoff, and 0.84 the point with 80% of the normal curve below it. The sample-size lesson derives this.

With 50 users per city and ρ=0.05\rho = 0.05, the design effect is 3.45. So it takes 5,416 users, 109 cities per arm.

In the editor, write cities_per_arm(effect_sd, m, icc): the cities per arm for a given city size and ICC.

Bigger cities stop helping, because their shocks never average away

Bigger cities help less and less.

Predict

Independent users would need 1,570 per arm, and the ICC is 0.05. How many cities per arm do you need at least, however big the cities?

Pick an answer above to see the rest
Part 5 done
Part 6 of 6about 11 min
Follow-ups

What interviewers ask next

The first follow-up comes before any analysis.

Choose the unit before the test starts

Predict

You randomize by city instead of by user. What do you trade?

Pick an answer above to see the rest

Interference: treated users can take supply from control users

Some changes leak from treated users to control users.

Predict

In a 50/50 test, treated riders get 20% more rides than control. Does the launch deliver 20% more rides?

Pick an answer above to see the rest

Switchback tests randomize time blocks instead of cities

When cities are too few, randomize time instead.

Predict

In a switchback test, what's one unit?

Pick an answer above to see the rest

The same math works on a model's test scores.

score = np.array([1, 1, 1,  0, 0, 0,  1, 1, 0,
                  1, 1, 1,  0, 0, 1,  0, 0, 0], float)
passage = np.repeat(np.arange(6), 3)
print(np.bincount([0, 0, 1, 2, 2], weights=[1.0, 2, 5, -1, 4]))
naive, clustered = eval_ses(score, passage)
print(f"naive {naive:.3f}   clustered {clustered:.3f}")
[3. 5. 3.]
naive 0.118   clustered 0.171

An eval is an experiment too. Here a model answers 3 questions on each of 6 reading passages, scored 1 if right. When an eval asks several questions about each passage, the questions are the users and the passages are the cities. A model that misreads a passage misses several questions at once.

For one eval score, the sandwich has only an intercept. So each passage contributes its residual total, squared. np.bincount(ids, weights=w) adds up the weights that share each id: ids 0, 0, 1, 2, 2 with weights 1, 2, 5, -1, 4 give totals 3, 5 and 3. Give it the residuals as weights and it returns each passage's residual total. It needs the ids to be whole numbers, 0 or more. Neither standard error uses a small-sample correction, so the two compare fairly.

On these 18 answers, the clustered standard error is 1.45 times the naive one. Anthropic's guidance is to cluster on the unit of randomization, here the passage (1 source). In Evan Miller's paper behind that guidance, the clustered standard error on DROP, a reading-comprehension eval, came out 3.05 times the naive one. On the multilingual MGSM, where one question appears in many languages, it was 1.88 times. The paper's summary: "Analyzing the same data, clustered standard errors can be over 3X larger than naive standard errors."

To compare two models on the same questions, run it on the per-question score differences.

In the editor, write eval_ses(score, passage): the naive and the clustered standard error of an eval score.

The practice problem, start to finish

That's every piece of the practice problem, and the follow-ups after it. The simulation asks for all five functions under a timer, so rehearse the order once.

Check yourself
5 questions
  1. 1.Cities of 1,000 users each, randomized by city, and the ICC is only 0.01. How far off is the naive standard error?

  2. 2.On the practice data with city effects, you swap the naive standard error for a heteroskedasticity-robust one. What happens?

  3. 3.With 40 cities and 2,000 users, what does the factor G/(G - 1) × (N - 1)/(N - K) do to the clustered standard error?

  4. 4.Your naive_se divides the residual sum of squares by N instead of N - K. Why is N - K right?

  5. 5.Six cities of equal size, three of them treated. Which test keeps its false positive rate at 5%?

Where this shows up

The reports behind this lesson, each with its source.

A prep site lists a Netflix DS onsite question (posted 2025-10-13): design and power a frequency-cap experiment that accounts for interference and clustering.

Prep site·PracHub (prep site question bank)·2025-10-13Source

When eval questions come in related groups, Anthropic recommends clustered standard errors on the unit of randomization.

“we recommend clustering standard errors on the unit of randomization”
Company source·Anthropic research (Alignment)·2024-11-19Source

Data scientist onsite (Oct 2025 report): both technical cases were about ad frequency caps.

Candidate report·PracHub (first-person report, curated and edited by the site)·2026-08-25Source

Netflix DS onsite question on the prep site (posted 2025-10-13): plan a ranking A/B test, choosing user, session or query randomization.

Prep site·PracHub (prep site question bank)·2025-10-13Source

Netflix DS question on the prep site (posted 2025-08-04): network effects and SUTVA in a test of a social or streaming feature.

Prep site·PracHub (prep site question bank)·2025-08-04Source

Practice

Sources (3)
  1. A Practitioner's Guide to Cluster-Robust Inference · Journal of Human Resources 50(2) · Mar 31, 2015
    “In such settings, default standard errors can greatly overstate estimator precision.”
  2. Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations · arXiv 2411.00640 · Nov 1, 2024
    “Analyzing the same data, clustered standard errors can be over 3X larger than naive standard errors.”
  3. Why do you need Switchback for experimentation · Cabify Tech blog · Mar 4, 2026
    “Lastly, take into account that, in switchback experiments, each interval is one sample, so you need longer experiments to get significant results.”