Hypothesis Statistics Calculator

This hypothesis statistics calculator runs a z test, t test, proportion test or two-sample test from summary statistics, with the p-value and decision.

Checks on your data

  • The p-value comes from the exact z or t distribution.
  • Check the data are a random sample and, for small samples, roughly normal.
  • Failing to reject H₀ does not prove it is true. It means the data did not give enough evidence against it.

Results

Test
One-sample t test for a mean
Hypotheses
H₀: μ = 50; H₁: μ ≠ 50
Test statistic t
1.8852
p-value
0.07156
Decision
Fail to reject H₀ at α = 0.05
Critical value (±)
± 2.0639
Estimate x̄
52.3
Standard error
1.22
Degrees of freedom
24
t distribution: shaded area is the p-value
-4-2024t = 1.89t
Show step-by-step solution
  1. One-sample t test for a mean. H₀: μ = 50 against H₁: μ ≠ 50.
  2. Standard error = 1.22.
  3. t = (52.3 − 50) ÷ 1.22 = 1.8852 with 24 degrees of freedom.
  4. p-value (two-tailed) = 0.07156.
  5. Compare with α = 0.05: p > α, fail to reject H₀.
Test statistic(estimate − null) / SE
Reject ifp ≤ α
Tailsfrom H₁

What Is Hypothesis Statistics?

A hypothesis test checks whether sample data are consistent with a claim about a population. You work out a test statistic, convert it to a p-value, and compare the p-value with your significance level.

This calculator covers four common tests: a one-sample z test, a one-sample t test, a one-proportion z test and a two-sample Welch t test. Choose one, enter the summary numbers and the alternative hypothesis.

It shows the hypotheses, the test statistic, the p-value, the critical value and the decision, along with a graph of the shaded p-value area.

How to Use the Hypothesis Statistics Calculator

  1. Choose the test and the alternative hypothesis.
  2. Enter the summary statistics.
  3. Read the test statistic, p-value and decision.

Hypothesis Statistics Formula

Mean test

t=xˉ−μ0s/nt=\frac{\bar x-\mu_0}{s/\sqrt n}

Proportion test

z=p^−p0p0(1−p0)/nz=\frac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}

Welch two-sample

t=xˉ1−xˉ2s12/n1+s22/n2t=\frac{\bar x_1-\bar x_2}{\sqrt{s_1^2/n_1+s_2^2/n_2}}

Hypothesis Statistics Variables Explained

SymbolMeaningNotes
x̄, s, nSample mean, standard deviation and size
μ₀, p₀Value of the mean or proportion under the null hypothesis
t or zTest statistic(estimate − null) / SE
pp-valueReject H₀ if p ≤ α

Hypothesis Statistics Worked Example

With the example values loaded in the calculator above, the steps are:

  1. One-sample t test for a mean. H₀: μ = 50 against H₁: μ ≠ 50.
  2. Standard error = 1.22.
  3. t = (52.3 − 50) ÷ 1.22 = 1.8852 with 24 degrees of freedom.
  4. p-value (two-tailed) = 0.07156.
  5. Compare with α = 0.05: p > α, fail to reject H₀.

Result: Test statistic t = 1.8852; p-value = 0.07156; Decision = Fail to reject H₀ at α = 0.05.

Worked example: one-sample t test

Suppose x̄ = 52.3, μ₀ = 50, s = 6.1 and n = 25. The standard error is 6.1 ÷ 5 = 1.22, so t = 2.3 ÷ 1.22 = 1.885 with 24 degrees of freedom.

The two-tailed p-value is about 0.0715. At α = 0.05 that is above the cut-off, so you fail to reject H₀.

Choosing the test

Use a z test for a mean when σ is known. Use t when you estimate it from the sample. Use the proportion test for yes or no data. Use Welch for comparing two independent means without assuming equal variances.

Where Hypothesis Statistics Is Used

Statistics homework

Run a test from summary data and get the decision.

Checking a claim

Compare a sample mean or proportion with a target.

Comparing two groups

Test a difference in means without equal-variance assumptions.

Common Hypothesis Statistics Mistakes to Avoid

  • Choose the alternative before you see the data.
  • Report the p-value and an effect size, not only the decision.

Hypothesis Statistics Terms and Definitions

Null hypothesis
The default claim, usually no effect or no difference.
p-value
The probability of a result at least this extreme if H₀ is true.

Hypothesis Statistics FAQs

What does a hypothesis test tell me?

Whether the sample gives enough evidence against the null hypothesis at your significance level.

When do I use z and when t?

Use z when the population standard deviation is known, t when you estimate it from the sample.

What is a Welch test?

A two-sample t test that does not assume the two groups have equal variances.

What does it mean to fail to reject?

The data did not provide enough evidence against H₀. It does not show H₀ is true.

Related calculators

Last updated 2026-11-09. See our disclaimer.