Marketing Analytics
Online B.Com · Sem 5
0% complete
0/3 lessons
Lesson 3 of 3Analytics
A/B Testing and Statistical Significance
Marketing Analytics
About the video
A/B Testing in Data Science Interviews by a Google Data Scientist | DataInterview
DataInterview
Study notes
A/B testing randomly splits users between a control (A) and a variant (B) to measure the causal effect of a change on a metric such as conversion rate. Statistical significance testing determines whether an observed difference is likely real or due to chance.
Designing an A/B test
- Define one primary metric and a hypothesis before starting.
- Null hypothesis H0: no difference between A and B; alternative H1: there is a difference.
- Randomize users to groups so differences are caused by the change.
- Calculate required sample size in advance from baseline rate, minimum detectable effect, significance level and power.
Significance testing
- Significance level alpha (commonly 0.05) = accepted false-positive (Type I error) rate.
- p-value = probability of seeing a difference at least this large if H0 were true.
- If p < alpha, reject H0: the result is statistically significant.
- For conversion rates use a two-proportion z-test: z = (pB - pA) / sqrt(p(1-p)(1/nA + 1/nB)), where p is the pooled rate.
- Confidence interval for the difference: if it excludes 0, the result is significant at that level.
- Power (commonly 80%) = probability of detecting a true effect; 1 - power = Type II error rate.
Common pitfalls
- Peeking and stopping early when p < 0.05 inflates false positives.
- Testing many metrics or variants without correction increases false positives.
- Statistical significance does not equal practical (business) significance.
- Run tests over full business cycles (e.g. whole weeks) to avoid novelty and day-of-week effects.
- Check sample ratio mismatch: group sizes should match the planned split.
Key terms
- A/B test
- Randomized experiment comparing a control and a variant.
- p-value
- Probability of results at least as extreme as observed, assuming no true difference.
- Significance level (alpha)
- Threshold for rejecting H0; the accepted Type I error rate.
- Statistical power
- Probability of detecting an effect that truly exists.
- Minimum detectable effect
- Smallest effect size the test is designed to detect reliably.
Takeaways
- Randomization lets A/B tests show causal effects.
- p < alpha means significant; it is not the probability that B is better.
- Fix sample size beforehand and avoid peeking.
- Judge both statistical and practical significance.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.