SpinTheMic
Pro

Interview practice question

Computing A/B test results in SQL

Data Analyst · SQL for Analytics · Experienced

How would you compute conversion rates and a basic significance test for an A/B experiment directly in SQL?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Join assignments to outcomes; one row per user.
  • Conversion per variant: users, converters, rate.
  • Standard error per variant.
  • z-score for difference.
  • Check sample ratio mismatch first.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics