Sub topic 8
Time zones, day of week, and other confounders
This chapter assumes you know what an A/B test is and why recipients are assigned to variants at random. It also assumes you can read short Python snippets. Here you will learn how timing and audience differences can make a send-time test report a winner that has nothing to do with the variable you changed.
What a confounder is
A confounder is a factor that differs between your variants and also affects the outcome. When one exists, you can't tell whether a difference in click rate came from your change or from the confounder.
Random assignment protects you against confounders that vary between recipients. It does not protect you when the variants are defined by something that is itself tied to timing or audience. Send-time tests are the clearest case. If variant A goes out Tuesday morning and variant B goes out Saturday evening, the two groups differ in the day, the hour, the news cycle, and the other mail in each inbox. Any of these could explain the result.
The goal of the design is to cut the arrow from the confounder into the variant assignment. Do this by holding the confounder constant, or by spreading it evenly across variants.
Time zones
A "9:00 a.m." send is ambiguous. Sent at 09:00 in your server's time zone, it reaches New York recipients at one local hour and Tokyo recipients at a very different one. Two designs are common, and they answer different questions.
| Design | What varies | What it answers |
|---|---|---|
| Fixed instant (same UTC moment for everyone) | Local hour differs by recipient | Does this moment in absolute time work better? |
| Local time (each recipient gets the mail at their own 9:00) | Absolute moment differs by recipient | Does this local hour work better? |
Most teams want the second question: "Do people respond better to mail that arrives at 9:00 their time or 18:00 their time?" For that question, a fixed-instant design confounds hour with geography. If variant A lands at 9:00 in New York, and variant B lands at 18:00 in New York, the comparison is clean for that region. If your list is mostly in Europe, the same two UTC times land at hours that are not comparable at all.
The snippet below converts a local target hour into the UTC moment you must schedule for each time zone. It uses the standard library zoneinfo, which handles daylight saving changes for you.
from datetime import date, datetime, timezone
from zoneinfo import ZoneInfo
def utc_send_time(local_date, local_hour, tz_name):
local = datetime(
local_date.year, local_date.month, local_date.day,
local_hour, tzinfo=ZoneInfo(tz_name),
)
return local.astimezone(timezone.utc)
for tz in ["America/New_York", "Europe/London", "Asia/Tokyo"]:
print(tz, utc_send_time(date(2026, 12, 3), 9, tz).isoformat())For 3 December 2026 this prints 14:00 UTC for New York, 09:00 UTC for London, and 00:00 UTC for Tokyo. Note that the Tokyo mail goes out at midnight UTC, which is the same calendar day in Tokyo but the previous evening in New York. Check the date in the recipient's zone, not yours.
Local-time sending has its own wrinkles:
- Sending in waves means the whole campaign takes up to a day to deliver. A late-breaking event can affect the later waves more than the early ones.
- Recipients with a missing or wrong time zone, often inferred from IP address or signup form, are quietly placed in the wrong wave. Keep a count of how many have an unknown zone and treat them separately.
- Daylight saving changes can shift a recipient's local hour by one when you compare a test across weeks. Use named zones such as
Europe/London, never fixed offsets like+01:00.
Day of week
Behavior differs by weekday. B2B lists often click more on Tuesday through Thursday. Retail lists may peak on weekends. If your two variants run on different days, the weekday effect is mixed into your treatment effect.
The reliable fix is to run both variants at the same time on the same day. When you are testing send times within a day, split the list at random, send the 9:00 variant to one half and the 18:00 variant to the other half, and do it on the same date. Both groups then share the weekday, the news, and the competing mail of that day.
If you want to test days of week themselves, you can't run both variants on one day. In that case use these safeguards:
- Pick days with no known holidays, sales, or events for either group.
- Repeat the test across several weeks, swapping which random half gets which day, so no single odd week decides the result.
- Treat the result as a statement about this audience and season, not as a general rule.
Audience and list segment differences
The most common confounder in send-time tests is not the clock. It is who ends up in each group.
Suppose you send the morning variant to your newest subscribers and the evening variant to long-standing ones. Newer subscribers usually click more, so the morning variant looks better for reasons unrelated to time. The same trap appears when groups are chosen by engagement tier, plan type, country, or signup source.
Random assignment fixes this in expectation. With large groups, the mix of new and old subscribers will be close to equal in each variant. With small groups, or a list dominated by one stratum, chance imbalance is possible. Two techniques help:
- Stratified assignment. Randomize within each stratum (for example each time zone or engagement tier), so every stratum is split evenly between variants.
- A balance check. After assignment and before sending, count recipients per stratum per variant and look for gaps.
The code below reuses the hash-based assignment from the randomization chapter and prints a balance table by time zone.
import hashlib
from collections import Counter
def assign_variant(user_id, experiment, variants=("A", "B")):
key = f"{experiment}:{user_id}".encode("utf-8")
digest = hashlib.sha256(key).hexdigest()
return variants[int(digest, 16) % len(variants)]
zones = ["America/New_York"] * 600 + ["Europe/London"] * 300 + ["Asia/Tokyo"] * 100
recipients = [{"id": f"user-{i}", "tz": tz} for i, tz in enumerate(zones)]
counts = Counter()
for r in recipients:
counts[(r["tz"], assign_variant(r["id"], "send-time-2026-12"))] += 1
for tz in sorted({r["tz"] for r in recipients}):
print(f"{tz:20} A={counts[(tz, 'A')]:4} B={counts[(tz, 'B')]:4}")Hash-based assignment gives an approximately even split, not an exact one. In the 100-person Tokyo stratum you may see something like 44 against 56. That gap is normal chance variation, but it is large enough to matter if Tokyo recipients behave differently. If it worries you, assign within each stratum by shuffling the list with a fixed seed and alternating variants, which gives an exact split.
Other confounders to watch
Time and audience are the big two. These smaller ones also produce false winners:
- Overlapping campaigns. If a promotional email goes to half your list on the same day, and that half is not split evenly across variants, your test inherits the difference.
- Deliverability differences. A send at an hour when your sending provider throttles delivery can land a variant in spam folders more often, which lowers every metric for that variant.
- Email client mix. Mobile-heavy audiences read in the morning commute, desktop audiences at work. If one variant's recipients skew toward one client, a send-time effect can reflect device use.
- Holidays and local events. A bank holiday in one country changes behavior for that stratum only.
- Novelty. A new send time can briefly look better because recipients notice something different. A repeat test several weeks later shows whether the lift persists.
A pre-launch checklist
- Both variants send on the same date. If they can't, record the reason.
- The time-zone rule is stated: fixed instant or local time.
- Recipients with unknown time zones are placed in their own stratum or excluded from the test, and you have noted which.
- Assignment is random, reproducible, and stratified when any stratum is small.
- Balance table checked: variant sizes within each stratum are close.
- No other campaign is aimed at only part of the test population.
- Delivery windows for both variants are the same length.
Practice
Exercise
You test "9:00 a.m." against "6:00 p.m." by sending variant A at 09:00 UTC and variant B at 18:00 UTC to two random halves of a list that is 70% in North America and 30% in Europe. Name two confounders in this design, and describe a redesign that removes them.
Show answer
First, the local hour is not what you think it is. 09:00 UTC is early morning in North America and mid-morning in Europe, and 18:00 UTC is lunchtime in North America and evening in Europe, so "morning versus evening" means different local hours for different recipients. Second, the region mix interacts with the variants, so any difference between regions is tangled up with the time effect. Redesign: define the variants as local hours, send each recipient's mail at 09:00 or 18:00 in their own time zone, stratify the random assignment by region so each region is split evenly, send both variants on the same date, and treat recipients with unknown time zones as a separate group.
Exercise
A colleague runs variant A on Tuesday and variant B on Thursday of the same week, to the same random half of the list each time. Does this control for day of week? What would you check first?
Show answer
It does not control for it. Day of week is the very thing being varied, so it can't be separated from the treatment, and week-specific events add noise. Using the same people on both days also breaks the independence that the two-proportion z-test assumes. Check first whether anything special happened on either day, such as a sale, a holiday, or another campaign. Then repeat the comparison over several weeks with different random halves, and report the result as specific to this audience and season.