PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Analytics & Experimentation/Capital One

Design and analyze ads A/B test this week

Last updated: Mar 29, 2026

Quick Overview

This question evaluates experimental design and applied statistical analysis skills for A/B testing, covering randomization, exposure control, stratification, variance reduction methods, metric formalization, hypothesis testing, sample sizing, sequential monitoring, diagnostics, and handling delayed offline conversions.

  • hard
  • Capital One
  • Analytics & Experimentation
  • Data Scientist

Design and analyze ads A/B test this week

Company: Capital One

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Take-home Project

You manage an online ads platform testing a new ad scheduling policy (B) versus status quo (A). Today is 2025-09-01. The planned readout covers the last 7 days ending today: 2025-08-26 to 2025-09-01 inclusive. Constraints and context: - Users can be exposed across multiple platforms (web, iOS, Android) and time slots; some users see multiple impressions per day. - Primary KPI candidate: watch_time_per_impression (seconds). Guardrails: CTR, skip_rate, daily_active_users, and complaint_rate. - Known seasonality by day-of-week and time-of-day; some creatives are long-form videos. - Offline conversions (site visits) arrive with a 24–48h delay. Write a precise test plan and analysis procedure that addresses the following, with justifications: 1) Randomization unit and exposure control: user-level, device-level, or impression-level? How will you cap exposures and prevent cross-contamination across platforms and time slots? State your hashing/bucketing key. 2) Stratification and variance reduction: specify strata (e.g., platform × day-of-week × time-slot) and whether you will use CUPED with a pre-period (give exact pre-period dates). Define the CUPED covariate and show the adjusted estimator formula. 3) Metric definitions: formalize the primary KPI and guardrails (numerators/denominators), and state whether you will analyze on an intent-to-treat basis. Handle zeros and outliers (e.g., winsorization rules) explicitly. 4) Tail choice and test: state whether your hypothesis warrants one-tailed or two-tailed testing for the primary KPI and why. Choose an appropriate test (e.g., Welch’s t, stratified difference-in-means, or permutation) and show the test statistic you will use. 5) Sample size and stopping: compute or outline the calculation for required sample size per variant for a +5% relative lift in mean watch_time_per_impression given a baseline mean of 42s and SD of 55s, alpha=0.05 (two-sided) and power=0.8. Describe any sequential monitoring rule (e.g., always-valid methods) if you intend interim looks. 6) Readout: define the exact 95% CI you will report, how you will pool across strata, and how you will adjust for multiple guardrails (e.g., Holm). Include at least two diagnostic checks for randomization balance and two for seasonality/novelty effects. 7) Sensitivity: describe how you would re-run the analysis if offline conversions are incomplete for the last 48 hours, and how that affects the readout window.

Quick Answer: This question evaluates experimental design and applied statistical analysis skills for A/B testing, covering randomization, exposure control, stratification, variance reduction methods, metric formalization, hypothesis testing, sample sizing, sequential monitoring, diagnostics, and handling delayed offline conversions.

Related Interview Questions

  • Analyze Subscription, Insurance, App, and Card Cases - Capital One (medium)
  • Diagnose Flight Delays and Burger Launch - Capital One (easy)
  • How should you renew or replace a show? - Capital One (medium)
  • How would you decide to cancel a TV show? - Capital One (easy)
  • Decide Which Show to Renew - Capital One (medium)
Capital One logo
Capital One
Oct 13, 2025, 9:49 PM
Data Scientist
Take-home Project
Analytics & Experimentation
1
0

Experiment Test Plan: Ad Scheduling Policy B vs A

Context

  • Objective: Evaluate a new ad scheduling policy (B) against status quo (A).
  • Readout window: 2025-08-26 to 2025-09-01 (inclusive), i.e., last 7 days ending today (2025-09-01).
  • Users can interact across web, iOS, and Android with multiple impressions per day. Known seasonality by day-of-week and time-of-day. Some creatives are long-form video. Offline conversions (site visits) arrive with a 24–48 hour delay.
  • Primary KPI: watch_time_per_impression (seconds).
  • Guardrails: CTR, skip_rate, daily_active_users (DAU), complaint_rate.

Tasks

Provide a precise test plan and analysis procedure addressing the following, with justifications:

  1. Randomization unit and exposure control
    • Choose user-level, device-level, or impression-level randomization.
    • Describe exposure caps and how to prevent cross-contamination across platforms and time slots.
    • Specify the hashing/bucketing key.
  2. Stratification and variance reduction
    • Specify strata (e.g., platform × day-of-week × time-slot).
    • State whether CUPED will be used, with exact pre-period dates.
    • Define the CUPED covariate and show the adjusted estimator formula.
  3. Metric definitions
    • Formalize primary KPI and guardrails (numerators/denominators).
    • State whether analysis is intent-to-treat.
    • Explicitly handle zeros and outliers (e.g., winsorization rules).
  4. Tail choice and statistical test
    • Justify one-tailed vs two-tailed for the primary KPI.
    • Choose an appropriate test (e.g., Welch’s t, stratified difference-in-means, or permutation) and provide the test statistic.
  5. Sample size and stopping
    • Compute or outline the per-variant sample size for a +5% lift in mean watch_time_per_impression, baseline mean 42s, SD 55s, alpha=0.05 (two-sided), power=0.8.
    • Describe any sequential monitoring rule (e.g., always-valid methods) if interim looks are planned.
  6. Readout
    • Define the exact 95% CI to report and how to pool across strata.
    • Explain multiple-testing adjustments for guardrails (e.g., Holm).
    • Include at least two diagnostic checks for randomization balance and two for seasonality/novelty effects.
  7. Sensitivity to delayed offline conversions
    • Describe how you would re-run the analysis if offline conversions are incomplete for the last 48 hours, and how that affects the readout window.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Capital One•More Data Scientist•Capital One Data Scientist•Capital One Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.