Challenge: A/B Test Metrics
Task
Swipe to start coding
Write a SQL query to calculate the average value of the 'purchase' event for each A/B group, and determine which group performed better.
- Join the
usersandeventstables using theuser_idfield. - Filter the events to include only those where
event_typeis 'purchase'. - Group the results by the
ab_groupfield. - Calculate the average
valuefor each group. - Order the results by the average value in descending order.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: A/B Test Metrics
Swipe to show menu
Task
Swipe to start coding
Write a SQL query to calculate the average value of the 'purchase' event for each A/B group, and determine which group performed better.
- Join the
usersandeventstables using theuser_idfield. - Filter the events to include only those where
event_typeis 'purchase'. - Group the results by the
ab_groupfield. - Calculate the average
valuefor each group. - Order the results by the average value in descending order.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 2
single