Worked ExampleStatisticsIntroHypothesis Test Calculator

Perform a one-sample hypothesis test and interpret the -value

A one-sample hypothesis test compares an observed sample mean with a claimed population mean. The test statistic measures how far the sample sits from the null value after accounting for sample variability.

Primary Tool

Hypothesis Test Calculator

Open calculator

The hypothesis test calculator shows the test statistic, -value, critical value, and decision from the same inputs. That keeps attention on interpretation instead of arithmetic while still exposing every quantity used in the test.

Problem

A tutoring program claims that its students average points on a placement exam. A random sample of students from the program has mean and sample standard deviation .

At significance level , test whether the true program mean differs from .

Set up the hypotheses

The null hypothesis is the model being tested: . The alternative is two-sided because the question asks whether the mean differs from , not only whether it is higher or lower.

  • Use a one-sample test because the population standard deviation is unknown and the sample standard deviation is used.

Step-by-step walkthrough

The calculation turns the sample mean into a standardized distance from the null value.

  1. 1Compute the standard error: .
  2. 2Compute the test statistic: .
  3. 3Use degrees of freedom for the distribution.
  4. 4For a two-sided test, the -value is the probability, assuming is true, of seeing a statistic at least this far from in either direction.
  5. 5The calculator reports a small -value, below , so the decision rule says to reject at the 5% level.

Interpret the result

Rejecting means the sample provides statistically significant evidence that the program mean is not . The direction of the sample, , suggests the mean is higher, but the two-sided test itself was built to detect any difference.

The -value is not the probability that the tutoring program's claim is true. It is the probability of getting a sample result this extreme, or more extreme, if the true mean were exactly and the model assumptions held.

Statistical significance is not the same as practical importance. A difference of about points might matter a lot or very little depending on the exam scale, cost of the program, and how the sample was collected.

Common Pitfall

Rejecting does not prove the alternative hypothesis, and failing to reject would not prove the null. The test only measures how compatible the sample is with the null model under the chosen assumptions.

Try a Variation

Change the alternative hypothesis to 'greater than' while keeping the same sample summary. How does the -value change, and why is choosing the alternative after seeing the sample mean a bad statistical habit?

Related Pages

Keep moving through the cluster

Back to Learn Math →