Skip to content
tezvyn:
Menu

Explain what a p-value represents in an A/B test and interpret 0.03

Source: Wikipedia: P-valueEasyHow cards are made

This tests frequentist hypothesis testing literacy. It is the chance of seeing a result this extreme if the null of no effect were true; 0.03 means 3% chance of such data under the null, not 97% chance the variant wins. Red flag: saying 97% likely.

What's really being asked

The interviewer wants to know if you understand the definition of a p-value under the frequentist framework or if you are just repeating cargo-cult statistics. In product and UX research, a senior candidate must distinguish between the probability of data under a hypothetical null model and the probability that a business decision is correct. This question separates people who can explain statistical assumptions from people who treat 0.05 as a magic on-off switch.

The full answer

A strong answer states that the p-value is the probability of obtaining a test result at least as extreme as the one observed, assuming the null hypothesis of no difference is true. For an A/B test, this means calculating how likely the observed lift or a larger lift would be if the control and variant actually had identical underlying conversion rates. With a p-value of 0.03, the candidate should say that such an extreme result would happen only three percent of the time under the null, which falls below the conventional alpha of 0.05 and therefore leads us to reject the null. The candidate should also proactively note that this is not the same as saying there is a ninety-seven percent probability that the variant is truly better, because the p-value conditions on the null being true rather than updating our belief about the null.

The mistakes people make

The most dangerous error is interpreting 0.03 as a ninety-seven percent chance that the hypothesis is true or that the result will replicate. Another red flag is saying the p-value measures the size or importance of the effect; it does not, which is why confidence intervals and effect sizes matter. Some candidates will claim that a lower p-value means a larger lift, or that a p-value of 0.03 means there is a three percent chance the null is true. All of these confuse the probability of the data given the hypothesis with the probability of the hypothesis given the data.

What usually comes next

The interviewer may ask why we use an alpha of 0.05 and whether it should ever change, which is a chance to discuss business risk and the trade-off between false positives and false negatives. They may also ask how sample size affects p-values, or why a statistically significant result might still not be practically significant. A sharp candidate will be ready to explain that p-values do not account for prior probability, which is why Bayesian alternatives or simply reporting confidence intervals are increasingly preferred in industry settings.

A concrete example

Imagine you run an A/B test on a checkout button color and observe a two percent lift in conversions with a p-value of 0.03. What this number actually means is that if the new button color had zero real impact, random noise alone would still produce a two percent lift or larger in about three out of every one hundred experiments. Because that is relatively rare under the no-effect assumption, you reject the null and tentatively conclude the color change had an effect. However, it does not mean there is a ninety-seven percent chance you will see a two percent lift if you roll the feature out to all users, nor does it tell you whether the lift is large enough to justify the engineering cost of the change.

Interview question

An A/B test returns a p-value of 0.03. Which statement accurately describes its meaning under the null hypothesis?

  • a.There is a 97% probability that the variant is genuinely better than the control.
  • b.There is a 3% probability that the null hypothesis of no effect is actually true.
  • c.There is a 97% probability that this result will replicate in a future experiment.
  • d.If the null hypothesis of no difference were true, we would observe a result at least this extreme about 3% of the time.Correct
Why?

A p-value of 0.03 means that if there were truly no difference between variants, random variation would produce a result this extreme roughly 3% of the time. It does not mean there is a 97% chance the variant is better, because the p-value describes the probability of the data under the null rather than the probability that the null is false.

Just read this? Test yourself on what you have been reading.

Read the original → en.wikipedia.org

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on statistics — each one lists the topics its interview covers.

See open roles