Understand the idea
Start by assuming nothing special is going on; that is the null hypothesis. Usually it says two groups have the same average, or that a coin is fair; sometimes it names a specific value instead.
Now ask: if that assumption were true (and the test's other assumptions hold), and I repeated this study over and over, how often would I see a result at least as surprising as the one I actually got? That proportion is the p-value.
A small p-value means your data would be unusual in a world where nothing is going on, so that world starts to look like a poor description of reality. A large p-value means your data fit comfortably in that world, which is NOT the same as proving nothing is going on. You may simply not have collected enough data to tell.
The p-value answers a question about the DATA, assuming the hypothesis. It does not tell you the probability that the hypothesis is true.
A result is said to reach statistical significance, or simply significance, when its p-value falls below a threshold chosen in advance, usually 0.05; output tables often shorten this to sig.
Practitioner explanation
Formally, p = P(T(X) at least as extreme as T(x_obs) | H0), where the probability is over the sampling distribution of the test statistic under the null AND under the study's full sampling model. That conditioning is why the p-value is not a statement about H0: it is computed by assuming H0.
Under a true simple null and a continuous calibrated statistic, the p-value is uniform on [0,1]. It reflects effect, variability, sample size and the model, not practical importance alone. Unadjusted optional stopping or selection can invalidate nominal calibration; valid sequential and multiplicity-adjusted methods exist.
In KernelStats, inspect the effect size and confidence interval where the card provides them. Availability depends on the method and data; a p-value alone does not communicate the magnitude or uncertainty of a result.
When to use it
Consider it when
To quantify how incompatible your data are with a specific null model, as ONE input to a decision that also weighs the effect size, the interval estimate, the design, and prior evidence.
Use caution when
As a measure of how large, how important, or how real an effect is; as the probability that the null hypothesis is true; or as a decision rule applied to an analysis that was chosen after seeing the data.
Formulas and symbols
Two-sided p-value from a t statistic
T_nu is a Student's t random variable with nu degrees of freedom and t is the observed test statistic.
Worked example
Scenario
A two-sample t-test compares body mass between 151 Adelie and 123 Gentoo penguins.
Result
Welch's t = -23.39 on 249.64 degrees of freedom, p < .001, mean difference -1375 g, 95% CI [-1491, -1260].
Interpretation
Data this extreme would be very unlikely if the two species had the same mean body mass, so we reject that hypothesis. The interval is the reportable part: Gentoo penguins are heavier by somewhere between about 1.26 and 1.49 kg, which is a large biological difference; the small p-value on its own would not have told us that.
Dataset: penguins.csv
Common misconceptions
Misconception
A p-value of 0.03 means there is a 3% chance the null hypothesis is true.
Correction
It means that IF the null were true, data at least this extreme would occur 3% of the time. Working out the chance that the null is true would need extra information about how believable it was before the study, which this calculation does not use.
Read more: Misconception: the p-value is the probability the null hypothesis is true
Misconception
p > 0.05 means there is no effect.
Correction
It means the data are compatible with the null, which a small or underpowered study will often report even when a real effect exists. Absence of evidence is not evidence of absence: look at the confidence interval, which shows which effect sizes remain plausible. Only an interval that lies entirely inside the range of effects you decided in advance would be too small to matter supports 'no meaningful effect'.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5 Quantitative Techniques, NIST/SEMATECH (2012), §1.3.5.
- The ASA Statement on p-Values: Context, Process, and Purpose, Wasserstein, R. L. and Lazar, N. A. (2016).
