Skip to content
IT glossary
Data and MLUpdated December 3, 2026

p-value

A statistical test reports how often a result at least as extreme as the one observed would occur if the null hypothesis were true and the test’s assumptions held. That probability is the p-value.

Also known as: статистическая значимость, p-значение

What question does a p-value answer?

Suppose an experiment shows that a new checkout page converts better than the old one. Even if the two pages have the same true conversion rate, the groups in your experiment won't usually have identical results. A p-value tells you how unusual the observed result would be if there were no difference and the test's assumptions held. It does not tell you the probability that the new page is better.

How a test calculates it

Start with a null hypothesis, such as “the two conversion rates are equal.” The test turns the observations into a test statistic, a number that summarizes how far the data depart from what the null predicts. It then uses the distribution of that statistic under the null to find the probability of a result at least as extreme as the one observed. The alternative hypothesis determines which outcomes count as extreme: a two-sided test for a difference considers departures in either direction.

Compare the p-value with a significance level, α, chosen before looking at the results. If p ≤ α, reject the null hypothesis and call the result statistically significant at that level. The significance level limits the long-run probability of rejecting a true null under the planned test. It is not the probability that this particular rejection is wrong.

Example: nine heads in ten flips

Say you want to test whether a coin is biased in either direction. Under the null hypothesis, the coin is fair and the flips are independent. You see nine heads in ten flips. Outcomes at least this far from five heads are zero, one, nine, or ten heads. Under the null, those outcomes account for 22 of the 1,024 equally likely sequences, so the two-sided p-value is about 0.0215. The result is significant at the 5% level but not at the 1% level. Neither decision gives you the probability that the coin is fair.

What to report alongside it

In product experiments, a huge sample can make a tiny lift statistically significant, even if the extra revenue wouldn't cover the cost of the change. Report the estimated lift and a confidence interval so readers can see which effect sizes the data support. Conversely, a large p-value from a small experiment may leave room for both a meaningful benefit and a meaningful loss.

Also check how the result was selected. Testing ten metrics and reporting only the smallest p-value makes a false positive more likely than testing one prespecified metric. Likewise, stopping a fixed-sample test as soon as it crosses the significance threshold can invalidate the advertised error rate. Plan which comparisons matter and use a method that accounts for multiple tests or interim looks when needed.

How it comes up in interviews

An interviewer might hand you a dashboard with p = 0.04 and ask whether to ship. Explain what the number means under the null, then ask how large the effect is, how precise the estimate is, and whether the team followed the planned analysis. A threshold alone doesn't make the launch decision.