Compute precise p‑values from z‑scores, t‑statistics, chi‑square, and F‑statistics. Visualize the sampling distribution, identify critical regions, and make evidence‑based decisions at your chosen significance level (α).
In statistical hypothesis testing, the p‑value (probability value) is the probability of obtaining a test statistic at least as extreme as the one observed, assuming that the null hypothesis (H₀) is true. It quantifies the strength of the evidence against H₀. A small p‑value (typically ≤ 0.05) indicates strong evidence against the null hypothesis, suggesting that the observed effect is unlikely to be due to random chance alone.
p‑value = P( T ≥ tobs | H₀ ) or P( T ≤ tobs | H₀ ) or 2·P( T ≥ |tobs| | H₀ )
where T is the test statistic under the null distribution, and tobs is the observed value.
A pharmaceutical company tests a new drug to reduce blood pressure. In a randomized controlled trial with 100 patients, the mean reduction in the treatment group is 8.2 mmHg, while the placebo group shows a mean reduction of 4.5 mmHg. The computed t‑statistic is 2.89 with 98 degrees of freedom, yielding a two‑tailed p‑value of 0.0047. At α = 0.05, the result is statistically significant (p = 0.0047 < 0.05), suggesting that the drug is effective. The 95% confidence interval for the mean difference is [2.4, 5.0] mmHg, further supporting the clinical significance of the effect.
| Distribution | Common Test | Typical Use | Parameters |
|---|---|---|---|
| Normal (z) | z‑test | Comparing means with known variance, large samples | z‑score |
| Student's t | t‑test | Comparing means with unknown variance, small samples | t‑statistic, degrees of freedom (df) |
| Chi‑Square | χ² test | Goodness‑of‑fit, independence, variance tests | χ² statistic, df |
| F | F‑test | ANOVA, comparing variances, regression overall | F‑statistic, df₁, df₂ |
For a two‑tailed z‑test: p = 2 · [1 − Φ(|z|)]
For a right‑tailed t‑test: p = 1 − Ft(t | df)
For a chi‑square test: p = 1 − Fχ²(χ² | df)
For an F‑test: p = 1 − FF(F | df₁, df₂)