Determine Superiority of Model A Using Hypothesis Testing

Quick Overview

Meta statistics prompt on testing whether Model A beats Model B using a two-proportion z-test, covering pooled variance, p-value, confidence interval, power, and practical significance.

Determine Superiority of Model A Using Hypothesis Testing

Company: Meta

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Onsite

##### Scenario Search feature returns results counted as successful when both relevancy and accuracy binary flags are 1. ##### Question Model A was used by 100 users and had 90 successes; Model B also had 100 users and 85 successes. Using only these data, can you conclude that Model A is better? State the test, hypotheses, perform the calculation, and interpret. ##### Hints Set up two-proportion z-test. Calculate pooled variance, z-score, p-value, 95 % CI; discuss statistical power and practical significance.

Quick Answer: Meta statistics prompt on testing whether Model A beats Model B using a two-proportion z-test, covering pooled variance, p-value, confidence interval, power, and practical significance.

|Home/Statistics & Math/Meta
Meta logo
Meta
Jul 12, 2025, 6:59 PM
mediumData ScientistOnsiteStatistics & Math
26
0

Hypothesis Test: Is Model A Better Than Model B?

A search feature marks a session as successful only when both relevancy and accuracy binary flags equal 1.

Two ranking models were tested independently with equal traffic:

  • Model A: 100 users, 90 successes
  • Model B: 100 users, 85 successes

Using only these data, determine whether you can conclude that Model A is better than Model B at a 5% significance level.

Constraints & Assumptions

  • Treat each user outcome as an independent binary success/failure.
  • Use a two-proportion test.
  • State whether the test is one-sided or two-sided.
  • Include statistical and practical interpretation.

Clarifying Questions to Ask Guidance

  • Was traffic randomized between the models?
  • Are users independent, or can one user appear multiple times?
  • Is "better" one-sided, or do we need to detect any difference?
  • What minimum detectable effect would justify shipping Model A?

What a Strong Answer Covers Guidance

  • Hypotheses for a two-proportion z-test, typically H0: p_A = p_B and H1: p_A > p_B for a one-sided superiority test.
  • Sample proportions: 0.90 for A and 0.85 for B.
  • Pooled proportion, pooled standard error, z-statistic, and p-value.
  • 95% confidence interval for the difference using an unpooled standard error.
  • Conclusion that the observed 5 percentage-point lift is not statistically significant with 100 users per arm at 5%.
  • Comment that the test is underpowered for a 5 percentage-point effect at these sample sizes.
  • Practical significance and decision guidance: do not conclude superiority from these data alone; collect more data or evaluate business risk.

Follow-up Questions Guidance

  • How many users per arm would you need to detect a 5 percentage-point lift?
  • What changes if you use a two-sided test?
  • How would correlated user sessions affect the test?
  • How would you combine relevancy and accuracy if they are separate outcomes?
Loading comments...