Multi-Channel Flu Vaccination Experiment Design
Hard · Analytics & Experimentation · Data Scientist · Technical Screen
Prompt
You own experimentation and causal measurement for an autumn retail-pharmacy immunization drive (Oct 1 – Dec 31, 2026) aimed at boosting in-store flu shots through text messages (SMS) and Email. Architect the study and readout plan from assignment through chain-wide rollout.
Campaign setup
- Eligible base: Adult loyalty-program members (
18+) whose primary pharmacy sits inIL,OH, orPA. The binary outcome equals1if the member receives an in-store flu vaccination between October 1 and December 31, 2026. - Outreach channels:
SMScosts$0.025per message with a90%carrier delivery rate;Emailcosts$0.002per message with a96%inbox delivery rate.
Deliverables to address
- Randomization architecture & guardrails: Decide between a two-arm single-channel test and a
2x2factorial layout (SMSoff/on crossed withEmailoff/on), accounting for cross-channel synergy or redundancy, spillover across individuals, and outreach costs. Specify pre-assignment inclusion/exclusion rules (such as marketing unsubscribes and pre-launch immunizations), randomization unit (individual member vs. shared household), stratification covariates (state, age bracket, historical store visits), the primary lift metric, and operational/customer health guardrails (unsubscribes, spam complaints, missed bookings, clinic wait times). - Sample-size & clustering math: Using a
10.0%baseline control immunization rate, a2.0percentage-point minimum detectable effect (MDE), two-sidedalpha = 0.05, and80%statistical power, derive the required per-arm individual headcount without clustering, then apply the design-effect adjustment for household randomization with intra-class correlationICC = 0.02and mean household size1.4. - Imperfect delivery & causal adjustment: Because bounced or unopened sends never reach every assigned member, define the Intention-To-Treat (
ITT) estimator and derive Treatment-On-The-Treated (TOT) using message delivery as the exposure mediated by random assignment. Show whyTOT = ITT / complianceholds and list the required causal assumptions. - Channel credit & survey pitfalls: Since members in the joint factorial cell can receive both
SMSandEmail, propose telemetry (channel-specific booking tokens, send/delivery timestamps) and statistical models (factorial cell contrasts, multilevel regional pooling) to partition incremental credit, and explain why checkout self-reports ("Did a reminder bring you in?") distort causal impact. - Regional readout puzzle: In one local market, the
SMSgroup reaches an11.2%immunization rate (140vaccinated members) against10.0%in control, yet only70of those140members tell counter staff they visited because of a text. Compute the causalITTlift, explain why the70survey answers do not alter that estimate, and propose operational follow-up tests given that+1.2percentage points trails the2.0percentage-point goal. - Live governance & budget-capped rollout: Specify how to govern interim checks during the three-month season (sequential testing boundaries), produce final estimates (confidence intervals and
CUPEDvariance reduction from prior-season records), and allocate a fixed outreach budget across channels and segments at scale.
Scope & Expectations
- Defend the
2x2vs. two-arm layout, pre-randomization population filters, household clustering unit, primaryITTmetric, and clinic/unsubscribe guardrails before computing sample sizes. - Show explicit formulas and numerical steps for both unclustered and household-clustered sample sizes, alongside the instrumental-variable derivation and exclusion-restriction nuances linking
ITTandTOT. - Separate randomized experimental attribution from link-click telemetry and biased post-visit surveys, working through the
140-member regional scenario quantitatively. - Connect interim alpha-spending discipline and
CUPEDprecision gains to a concrete marginal cost-per-incremental-vaccination rollout rule under a capped budget.
Step-by-step walkthrough
Choose the experimental design: 2x2 factorial vs. single-channel A/B
The pharmacy team faces two linked outreach choices for Oct–Dec 2026: should we send
SMSreminders, and should we sendEmailreminders? A 2x2 factorial experiment (an experiment that crosses two on/off treatments to create four randomized groups) answers both questions—and measures how the two channels interact—in a single seasonal run:Email OFF Email ON +-------------------------+-------------------------+ SMS OFF | Cell 00: Control | Cell 01: Email only | | ($0.00 / person) | ($0.006 / 3 sends) | +-------------------------+-------------------------+ SMS ON | Cell 10: SMS only | Cell 11: Both SMS+Email | | ($0.075 / 3 sends) | ($0.081 / 3 sends) | +-------------------------+-------------------------+Why a
2x2factorial beats a single-channel A/B test here:- It measures channel interaction. An interaction means the lift from sending both
SMSandEmaildiffers from the sum of sending each one alone. The two channels might be substitutes (onceEmailnudges a member, paying12.5xmore per message forSMSadds little extra lift and creates message fatigue) or complements (Emailprovides clinic hours whileSMStriggers immediate booking on Friday afternoon). WithoutCell 11 (Both), we cannot tell whether funding both channels wastes budget. - Two main effects for the sample price of one (when interaction is zero). If the channels act additively, we estimate the
SMSeffect by comparing the two SMS-on cells (10 + 11) against the two SMS-off cells (00 + 01), and theEmaileffect by comparing (01 + 11) against (00 + 10). Every enrolled member contributes to both comparisons. - Send costs constrain chain-wide scaling, not the test itself. Suppose a seasonal cadence sends 3 reminders across Oct–Dec (
SMS = 3 * $0.025 = $0.075/person,Email = 3 * $0.002 = $0.006/person). Even a 32,000-person factorial where half receiveSMScosts only16,000 * $0.075 = $1,200in text fees during the experiment. Scaled to 2 million loyalty members, however,SMScosts$150,000vs.$12,000forEmail—making interaction data essential before rollout. - Interference is controllable. Interference (or spillover) occurs when messaging one person alters a control person's vaccination behavior. We prevent within-home spillover by randomizing whole households together, and we monitor clinic crowding via store-capacity guardrails.
When would a simple 2-arm A/B test be preferable? Only if one channel is already fixed as business-as-usual, or if the eligible population were tiny. Across
IL,OH, andPA, an adult pharmacy loyalty base easily supports four cells.- It measures channel interaction. An interaction means the lift from sending both
Define eligibility, exclusions, household randomization, and strata
Every eligibility and exclusion rule must be locked before randomization using pre-campaign records only. Filtering anyone out based on events after outreach begins introduces post-treatment bias (distorting randomized balance by conditioning on outcomes the campaign itself could affect).
- Eligibility: Adults (
age >= 18on Oct 1, 2026) with an active pharmacy loyalty account, primary pharmacy inIL,OH, orPA, and both a valid mobile phone number and a valid email address with documented marketing opt-in consent (US TCPA regulations strictly govern promotional texts). Members reachable on onlyEmailor onlySMScannot enter the2x2factorial because they could not receive every cell; evaluate them in separate single-channel holdouts if needed. - Exclusions (pre-randomization only):
- Prior marketing opt-outs on
SMSorEmail, - Members who already received an autumn 2026 flu shot before the randomization cutoff (never drop members vaccinated after randomization—that is the outcome!),
- Employee, test, deceased, or duplicate loyalty profiles, plus members enrolled in overlapping pharmacy outreach tests.
- Prior marketing opt-outs on
Randomization unit: Household (loyalty profiles linked by shared household key, street address, phone number, or email). Spouses and roommates coordinate errands, forward reminders, and drive to the clinic together:
Person-level randomization (BAD — spillover dilutes lift): Partner A (SMS cell) ---> "Let's both grab flu shots Saturday!" ---> Partner B (Control cell) Result: Control rate rises artificially, shrinking measured SMS lift toward zero. Household-level randomization (GOOD — clean separation): Household 1 (both partners in SMS cell) vs. Household 2 (both partners in Control)Stratification: Stratified randomization means grouping households into homogeneous buckets ("strata") first and splitting each bucket
25% / 25% / 25% / 25%across the four cells so every arm starts balanced on strong predictors of immunization. Using the primary account holder's profile for multi-adult households, stratify on all three core dimensions (plus prior-season vaccination habit if available):State (IL, OH, PA) x Age bracket (18-49, 50-64, 65+) x Past 12-month store visits (0, 1-2, 3+) = 3 x 3 x 3 = 27 strata (or x 2 for prior-year flu shot = 54 strata)Immediately after assignment, run a sample-ratio mismatch (SRM) check (a chi-square goodness-of-fit test verifying that observed cell headcounts match the intended
25/25/25/25split) before sending or analyzing anything.- Eligibility: Adults (
Specify the primary metric and guardrail metrics
Primary metric: Intention-To-Treat (ITT) absolute lift in in-store vaccination rate (in percentage points) over Oct 1–Dec 31, 2026:
Vaccination Rate (Cell k) = (# assigned loyalty members in Cell k with >= 1 in-store flu shot in Oct-Dec) ----------------------------------------------------------------------------- (Total # loyalty members assigned to Cell k) ITT Lift (Cell k vs. Control) = Vaccination Rate (Cell k) - Vaccination Rate (Cell 00)Keep every assigned member in the denominator—even if their
SMSbounced or went unopened—so the groups stay purely randomized. Measure immunizations from point-of-sale / clinical registry records matched on loyalty ID (not link clicks), and check across arms whether booking links alter how reliably walk-in patients scan their loyalty card.Guardrail metrics (safety indicators with pre-registered tripwires):
- Unsubscribe rate:
SMSSTOPreplies andEmailunsubscribes per messaged member (permanent loss of future reachability). - Spam & carrier health: Spam-complaint rate and telecom carrier block rates.
- Appointment no-show rate: Reserved clinic slots where the patient fails to appear (
no-shows / booked slots), since frictionless booking links can inflate casual reservations that idle pharmacists. - Clinic capacity & congestion: Average walk-in wait time, immunizations per pharmacist hour, and local vaccine stock-outs. Clinic capacity also doubles as an interference check: if messaged members fill every Saturday slot at a busy location, control patients get turned away, artificially inflating apparent lift.
- Unsubscribe rate:
Compute sample size, power, and household clustering inflation
We want to detect a minimum detectable effect (MDE) (the smallest true lift our study is sized to catch reliably) of
delta = 2.0percentage points (p1 = 0.100in Control vs.p2 = 0.120in Treatment), at two-sided significance levelalpha = 0.05(5%false-positive risk under zero true effect, critical normal valuez_(0.975) = 1.960) andpower = 0.80(80%probability of catching a true2.0 pplift,z_(0.80) = 0.842).Using the two-proportion z-test sample-size formula (ignoring clustering first), with pooled rate
p_bar = (0.100 + 0.120) / 2 = 0.110:n_per_arm = [ z_(1 - alpha/2) * sqrt(2 * p_bar * (1 - p_bar)) + z_(power) * sqrt(p1 * (1 - p1) + p2 * (1 - p2)) ]^2 / (p2 - p1)^2 Step-by-step arithmetic: 2 * p_bar * (1 - p_bar) = 2 * 0.110 * 0.890 = 0.195800 -> sqrt = 0.44249 p1 * (1 - p1) + p2 * (1 - p2) = 0.100*0.900 + 0.120*0.880 = 0.195600 -> sqrt = 0.44227 Numerator root = 1.95996 * 0.44249 + 0.84162 * 0.44227 = 0.86727 + 0.37222 = 1.23949 Numerator squared = (1.23949)^2 = 1.53634 Denominator (delta^2) = (0.020)^2 = 0.000400 n_per_arm = 1.53634 / 0.000400 = 3,840.85 -> 3,841 people per arm(The unpooled approximation
(1.960 + 0.842)^2 * (p1*(1-p1) + p2*(1-p2)) / delta^2gives3,839per arm—within0.06%.)from math import ceil from statistics import NormalDist def sample_size_two_proportions(p1: float, p2: float, alpha: float = 0.05, power: float = 0.80) -> int: """Per-arm individual sample size for a two-sided two-proportion z-test.""" z_alpha = NormalDist().inv_cdf(1.0 - alpha / 2.0) z_power = NormalDist().inv_cdf(power) p_bar = (p1 + p2) / 2.0 null_sd = (2.0 * p_bar * (1.0 - p_bar)) ** 0.5 alt_sd = (p1 * (1.0 - p1) + p2 * (1.0 - p2)) ** 0.5 raw_n = ((z_alpha * null_sd + z_power * alt_sd) / (p2 - p1)) ** 2 return ceil(raw_n) n_unclustered = sample_size_two_proportions(0.100, 0.120) # 3841Household clustering inflation: Because adults sharing a household behave somewhat similarly,
1,000clustered adults provide slightly less independent information than1,000unrelated individuals. Multiplynby the design effect (DE):DE = 1 + (m - 1) * ICCwhere
m = 1.4is average household size andICC = 0.02is the intra-class correlation (a0-to-1measure of within-household correlation in immunization). Plugging in our parameters:DE = 1 + (1.4 - 1) * 0.02 = 1.008 (a 0.8% sample-size inflation) Clustered n/arm = ceil(3,840.85 * 1.008) = 3,872 people per arm (~2,766 households per arm)Note two practical nuances: if household sizes vary (with coefficient of variation
CV,DE = 1 + ((1 + CV^2) * m - 1) * ICC, e.g.,1.015whenCV = 0.5), and empirical household flu-shotICCis often closer to0.15–0.25(partners visit together!), which should be checked on prior-year loyalty records (ICC = 0.20raisesDEto1.08, or4,149people per arm).How
3,872per arm maps onto the 2x2 factorial depends on which contrast must achieve2.0 ppMDE:Comparison to power at 2.0 pp (with DE = 1.008) People per cell Total across 4 cells ---------------------------------------------------- ---------------- -------------------- 1. Pooled main effect (2 cells vs 2 cells, no inter.) 1,936 7,744 2. Single cell vs Control (e.g. Cell 10 vs Cell 00) 3,872 15,488 3. 2.0 pp Interaction: (p11 - p10) - (p01 - p00) 7,744 30,976 (4x Case 1)Why does the interaction contrast require
4xthe sample of a pooled main effect? A two-arm differencep_A - p_Bhas variance2*p*q / n, whereas the difference-in-differences(p11 - p10) - (p01 - p00)sums four independent cell variances (4*p*q / n_cell), requiringn_cell = 2 * n. (Detecting a realistic half-sized interaction of1.0 ppshrinksdelta^2by4x, requiring16xthe main-effect sample—about123,900members, still modest across three large states.) Finally, if2.0 ppis the target lift among delivered SMS recipients (90%delivery), the dilutedITTlift is0.90 * 2.0 = 1.80 pp, raising per-armnto~4,750; splittingalpha = 0.025across two co-primary channels adds another~20%.Compliance: derive ITT, TOT, and instrumental-variable assumptions
In the
SMSarm,10%of texts fail to deliver, and still fewer are opened. Why can't we simply compare vaccination rates of delivered members against undelivered members? Because deliverability is not random: disconnected mobile numbers belong disproportionately to lapsed or less-engaged members who vaccinate at lower rates regardless (selection bias).Instead, use random assignment
Z(1= assigned to channel,0= assigned to control) as an instrumental variable (a purely random nudge that influences immunizationYonly by changing whether a message is deliveredD):ITT (Intention-To-Treat) = E[Y | Z = 1] - E[Y | Z = 0] Compliance rate (c) = P(D = 1 | Z = 1) - P(D = 1 | Z = 0)Why
TOT = ITT / complianceholds (step-by-step derivation): Because Control (Z = 0) receives zero campaign messages (P(D = 1 | Z = 0) = 0, known as one-sided non-compliance), every member belongs to one of two latent groups for a given channel:- Compliers (share
c, i.e.,0.90forSMS,0.96forEmail): members with reachable addresses who receive the message if assigned (Z = 1) and receive nothing in Control (Z = 0). Let their average causal lift beTOT(Treatment-On-The-Treated). - Never-takers (share
1 - c, i.e.,0.10forSMS): members whose message bounces regardless of assignment. Because an undelivered message cannot change behavior, their causal lift from assignment is0.
The overall
ITTacross the entire arm is the weighted average of those two groups:ITT = c * TOT + (1 - c) * 0 = c * TOT ===> TOT = ITT / cFor an observed
ITT = 2.00 pp:- SMS (
c = 0.90):TOT = 2.00 pp / 0.90 = 2.22 ppamong members whoseSMSactually delivered. - Email (
c = 0.96):TOT = 2.00 pp / 0.96 = 2.08 ppamong members whoseEmailactually delivered.
Required causal assumptions:
- Randomization (independence):
Zis random within strata, so treatment and control contain identical shares of Compliers and Never-takers. - Relevance: Assignment substantially shifts delivery (
c > 0, clearly met at0.90and0.96). - Exclusion restriction: Assignment
Zaffects immunizationYonly through exposureD. For deliverability, this holds cleanly: a text dropped by the carrier never reaches the customer. For message opens, however, the exclusion restriction breaks: recipients readSMScopy on lock-screen banners without opening the app, scanEmailsubject lines ("Walk-in flu shots available"), or trigger Apple Mail Privacy Protection auto-opens—so dividingITTby open rate biasesTOT. - Monotonicity & no interference (SUTVA): Assigning someone to outreach never prevents delivery (automatic under zero sends to Control), and one household's assignment does not spill across other households.
Note: dividing by
0.90scales both the point estimate and its standard error by1 / 0.90, soTOTcarries the exact same p-value and statistical power asITT.- Compliers (share
Attribution across channels and the regional self-report puzzle
Instrumentation: Log four joinable tables keyed by
member_idandhousehold_id:- Pre-send assignment log:
member_id, household_id, stratum_id, cell (00/01/10/11), assigned_at. - Message telemetry:
message_id, member_id, channel, sent_at, delivered_at, bounced_flag, clicked_at. - Channel-tagged booking tokens: Unique URL tokens / QR barcodes per channel carried into
appointment_id, member_id, token, booked_at, attended_flag. - Clinical immunization log:
member_id, store_id, vaccinated_atfrom pharmacy records.
Unique booking links illuminate funnel mechanics (such as how quickly members book after an
SMS), NOT causal incrementality (annual flu-shot regulars who would have walked in anyway also tap convenient links). True multi-channel attribution comes from 2x2 factorial contrasts. Suppose the four cell immunization rates arep00 = 10.0%,p10 (SMS) = 11.8%,p01 (Email) = 10.8%, andp11 (Both) = 12.2%:Contrast Formula Value Meaning ----------------------------- ---------------------------------- -------- ------------------------------- SMS standalone lift p10 - p00 +1.80 pp Lift of SMS when Email is OFF Email standalone lift p01 - p00 +0.80 pp Lift of Email when SMS is OFF Marginal Email on top of SMS p11 - p10 +0.40 pp Extra lift adding Email to SMS Marginal SMS on top of Email p11 - p01 +1.40 pp Extra lift adding SMS to Email Interaction (p11 - p10) - (p01 - p00) -0.40 pp Partial substitution (overlap) SMS pooled main effect ((p10 - p00) + (p11 - p01)) / 2 +1.60 pp Shapley share of +2.20 pp total Email pooled main effect ((p01 - p00) + (p11 - p10)) / 2 +0.60 pp Shapley share of +2.20 pp totalThe two pooled main effects (
1.60 + 0.60 = 2.20 pp) equal the Shapley-value credit split (averaging each channel's marginal contribution when introduced first vs. second) and sum exactly top11 - p00 = 2.20 pp. Estimate all contrasts with a linear probability model (Y ~ SMS + Email + SMS*Email + stratum_fixed_effects) using household-clustered standard errors (0/1indicators make theSMScoefficient equalp10 - p00 = +1.80 pp, whereas-0.5 / +0.5effect coding estimates the+1.60 pppooled main effect). Across local markets, fit a hierarchical (multilevel) model that shrinks noisy small-market estimates toward the overall campaign mean rather than overreacting to small-sample swings.Why self-reports are biased—and solving the regional market puzzle: In one local market, the
SMSarm hits11.2%(140vaccinated members) vs.10.0%in Control, and70of the140immunized members state "I came because of a text":1. Causal ITT lift = 11.2% - 10.0% = +1.2 percentage points (+12% relative lift) 2. Implied SMS arm headcount = 140 / 0.112 = 1,250 members 3. Expected shots without SMS = 1,250 * 0.100 = 125 members (would have come anyway!) 4. True incremental shots = 140 - 125 = 15 extra shots (= 1,250 * 0.012) 5. Self-reported "from SMS" = 70 members (~4.7x the true 15 incremental shots!)Why self-reports do NOT change the
+1.2 ppcausal estimate:- Causal lift compares complete randomized cohorts (
E[Y | Z=1] - E[Y | Z=0]). Counter self-reports are collected only among vaccinated visitors after treatment with no counterfactual: at least70 - 15 = 55respondents were habitual vaccinators from the125-person baseline who would have visited regardless and simply credited the recent reminder they remembered (salience / last-touch bias), compounded by courtesy bias at the counter and faulty recall. - Whether
0,70, or all140visitors credited the text, theSMScohort still vaccinated at11.2%vs.10.0%in Control (+1.20 ppITT;1.20 / 0.90 = +1.33 ppTOT). Notice sample precision as well: with1,250members per arm, this market's standard error issqrt(0.112*0.888/1250 + 0.100*0.900/1250) = 1.23 pp, producing a wide 95% confidence interval of[-1.2 pp, +3.6 pp]. If counter surveys are kept at all, ask the identical question in Control to benchmark baseline false recall.
Operational follow-up experiments since
+1.2 pptrails the2.0 ppgoal:- One-tap pre-filled slot booking: Deep-link directly to open appointment times at the member's home store (plus walk-in hours) rather than a generic login page.
- Send-time & follow-up cadence: Deliver reminders 24–48 hours ahead of the member's typical shopping day (e.g., Thursday evening for weekend shoppers), with a day-14 reminder only to members still unvaccinated.
- Personalized clinical & zero-copay copy: Highlight "$0 copay with most insurance plans", local flu surge alerts, or "Due for your annual shot since last October at [Store]."
- Clinic staffing alignment: Add evening/Saturday immunizer coverage at congested pharmacies so incremental demand converts into completed shots.
- Pre-send assignment log:
Monitor rollout, finalize with CUPED, and set a fixed-budget policy
During-rollout governance:
- Daily operational health: SRM checks, carrier delivery/bounce rates, and guardrail tripwires (unsubscribes, spam complaints, appointment no-shows, clinic wait times).
- Sequential testing controls: Checking
p < 0.05daily (peeking) inflates false positives sharply (5 equally spaced peeks at nominal0.05push false positives to~14%). Restrict primary-metric reads to pre-registered checkpoints governed by group-sequential alpha-spending boundaries (such as O'Brien-Fleming, which demands extreme early z-scores like|z| > 4.5so the Dec 31 final readout retains nearly1.96) or an always-valid sequential test (mSPRT, mixture sequential probability ratio test). Because October early adopters differ from December procrastinators, halt early only for guardrail harm, not early lift spikes.
Finalizing results (Confidence Intervals & CUPED):
- Report point estimates and household-clustered 95% confidence intervals for every
ITTandTOTcontrast. - Apply CUPED (Controlled-experiment Using Pre-Experiment Data), a variance-reduction adjustment that removes predictable baseline differences using a pre-randomization covariate
X(such as prior 3-year flu-shot count + past-year prescription fills):
Y_cuped = Y - theta * (X - mean(X)), where theta = Cov(Y, X) / Var(X)Because
Xis locked before randomization,E[X | Treatment] = E[X | Control], leavingY_cupedcompletely unbiased while cutting variance by(1 - r^2), wherer = Corr(Y, X). Atr = 0.50, variance drops by25%—matching33%extra sample size for free.Scaled rollout policy under a fixed budget: Rank mutually exclusive channel upgrades per segment by marginal cost per incremental vaccination (
incremental send cost / marginal ITT lift):Action (per person, 3 sends) Incremental Cost Marginal ITT Lift Cost / Incremental Shot ------------------------------ ---------------- ----------------- ----------------------- 1. Email alone (vs Control) $0.006 +0.80 pp (0.008) $0.006 / 0.008 = $0.75 2. Add SMS on top of Email $0.075 +1.40 pp (0.014) $0.075 / 0.014 = $5.36Always evaluate
SMSusing its marginal lift aboveEmail(p11 - p01 = +1.40 pp), NOT standaloneSMSlift (+1.80 pp), onceEmailis already funded! Under a$45,000seasonal budget across1,000,000eligible loyalty members:- Fund Email for all
1,000,000members first: costs$6,000and drives~8,000incremental vaccinations at$0.75each. - Allocate the remaining
$39,000toSMS(520,000members at$0.075), ranking pre-registered strata by highest marginalSMSuplift per dollar (and stopping early if any stratum's cost per incremental shot exceeds pharmacy margin + clinical value). Retain a2%–5%universal holdout to track ongoing seasonal lift.
Intuition & how it works
Think of testing SMS and Email flu-shot reminders like testing two garden treatments—an inexpensive mist spray (Email at $0.002 per send) and a pricier root nutrient (SMS at $0.025 per send)—across four matching garden plots: nothing (Control), spray alone (Email), nutrient alone (SMS), and both combined (Both). Assigning whole families to the same plot (household randomization) stops one partner from nudging a "control" partner across the kitchen table, while testing Both reveals whether the second channel adds genuine extra immunizations or merely duplicates the first.
A naive analyst might skip the control plot and compare members whose SMS delivered or opened against members whose text bounced, or ask walk-in patients "Did our reminder bring you in?" Both shortcuts fail: customers with active mobile numbers who open pharmacy messages are already more engaged shoppers (selection bias, when pre-existing habits masquerade as campaign lift), and habitual October vaccinators routinely credit whichever reminder they saw most recently.
Trace a compact cohort of 1,250 members per arm in a single market: suppose 125 out of 1,250 (10.0%) get vaccinated in Control, while 140 out of 1,250 (11.2%) get vaccinated in SMS only. Comparing the two randomized cohorts isolates 140 - 125 = 15 incremental vaccinations (+1.2 percentage points Intention-To-Treat, or ITT, the causal lift per assigned member)—even if 70 of those 140 visitors tell counter staff they came because of the text! And if 90% of texts actually delivered (1,125 people), none of the 125 bounced phones could have caused extra visits, so all 15 incremental shots came from the 1,125 reached recipients (15 / 1,125 = +1.33 percentage points Treatment-On-The-Treated, or TOT, the causal lift among reached recipients).
Key points
- 2x2 factorial architecture: Crossing
SMS (off/on) x Email (off/on)answers both channel choices simultaneously and estimates interaction (whether pairingSMSwithEmailcannibalizes via fatigue or reinforces action). Randomize whole households within27strata (state x age bracket x past store visits) so every arm starts balanced and partners do not contaminate control. - Pre-campaign population lock & guardrails: Freeze eligibility (
18+, loyalty account inIL/OH/PA, opt-in consent on both channels) and exclusions (prior unsubscribes, flu shots completed before randomization) ahead of assignment. Evaluate ITT absolute lift over all assigned members alongside guardrails for unsubscribes, spam reports, appointment no-shows, and clinic wait times. - Sample-size & clustering math: Catching
10.0%vs.12.0%(2.0 ppminimum detectable effect, or MDE, at two-sidedalpha = 0.05and80%power) needs3,841individuals per arm unclustered. Multiplying by the design effect (DE = 1 + (1.4 - 1) * 0.02 = 1.008, where intra-class correlation, or ICC, measures within-household similarity) gives3,872members (~2,766households) per arm:7,744total for pooled main effects (under zero interaction),15,488for single-cell comparisons vs. Control, or30,976to power a2.0 ppinteraction. - Instrumental-variable compliance adjustment: Using random assignment
Zas an instrumental variable (a random nudge affecting immunization only via message deliveryD) yieldsTOT = ITT / compliance(2.00 / 0.90 = 2.22 ppforSMS;2.00 / 0.96 = 2.08 ppforEmailat a2.00 ppITT). Carrier delivery satisfies the exclusion restriction (a blocked message never reaches the patient), whereas "message opened" fails because lock-screen previews and subject lines influence recipients without logging an open. - Experimental contrasts vs. survey recall: Channel-tagged URLs diagnose funnel friction, while factorial contrasts (
p10 - p00,p01 - p00, and marginal add-on liftsp11 - p01,p11 - p10) measure causal incrementality. In the regional scenario (11.2%SMSvs.10.0%Control,140SMSshots),ITT = +1.2 pp(15incremental shots across1,250assigned members); the70self-reports reflect baseline vaccinators crediting a salient text and never change the randomized estimate. - Sequential governance & marginal budget allocation: Protect interim reads with alpha-spending boundaries (such as O'Brien-Fleming rules keeping seasonal false positives at
5%), tighten final confidence intervals with CUPED (regressing out pre-season immunization historyXto shrink variance by1 - r^2), and rank rollout spend by marginal cost per incremental shot (incremental send cost / marginal ITT lift).
Common mistakes
- Comparing delivered/opened recipients against bounced/unopened recipients: Delivery and open behavior correlate strongly with baseline health engagement, turning a clean randomized study into a biased observational slice.
- Dropping bounced recipients from the treatment denominator: Removing non-delivered members from the
SMSdenominator without knowing which Control members would have bounced breaks randomization (per-protocolbias). - Calling message delivery itself the random instrument: Random assignment
Zis the instrument; deliveryDis the endogenous exposure. - Filtering out members who got vaccinated after launch: Excluding post-randomization flu shots conditions directly on the outcome and biases lift downward.
- Randomizing individuals instead of households (or ignoring clinic bottlenecks): Partners sharing a text contaminate Control toward zero, whereas saturated Saturday clinic schedules crowd out Control walk-ins and artificially inflate lift.
- Using standalone
SMSlift instead of marginalSMSlift whenEmailis already active: InY ~ SMS + Email + SMS*Emailwith0/1indicators, theSMScoefficient measuresp10 - p00(SMSwithEmailoff), whereas addingSMSon top of universalEmailmust be judged onp11 - p01. - Peeking daily at
p < 0.05or over-interpreting single markets: Unadjusted daily peeks push false positives past14%, and a1,250-member local arm has a[-1.2 pp, +3.6 pp]95% confidence interval—requiring a hierarchical model (which partially pools small regions toward the overall mean).
Follow-up questions
- If executives restrict the untreated control group to 10% of eligible members instead of an even 50/50 split, how much additional total sample is needed? Two-arm difference variance scales with
1 / (N * f * (1 - f)), whereNis combined headcount andfis the Control fraction. Shifting from50/50(f * (1 - f) = 0.25) to90/10(f * (1 - f) = 0.09) multiplies required totalNby0.25 / 0.09 = 2.78x(from7,744to~21,512members for a two-group comparison, keeping only~2,151in Control). Across three large states with millions of loyalty members,2.78xtotal sample is inexpensive and allows90%of eligible adults to receive seasonal reminders. - How does your interpretation change if reminders merely shift patients from external clinics to your pharmacy counters rather than increasing community immunization? Because our outcome tracks in-store immunizations matched to loyalty accounts, observed lift blends net-new community vaccinations with existing patients switching from physician offices or rival chains to our counters. For retail pharmacy P&L and staffing decisions, both represent genuine incremental store visits; for public-health impact claims, however, venue switching is not net-new immunization unless verified via state immunization registries or post-season randomized surveys fielded identically in Treatment and Control.
- How would you use this season's experimental logs to train and validate a personalized message-targeting policy for next autumn? Fit an uplift model (such as a causal forest or doubly robust learner predicting individual incremental lift
E[Y(1) - Y(0) | X]from pre-campaign age, state, and prior prescription/flu history) on a training partition of the 2026 randomized data, and score it on a held-out test partition using a Qini / uplift curve (plotting cumulative incremental immunizations captured as outreach expands from the highest-uplift decile outward). Avoid targeting members with the highest baseline vaccination probability—loyal annual vaccinators (80%+baseline) convert without a$0.025text ("sure things"), whereas persuadable mid-propensity members yield far more incremental shots per dollar.
Follow-up questions
- If executives restrict the untreated control group to 10% of eligible members instead of an even 50/50 split, how much additional total sample is needed?
- How does your interpretation change if reminders merely shift patients from external clinics to your pharmacy counters rather than increasing community immunization?
- How would you use this season's experimental logs to train and validate a personalized message-targeting policy for next autumn?
Similar questions
- Designing and Measuring a Geo-Targeted TV Vaccination Campaign
- Summarizing Imaging Claims Spend and Fiscal Months
- Leak-Free Subscription Classification Pipeline
- Annual Subscription Share and Cohort YoY Metrics
- A/B Conversion Inference and Power Sizing
- Specialty Claim Shares and Top Age Bands
More CVS Health interview questions
- Diagnosing and Stabilizing a Fragile Marketing Mix Model Hard
- Designing and Measuring a Geo-Targeted TV Vaccination Campaign Hard
- Customer Order Joining, Pivoting, and High-Value Tagging Medium Pro
- User and Order Deduplication with Purchase Bucket Shares Medium Pro
- Summarizing Imaging Claims Spend and Fiscal Months Medium Pro
- Leak-Free Subscription Classification Pipeline Medium Pro
- Annual Subscription Share and Cohort YoY Metrics Medium Pro
- A/B Conversion Inference and Power Sizing Medium Pro
- Specialty Claim Shares and Top Age Bands Easy Pro
- Seven-Day Customer Spend View and Catalog Updates Medium Pro