PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Analytics & Experimentation/Gusto

Compute p-values for 2 variants vs control

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competence in statistical hypothesis testing and experiment analysis, focusing on A/B/n comparison of conversion rates, p-value computation, confidence interval estimation for lift, multiple-testing considerations, and interpretation of results.

  • easy
  • Gusto
  • Analytics & Experimentation
  • Data Scientist

Compute p-values for 2 variants vs control

Company: Gusto

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: easy

Interview Round: Technical Screen

## A/B/n test: compute p-values and make a ship decision You ran an online A/B/n experiment with **1 control** and **2 treatment variants** (A/B/C). You are given a table of aggregated results with one row per group: **Table: `ab_results`** - `group` (STRING): one of `control`, `variant_1`, `variant_2` - `users` (INT): number of unique users exposed to the group - `conversions` (INT): number of users who converted (binary outcome) Assume: - Users are independently assigned and each user appears in exactly one group. - The metric is **conversion rate** = `conversions / users`. - You want to test whether each variant changes conversion rate vs control. - Use a two-sided test unless you justify a one-sided test. ### Tasks 1. Using Python, compute the **p-value** for: - `variant_1` vs `control` - `variant_2` vs `control` (State what statistical test you chose and why.) 2. Provide **95% confidence intervals** for the lift (difference in conversion rates) for each variant vs control. 3. Because there are **two** comparisons vs the same control, explain how you would handle **multiple testing** (e.g., Bonferroni, Holm, FDR), and how that affects your decision. 4. Interpret the results in plain language and recommend **ship / no-ship** (and under what conditions you’d run a follow-up experiment). Include any assumptions or caveats (e.g., sample size adequacy, novelty effects, missing data, metric definition issues).

Quick Answer: This question evaluates a candidate's competence in statistical hypothesis testing and experiment analysis, focusing on A/B/n comparison of conversion rates, p-value computation, confidence interval estimation for lift, multiple-testing considerations, and interpretation of results.

Related Interview Questions

  • Define Churn and Design Onboarding Experiment - Gusto (medium)
  • Define Product Health and Experiment Design - Gusto (medium)
  • How do you test two variants vs control? - Gusto (medium)
  • Identify Growth Opportunities for New Payroll Feature Launch - Gusto (medium)
  • Investigate Causes of Increased Payroll Processing Time - Gusto (medium)
Gusto logo
Gusto
Nov 2, 2025, 12:00 AM
Data Scientist
Technical Screen
Analytics & Experimentation
8
0

A/B/n test: compute p-values and make a ship decision

You ran an online A/B/n experiment with 1 control and 2 treatment variants (A/B/C).

You are given a table of aggregated results with one row per group:

Table: ab_results

  • group (STRING): one of control , variant_1 , variant_2
  • users (INT): number of unique users exposed to the group
  • conversions (INT): number of users who converted (binary outcome)

Assume:

  • Users are independently assigned and each user appears in exactly one group.
  • The metric is conversion rate = conversions / users .
  • You want to test whether each variant changes conversion rate vs control.
  • Use a two-sided test unless you justify a one-sided test.

Tasks

  1. Using Python, compute the p-value for:
    • variant_1 vs control
    • variant_2 vs control (State what statistical test you chose and why.)
  2. Provide 95% confidence intervals for the lift (difference in conversion rates) for each variant vs control.
  3. Because there are two comparisons vs the same control, explain how you would handle multiple testing (e.g., Bonferroni, Holm, FDR), and how that affects your decision.
  4. Interpret the results in plain language and recommend ship / no-ship (and under what conditions you’d run a follow-up experiment).

Include any assumptions or caveats (e.g., sample size adequacy, novelty effects, missing data, metric definition issues).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Gusto•More Data Scientist•Gusto Data Scientist•Gusto Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 8,000+ 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.