UnitCompiler
📊

p-value Calculator

Hypothesis testing significance calculator for Z, t, and Chi-Square distributions.

p-value Calculator (Hypothesis Testing)

Determine exact p-values for Z-scores, Student's t-tests, and Chi-Square with significance verdict.

📊
Statistical Test:
Alternative Hypothesis Tail:
Calculated p-value (Probability)
0.05000
✓ Statistically Significant at α = 0.05 (Reject H₀)
α = 0.05 (95% Conf)
Reject Null (p ≤ 0.05)
α = 0.01 (99% Conf)
Fail to Reject (p > 0.01)
α = 0.001 (99.9% Conf)
Fail to Reject

Understanding p-values & Alpha (α)

The p-value measures the probability of obtaining test results at least as extreme as the observed data, assuming the null hypothesis (H₀) is true.

p ≤ 0.05
Standard threshold: Statistically significant (Reject H₀).
p ≤ 0.01
High significance: Very strong evidence against H₀.
p > 0.05
Insufficient evidence to reject null hypothesis.

How This Calculation Works

The p-value represents the probability of observing a test statistic at least as extreme as the sample result assuming the null hypothesis (H₀) is true. Depending on whether population variance is known, small or large samples, or contingency frequencies are tested, statisticians evaluate Z-score (Normal), Student’s t (with degrees of freedom df), or Chi-square distributions.

Core Formulas & Identities

Two-Tailed Z p-value
p = 2 · (1 − Φ(|Z|))
Right & Left One-Tailed
p_right = 1 − CDF(x) | p_left = CDF(x)
Rejection Criterion
p ≤ α ⇒ Reject H₀ at significance α

Variable Legend:Φ is the standard normal cumulative distribution function, df = n − 1 is degrees of freedom, and α (typically 0.05) is the significance threshold.

Step-by-Step Worked Examples

Example1

Standard Normal Z = 1.96 (Two-Tailed Test)

  1. Look up right tail above Z = 1.96: 0.0250.
  2. Double for both positive and negative tails: 2 × 0.0250.
  3. Compare with standard α = 0.05 threshold.
Result:p = 0.0500 (Boundary at 95% confidence)
Example2

Student’s t = 2.15 with df = 20 (Two-Tailed)

  1. Evaluate Student t cumulative density at t = 2.15, df = 20.
  2. Fatter t-tails give larger p than Z = 2.15 (which has p = 0.0316).
  3. Since p < 0.05, reject null hypothesis H₀.
Result:p ≈ 0.0440 (< 0.05 significant)

Practical Applications & Accuracy Tips

  • A small p-value does not measure effect size or practical importance—only evidence against H₀ under sample size n.
  • Specify one-tailed versus two-tailed hypotheses before collecting data to prevent α inflation.
  • Never interpret p = 0.04 as "a 4% probability that the null hypothesis is true."