Hypothesis Test and p Value
Calculate a p value from a known z, t, chi square or F statistic and compare it with your significance level.
From a test statistic to a probability
This calculator finds a tail probability under the null hypothesis from a test statistic you have already calculated. The z mode uses the standard normal distribution. The t mode uses the specified degrees of freedom. Chi square and F calculations use the upper tail only. Keep numerator and denominator degrees of freedom in the correct order for F.
Interpretation
A two sided z or t test uses p = 2P(T ≥ |t|). For t = 1 with one degree of freedom the upper tail is 0.25 and the two sided p value is 0.5. Reject the null hypothesis when p is at most α. Choose α and the alternative direction before analysis.
Limits
A small p value does not guarantee a large effect. Valid inference depends on sampling, independence and distribution assumptions. There is no multiple comparison adjustment. Statistics are limited to a magnitude of one million and degrees of freedom to one hundred thousand.
Separate the statistic from the decision threshold
The statistic comes from data, while the significance level is part of the decision rule. Changing α at the same statistic and degrees of freedom does not change p. Only the comparison's outcome may change. Record the rule before analysis instead of changing the threshold afterwards to obtain significance. The distribution must match the method used to calculate the statistic.
In a special example that permits a manual solution, choose F = 3 with numerator and denominator degrees of freedom both 2. For this particular distribution, upper tail probability is 1/(1 + F), so p = 1/(1 + 3) = 0.25. With a previously selected illustrative threshold α = 0.2, p remains larger and the null hypothesis cannot be rejected. This threshold is chosen to explain the comparison, not as a recommendation.
Failure to reject does not prove the model or equality of two groups. Data quantity and variability also affect the test's ability to distinguish effects. Assess an effect estimate and suitable uncertainty interval alongside the result. This tool calculates a tail area from a supplied statistic. It does not select tests from raw data, investigate independence or repair experimental design problems.
Frequently asked questions
How do you calculate a p value from a z score?
For an example standard normal test statistic of 1.96, the two sided p value is 0.04999579, with a selected significance level of 0.05. The upper tail beyond the absolute statistic is doubled, and a small p value does not establish a large effect or correct for multiple comparisons.
Related calculators
-
Statistics and Data Analysis
Normal Distribution and Z Score
Calculate a z score, normal lower and upper tail probabilities, and a quantile. -
Statistics and Data Analysis
Regression and Correlation
Fit a line or polynomial to paired X and Y data and calculate correlation, R² and residual standard deviation. -
Statistics and Data Analysis
Binomial and Poisson Distributions
Calculate exact count, cumulative and upper tail probabilities, plus the mean and variance of discrete event counts. -
Statistics and Data Analysis
Chi Square Goodness of Fit Test
Calculate a chi square goodness of fit statistic, degrees of freedom and approximate p value from observed and expected counts. -
Statistics and Data Analysis
Confidence Interval for a Mean
Calculate a confidence interval from summary statistics. Use a normal interval for known population deviation or a t interval for sample deviation. -
Statistics and Data Analysis
Data Charts and Moving Average
Create histograms, box plots, scatter plots and trailing moving averages. Download data as CSV and charts as SVG.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.