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 in IL, OH, or PA. The binary outcome equals 1 if the member receives an in-store flu vaccination between October 1 and December 31, 2026.
  • Outreach channels: SMS costs $0.025 per message with a 90% carrier delivery rate; Email costs $0.002 per message with a 96% inbox delivery rate.

Deliverables to address

  1. Randomization architecture & guardrails: Decide between a two-arm single-channel test and a 2x2 factorial layout (SMS off/on crossed with Email off/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).
  2. Sample-size & clustering math: Using a 10.0% baseline control immunization rate, a 2.0 percentage-point minimum detectable effect (MDE), two-sided alpha = 0.05, and 80% statistical power, derive the required per-arm individual headcount without clustering, then apply the design-effect adjustment for household randomization with intra-class correlation ICC = 0.02 and mean household size 1.4.
  3. 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 why TOT = ITT / compliance holds and list the required causal assumptions.
  4. Channel credit & survey pitfalls: Since members in the joint factorial cell can receive both SMS and Email, 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.
  5. Regional readout puzzle: In one local market, the SMS group reaches an 11.2% immunization rate (140 vaccinated members) against 10.0% in control, yet only 70 of those 140 members tell counter staff they visited because of a text. Compute the causal ITT lift, explain why the 70 survey answers do not alter that estimate, and propose operational follow-up tests given that +1.2 percentage points trails the 2.0 percentage-point goal.
  6. 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 CUPED variance reduction from prior-season records), and allocate a fixed outreach budget across channels and segments at scale.

Scope & Expectations

  • Defend the 2x2 vs. two-arm layout, pre-randomization population filters, household clustering unit, primary ITT metric, 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 ITT and TOT.
  • 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 CUPED precision gains to a concrete marginal cost-per-incremental-vaccination rollout rule under a capped budget.

Step-by-step walkthrough

  1. 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 SMS reminders, and should we send Email reminders? 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 2x2 factorial beats a single-channel A/B test here:

    • It measures channel interaction. An interaction means the lift from sending both SMS and Email differs from the sum of sending each one alone. The two channels might be substitutes (once Email nudges a member, paying 12.5x more per message for SMS adds little extra lift and creates message fatigue) or complements (Email provides clinic hours while SMS triggers immediate booking on Friday afternoon). Without Cell 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 SMS effect by comparing the two SMS-on cells (10 + 11) against the two SMS-off cells (00 + 01), and the Email effect 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 receive SMS costs only 16,000 * $0.075 = $1,200 in text fees during the experiment. Scaled to 2 million loyalty members, however, SMS costs $150,000 vs. $12,000 for Email—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, and PA, an adult pharmacy loyalty base easily supports four cells.

  2. 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 >= 18 on Oct 1, 2026) with an active pharmacy loyalty account, primary pharmacy in IL, OH, or PA, 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 only Email or only SMS cannot enter the 2x2 factorial 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 SMS or Email,
      • 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.

    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/25 split) before sending or analyzing anything.

  3. 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 SMS bounced 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: SMS STOP replies and Email unsubscribes 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.
  4. 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.0 percentage points (p1 = 0.100 in Control vs. p2 = 0.120 in Treatment), at two-sided significance level alpha = 0.05 (5% false-positive risk under zero true effect, critical normal value z_(0.975) = 1.960) and power = 0.80 (80% probability of catching a true 2.0 pp lift, 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^2 gives 3,839 per arm—within 0.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)  # 3841
    

    Household clustering inflation: Because adults sharing a household behave somewhat similarly, 1,000 clustered adults provide slightly less independent information than 1,000 unrelated individuals. Multiply n by the design effect (DE):

    DE = 1 + (m - 1) * ICC
    

    where m = 1.4 is average household size and ICC = 0.02 is the intra-class correlation (a 0-to-1 measure 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.015 when CV = 0.5), and empirical household flu-shot ICC is often closer to 0.15–0.25 (partners visit together!), which should be checked on prior-year loyalty records (ICC = 0.20 raises DE to 1.08, or 4,149 people per arm).

    How 3,872 per arm maps onto the 2x2 factorial depends on which contrast must achieve 2.0 pp MDE:

    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 4x the sample of a pooled main effect? A two-arm difference p_A - p_B has variance 2*p*q / n, whereas the difference-in-differences (p11 - p10) - (p01 - p00) sums four independent cell variances (4*p*q / n_cell), requiring n_cell = 2 * n. (Detecting a realistic half-sized interaction of 1.0 pp shrinks delta^2 by 4x, requiring 16x the main-effect sample—about 123,900 members, still modest across three large states.) Finally, if 2.0 pp is the target lift among delivered SMS recipients (90% delivery), the diluted ITT lift is 0.90 * 2.0 = 1.80 pp, raising per-arm n to ~4,750; splitting alpha = 0.025 across two co-primary channels adds another ~20%.

  5. Compliance: derive ITT, TOT, and instrumental-variable assumptions

    In the SMS arm, 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 immunization Y only by changing whether a message is delivered D):

    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 / compliance holds (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:

    1. Compliers (share c, i.e., 0.90 for SMS, 0.96 for Email): members with reachable addresses who receive the message if assigned (Z = 1) and receive nothing in Control (Z = 0). Let their average causal lift be TOT (Treatment-On-The-Treated).
    2. Never-takers (share 1 - c, i.e., 0.10 for SMS): members whose message bounces regardless of assignment. Because an undelivered message cannot change behavior, their causal lift from assignment is 0.

    The overall ITT across the entire arm is the weighted average of those two groups:

    ITT = c * TOT + (1 - c) * 0  =  c * TOT     ===>     TOT = ITT / c
    

    For an observed ITT = 2.00 pp:

    • SMS (c = 0.90): TOT = 2.00 pp / 0.90 = 2.22 pp among members whose SMS actually delivered.
    • Email (c = 0.96): TOT = 2.00 pp / 0.96 = 2.08 pp among members whose Email actually delivered.

    Required causal assumptions:

    • Randomization (independence): Z is random within strata, so treatment and control contain identical shares of Compliers and Never-takers.
    • Relevance: Assignment substantially shifts delivery (c > 0, clearly met at 0.90 and 0.96).
    • Exclusion restriction: Assignment Z affects immunization Y only through exposure D. For deliverability, this holds cleanly: a text dropped by the carrier never reaches the customer. For message opens, however, the exclusion restriction breaks: recipients read SMS copy on lock-screen banners without opening the app, scan Email subject lines ("Walk-in flu shots available"), or trigger Apple Mail Privacy Protection auto-opens—so dividing ITT by open rate biases TOT.
    • 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.90 scales both the point estimate and its standard error by 1 / 0.90, so TOT carries the exact same p-value and statistical power as ITT.

  6. Attribution across channels and the regional self-report puzzle

    Instrumentation: Log four joinable tables keyed by member_id and household_id:

    1. Pre-send assignment log: member_id, household_id, stratum_id, cell (00/01/10/11), assigned_at.
    2. Message telemetry: message_id, member_id, channel, sent_at, delivered_at, bounced_flag, clicked_at.
    3. Channel-tagged booking tokens: Unique URL tokens / QR barcodes per channel carried into appointment_id, member_id, token, booked_at, attended_flag.
    4. Clinical immunization log: member_id, store_id, vaccinated_at from 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 are p00 = 10.0%, p10 (SMS) = 11.8%, p01 (Email) = 10.8%, and p11 (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 total
    

    The 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 to p11 - 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/1 indicators make the SMS coefficient equal p10 - p00 = +1.80 pp, whereas -0.5 / +0.5 effect coding estimates the +1.60 pp pooled 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 SMS arm hits 11.2% (140 vaccinated members) vs. 10.0% in Control, and 70 of the 140 immunized 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 pp causal 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 least 70 - 15 = 55 respondents were habitual vaccinators from the 125-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 all 140 visitors credited the text, the SMS cohort still vaccinated at 11.2% vs. 10.0% in Control (+1.20 pp ITT; 1.20 / 0.90 = +1.33 pp TOT). Notice sample precision as well: with 1,250 members per arm, this market's standard error is sqrt(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 pp trails the 2.0 pp goal:

    • 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.
  7. 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.05 daily (peeking) inflates false positives sharply (5 equally spaced peeks at nominal 0.05 push 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.5 so the Dec 31 final readout retains nearly 1.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 ITT and TOT contrast.
    • 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 X is locked before randomization, E[X | Treatment] = E[X | Control], leaving Y_cuped completely unbiased while cutting variance by (1 - r^2), where r = Corr(Y, X). At r = 0.50, variance drops by 25%—matching 33% 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.36
    

    Always evaluate SMS using its marginal lift above Email (p11 - p01 = +1.40 pp), NOT standalone SMS lift (+1.80 pp), once Email is already funded! Under a $45,000 seasonal budget across 1,000,000 eligible loyalty members:

    1. Fund Email for all 1,000,000 members first: costs $6,000 and drives ~8,000 incremental vaccinations at $0.75 each.
    2. Allocate the remaining $39,000 to SMS (520,000 members at $0.075), ranking pre-registered strata by highest marginal SMS uplift per dollar (and stopping early if any stratum's cost per incremental shot exceeds pharmacy margin + clinical value). Retain a 2%–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 pairing SMS with Email cannibalizes via fatigue or reinforces action). Randomize whole households within 27 strata (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 in IL/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 pp minimum detectable effect, or MDE, at two-sided alpha = 0.05 and 80% power) needs 3,841 individuals 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) gives 3,872 members (~2,766 households) per arm: 7,744 total for pooled main effects (under zero interaction), 15,488 for single-cell comparisons vs. Control, or 30,976 to power a 2.0 pp interaction.
  • Instrumental-variable compliance adjustment: Using random assignment Z as an instrumental variable (a random nudge affecting immunization only via message delivery D) yields TOT = ITT / compliance (2.00 / 0.90 = 2.22 pp for SMS; 2.00 / 0.96 = 2.08 pp for Email at a 2.00 pp ITT). 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 lifts p11 - p01, p11 - p10) measure causal incrementality. In the regional scenario (11.2% SMS vs. 10.0% Control, 140 SMS shots), ITT = +1.2 pp (15 incremental shots across 1,250 assigned members); the 70 self-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 history X to shrink variance by 1 - 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 SMS denominator without knowing which Control members would have bounced breaks randomization (per-protocol bias).
  • Calling message delivery itself the random instrument: Random assignment Z is the instrument; delivery D is 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 SMS lift instead of marginal SMS lift when Email is already active: In Y ~ SMS + Email + SMS*Email with 0/1 indicators, the SMS coefficient measures p10 - p00 (SMS with Email off), whereas adding SMS on top of universal Email must be judged on p11 - p01.
  • Peeking daily at p < 0.05 or over-interpreting single markets: Unadjusted daily peeks push false positives past 14%, and a 1,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)), where N is combined headcount and f is the Control fraction. Shifting from 50/50 (f * (1 - f) = 0.25) to 90/10 (f * (1 - f) = 0.09) multiplies required total N by 0.25 / 0.09 = 2.78x (from 7,744 to ~21,512 members for a two-group comparison, keeping only ~2,151 in Control). Across three large states with millions of loyalty members, 2.78x total sample is inexpensive and allows 90% 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.025 text ("sure things"), whereas persuadable mid-propensity members yield far more incremental shots per dollar.

Follow-up questions

Similar questions

More CVS Health interview questions

All 18 CVS Health questions →