Designing an A/B Test for Text Message Refill Reminders

Last updated: November 29, 2026

Quick Overview

CVS wants to test a new text reminder that lets members reply to refill a maintenance prescription, versus the current reminder. Design the experiment: unit of randomization, primary and guardrail metrics, sample size, and duration.

CVS Health
Analytics & Experimentation
Data Scientist
CVS Health
November 29, 2026
Data Scientist
Onsite
Analytics & Experimentation
Medium

0

0

0 solved


CVS wants to test a new text reminder that lets members reply to refill a maintenance prescription, versus the current reminder. Design the experiment: unit of randomization, primary and guardrail metrics, sample size, and duration.

CVS Pharmacy sends millions of refill and pickup texts, and adherence directly affects patient health and Star Ratings. Interviewers check experiment design fundamentals plus healthcare-specific concerns like long outcome windows and avoiding harm.

What the Interviewer Expects
  • Randomizes at the member level, not the message level
  • Picks a primary metric tied to adherence such as on-time refill rate
  • Defines guardrails like opt-outs and pharmacy workload
  • Computes sample size from baseline and minimum detectable effect
  • Accounts for the outcome window when choosing duration
  • Plans analysis by intention to treat
Key Topics to Cover
A/B testing
randomization unit
sample size
guardrail metrics
intention to treat
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • The treatment raises refills but also opt-outs from texts. How do you decide?
  • Some members have several prescriptions. How does that affect the analysis?
  • How would you check for novelty effects?
  • Is there any ethical concern with a control group that gets worse reminders?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Analytics Questions
Sample Answer
Clarify

Eligible: members with a maintenance prescription due for refill who are opted in to texts. Hypothesis: one-reply refill reduces friction and raises on-time refills. Both arms receive a reminder, so c...

Approach
  • Unit: member, so every prescription for a member gets the same experience and outcomes are not contaminated.
  • Primary metric: share of due prescriptions refilled within 7 days of the due da...

Submit Your Answer
Markdown supported

Related Questions