P-Value
GeneralProbability Value
The probability of observing a result at least as extreme as the one measured, assuming the null hypothesis is true โ used to judge whether a result is statistically significant.
Definition
A p-value is the probability of observing a result at least as extreme as the one actually measured, assuming the null hypothesis, the default assumption of "no effect" or "no difference", is true. It is the central output of most hypothesis tests and is used to decide whether an observed effect (a difference between two groups, a correlation, an experimental treatment effect) is likely to be real or could plausibly have arisen from random chance alone.
Researchers compare the p-value to a pre-chosen significance threshold, called alpha, most commonly set at 0.05. If the p-value is below alpha, the result is declared "statistically significant" and the null hypothesis is rejected; if it's above alpha, there is insufficient evidence to reject the null hypothesis. Tools like the T-Test Calculator and Chi-Square Test Calculator compute the test statistic and its corresponding p-value automatically.
A p-value is closely tied to the Confidence Interval: a 95% confidence interval that excludes the null value (such as zero difference) corresponds to a p-value below 0.05 in a two-tailed test at that same confidence level.
Formula
There is no single algebraic formula for a p-value, it is derived from the sampling distribution of the test statistic. The general process is:
- Calculate a test statistic (t, chi-square, z, or F) from the sample data.
- Compare that statistic to its theoretical distribution under the null hypothesis.
- P-Value = P(test statistic at least as extreme as observed | null hypothesis is true)
Worked Example
A researcher runs a two-sample t-test comparing average test scores between two teaching methods and obtains a t-statistic of 2.5 with 28 degrees of freedom. Looking up this t-statistic against the t-distribution gives a two-tailed p-value of approximately 0.019.
Since 0.019 is less than the standard alpha of 0.05, the researcher rejects the null hypothesis and concludes the two teaching methods produce a statistically significant difference in scores.
Key Things to Know
- Compare against alpha, not zero: a p-value is only "significant" relative to a chosen threshold (commonly 0.05, sometimes 0.01), there's no universal cutoff.
- Not the same as Statistical Significance: significance is the yes/no conclusion drawn by comparing the p-value to alpha; the p-value itself is the underlying probability.
- Doesn't measure effect size: a very small p-value can come from a trivial effect measured on a huge sample, so always check the magnitude of the effect too.
- Linked to the Confidence Interval: a confidence interval excluding the null value corresponds to a significant p-value at the complementary confidence level.
- One-tailed vs two-tailed matters: the same data can produce different p-values depending on whether the test checks for an effect in one specific direction or in either direction.
Related Calculators
Related Terms
Frequently Asked Questions