Inferensys

Glossary

P-Value

The probability of obtaining test results at least as extreme as the observed results, under the assumption that the null hypothesis is correct.
Developer reviewing semantic search engine results on laptop, relevance scores visible, technical search demo.
Statistical Significance

What is P-Value?

The p-value is a fundamental but frequently misinterpreted metric in A/B testing infrastructure for AI, used to quantify the strength of evidence against a default assumption.

A p-value is the probability of observing a test statistic at least as extreme as the one calculated from the sample data, assuming the null hypothesis is true. It is not the probability that the null hypothesis is false, nor does it measure the magnitude or practical importance of an effect. In the context of AI-driven personalization, it serves as a standardized threshold to determine if a model variant’s performance difference is statistically significant or likely due to random chance.

A low p-value (typically < 0.05) suggests the observed data is unlikely under the null hypothesis, leading experimenters to reject it in favor of the alternative. However, reliance on arbitrary thresholds without considering effect size and confidence intervals can lead to the peeking problem and spurious conclusions. In continuous experimentation platforms, p-values must be monitored alongside false discovery rate controls to prevent overfitting to noise when evaluating thousands of metrics simultaneously.

STATISTICAL SIGNIFICANCE

Frequently Asked Questions

Clarifying the most misunderstood metric in A/B testing and experimentation.

A p-value is the probability of observing a test statistic at least as extreme as the one calculated from the sample data, assuming the null hypothesis is true. It is a continuous measure of compatibility between the observed data and the null hypothesis, not a binary declaration of truth. In the context of an online controlled experiment, the null hypothesis typically states that there is no difference between the control and treatment variants. The p-value is derived from the cumulative distribution function of the test statistic's sampling distribution. A low p-value suggests that the observed data would be unlikely if the null hypothesis were true, prompting experimenters to reject the null in favor of the alternative hypothesis.

STATISTICAL PITFALLS

Common Misconceptions

The p-value is one of the most frequently misunderstood and misused concepts in A/B testing. These cards clarify the most common errors that lead to invalid experimental conclusions.

01

The Inverse Probability Fallacy

The most pervasive error is interpreting the p-value as the probability that the null hypothesis is true. A p-value of 0.03 does not mean there is a 97% chance the treatment effect is real. It means: Assuming the null hypothesis is true and there is no effect, there is a 3% probability of observing data as extreme as the collected sample. The p-value conditions on the null hypothesis; it does not quantify the probability of the hypothesis itself. Bayesian methods are required to directly assign probabilities to hypotheses.

02

Statistical Significance vs. Practical Significance

A tiny p-value does not imply a meaningful business impact. With a sufficiently large sample size—common in e-commerce platforms processing millions of users—even a negligible effect size of a 0.01% lift in click-through rate can yield a statistically significant p-value. Always report and evaluate the confidence interval of the metric delta alongside the p-value. A result is only actionable if the magnitude of the improvement justifies the engineering cost of deployment.

03

The 0.05 Threshold is Not a Magic Boundary

The dichotomy of 'significant' (p < 0.05) versus 'not significant' (p > 0.05) is an arbitrary convention popularized by R.A. Fisher. There is no statistical discontinuity at this threshold. A p-value of 0.049 and 0.051 are essentially identical in their evidential weight. The American Statistical Association explicitly warns against binary decision-making based solely on p-value thresholds. Treat p-values as a continuous measure of surprise against the null model, not a litmus test for publication.

04

Non-Significance Does Not Prove No Effect

Failing to reject the null hypothesis (p > 0.05) is frequently misinterpreted as proving the null hypothesis is true. This is a fundamental logical error. A non-significant result simply means the data are insufficient to detect an effect, not that no effect exists. This often occurs in underpowered experiments with small sample sizes. To assert equivalence or the absence of a meaningful effect, you must use a two one-sided test (TOST) procedure, not a standard null hypothesis significance test.

05

P-Hacking and the Garden of Forking Paths

P-hacking refers to the conscious or unconscious manipulation of data analysis until a significant p-value is obtained. Common practices include: collecting more data after a non-significant result (peeking problem), testing multiple dependent variables and reporting only the significant ones, or selectively excluding outliers post-hoc. Without a pre-registered analysis plan and corrections like the Bonferroni correction or False Discovery Rate control, the reported p-value is severely deflated and the Type I error rate is inflated far beyond the nominal 5%.

06

P-Value is Not a Measure of Replicability

A significant p-value in a single experiment does not guarantee the result will replicate. Simulation studies show that for a true effect size just barely detectable at 80% power, a p-value of 0.05 corresponds to a replication probability of only approximately 50%. The p-value captures the evidence in a single sample against a specific null model; it does not encode the underlying statistical power or the prior probability of the hypothesis, both of which are critical for predicting whether the effect will hold in a future experiment.

STATISTICAL INFERENCE COMPARISON

P-Value vs. Other Statistical Measures

How the p-value compares to other key statistical measures used in A/B testing and experimentation for evaluating model performance.

MeasureP-ValueConfidence IntervalEffect SizeBayesian Posterior Probability

Core Definition

Probability of observing data at least as extreme as the sample, assuming the null hypothesis is true

Range of plausible values for the true population parameter at a specified confidence level

Standardized magnitude of the difference between groups, independent of sample size

Direct probability that a hypothesis is true given the observed data and prior beliefs

Answers the Question

Is there a statistically significant difference?

What is the range of the true treatment effect?

How large is the observed difference?

What is the probability the variant is better?

Incorporates Prior Knowledge

Affected by Sample Size

Provides Practical Significance

Common Threshold

0.05

95%

0.2 (small), 0.5 (medium), 0.8 (large)

95% credible interval

Primary Use in A/B Testing

Determining if a variant should be shipped

Estimating the precision of the lift

Contextualizing whether the lift matters for the business

Calculating the expected loss of choosing the wrong variant

Risk of Misinterpretation

Often mistaken for the probability that the null hypothesis is false

Often mistaken as containing the true parameter with 95% probability in a frequentist sense

Often ignored in favor of p-value alone, leading to statistically significant but practically meaningless results

Often sensitive to the choice of prior distribution

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.