Designing and Analyzing a Free-Trial Growth Experiment
Statistics & ExperimentsModel answerLast updated
Design metrics, choose analysis populations, identify pitfalls, and make a business decision for an A/B test offering a one-month free trial.
Your company is considering a growth initiative: offering new visitors a free one-month trial instead of requiring immediate payment.
Before launching to everyone, you run a randomized experiment. Visitors are randomly assigned on their first visit:
- Control group: standard experience with no trial offer
- Treatment group: shown the free trial offer
Leadership wants to know two things:
- Does the trial increase the number of people who sign up?
- Does it affect how many of those users stick around afterward?
There's a concern that while a free trial might boost initial signups, it could attract users with lower commitment, potentially reducing retention rates or lifetime value.
Your task
You are responsible for the experimental design, analysis plan, and final recommendation. Address the following:
Part 1: Metric design
- Define a primary metric that reflects real business value
- Specify 2–3 secondary metrics
- Propose at least one guardrail metric
- For both "signup rate" and "retention," provide precise definitions including numerator, denominator, and time window
Part 2: Analysis strategy
- Should you use an intent-to-treat (ITT) analysis, a per-protocol analysis, or both? Justify your choice
- How do you handle users who were assigned to treatment but never actually saw the offer?
- Explain how you'd estimate treatment effects for:
- A binary outcome like signup
- Retention, which is only observable among users who signed up (this involves post-treatment selection)
Part 3: Implementation review
- You're reviewing a colleague's analysis code. Without writing code yourself, list 5–7 common mistakes or bugs you'd specifically look for in an A/B test analysis pipeline (e.g., issues with time windows, joins, filters, statistical testing)
Part 4: Business decision
- How would you decide whether to launch the free trial, iterate on it, or abandon it?
- What additional analyses would you run to connect the experiment results to long-term business impact?
Assume you'll use standard frequentist hypothesis testing unless you have a specific reason to do otherwise.
Hints
Hint 1
The trial lasts 30 days—what does that tell you about when you can measure retention that actually matters?
Hint 2
Comparing retention rates only among users who signed up is not a valid causal comparison. Why not, and what should you do instead?
Hint 3
Think about what could go wrong in the code: wrong denominators, filtering after treatment, join logic that drops non-converters, or time windows that vary by user.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Free-Trial Experiment Design and Analysis
This problem tests whether you understand the difference between metrics that are easy to move versus metrics that matter, and whether you can identify the selection-bias trap in conditional retention comparisons.
Part 1: Metric Design
Unit of analysis: The randomized visitor, identified by a stable user ID or cookie, measured from their assignment timestamp t₀.
Primary metric: Paid subscribers per assigned user at day 45 (t₀ + 45 days).
This metric counts the proportion of assigned users holding an active paid subscription 45 days after assignment—roughly two weeks after a 30-day trial would end, allowing time for payment processing and retry logic. It captures both "did more people sign up?" and "did they stay and convert to paid?" A lift here represents genuine business value. If your company prioritizes revenue directly, use revenue per assigned user over 60–90 days instead.
Secondary metrics:
- Signup rate (D7): proportion of assigned users who started any subscription (trial or paid) within 7 days of t₀
- Unconditional D30 retention: proportion of assigned users who both signed up and were active on days 23–30 after signup
- Trial-to-paid conversion rate: among signups, proportion who convert to paid (diagnostic only, not causal)
Guardrail metrics:
- Revenue per assigned user: ensure the trial doesn't cannibalize users who would have paid immediately
- Support ticket volume and cost per assigned user: free trials may attract support-heavy users
- Abuse rate: accounts per payment method, chargebacks, repeat fraud flags
- Sample ratio mismatch (SRM): data-quality check on arm balance
Precise definitions:
Signup rate = (# assigned users with subscription_start_date in [t₀, t₀+7d]) / (# assigned users)
Use a consistent definition of "subscription start" across both arms. Don't count trial starts in treatment and only paid starts in control.
Retention must specify a denominator:
-
Unconditional D30 retention = (# assigned users who signed up AND had ≥1 active session in days 23–30 after signup) / (# assigned users)
This is causally valid (ITT). -
Conditional D30 retention = same numerator / (# assigned users who signed up)
This is descriptive only; comparing it across arms is not a valid causal estimate.
The key insight: the trial lasts 30 days, so real retention and monetization can't be measured until after the trial ends. Use D45–D60 paid retention as the decisive metric.
Part 2: Analysis Strategy
Population: Intent-to-treat (ITT)
Analyze all users as assigned, regardless of whether they saw the offer or what they did afterward. Randomization guarantees the treatment and control groups are comparable at assignment. Any filtering after that point can introduce bias.
Users who never saw the offer:
If a user is assigned to treatment but the banner fails to render (client-side error, network issue, etc.):
- Keep them in the analysis. Dropping them breaks the ITT principle.
- Check for a sample ratio mismatch and confirm the exposure rate. If many treatment users weren't exposed, this points to an implementation bug.
- Report a complier average causal effect (CACE) using the Wald estimator (instrumental variables):
CACE = (ITT effect) / (exposure rate in treatment − exposure rate in control).
Do not run a per-protocol analysis that drops non-exposed treatment users. Exposure likely correlates with user intent, device type, or engagement, so excluding them creates selection bias.
Estimating treatment effects:
Binary conversion (signup, paid conversion):
- Estimate the difference in proportions: Δ = p̂_treatment − p̂_control
- Standard error: SE = √[p_T(1−p_T)/n_T + p_C(1−p_C)/n_C]
- Use a two-proportion z-test and construct a 95% confidence interval
- For relative lift, use the delta method or bootstrap
- Optionally reduce variance with CUPED (regression adjustment using pre-assignment covariates like traffic source, country, prior visit count)—never adjust on post-treatment variables
Retention (post-treatment selection problem):
Comparing retention only among users who signed up across arms is not causally valid. Here's why: treatment changes who signs up. If treatment attracts lower-intent users, the treatment signup pool is compositionally different from the control signup pool. A drop in conditional retention could be entirely due to composition—no individual user's behavior changed, but the mix did.
Valid approach:
- Use the unconditional metric (retained users per assigned user). This is a standard ITT difference-in-proportions and is causally interpretable.
- Decompose descriptively: retained/assigned = signup_rate × conditional_retention. Report both factors to understand the mechanism, but only the unconditional metric is a causal effect.
To estimate effects on always-signers:
Use Lee bounds (principal stratification). Trim the arm with more signups by the excess proportion, from both the top and bottom of the outcome distribution, to bound the causal effect on users who would sign up under either condition.
Part 3: Implementation Review—Common Pitfalls
When reviewing the analysis code, look for:
-
Unequal observation windows: Users enrolled late in the experiment haven't reached D30 or D45. Restrict each metric to cohorts with sufficient maturity, using the same calendar cutoff date for both arms.
-
Wrong denominator: Metrics divided by number of signups, sessions, or "exposed users" instead of assigned users. This breaks the ITT principle.
-
Post-treatment filtering:
WHERE signed_up = 1orWHERE num_sessions > 0applied before aggregating. This drops users systematically based on treatment response, introducing bias. -
Join errors: An INNER JOIN from assignments to events drops users with no events (non-converters). A many-to-many join duplicates rows and inflates counts. Use LEFT JOIN from assignments, then aggregate.
-
Repeated measures treated as independent: Counting sessions or page views as if they're independent observations when the user is the unit of randomization. This understates standard errors. Always aggregate to user level first.
-
Assignment contamination: Users appearing in both arms due to cross-device usage or cookie clearing. Assignment logic that changes mid-experiment (salt or hash function modified).
-
Leakage from post-treatment data: Covariates or segments defined using data from the experiment period (e.g., "high-engagement users" computed after treatment).
-
No SRM check: Failing to test whether the split ratio matches the design (50/50, 90/10, etc.) using a chi-square test, both overall and by day/platform.
-
Peeking / multiple testing: Checking p-values repeatedly and stopping when significant, inflating false-positive rate. Fix with pre-registered duration or sequential testing (alpha spending functions).
-
Inconsistent signup definitions: Counting trial starts in treatment but only paid starts in control, or vice versa.
Part 4: Business Recommendation
Decision framework (pre-specified):
-
Ship if the primary metric (paid conversion or revenue per assigned user) shows a significant positive lift and no guardrail is breached. Signup lift alone is insufficient.
-
Iterate if signups increase but paid conversion is flat or negative. Explore:
- Shorter trial duration (7 or 14 days)
- Qualification criteria (email verification, partial payment info)
- Onboarding or engagement interventions during the trial
-
Do not ship if revenue or paid conversion decreases, or if abuse/support costs are prohibitive.
Additional analyses to connect results to business value:
-
Lifetime value (LTV) projection: Model revenue over 6–12 months using historical cohort curves. Compare LTV per assigned user across arms.
-
Payback period: Calculate how long it takes incremental revenue from treatment to offset the cost of free trials (compute, support, lost immediate revenue).
-
Heterogeneity analysis: Examine effects by traffic source, geography, device type. The trial might work well for organic traffic but poorly for paid ads.
-
Novelty and learning effects: A free trial is visible and may trigger short-term curiosity. Run a follow-up holdout test after launch to measure sustained impact.
-
Engagement during trial: Do treatment users who convert to paid have similar engagement patterns as control paid users? This signals whether trial-acquired users are comparable quality long-term.
-
Sensitivity to assumptions: If retention is still maturing, model a range of long-term retention scenarios and assess robustness of the decision.
Key principle: The experiment succeeds only if it increases users who pay and stay, not just users who sign up and leave. Optimize for the metric that predicts profit, measured at a horizon that outlasts the trial period.